/* ============================================================
   DENTAMAX — Шымкент
   Дизайн-система в духе премиальных медицинских сайтов:
   крем-фон, глубокий зелёный, бирюзовый акцент, воздух.
   ============================================================ */

/* ---------- Шрифты (Onest, variable, self-hosted) ---------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Токены ---------- */
:root {
  --bg: #e8e7e5;
  --bg-soft: #f0efec;
  --ink: #003934;
  --ink-muted: rgba(0, 57, 52, .62);
  --ink-faint: rgba(0, 57, 52, .42);
  --accent: #1a9e8f;
  --accent-hover: #12897c;
  --accent-end: #4db6ac;
  --accent-deep: #005a52;
  --line: rgba(0, 57, 52, .16);
  --line-soft: rgba(0, 57, 52, .09);
  --paper: #ffffff;
  --footer-bg: #003934;
  --footer-bg-end: #002a26;
  --footer-ink: #e8e7e5;
  --star: #e8a33d;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.25, 1, .5, 1);
  --radius: 14px;
  --radius-lg: 24px;
  --container: 1240px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: rgba(26, 158, 143, .25); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ============================================================
   Загрузчик — точечный радар (как у sky-клиник)
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-wrap { display: flex; flex-direction: column; align-items: center; }

.loader-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 104px;
  height: 104px;
}
.loader-dot { display: flex; align-items: center; justify-content: center; }
.loader-dot i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .1;
  transform: scale(.55);
  animation: radar 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
.loader-dot[data-r="0"] i { animation-delay: 0s; }
.loader-dot[data-r="1"] i { animation-delay: .3s; }
.loader-dot[data-r="2"] i { animation-delay: .6s; }

@keyframes radar {
  0%   { opacity: .1; transform: scale(.55); }
  30%  { opacity: 1;  transform: scale(1.2); }
  55%  { opacity: .55; transform: scale(1); }
  100% { opacity: .1; transform: scale(.55); }
}

.loader-text {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  white-space: nowrap;
}
.loader-text span {
  display: inline-block;
  opacity: 0;
  animation: char-in .5s var(--ease) forwards;
}
@keyframes char-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Шапка
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.scrolled {
  background: rgba(232, 231, 229, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: none;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 57, 52, .08);
}
.logo em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-muted);
  position: relative;
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 18px; }

.header-phone {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .3s;
}
.header-phone:hover { color: var(--accent); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(160deg, var(--footer-bg), var(--footer-bg-end));
  color: var(--footer-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(24px, 8vw, 60px) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
/* Поверх меню шапка должна быть светлой */
body.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .logo { color: var(--footer-ink); }
body.menu-open .burger { border-color: rgba(232, 231, 229, .3); }
body.menu-open .burger span { background: var(--footer-ink); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 231, 229, .12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu.open a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .2s; }
.mobile-menu small {
  margin-top: 28px;
  font-size: 13px;
  opacity: .6;
  letter-spacing: .05em;
}

/* ============================================================
   Кнопки и ссылки-стрелки
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s, transform .35s var(--ease), box-shadow .35s;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(26, 158, 143, .55);
}
.btn--breathe { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}
.btn--light {
  background: var(--bg);
  color: var(--ink);
}
.btn--light:hover { background: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow .arr {
  position: relative;
  width: 44px;
  height: 1px;
  background: var(--ink);
  transition: width .4s var(--ease);
  flex: none;
}
.link-arrow .arr::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}
.link-arrow:hover .arr { width: 62px; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .arr { background: var(--accent); }
.link-arrow:hover .arr::after { border-color: var(--accent); }

/* ============================================================
   Общие секции
   ============================================================ */
.section { padding: clamp(72px, 10vw, 140px) 0; }

.section-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.section-statement {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.section-statement b { font-weight: 500; }

/* Появление при скролле */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(120px, 16vh, 170px);
  text-align: center;
}

.hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 250;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .word > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  animation: word-up 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
@keyframes word-up { to { transform: translateY(0); } }
.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 350;
}

.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink-muted);
  transition: color .3s;
}
.hero-sub:hover { color: var(--ink); }
.hero-sub .arr { margin-right: 4px; }

.hero-media {
  position: relative;
  margin: clamp(48px, 7vw, 84px) auto 0;
  max-width: 980px;
  padding: 0 20px;
}
.hero-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 57, 52, .45);
}
.hero-media-frame img {
  width: 100%;
  height: clamp(300px, 52vw, 560px);
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
  transition: transform .2s linear;
}
.hero-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 57, 52, 0) 62%, rgba(0, 57, 52, .38));
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: -90px;
  pointer-events: none;
  z-index: 1;
}

.hero-rating {
  position: absolute;
  left: 40px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(232, 231, 229, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35);
}
.hero-rating .stars { display: flex; gap: 2px; color: var(--star); }
.hero-rating small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-cta { margin-top: 44px; }

/* ============================================================
   Услуги — чередующиеся блоки (как у sky-клиник)
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 6vw, 90px) 0;
}
.feature--flip .feature-media { order: 2; }
.feature--flip .feature-body  { order: 1; }

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.feature-media img {
  width: 100%;
  height: clamp(320px, 40vw, 520px);
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.feature:hover .feature-media img { transform: scale(1.11); }

.feature-body { max-width: 460px; }
.feature--flip .feature-body { justify-self: end; }

.feature-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  display: block;
}
.feature-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.feature-text {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

/* ============================================================
   Полный список услуг
   ============================================================ */
.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 100px);
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -.005em;
  transition: padding-left .35s var(--ease), color .3s;
}
.service-row .s-arr {
  font-size: 18px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s, transform .35s var(--ease);
  color: var(--accent);
}
.service-row:hover { padding-left: 14px; color: var(--accent); }
.service-row:hover .s-arr { opacity: 1; transform: translateX(0); }

/* ============================================================
   Преимущества
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(32px, 4vw, 56px) clamp(18px, 2.4vw, 36px) 6px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.stat b sup { font-size: .5em; font-weight: 400; color: var(--accent); }
.stat span {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: .02em;
  display: block;
  max-width: 24ch;
}

/* ============================================================
   Отзывы
   ============================================================ */
.reviews { text-align: center; }
.reviews-score {
  font-size: clamp(80px, 12vw, 150px);
  font-weight: 250;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 10px 0 6px;
}
.reviews-stars {
  display: inline-flex;
  gap: 6px;
  color: var(--star);
  margin: 12px 0 18px;
}
.reviews-meta {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 44ch;
  margin: 0 auto 36px;
}
.reviews-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Контакты — тёмная карточка
   ============================================================ */
.contact-card {
  background: linear-gradient(155deg, var(--footer-bg) 0%, var(--footer-bg-end) 100%);
  color: var(--footer-ink);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5.5vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 90px);
}
.contact-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}
.contact-title em { font-style: normal; color: var(--accent-end); }
.contact-lead {
  font-size: 15px;
  color: rgba(232, 231, 229, .65);
  max-width: 40ch;
  margin-bottom: 36px;
}

/* Форма */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(232, 231, 229, .5);
  margin-bottom: 8px;
}
.field input,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(232, 231, 229, .18);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--footer-ink);
  font-size: 15px;
  transition: border-color .3s, background .3s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8e7e5' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder { color: rgba(232, 231, 229, .35); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-end);
  background: rgba(255, 255, 255, .09);
}
.form-note {
  font-size: 11.5px;
  color: rgba(232, 231, 229, .42);
  line-height: 1.5;
}
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

/* Контактные данные */
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(232, 231, 229, .12);
}
.contact-list li:first-child { padding-top: 4px; }
.contact-list .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(232, 231, 229, .45);
}
.contact-list .v {
  font-size: 16px;
  font-weight: 450;
  letter-spacing: .01em;
}
.contact-list a.v { transition: color .3s; }
.contact-list a.v:hover { color: var(--accent-end); }
.contact-list .v small { color: rgba(232, 231, 229, .55); font-weight: 400; }

/* Карта */
.map-wrap {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  position: relative;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 440px);
  border: 0;
  filter: saturate(.82) contrast(.98);
}
.map-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: var(--bg);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(0, 57, 52, .5);
  transition: background .3s, color .3s;
}
.map-link:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   Подвал
   ============================================================ */
.footer {
  margin-top: clamp(72px, 10vw, 130px);
  background: linear-gradient(180deg, var(--footer-bg), var(--footer-bg-end));
  color: var(--footer-ink);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(40px, 5vw, 64px) 0;
  flex-wrap: wrap;
}
.footer .logo { color: var(--footer-ink); }
.footer-nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(232, 231, 229, .65);
  transition: color .3s;
}
.footer-nav a:hover { color: #fff; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 231, 229, .22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(232, 231, 229, .12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(232, 231, 229, .45);
  letter-spacing: .03em;
}
.footer-bottom a { color: rgba(232, 231, 229, .45); transition: color .3s; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .burger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-cta .btn { display: none; }
  .feature,
  .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .feature--flip .feature-body { order: 1; justify-self: start; }
  .feature-media img { height: clamp(240px, 56vw, 360px); }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-row:nth-last-child(2) { border-bottom: none; }
  .hero-rating { left: 28px; bottom: 24px; padding: 10px 16px 10px 12px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .word > i { transform: none; animation: none; }
  .hero-media-frame img { transform: none !important; }
}
