/* ==========================================================================
   sosoto service — стили лендинга
   ========================================================================== */

/* CSS variables / theming */
:root {
  --green: #7CC516;
  --green-dark: #5FA00D;
  --green-darker: #3a5a0a;
  --green-light: #f1f9e0;
  --green-tint: #dcf0b0;
  --dark: #0f172a;
  --dark-2: #1f2937;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #64748b;
  --muted: #94a3b8;
  --border: #e5e7eb;
  --border-2: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --danger: #ef4444;
  --warn: #f59e0b;
  --shadow-sm: 0 4px 12px rgba(0,0,0,.06);
  --shadow: 0 12px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 40px rgba(0,0,0,.14);
  --shadow-green: 0 18px 32px -10px rgba(124,197,22,.4);
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container: 1240px;
  --header-h: 78px;
  --cats-h: 64px;

  /* Темизируемые фоны (могут быть переопределены админкой через applyThemeToDOM) */
  --hero-bg: linear-gradient(180deg, var(--green-light) 0%, #ffffff 70%);
  --brand-banner-bg: linear-gradient(135deg, var(--green-light) 0%, #fff7d6 100%);
  --stats-bg: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  --section-alt-bg: var(--bg-alt);
  --page-bg: #ffffff;
  --header-bg: #ffffff;
  --header-text: #111827;
  --subnav-bg: var(--green);
  --subnav-text: #ffffff;
  --cats-bg: #1f2937;
  --cats-text: #ffffff;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.2; color: #111827; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--text); border: 2px solid var(--border); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-2); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Subnav (top green bar)
   ========================================================================== */
.subnav {
  background: var(--subnav-bg);
  background-size: cover;
  background-position: center;
  color: var(--subnav-text);
  font-size: 13.5px;
}
.subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.subnav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.subnav__menu a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.subnav__menu a:hover { opacity: .85; }
.subnav__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lang { display: flex; gap: 6px; align-items: center; }
.lang__link { color: rgba(255,255,255,.75); text-decoration: none; }
.lang__link--active { color: #fff; font-weight: 700; }
.lang__link:hover { color: #fff; }
.lang__sep { color: rgba(255,255,255,.5); }

/* Subnav login button — для входа в админ-панель */
.subnav__login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.subnav__login:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.subnav__login svg { flex: 0 0 14px; opacity: .8; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  padding: 4px 11px 4px 12px;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: blink 2s ease-in-out infinite;
}
.status-badge--open::before { background: #4ade80; }
@keyframes blink { 50% { opacity: .45; } }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background: var(--header-bg);
  background-size: cover;
  background-position: center;
  color: var(--header-text);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: #111827;
  text-decoration: none;
  letter-spacing: -.02em;
  flex: 0 0 auto;
}
.logo__mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 21px;
}
.logo__accent { color: var(--green); font-weight: 800; }
.logo--inverted { color: #fff; }
.logo--inverted .logo__accent { color: var(--green); }
.logo__img { height: 40px; max-width: 200px; object-fit: contain; display: inline-block; }

.header__contacts {
  display: none;
  gap: 22px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) { .header__contacts { display: flex; } }
.header__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.header__contact:hover { text-decoration: none; }
.header__icon { font-size: 18px; }
.header__contact-label { display: block; color: var(--text-3); font-size: 12px; }
.header__contact-value { display: block; font-weight: 600; color: var(--text); }
.header__contact--phone .header__contact-value { color: var(--green-dark); font-size: 16px; }

.header__cta {
  display: none;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  flex: 0 0 auto;
}
.header__cta:hover { background: var(--green-dark); color: #fff; }
@media (min-width: 768px) { .header__cta { display: inline-flex; align-items: center; } }

.burger {
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 99;
}
.mobile-nav--open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
}
.mobile-nav a:hover { background: var(--green-light); color: var(--green-dark); }
.mobile-nav .btn { margin-bottom: 8px; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* ==========================================================================
   Categories bar + Mega menu
   ========================================================================== */
.cats {
  background: var(--cats-bg);
  background-size: cover;
  background-position: center;
  color: var(--cats-text);
  border-top: 3px solid var(--green);
  position: relative;
  z-index: 50;
}
.cats__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.cats__nav {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats__nav::-webkit-scrollbar { display: none; }

.cat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: color .15s, background .15s;
  text-align: left;
}
.cat:hover { color: var(--green); background: rgba(124,197,22,.06); }
.cat--active { color: var(--green); background: rgba(124,197,22,.08); }
.cat__icon { width: 28px; height: 28px; flex: 0 0 28px; }
.cat__icon svg { width: 100%; height: 100%; }
.cat__label { display: flex; flex-direction: column; line-height: 1.2; }
.cat__label span { color: #cbd5e1; font-size: 12px; }
.cat__label strong { color: #fff; font-weight: 700; font-size: 14px; }
.cat--active .cat__label strong, .cat:hover .cat__label strong { color: var(--green); }

.cats__cta {
  display: none;
  align-items: center;
  padding: 0 28px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.cats__cta:hover { background: var(--green-dark); color: #fff; }
@media (min-width: 1024px) { .cats__cta { display: inline-flex; } }

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark-2);
  border-top: 1px solid rgba(124,197,22,.3);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  pointer-events: none;
}
.megamenu--open {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.megamenu__inner {
  padding: 28px 16px;
}
@media (min-width: 768px) { .megamenu__inner { padding: 32px 24px; } }
.megamenu__title {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 18px;
}
.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px 24px;
}
.megamenu__item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.megamenu__item:hover { color: var(--green); text-decoration: none; }
.megamenu__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .megamenu__cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .megamenu__cards { grid-template-columns: repeat(4, 1fr); } }
.megamenu__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .15s;
}
.megamenu__card:hover {
  background: var(--green); color: #fff; border-color: var(--green); text-decoration: none;
}
.megamenu__card-emoji { font-size: 24px; line-height: 1; }
@media (max-width: 1023px) { .megamenu { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 40px 0 50px;
  background: var(--hero-bg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,197,22,.18), transparent 70%);
  pointer-events: none;
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) { .hero__container { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

.hero__eyebrow {
  display: inline-block;
  background: rgba(124,197,22,.14);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.hero__title {
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hero__lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 24px;
}

.hero__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 22px;
  max-width: 580px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.hero__search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(124,197,22,.15);
}
.hero__search-icon {
  width: 20px; height: 20px;
  color: var(--muted);
  flex: 0 0 20px;
}
.hero__search input {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  min-width: 0;
}
.hero__search-btn {
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}
.hero__search-btn:hover { background: var(--green-dark); }

.hero__autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 360px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 30;
}
.hero__autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
  transition: background .12s;
}
.hero__autocomplete-item:last-child { border-bottom: 0; }
.hero__autocomplete-item:hover, .hero__autocomplete-item--active {
  background: var(--green-light); color: var(--green-darker);
}
.hero__autocomplete-brand {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.hero__autocomplete-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.hero__autocomplete mark { background: #fef9c3; color: inherit; padding: 0 2px; border-radius: 2px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.hero__features {
  display: grid;
  gap: 8px;
}
.hero__features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--text-2);
}
.hero__feature-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 22px;
}

/* Hero side card */
.hero__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero__card-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.hero__card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex: 0 0 50px;
}
.hero__card-head strong { display: block; color: #111827; font-size: 16px; }
.hero__card-head span { display: block; color: var(--text-3); font-size: 13px; }
.hero__card-stat {
  display: flex; align-items: baseline; gap: 6px; padding: 12px 0;
  border-bottom: 1px dashed var(--border); margin-bottom: 12px;
}
.hero__card-stat b { font-size: 28px; color: #111827; font-weight: 800; }
.hero__card-stat small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.hero__card-list { display: grid; gap: 8px; padding: 4px 0 16px; font-size: 14px; }
.hero__card-list b { color: var(--green-dark); font-weight: 700; }

/* ==========================================================================
   Section base
   ========================================================================== */
.section { padding: 50px 0; }
@media (min-width: 768px) { .section { padding: 70px 0; } }
.section--alt { background: var(--section-alt-bg); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section__title { margin-bottom: 12px; }
.section__lead { color: var(--text-3); font-size: 16px; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal--in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Brands grid
   ========================================================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 480px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .brands-grid { grid-template-columns: repeat(8, 1fr); } }

.brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  animation: cardIn .55s cubic-bezier(.16,1,.3,1) forwards;
}
.brand:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: var(--shadow-green);
  text-decoration: none;
}
.brand:hover .brand__visual {
  background: linear-gradient(180deg, #ffffff 0%, var(--green-light) 100%);
}
/* Зелёная полоса подъезжает снизу — как у bananafix */
.brand__name-wrap {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.brand__name-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  z-index: -1;
}
.brand:hover .brand__name-wrap {
  border-top: 3px solid #0f172a;
}
.brand:hover .brand__name-wrap::before {
  transform: translateY(0);
}
.brand:hover .brand__name { color: #ffffff; }
.brand:hover .brand__flagship { color: rgba(255,255,255,.85); }
.brand:hover .brand__logo { transform: scale(1.05) rotate(-3deg); }
.brand__logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-color, var(--text));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.brand__logo--text-dark { color: #111827; }
.brand__name { font-weight: 800; font-size: 14.5px; margin: 0; line-height: 1.2; transition: color .15s ease; }
.brand__name-wrap {
  padding: 11px 8px;
  background: #fff;
  border-top: 3px solid var(--border-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.brand__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  position: relative;
  padding: 16px 12px;
  background: #fff;
  transition: background .2s;
}
.brand__photo {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.brand:hover .brand__photo { transform: scale(1.06) rotate(-2deg); }
.brand__flagship {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  display: block;
  margin-top: 2px;
  line-height: 1.2;
  word-break: break-word;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); } }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.service-card {
  position: relative;
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 52px;
}
.service-card__title { font-weight: 700; font-size: 16px; margin: 0; color: #111827; }
.service-card__text { font-size: 13.5px; color: var(--text-3); margin: 0; flex: 1; }
.service-card__price {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.tabs {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto 30px;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab {
  padding: 10px 22px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  transition: all .15s;
  cursor: pointer;
}
.tab--active { background: #fff; color: var(--green-dark); box-shadow: var(--shadow-sm); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.tier {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier--featured { border-color: var(--green); box-shadow: var(--shadow-green); }
.tier--featured::before {
  content: "Рекомендуем";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tier__name { font-size: 14px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.tier__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.tier__price b { font-size: 36px; font-weight: 800; color: #111827; line-height: 1; }
.tier__price span { font-size: 14px; color: var(--text-3); }
.tier__period { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.tier__list { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 22px; }
.tier__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.tier__list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex: 0 0 18px;
}
.tier__cta { width: 100%; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: var(--stats-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 50px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-size: clamp(32px, 5vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat__label { font-size: 14px; opacity: .92; margin-top: 8px; }

/* ==========================================================================
   How we work — steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.step {
  position: relative;
  padding: 26px 22px 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow); }
.step__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.step__title { font-size: 16px; margin: 0 0 6px; }
.step__text { font-size: 13.5px; color: var(--text-3); margin: 0; }

/* ==========================================================================
   Reviews
   ========================================================================== */

/* Yandex Maps reviews widget — официальный iframe */
.yandex-reviews {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.yandex-reviews__frame {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
  background: var(--bg-alt);
}
@media (max-width: 640px) {
  .yandex-reviews__frame { height: 640px; }
}
.yandex-reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

/* (Старые стили карусели отзывов оставлены ниже на случай повторного использования) */
.reviews {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .reviews { grid-template-columns: 44px 1fr 44px; }
}
.reviews__nav {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  z-index: 2;
}
@media (min-width: 768px) { .reviews__nav { display: inline-flex; } }
.reviews__nav:hover { background: var(--green); color: #fff; border-color: var(--green); }
.reviews__nav svg { width: 20px; height: 20px; }

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.reviews__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .reviews__track { grid-auto-columns: 49%; } }
@media (min-width: 1024px) { .reviews__track { grid-auto-columns: 32%; } }

.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  scroll-snap-align: start;
  transition: transform .2s, box-shadow .2s;
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 48px;
}
.review__name { font-weight: 700; color: #111827; font-size: 15px; }
.review__meta { color: var(--muted); font-size: 12px; }
.review__stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; }
.review__text { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.review__device { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--text-3); background: var(--bg-alt); padding: 3px 10px; border-radius: 6px; }

.reviews__dots {
  display: flex; justify-content: center; gap: 7px; margin-top: 22px;
}
.reviews__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: 0;
  cursor: pointer;
  transition: background .15s, width .15s;
}
.reviews__dot--active { background: var(--green); width: 22px; border-radius: 4px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] { border-color: var(--green); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  color: #111827;
  font-size: 15.5px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CC516' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__body { padding: 0 22px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.faq-item__body p { margin: 0; }

/* ==========================================================================
   Video gallery
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }

.video-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-green); }
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.video-card__title { position: relative; z-index: 2; font-weight: 700; font-size: 15px; line-height: 1.3; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.video-card__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .25s;
}
.video-card:hover .video-card__play { transform: translate(-50%,-50%) scale(1.12); }
.video-card__play::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--green-dark);
  margin-left: 4px;
}

/* ==========================================================================
   Contacts + Map
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 1024px) { .contacts-grid { grid-template-columns: 1.6fr 1fr; gap: 28px; } }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.map__yandex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map__pin-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  position: relative;
  z-index: 2;
}
.map__pin-pulse {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  opacity: .35;
  animation: pinPulse 1.8s ease-out infinite;
  z-index: 1;
  top: 0;
}
@keyframes pinPulse { 0% { transform: scale(1); opacity: .45 } 100% { transform: scale(3.6); opacity: 0 } }
.map__pin-label {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.map__pin-label small { color: var(--text-3); font-weight: 500; font-size: 11px; }
.map__open {
  position: absolute;
  bottom: 16px; right: 16px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s;
}
.map__open:hover { background: var(--green); color: #fff; text-decoration: none; transform: translateY(-2px); }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.contact-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 18px 0 6px;
}
.contact-card h3:first-child { margin-top: 0; }
.contact-card p { color: var(--text); font-size: 15px; margin: 0; }
.contact-card a { color: var(--green-dark); font-weight: 600; }
.contact-card .btn { margin-top: 22px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--footer-bg);
  background-size: cover;
  background-position: center;
  color: var(--footer-text);
  padding: 50px 0 22px;
  margin-top: 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; } }
.footer__col h4.footer__title {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer__about { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 14px 0 18px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { color: #cbd5e1; font-size: 14px; text-decoration: none; }
.footer__list a:hover { color: var(--green); }
.footer__small { color: #94a3b8; font-size: 13px; margin-bottom: 10px; }

.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all .15s;
}
.social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.newsletter {
  display: flex;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 4px;
}
.newsletter input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  outline: 0;
  font-family: inherit;
}
.newsletter input::placeholder { color: #64748b; }
.newsletter button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  flex: 0 0 40px;
}
.newsletter button:hover { background: var(--green-dark); }
.newsletter__success { display: none; color: var(--green); font-size: 13px; margin-top: 8px; font-weight: 600; }
.newsletter__success--show { display: block; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 300;
  opacity: 0;
  transition: opacity .25s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-backdrop:not([hidden]) { display: flex; }
.modal-backdrop--open { opacity: 1; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 28px;
  position: relative;
  transform: scale(.94) translateY(14px);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 32px 60px rgba(0,0,0,.3);
}
.modal-backdrop--open .modal { transform: scale(1) translateY(0); }
.modal--wide { max-width: 600px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .25s;
  z-index: 2;
}
.modal__close:hover { background: var(--border); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; color: var(--text-2); }
.modal__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.modal__icon svg { width: 26px; height: 26px; }
.modal__title { margin: 0 0 8px; font-size: 22px; padding-right: 40px; }
.modal__subtitle { margin: 0 0 22px; color: var(--text-3); font-size: 14px; line-height: 1.5; }

/* Forms */
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: 0;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--green); }
.form-field--error input,
.form-field--error textarea,
.form-field--error select { border-color: var(--danger); }
.form-error { display: none; color: var(--danger); font-size: 12px; margin-top: 4px; font-weight: 500; }
.form-field--error .form-error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, transform .05s;
  font-family: inherit;
}
.form-submit:hover { background: var(--green-dark); }
.form-submit:active { transform: translateY(1px); }
.form-submit:disabled { background: var(--muted); cursor: not-allowed; }
.form-consent { font-size: 12px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }

.form-success { text-align: center; padding: 14px 0; }
.form-success__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 800;
}
.form-success__title { margin: 0 0 8px; font-size: 20px; }
.form-success__text { margin: 0; color: var(--text-3); font-size: 14px; }

/* Brand-model picker (inside modal-brand) */
.brand-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.brand-modal-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -.02em;
  flex: 0 0 56px;
}
.brand-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 4px;
}
@media (min-width: 480px) { .brand-models-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .brand-models-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s, color .2s;
  line-height: 1.3;
}
.brand-model:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 18px -8px rgba(124,197,22,.35);
}
.brand-model:hover .bm-phone { transform: rotate(-4deg) scale(1.06); }

/* Stylized phone illustration inside model card */
.bm-phone {
  width: 50px;
  height: 84px;
  border-radius: 9px;
  border: 2px solid #1a1a1a;
  background: #f5f5f7;
  position: relative;
  box-shadow: 0 6px 12px rgba(0,0,0,.18);
  flex: 0 0 auto;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.bm-phone__screen {
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--phone-color, #333);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 45%, rgba(0,0,0,.22) 100%),
    radial-gradient(circle at 65% 25%, rgba(255,255,255,.15), transparent 60%);
  overflow: hidden;
}
.bm-phone__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 4px;
  background: #000;
  border-radius: 3px;
  z-index: 2;
}
.bm-phone__camera {
  position: absolute;
  top: 6px;
  right: 28%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #2a2a3e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  z-index: 3;
}
.bm-phone__home {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 2.5px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  z-index: 2;
}
.brand-model__name { display: block; word-break: break-word; }

/* Real photo preview (when model.image is set in catalog-data.js) */
.bm-photo {
  width: 64px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f7;
  flex: 0 0 auto;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.brand-model:hover .bm-photo { transform: scale(1.06); }
.bm-photo--broken { display: none; }
.bm-photo--broken + .brand-model__name::before {
  content: "📱";
  display: block;
  font-size: 36px;
  margin-bottom: 6px;
}
.brand-modal-empty {
  padding: 24px 18px;
  background: var(--bg-alt);
  border-radius: 12px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}
.brand-modal-empty a { color: var(--green-dark); font-weight: 700; }
.brand-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.brand-modal-foot button { flex: 1; }

/* ==========================================================================
   Floating UI (FAB, back-to-top, mobile CTA, cookie, scroll progress, toast)
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--green);
  width: 0;
  z-index: 200;
  transition: width .05s linear;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(124,197,22,.4);
  transition: background .15s, transform .15s;
  z-index: 90;
}
.back-top--show { display: inline-flex; }
.back-top:hover { background: var(--green-dark); transform: translateY(-3px); }
.back-top svg { width: 22px; height: 22px; }

.fab {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  animation: fabPulse 2.4s ease-in-out infinite;
  transition: background .2s, transform .2s;
}
.fab:hover { background: var(--green-dark); transform: scale(1.06); animation: none; }
.fab svg { width: 26px; height: 26px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 22px rgba(124,197,22,.45), 0 0 0 0 rgba(124,197,22,.5); }
  50% { box-shadow: 0 10px 22px rgba(124,197,22,.45), 0 0 0 16px rgba(124,197,22,0); }
}

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: none;
  gap: 8px;
  padding: 10px 12px;
  z-index: 80;
  box-shadow: 0 -8px 20px rgba(0,0,0,.06);
}
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
  .fab { bottom: 140px; }
  .back-top { bottom: 80px; }
}
.mobile-cta__btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.mobile-cta__btn--primary { background: var(--green); color: #fff; }
.mobile-cta__btn--ghost { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-tint); }
.mobile-cta__btn--tg { background: #229ED9; color: #fff; }

/* ===== Telegram styling ===== */

/* Floating button stack — обёртка для двух FAB-кнопок (TG + телефон) */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.fab-stack .fab,
.fab-stack .fab--tg {
  position: static;
  right: auto;
  bottom: auto;
}
.fab--tg {
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  animation: tgPulse 2.6s ease-in-out infinite;
}
.fab--tg:hover { background: #1c8bbf; }
.fab--tg svg { width: 26px; height: 26px; }
@keyframes tgPulse {
  0%, 100% { box-shadow: 0 10px 22px rgba(34,158,217,.4), 0 0 0 0 rgba(34,158,217,.45); }
  50%      { box-shadow: 0 10px 22px rgba(34,158,217,.4), 0 0 0 14px rgba(34,158,217,0); }
}
@media (max-width: 767px) {
  .fab-stack { bottom: 84px; gap: 10px; }
}

/* Header CTA group: две кнопки в шапке */
.header__cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header__cta--tg {
  background: #229ED9 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header__cta--tg:hover { background: #1c8bbf !important; }
.header__cta--tg svg { flex: 0 0 18px; }
@media (max-width: 1100px) {
  .header__cta--tg span { display: none; }
  .header__cta--tg { padding: 0 12px; }
}

/* Универсальная Telegram-кнопка в формах и контактах */
.btn--tg {
  background: #229ED9;
  color: #fff;
}
.btn--tg:hover { background: #1c8bbf; color: #fff; }

/* Admin: блок «Помощь» по настройке Telegram */
.admin-help {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--text-2);
}
.admin-help summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  padding: 4px 0;
}
.admin-help[open] summary { margin-bottom: 8px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.admin-help ol { margin: 0 0 8px; padding-left: 20px; line-height: 1.6; }
.admin-help li { margin-bottom: 6px; }
.admin-help code {
  background: rgba(0,0,0,.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.admin-help a { color: var(--green-dark); font-weight: 600; }
.admin-help p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); }

.cookie {
  position: fixed;
  bottom: 16px;
  left: 16px; right: 16px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--dark);
  color: #cbd5e1;
  padding: 18px 22px;
  border-radius: 14px;
  z-index: 110;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: cookieIn .45s cubic-bezier(.16,1,.3,1);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie p { flex: 1; font-size: 13.5px; line-height: 1.5; min-width: 200px; margin: 0; }
.cookie button {
  background: var(--green);
  color: #fff;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background .15s;
}
.cookie button:hover { background: var(--green-dark); }
@media (max-width: 767px) { .cookie { bottom: 80px; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 30px);
  background: var(--dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
  z-index: 120;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ==========================================================================
   Admin panel
   ========================================================================== */
/* Гарантируем, что [hidden] всегда работает (атрибут перебивает любые .class { display: ... }) */
[hidden] { display: none !important; }

.footer__admin-link { color: #475569; opacity: .55; font-size: 12px; margin-left: 8px; }
.footer__admin-link:hover { opacity: 1; color: var(--green); }

.admin-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  z-index: 500;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  flex-wrap: wrap;
  gap: 12px;
}
.admin__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.admin__brand .logo__mark {
  width: 32px; height: 32px;
  font-size: 17px;
}
.admin__brand strong { color: var(--green); font-weight: 800; }
.admin__header-actions { display: flex; gap: 8px; align-items: center; }

.admin__btn {
  padding: 9px 16px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.admin__btn:hover { background: var(--green-dark); }
.admin__btn:active { transform: translateY(1px); }
.admin__btn--ghost { background: transparent; color: #cbd5e1; border: 1px solid #334155; }
.admin__btn--ghost:hover { background: #1e293b; color: #fff; }
.admin__btn--danger { background: #dc2626; }
.admin__btn--danger:hover { background: #b91c1c; }
.admin__btn--icon { width: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.admin__btn--sm { padding: 6px 10px; font-size: 12px; border-radius: 6px; }

/* Login */
.admin__login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.admin__login-card {
  background: #fff;
  border-radius: 22px;
  padding: 44px 38px 32px;
  box-shadow: 0 40px 80px -20px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.04);
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: adminCardIn .45s cubic-bezier(.16,1,.3,1);
}
@keyframes adminCardIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.admin__login-card .modal__icon { margin: 0 auto 14px; display: inline-flex; }
.admin__login-title { margin: 0 0 6px; font-size: 22px; }
.admin__login-sub { color: var(--text-3); margin: 0 0 22px; font-size: 14px; }
.admin__login-card form { text-align: left; }
.admin__login-card .form-error { display: none; }
.admin__login-card .form-field--error .form-error { display: block; }

/* Body */
.admin__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .admin__body { grid-template-columns: 240px 1fr; }
}

.admin__tabs {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  overflow-x: auto;
}
.admin__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .admin__tabs { flex-direction: column; padding: 22px 14px; min-height: calc(100vh - 64px); }
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .15s, color .15s, transform .05s;
}
.admin-tab:hover { background: var(--bg-alt); color: var(--text); }
.admin-tab:active { transform: translateX(1px); }
.admin-tab--active {
  background: var(--green-light);
  color: var(--green-dark);
  box-shadow: inset 3px 0 0 var(--green);
}

.admin__content {
  padding: 24px 18px 60px;
  max-width: 1100px;
  width: 100%;
}
@media (min-width: 768px) { .admin__content { padding: 32px 32px 60px; } }

.admin-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-pane__title {
  margin: 0;
  font-size: 22px;
}
.admin-pane__sub {
  color: var(--text-3);
  font-size: 14px;
  margin: 4px 0 0;
}

.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-row__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 44px;
}
.admin-row__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) { .admin-row__main { grid-template-columns: 2fr 3fr 1fr 110px; align-items: center; } }
.admin-row__main input,
.admin-row__main textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg-alt);
  color: var(--text);
  outline: 0;
  transition: border-color .15s, background .15s;
}
.admin-row__main input:focus,
.admin-row__main textarea:focus { border-color: var(--green); background: #fff; }
.admin-row__actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-row__actions button { font-size: 18px; padding: 6px 10px; }

.admin-add {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--green-light);
  border: 1.5px dashed var(--green);
  border-radius: 12px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background .15s, border-style .15s;
}
.admin-add:hover { background: var(--green); color: #fff; border-style: solid; }

/* Pricing tier editor */
.admin-pricing-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.admin-pricing-tab {
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}
.admin-pricing-tab--active { background: var(--green); color: #fff; }
.admin-tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.admin-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (min-width: 768px) { .admin-tier-grid { grid-template-columns: 1.5fr 100px 80px 2fr; } }
.admin-tier-card label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.admin-tier-card input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13.5px; font-family: inherit;
  background: var(--bg-alt); outline: 0;
}
.admin-tier-card input:focus { border-color: var(--green); background: #fff; }
.admin-tier-features { display: grid; gap: 6px; }
.admin-tier-feature { display: flex; gap: 6px; align-items: center; }
.admin-tier-feature input { flex: 1; }

/* Models editor */
.admin-brand-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-brand-tab {
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}
.admin-brand-tab--active { background: var(--green); color: #fff; border-color: var(--green); }
.admin-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.admin-model-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.admin-model-card__photo {
  width: 80px; height: 120px;
  border-radius: 10px;
  background: var(--bg-alt) center/contain no-repeat;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 28px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s;
}
.admin-model-card__photo:hover { border-color: var(--green); }
.admin-model-card__photo img {
  width: 100%; height: 100%; object-fit: contain;
}
.admin-model-card__photo input {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-model-card__name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}
.admin-model-card__remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fee2e2;
  border: 0;
  color: #dc2626;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.admin-model-card--has-image .admin-model-card__remove { display: inline-flex; }

/* Generic field block */
.admin-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.admin-field label { font-weight: 600; font-size: 13px; color: var(--text-2); }
.admin-field input,
.admin-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-alt);
  outline: 0;
  transition: border-color .15s, background .15s;
}
.admin-field input:focus,
.admin-field textarea:focus { border-color: var(--green); background: #fff; }

.admin-save-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, #f1f5f9 28%);
  padding: 22px 0 0;
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-save-bar .admin__btn { padding: 12px 22px; font-size: 14px; }

.admin-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Дополнительные элементы админки v2 ===== */

/* Подсказка-плашка пустого списка */
.admin-empty-hint {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Счётчик у заголовка вкладки */
.admin-count {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* «Чипы» суммарной статистики над списком */
.admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.admin-chip--ghost {
  background: var(--bg-alt);
  color: var(--text-2);
  font-weight: 600;
}

/* Индикатор «есть несохранённые изменения» в save-bar */
.admin-dirty {
  align-self: center;
  color: #b45309;
  font-weight: 700;
  font-size: 13px;
  margin-left: auto;
}

/* Pricing-tab counter */
.admin-pricing-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-pricing-tab__count {
  background: rgba(0, 0, 0, .12);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.admin-pricing-tab--active .admin-pricing-tab__count { background: rgba(255, 255, 255, .25); }

/* Toolbar над списком тарифов: поле названия категории + кнопка удаления */
.admin-cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.admin-cat-row__field {
  flex: 1 1 220px;
  display: grid;
  gap: 4px;
}
.admin-cat-row__field label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.admin-cat-row__field input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-alt);
  outline: 0;
}
.admin-cat-row__field input:focus { border-color: var(--green); background: #fff; }

/* Карточка тарифа: заголовок + действия */
.admin-tier-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.admin-tier-card__head strong { font-size: 14px; color: var(--text); }
.admin-tier-card__actions { display: flex; gap: 6px; }

/* Inline checkbox row */
.admin-field--inline { display: block; margin-bottom: 12px; }
.admin-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  color: var(--text-2) !important;
  cursor: pointer;
  user-select: none;
}
.admin-checkbox input { width: auto !important; margin: 0; }

/* Pricing tier feature list — теперь с кнопкой удаления */
.admin-tier-feature {
  display: flex;
  gap: 6px;
  align-items: center;
}
.admin-tier-feature input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-alt);
  outline: 0;
}
.admin-tier-feature input:focus { border-color: var(--green); background: #fff; }

/* ===== Brand-tab с цветной точкой и счётчиком ===== */
.admin-brand-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-brand-tab__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 10px;
  border: 1px solid rgba(0,0,0,.1);
}
.admin-brand-tab__count {
  background: rgba(0, 0, 0, .08);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.admin-brand-tab--active .admin-brand-tab__count { background: rgba(255, 255, 255, .25); }

/* ===== Редактор бренда ===== */
.admin-brand-edit {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.admin-brand-edit__preview {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  flex: 0 0 64px;
  align-self: flex-start;
}
.admin-brand-edit__fields { flex: 1 1 auto; min-width: 0; }
.admin-brand-edit__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 14px;
  margin-bottom: 12px;
}
@media (min-width: 720px) {
  .admin-brand-edit__row {
    grid-template-columns: 2fr 1.4fr 90px 90px auto;
    align-items: end;
  }
}
.admin-brand-edit__row .admin-field { margin: 0; }
.admin-brand-edit__row .admin-field input[type="color"] {
  padding: 2px;
  height: 38px;
  cursor: pointer;
}
.admin-field--check { display: flex; align-items: end; padding-bottom: 8px; }
.admin-brand-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 12px;
}

/* ===== Карточка модели с inline-редактированием ===== */
.admin-model-card { padding: 12px 10px; }
.admin-model-card__name-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  font-weight: 600;
  background: var(--bg-alt);
  outline: 0;
}
.admin-model-card__name-input:focus,
.admin-model-card__name-input:hover {
  border-color: var(--green);
  background: #fff;
}
.admin-model-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.admin-model-card__row .admin__btn--sm {
  padding: 4px 8px;
  font-size: 11px;
}

/* «Добавить модель» — карточка-плюс в той же сетке */
.admin-model-add {
  background: var(--green-light);
  border: 1.5px dashed var(--green);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  transition: background .15s, color .15s, border-style .15s;
}
.admin-model-add:hover {
  background: var(--green);
  color: #fff;
  border-style: solid;
}
.admin-model-add__plus { font-size: 32px; line-height: 1; }
.admin-model-add__label { font-size: 13px; }

/* Двухколоночная сетка для контактов и настроек */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
}
.admin-form-grid .admin-field { margin-bottom: 0; }

.admin-section-title {
  margin: 28px 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .01em;
}
.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* Settings: select */
.admin-field select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-alt);
  color: var(--text);
  outline: 0;
}
.admin-field select:focus { border-color: var(--green); background: #fff; }

/* Frontend: пустая категория цен на главной */
.pricing-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-3);
  font-size: 14px;
  background: var(--bg-alt);
}
.pricing-empty a { color: var(--green-dark); font-weight: 700; }

/* ===== Admin: вкладка "Баннеры и логотип" ===== */
.admin-logo-edit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
@media (min-width: 720px) {
  .admin-logo-edit { grid-template-columns: 220px 1fr; }
}
.admin-logo-preview {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-logo-preview__demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.admin-logo-preview__mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 21px;
}
.admin-logo-preview__text { font-weight: 700; font-size: 18px; color: #111827; letter-spacing: -.02em; }
.admin-logo-preview__accent { color: var(--green); font-weight: 800; }
#adLogoImgPrev { max-height: 40px; max-width: 180px; object-fit: contain; }
.admin-logo-fields { display: grid; gap: 12px; }
.admin-logo-img-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-logo-img-status {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

/* Преимущества и статистика — по строкам */
.admin-perks { display: grid; gap: 6px; margin-bottom: 8px; }
.admin-perk-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.admin-perk-row input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-alt);
  outline: 0;
}
.admin-perk-row input:focus { border-color: var(--green); background: #fff; }

.admin-stats { display: grid; gap: 10px; margin-bottom: 8px; }
.admin-stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
@media (min-width: 720px) {
  .admin-stat-row { grid-template-columns: 100px 80px 1fr 1fr auto; }
}
.admin-stat-row .admin-field { margin: 0; }
.admin-stat-row .admin-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ===== Admin: вкладка "Дизайн" ===== */
.theme-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.theme-preset {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, transform .15s;
}
.theme-preset:hover { border-color: var(--green); transform: translateY(-2px); }
.theme-preset__swatches { display: flex; gap: 4px; }
.theme-preset__swatches span {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.08);
}
.theme-preset__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.theme-region {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.theme-region__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.theme-region__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.theme-region__type {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
}
.theme-region__type label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: 600;
}
.theme-region__type input[type="radio"] {
  margin: 0;
  width: auto;
}
.theme-region__fields {
  display: grid;
  gap: 10px;
}
.theme-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.theme-row label { font-weight: 600; }
.theme-row input[type="color"] {
  width: 44px; height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}
.theme-row input[type="number"] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-alt);
  outline: 0;
}
.theme-row input[type="number"]:focus { border-color: var(--green); background: #fff; }
.theme-img-status { font-size: 12px; color: var(--text-3); font-weight: 600; }

.theme-preview {
  height: 80px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.theme-text-color {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: -6px 0 14px;
  padding: 8px 14px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 0 0 10px 10px;
  border-top: 0;
  margin-top: -12px;
}
.theme-text-color label {
  font-size: 12px !important;
  color: var(--text-2);
  margin: 0 !important;
  font-weight: 600;
}
.theme-text-color input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.theme-preview::after {
  content: "Предпросмотр";
  position: absolute;
  top: 8px; left: 12px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45);
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}

/* ==========================================================================
   Product modal — фото модели + список услуг
   ========================================================================== */
.product-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .product-head { grid-template-columns: 220px 1fr; gap: 26px; }
}
.product-photo {
  position: relative;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-photo__img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.18));
}
.product-photo__placeholder {
  font-size: 80px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo__brand {
  position: absolute;
  top: 12px; left: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,.16);
}
.product-photo__brand--dark { color: #111827; }
.product-info__brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-info__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-info__cta .btn { padding: 10px 18px; font-size: 14px; }

.product-section-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.product-section-sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-3);
}
.product-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
  margin: 0 -4px;
  padding-left: 4px;
}
@media (min-width: 720px) {
  .product-services { grid-template-columns: 1fr 1fr; max-height: none; }
}
.product-service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-service:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.product-service__icon {
  font-size: 26px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: 10px;
  flex: 0 0 44px;
}
.product-service__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.product-service__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.product-service__text {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}
.product-service__price {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 14px;
  white-space: nowrap;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-foot__guarantee {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.product-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
}

/* ==========================================================================
   Mobile responsiveness — единый блок поправок для маленьких экранов
   ========================================================================== */

/* Универсально: html не должен горизонтально скроллиться никогда */
html, body { overflow-x: hidden; max-width: 100%; }
img, iframe, video { max-width: 100%; height: auto; }

/* Subnav на мобильных: компактнее, без переноса */
@media (max-width: 640px) {
  .subnav { font-size: 11.5px; }
  .subnav__inner { padding: 6px 12px; min-height: auto; gap: 10px; }
  .subnav__menu { display: none; }
  .subnav__right { gap: 8px; flex-wrap: nowrap; }
  .subnav__login { padding: 3px 8px; font-size: 11px; }
  .subnav__login svg { width: 12px; height: 12px; }
  .lang { font-size: 11.5px; }
}

/* Header: на мобильных контакты вообще скрыты, остаётся лого + бургер */
@media (max-width: 1023px) {
  .header__contacts { display: none; }
  .header__cta-group .header__cta--tg { padding: 0 10px; }
}
@media (max-width: 640px) {
  .header__inner { padding: 10px 12px; gap: 8px; }
  .header__cta-group { gap: 4px; }
  .header__cta { font-size: 12px; padding: 8px 12px; }
  .header__cta--tg { padding: 8px 10px !important; }
  .header__cta--tg span { display: none; }
  .logo { font-size: 16px; gap: 8px; }
  .logo__mark { width: 34px; height: 34px; font-size: 18px; }
  .logo__img { height: 34px; }
}

/* Hero: упрощаем на мобильных */
@media (max-width: 767px) {
  .hero { padding: 30px 0 40px; }
  .hero__title { font-size: 28px; line-height: 1.15; }
  .hero__lead { font-size: 14.5px; }
  .hero__features { font-size: 13px; }
  .hero__card { padding: 18px; }
  .hero__card-stat b { font-size: 26px; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 24px; }
}

/* Кнопки в hero: на мобильных — стек вертикально */
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn { width: 100%; }
}

/* Bands grid — увеличиваем размер карточки на самых маленьких */
@media (max-width: 360px) {
  .brands-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand__visual { height: 90px; padding: 12px 8px; }
  .brand__name-wrap { padding: 10px 6px; }
  .brand__name { font-size: 13px; }
  .brand__flagship { font-size: 10px; }
}

/* Section padding на мобильных */
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .section__title { font-size: 24px; }
  .section__lead { font-size: 14px; }
}

/* Категории-табы: scroll если не помещаются */
@media (max-width: 1023px) {
  .cats__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cats__inner::-webkit-scrollbar { display: none; }
  .cats__nav { flex-wrap: nowrap; }
}

/* Pricing tabs — горизонтальная прокрутка вместо переноса */
@media (max-width: 640px) {
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
}

/* Pricing tier cards — крупнее текст на мобильных */
@media (max-width: 480px) {
  .tier { padding: 22px 18px; }
  .tier__price b { font-size: 32px; }
}

/* Stats — на мобильных в 2 столбца, не в 4 */
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat__num { font-size: 32px; }
  .stat__label { font-size: 12px; }
}

/* Modal на мобильных — почти полноэкранно */
@media (max-width: 640px) {
  .modal-backdrop { padding: 8px; align-items: stretch; }
  .modal {
    width: 100%;
    max-height: 96vh;
    margin: 0;
    border-radius: 14px;
    padding: 20px 16px;
  }
  .modal__title { font-size: 20px; }
  .modal__close { top: 8px; right: 8px; }
}

/* Brand modal — узкая модель */
@media (max-width: 480px) {
  .brand-models-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Product modal — мобильный лейаут */
@media (max-width: 640px) {
  .product-photo { height: 200px; }
  .product-photo__placeholder { font-size: 60px; }
  .product-info__cta { flex-direction: column; align-items: stretch; }
  .product-info__cta .btn { width: 100%; }
  .product-services { max-height: 60vh; }
  .product-service { grid-template-columns: auto 1fr; padding: 12px; }
  .product-service__price { grid-column: 1 / -1; text-align: right; padding-left: 56px; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .product-foot .btn { width: 100%; }
}

/* Yandex iframes (отзывы и карта) — адаптивная высота */
@media (max-width: 480px) {
  .yandex-reviews__frame { height: 560px; }
  .map { min-height: 300px; }
}

/* Контакты grid — стек на мобильных */
@media (max-width: 767px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Footer на мобильных */
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 12px; }
}

/* Admin panel на мобильных */
@media (max-width: 768px) {
  .admin { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .admin__header { padding: 10px 12px; flex-wrap: wrap; }
  .admin__brand { font-size: 14px; }
  .admin__btn { padding: 8px 12px; font-size: 12.5px; }
  .admin__tabs { padding: 8px 6px; gap: 4px; }
  .admin-tab { padding: 8px 12px; font-size: 12px; }
  .admin__content { padding: 16px 12px; }
  .admin-pane__head { flex-direction: column; align-items: stretch; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-row__main { grid-template-columns: 1fr !important; }
  .admin-tier-grid { grid-template-columns: 1fr !important; }
  .admin-brand-edit__row { grid-template-columns: 1fr !important; }
  .admin-stat-row { grid-template-columns: 1fr !important; }
  .admin-perk-row { grid-template-columns: 50px 1fr auto; gap: 6px; }
  .admin-perk-row input[data-perk-field="value"] { grid-column: 2 / 4; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* FAB stack — побольше места снизу на мобильных */
@media (max-width: 480px) {
  .fab-stack { right: 14px; }
  .fab, .fab--tg { width: 50px; height: 50px; }
  .fab svg, .fab--tg svg { width: 22px; height: 22px; }
  .back-top { right: 14px; bottom: 70px; width: 42px; height: 42px; }
}

/* Защита от слишком длинных URL/названий моделей */
.brand-model__name, .product-info h3, .modal__title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Brand view & Model view — отдельные «страницы» бренда и модели
   ========================================================================== */
.view { display: block; }
.view[hidden] { display: none !important; }

.brand-banner {
  --brand-color: var(--green);
  background: var(--brand-banner-bg);
  background-size: cover;
  background-position: center;
  padding: 30px 0 50px;
  position: relative;
  overflow: hidden;
}
.brand-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.7) 0%, transparent 60%);
  pointer-events: none;
}
.brand-banner__inner { position: relative; z-index: 1; }
.brand-banner__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.brand-banner__breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
}
.brand-banner__breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }
.brand-banner__breadcrumb span { color: var(--muted); }

.brand-banner__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .brand-banner__main { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}
.brand-banner__title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -.02em;
}
@media (min-width: 768px) { .brand-banner__title { font-size: 48px; } }
.brand-banner__lead {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 540px;
}
.brand-banner__lead b { color: #111827; font-weight: 800; }

.brand-banner__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 22px;
}
@media (min-width: 480px) {
  .brand-banner__form { grid-template-columns: 1fr auto; gap: 0; }
}
.brand-banner__input {
  padding: 16px 22px;
  border: 2px solid #fff;
  border-radius: 999px 0 0 999px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: 0;
  transition: border-color .15s;
}
.brand-banner__input:focus { border-color: var(--green); }
@media (max-width: 479px) {
  .brand-banner__input { border-radius: 999px; }
}
.brand-banner__submit {
  padding: 16px 32px;
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 0 999px 999px 0;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brand-banner__submit:hover { background: #000; }
@media (max-width: 479px) {
  .brand-banner__submit { border-radius: 999px; padding: 14px 24px; }
}

.brand-banner__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 600;
}
.brand-banner__perks li { white-space: nowrap; }

.brand-banner__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.brand-banner__photo,
.model-banner__photo {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.18));
}
.brand-banner__placeholder,
.model-banner__placeholder {
  font-size: 120px;
  opacity: .3;
}
.model-banner__phone {
  display: block;
  width: 200px;
  height: 400px;
  position: relative;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 24px 56px rgba(0,0,0,.30);
}
.model-banner__phone::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: #1f2937;
  border-radius: 24px;
}
.model-banner__phone::after {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 18px;
  background: #000;
  border-radius: 999px;
}
.model-banner__phone .bm-phone__screen,
.model-banner__phone .bm-phone__notch,
.model-banner__phone .bm-phone__camera,
.model-banner__phone .bm-phone__home { display: none; }

/* Поиск по моделям */
.model-search {
  position: relative;
  margin: 32px 0 24px;
  max-width: 600px;
}
.model-search__icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  opacity: .5;
}
.model-search input {
  width: 100%;
  padding: 14px 22px 14px 48px;
  border: 2px solid var(--green);
  border-radius: 999px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  outline: 0;
  transition: box-shadow .15s, border-color .15s;
}
.model-search input:focus { box-shadow: 0 0 0 4px var(--green-tint); }

/* Сетка карточек моделей в brand view (стиль bananafix) */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-bottom: 60px;
}
@media (min-width: 640px) { .model-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.model-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 18px 36px -10px rgba(124,197,22,.35);
  text-decoration: none;
}
.model-card__photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: background .25s;
}
.model-card__photo {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.16));
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.model-card:hover .model-card__photo { transform: scale(1.05) translateY(-3px); }

/* Чёрный силуэт-плейсхолдер, если фото нет */
.model-card__phone {
  width: 70%;
  max-width: 150px;
  aspect-ratio: 9 / 19;
  position: relative;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 20px 40px rgba(0,0,0,.30);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.model-card:hover .model-card__phone { transform: scale(1.05) translateY(-3px); }
.model-card__phone::before {
  /* экран — чуть светлее корпуса */
  content: "";
  position: absolute;
  inset: 7px;
  background: #1f2937;
  border-radius: 20px;
}
.model-card__phone::after {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 10px;
  background: #000;
  border-radius: 999px;
}
.model-card__phone .bm-phone__screen,
.model-card__phone .bm-phone__notch,
.model-card__phone .bm-phone__camera,
.model-card__phone .bm-phone__home { display: none; }

.model-card__name {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  padding: 22px 14px;
  background: #fff;
  color: #111827;
  border-top: 3px solid var(--border-2);
  transition: color .25s ease, border-color .25s ease;
  z-index: 0;
}
/* Зелёная полоса подъезжает снизу — как у bananafix */
.model-card__name::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  z-index: -1;
}
.model-card:hover .model-card__name {
  color: #ffffff;
  border-top: 3px solid #0f172a;
}
.model-card:hover .model-card__name::before {
  transform: translateY(0);
}
.model-card:hover .model-card__photo-wrap {
  background: linear-gradient(180deg, #ffffff 0%, var(--green-light) 100%);
}

.model-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-3);
  font-size: 14.5px;
  margin-bottom: 60px;
}
.model-empty a { color: var(--green-dark); font-weight: 700; }

/* Список услуг в model view */
.view-section-title {
  margin: 36px 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.view-section-sub {
  margin: 0 0 22px;
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.5;
}
.model-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 36px;
}
@media (min-width: 640px) { .model-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .model-services { grid-template-columns: 1fr 1fr 1fr; } }

.model-service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.model-service:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.model-service__icon {
  font-size: 26px;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: 12px;
  flex: 0 0 48px;
}
.model-service__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.model-service__title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.model-service__text { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.model-service__price {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 14px;
  white-space: nowrap;
}

.view-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px;
  background: var(--green-light);
  border-radius: 16px;
  margin-bottom: 80px;
}
.view-cta__guarantee {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green-dark);
}

.view-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.view-empty a { display: inline-flex; margin-top: 12px; }

/* Mobile полировка для view */
@media (max-width: 640px) {
  .brand-banner { padding: 20px 0 30px; }
  .brand-banner__title { font-size: 28px; }
  .brand-banner__lead { font-size: 14px; }
  .brand-banner__perks { gap: 10px; font-size: 12.5px; }
  .brand-banner__hero { min-height: 180px; }
  .brand-banner__photo, .model-banner__photo { max-height: 220px; }
  .model-banner__phone { width: 130px; height: 260px; }
  .model-card__photo-wrap { padding: 18px 16px; }
  .model-card__name { padding: 16px 10px; font-size: 16px; }
  .view-section-title { font-size: 22px; }
  .model-service { grid-template-columns: auto 1fr; padding: 12px 14px; }
  .model-service__price { grid-column: 1 / -1; text-align: right; }
  .view-cta { flex-direction: column; padding: 20px 16px; }
  .view-cta .btn { width: 100%; }
}

