/* =========================================================
   СмартАптека ЮГ — styles.css
   Палитра взята из логотипа: #2DB355 / #04954A / #1A6C49
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  /* бренд */
  --green-900: #0e3b26;
  --green-800: #14512f;
  --green-700: #1a6c49;
  --green-600: #04954a;
  --green-500: #2db355;
  --green-400: #61c67f;
  --mint-100: #eaf7ef;
  --mint-50:  #f4faf6;

  /* нейтральные */
  --ink:      #0c1a12;
  --ink-soft: #17281e;
  --body:     #4c5d54;
  --muted:    #7b8c83;
  --line:     #e2ece6;
  --white:    #ffffff;
  --bg-soft:  #f5faf7;

  /* типографика */
  --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* радиусы и тени */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sh-xs: 0 1px 2px rgba(12, 26, 18, .06);
  --sh-sm: 0 4px 14px rgba(12, 26, 18, .06);
  --sh-md: 0 14px 40px rgba(12, 26, 18, .09);
  --sh-lg: 0 30px 70px rgba(12, 26, 18, .14);

  --container: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 800;
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Кнопки ---------- */
.btn {
  --btn-bg: var(--green-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -.01em;
  color: #fff;
  background: var(--btn-bg);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  box-shadow: 0 8px 22px rgba(4, 149, 74, .28);
}
.btn--primary:hover {
  box-shadow: 0 14px 32px rgba(4, 149, 74, .34);
}

.btn--ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--green-400);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover .ico { transform: none; }

.btn--light {
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.btn--lg { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ---------- 4. Верхняя полоса ---------- */
.topstrip {
  background: var(--green-900);
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
}
.topstrip__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topstrip__geo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.topstrip__geo .ico { width: 15px; height: 15px; color: var(--green-400); }
.topstrip .sep { opacity: .4; }
.topstrip__phone {
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  transition: color .2s var(--ease);
}
.topstrip__phone:hover { color: var(--green-400); }

/* ---------- 5. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(12, 26, 18, .06);
}
.header__in {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}
.brand__logo {
  width: 152px;
  height: auto;
  transition: transform .25s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.03); }
.brand__sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  color: #fff;
  background: var(--green-700);
  padding: 3px 7px;
  border-radius: 6px;
  margin-left: 6px;
  margin-bottom: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
  transform: translateX(-50%);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--green-700); background: var(--mint-50); }
.nav__link.is-active { color: var(--green-700); }
.nav__link.is-active::after { width: 18px; }

.nav__mobile-cta { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.header__phone .ico { width: 17px; height: 17px; color: var(--green-600); }
.header__phone:hover { color: var(--green-700); }
.header__cta { padding: 12px 20px; font-size: 15px; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.burger:hover { border-color: var(--green-400); color: var(--green-700); }
.burger .ico { width: 22px; height: 22px; }
.burger .ico--close { display: none; }
.burger[aria-expanded="true"] .ico--menu { display: none; }
.burger[aria-expanded="true"] .ico--close { display: block; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mint-50) 0%, #fff 78%);
}
.hero__glow {
  position: absolute;
  top: -320px;
  right: -220px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(45, 179, 85, .22), rgba(45, 179, 85, 0) 62%);
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 59, 38, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 38, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero__text, .hero__visual { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .01em;
  color: var(--green-800);
  margin-bottom: 22px;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(45, 179, 85, .18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 179, 85, .18); }
  50%      { box-shadow: 0 0 0 8px rgba(45, 179, 85, .05); }
}

.hero__title {
  font-size: clamp(34px, 4.3vw, 57px);
  font-weight: 800;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.hero__title .mark {
  background: linear-gradient(180deg, transparent 62%, rgba(45, 179, 85, .28) 62%);
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.68;
  max-width: 56ch;
  color: var(--body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero__facts .ico { width: 18px; height: 18px; color: var(--green-600); }

/* --- декоративное окно приложения --- */
.hero__visual {
  position: relative;
  padding: 18px 0;
}
.app {
  position: relative;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .7s var(--ease);
}
.hero__visual:hover .app {
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-6px);
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.app__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8e6de;
}
.app__dot:first-child { background: #f0b8b8; }
.app__dot:nth-child(2) { background: #f2dca6; }
.app__dot:nth-child(3) { background: #b6e2c6; }
.app__title {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: .01em;
}

.app__body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 300px;
}
.app__side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 10px;
  background: var(--mint-50);
  border-right: 1px solid var(--line);
}
.app__side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--body);
}
.app__side-item .ico { width: 16px; height: 16px; color: var(--green-600); }
.app__side-item.is-active {
  background: #fff;
  color: var(--green-800);
  box-shadow: var(--sh-xs);
}

.app__main { padding: 18px; }
.app__kpis { display: grid; gap: 11px; }
.kpi__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.kpi__bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--mint-100);
  overflow: hidden;
}
.kpi__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  transition: width 1.4s var(--ease) .3s;
}
.is-visible .kpi__bar i { width: var(--w); }

.app__chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 116px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.bar {
  flex: 1;
  height: 0;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--mint-100), #d9efe2);
  transition: height 1.1s var(--ease);
}
.is-visible .bar { height: var(--h); }
.bar--accent { background: linear-gradient(180deg, var(--green-400), var(--green-600)); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--body);
  font-family: var(--font-display);
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { color: var(--ink); font-weight: 800; font-size: 13.5px; }
.float-card .ico { width: 24px; height: 24px; color: var(--green-600); }
.float-card--1 { top: -6px; left: -26px; }
.float-card--2 { bottom: -12px; right: -14px; animation-delay: -3s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- 7. Секции ---------- */
.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section__head {
  max-width: 720px;
  margin-bottom: 54px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--light { color: var(--green-400); }

.section__title {
  font-size: clamp(28px, 3.1vw, 42px);
}
.section__title--light { color: #fff; }
.section__lead {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--body);
  max-width: 62ch;
}

/* ---------- 8. Преимущества ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.feature:hover {
  transform: translateY(-5px);
  border-color: #cfe8da;
  box-shadow: var(--sh-md);
}
.feature:hover::before { transform: scaleX(1); }

.feature__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--mint-100), #dff2e7);
  color: var(--green-700);
  margin-bottom: 18px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.feature__ico .ico { width: 24px; height: 24px; }
.feature:hover .feature__ico {
  background: linear-gradient(140deg, var(--green-500), var(--green-600));
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}

.feature__title {
  font-size: 17.5px;
  font-weight: 800;
  margin-bottom: 10px;
}
.feature__text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--body);
}

/* ---------- 9. Модули ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.module {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.module:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.module__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--mint-100);
  letter-spacing: -.03em;
  transition: color .3s var(--ease);
}
.module:hover .module__num { color: #d6ecdf; }
.module__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green-900);
  color: var(--green-400);
  margin-bottom: 18px;
}
.module__ico .ico { width: 23px; height: 23px; }
.module__title { font-size: 19px; margin-bottom: 10px; }
.module__text { font-size: 15px; line-height: 1.62; }

/* ---------- 10. Полоса CTA ---------- */
.band {
  padding: 0;
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(45, 179, 85, .28), transparent 58%),
    linear-gradient(120deg, var(--green-900), var(--green-700) 62%, var(--green-800));
  color: #fff;
}
.band__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-block: 56px;
}
.band__title {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  max-width: 22ch;
}
.band__lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 16.5px;
  max-width: 56ch;
}

/* ---------- 11. Регионы ---------- */
.regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.region {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--mint-50));
  text-align: left;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.region::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 179, 85, .14), transparent 68%);
  transition: transform .4s var(--ease);
}
.region:hover {
  transform: translateY(-5px);
  border-color: #cfe8da;
  box-shadow: var(--sh-md);
}
.region:hover::after { transform: scale(1.35); }
.region__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-600);
  margin-bottom: 16px;
}
.region__title { font-size: 18px; margin-bottom: 6px; }
.region__text { font-size: 14.5px; color: var(--muted); }

/* ---------- 12. Контакты ---------- */
.section--dark {
  position: relative;
  background:
    radial-gradient(90% 120% at 88% 6%, rgba(45, 179, 85, .18), transparent 60%),
    linear-gradient(160deg, var(--green-900), #0a2c1c);
  color: rgba(255, 255, 255, .82);
}
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 60px;
  align-items: start;
}
.contacts__info, .contacts__form { min-width: 0; }
.contacts__lead {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(255, 255, 255, .72);
  max-width: 46ch;
}
.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
.contact-card {
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.contact-card__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 12px;
}
.contact-card__line {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  padding: 5px 0;
  transition: color .2s var(--ease);
}
.contact-card__line + .contact-card__line { margin-top: 2px; }
.contact-card__line .ico { width: 19px; height: 19px; color: var(--green-400); }
.contact-card__line:hover { color: var(--green-400); }

/* ---------- 13. Форма ---------- */
.form {
  padding: 32px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-lg);
  color: var(--body);
}
.form__title { font-size: 23px; margin-bottom: 8px; }
.form__note { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.field { margin-bottom: 15px; }
.field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.req { color: var(--green-600); }

.field__input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--mint-50);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: #9dada6; }
.field__input:hover { border-color: #cde5d8; }
.field__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(45, 179, 85, .13);
}
.field__input--area { resize: vertical; min-height: 84px; }

.field.has-error .field__input {
  border-color: #e07272;
  background: #fff6f6;
}
.field__error {
  display: block;
  font-size: 13px;
  color: #d0453f;
  margin-top: 5px;
  min-height: 0;
}
.field__error:empty { display: none; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--green-600);
  cursor: pointer;
}

.spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .ico { display: none; }

.form__status {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  display: none;
}
.form__status.is-ok,
.form__status.is-err { display: block; }
.form__status.is-ok { color: var(--green-700); }
.form__status.is-err { color: #d0453f; }

.form.is-sent { }

/* ---------- 14. Подвал ---------- */
.footer {
  background: #081f14;
  color: rgba(255, 255, 255, .62);
  font-size: 14.5px;
  padding-top: 64px;
}
.footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}
.footer__logo { width: 168px; margin-bottom: 18px; }
.footer__about { max-width: 46ch; line-height: 1.6; }

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer__nav a { transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--green-400); }

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer__contacts a { transition: color .2s var(--ease); }
.footer__contacts a:first-child { color: #fff; font-size: 17px; font-weight: 800; }
.footer__contacts a:hover { color: var(--green-400); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .48);
}
.footer__bottom a { color: var(--green-400); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* каскад внутри сеток */
.features .reveal:nth-child(2),
.modules .reveal:nth-child(2),
.regions .reveal:nth-child(2) { transition-delay: .07s; }
.features .reveal:nth-child(3),
.modules .reveal:nth-child(3),
.regions .reveal:nth-child(3) { transition-delay: .14s; }
.features .reveal:nth-child(4),
.modules .reveal:nth-child(4),
.regions .reveal:nth-child(4) { transition-delay: .21s; }
.features .reveal:nth-child(5),
.modules .reveal:nth-child(5) { transition-delay: .28s; }
.features .reveal:nth-child(6),
.modules .reveal:nth-child(6) { transition-delay: .35s; }
.features .reveal:nth-child(7) { transition-delay: .42s; }
.features .reveal:nth-child(8) { transition-delay: .49s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .app { transform: none; }
}

/* ---------- 16. Адаптив ---------- */
@media (max-width: 1120px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__phone span { display: none; }
  .header__phone .ico { width: 20px; height: 20px; }
}

@media (max-width: 1000px) {
  .hero { padding: 56px 0 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 52px; }
  .hero__title { max-width: 100%; overflow-wrap: break-word; }
  .hero__visual { max-width: 560px; }
  .app { transform: none; }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }

  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .band__in { flex-direction: column; align-items: flex-start; }

  /* мобильное меню */
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .header__in { gap: 12px; }
  /* кнопка должна оставаться поверх выехавшей панели меню */
  .burger { position: relative; z-index: 140; }

  /* backdrop-filter у шапки создаёт containing block для fixed-элементов,
     поэтому на мобильных он отключён — иначе меню позиционируется от шапки */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
    z-index: 130; /* выше затемнения и панели меню — кнопка-крестик остаётся доступной */
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 92px 22px 30px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(12, 26, 18, .18);
    transform: translateX(104%);
    transition: transform .38s var(--ease);
    z-index: 120;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__link {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 17px;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--mint-50); }
  .nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .nav__phone-m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
  }
  .nav__phone-m .ico { width: 17px; height: 17px; color: var(--green-600); }

  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 31, 20, .45);
    backdrop-filter: blur(2px);
    z-index: 110;
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topstrip__geo { display: none; }
  .topstrip__in { justify-content: center; }
  .section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .section__head { margin-bottom: 38px; }
  .hero__facts { gap: 10px 16px; }
  .features, .modules, .regions { grid-template-columns: 1fr; gap: 16px; }
  .form { padding: 24px 20px; border-radius: var(--r-lg); }
  .footer__in { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__lead { font-size: 16.5px; }
  .float-card { display: none; }
  .app__body { grid-template-columns: 112px minmax(0, 1fr); min-height: 250px; }
  .app__side-item { font-size: 12px; padding: 8px; }
  .app__main { padding: 14px; }
  .band__in { padding-block: 44px; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .header__actions { gap: 8px; }
  .brand__logo { width: 132px; }
}

@media (max-width: 400px) {
  .brand__sub { display: none; }
}
