/* ==========================================================================
   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;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--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(--green);
  color: #fff;
  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: #fff;
  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(--dark);
  color: #cbd5e1;
  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: linear-gradient(180deg, #f1f9e0 0%, #ffffff 70%);
  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(--bg-alt); }
.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: center;
  gap: 12px;
  padding: 22px 12px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  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__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: 700; font-size: 14.5px; margin: 0; }
@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: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  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(--dark);
  color: #cbd5e1;
  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;
}

