/* =========================================================================
   Dr.Nurdin Zh — стоматология.
   Светлая спокойная тема: тёмно-синий как на форме врача, мягкие голубые
   заливки, белые скруглённые карточки, много воздуха. Задача оформления —
   не давить и не кричать, а вызывать доверие.
   ========================================================================= */

/* ---------- переменные -------------------------------------------------- */
:root {
  --navy:      #16255A;
  --navy-2:    #24356F;
  --ink:       #1B2545;
  --muted:     #6A7391;
  --faint:     #97A0BC;

  --blue:      #3457E0;
  --blue-2:    #5B7BF0;
  --lav:       #DDE3FB;
  --lav-2:     #EDF1FE;
  --sky:       #F3F6FE;

  --white:     #FFFFFF;
  --bg:        #F7F9FF;
  --line:      rgba(22, 37, 90, .10);
  --line-2:    rgba(22, 37, 90, .06);

  --ok:        #1B8A5A;
  --err:       #C0392B;
  --wa:        #25D366;

  --sans: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;

  --wrap: 1200px;
  --pad: clamp(18px, 4.5vw, 56px);
  --hdr: 76px;

  --r:    28px;
  --r-sm: 18px;

  --sh:    0 2px 18px rgba(22, 37, 90, .05);
  --sh-2:  0 14px 40px rgba(22, 37, 90, .10);

  --ease: cubic-bezier(.22, .68, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 14px);
  -webkit-text-size-adjust: 100%;
  /* clip, а не hidden: не создаёт лишний контейнер прокрутки и надёжно
     отсекает декоративные подложки, торчащие за край */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-lock { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Атрибут hidden должен побеждать любой display из классов ниже.
   Без этого .lb и .mmenu остаются невидимым слоем на весь экран
   и перехватывают все клики по странице. */
[hidden] { display: none !important; }

::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 1200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px;
}
.skip-link:focus { left: 14px; }

/* Скрытая ловушка для ботов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Ссылка без адреса — прячем, чтобы не вести в никуда */
.is-off { display: none !important; }

/* ---------- общее ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
  background: var(--lav-2);
  border: 1px solid var(--lav);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 20px;
}

h1, .h2, .h2 em { font-weight: 600; letter-spacing: -.022em; }

.h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.1;
  color: var(--navy);
}
.h2 em, h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: -.005em;
}

.sec { margin-bottom: clamp(34px, 5vw, 56px); max-width: 760px; }
.sec__lead { margin-top: 18px; color: var(--muted); font-size: clamp(15.5px, 1.3vw, 17.5px); }

/* ---------- кнопки ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .005em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--pri {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(52, 87, 224, .24);
}
.btn--pri:hover { box-shadow: 0 12px 28px rgba(52, 87, 224, .34); transform: translateY(-2px); }
.btn--pri:disabled { opacity: .6; cursor: default; transform: none; }

.btn--ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); box-shadow: var(--sh); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--wa:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, .4); transform: translateY(-2px); }
.btn--wa svg { width: 21px; height: 21px; }

.btn--wide { width: 100%; }

/* ---------- 1. ШАПКА ---------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 800;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.hdr.is-stuck {
  background: rgba(247, 249, 255, .86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  min-height: var(--hdr);
  display: flex; align-items: center; gap: 26px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* Зуб из логотипа. Мельче 36px рисунок «отпечатка» сливается в пятно,
   поэтому знак крупнее обычного. */
.brand__mark {
  width: auto; height: 40px; flex-shrink: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.06); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.brand__sub {
  font-size: 8.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--faint); margin-top: 4px;
}

.nav { display: flex; gap: clamp(4px, 1vw, 10px); margin-inline: auto; }
.nav a {
  position: relative; font-size: 14.5px; color: var(--muted);
  padding: 9px 13px; border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--navy); background: var(--lav-2); }
.nav a.is-cur { color: var(--navy); font-weight: 600; background: var(--lav); }

.hdr__side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang {
  display: flex; gap: 2px; padding: 3px;
  background: var(--lav-2); border: 1px solid var(--lav); border-radius: 999px;
}
.lang__b {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--faint); padding: 6px 11px; border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.lang__b:hover { color: var(--navy); }
.lang__b.is-on { background: var(--white); color: var(--navy); box-shadow: var(--sh); }

.hdr__cta { min-height: 44px; padding: 0 22px; font-size: 14px; }

.burger { display: none; width: 40px; height: 40px; position: relative; border-radius: 12px; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger.is-on span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.is-on span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--bg);
  padding: calc(var(--hdr) + 26px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mmenu.is-on { opacity: 1; transform: none; }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__nav a {
  font-size: clamp(24px, 6.5vw, 32px); font-weight: 600; color: var(--navy);
  padding: 15px 0; border-bottom: 1px solid var(--line-2);
  opacity: 0; transform: translateY(12px);
}
.mmenu.is-on .mmenu__nav a { animation: mmIn .45s var(--ease) forwards; }
.mmenu.is-on .mmenu__nav a:nth-child(1) { animation-delay: .06s; }
.mmenu.is-on .mmenu__nav a:nth-child(2) { animation-delay: .11s; }
.mmenu.is-on .mmenu__nav a:nth-child(3) { animation-delay: .16s; }
.mmenu.is-on .mmenu__nav a:nth-child(4) { animation-delay: .21s; }
.mmenu.is-on .mmenu__nav a:nth-child(5) { animation-delay: .26s; }
.mmenu.is-on .mmenu__nav a:nth-child(6) { animation-delay: .31s; }
@keyframes mmIn { to { opacity: 1; transform: none; } }

/* ---------- 2. О СЕБЕ / ПЕРВЫЙ ЭКРАН ------------------------------------ */
.hero { padding-top: calc(var(--hdr) + clamp(24px, 5vw, 56px)); position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 76vh; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(91, 123, 240, .18), transparent 70%),
    radial-gradient(50% 60% at 12% 6%, rgba(221, 227, 251, .8), transparent 72%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .82fr);
  gap: clamp(26px, 4.5vw, 64px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 92px);
}

.hero__h1 {
  font-size: clamp(34px, 5.3vw, 62px);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero__lead { max-width: 50ch; color: var(--muted); font-size: clamp(15.5px, 1.35vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px);
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.hero__stats span { font-size: 13px; color: var(--muted); }

.hero__media { position: relative; margin: 0; }
.hero__blob {
  position: absolute; inset: 6% -6% 12% -2%; z-index: 0;
  background: linear-gradient(160deg, var(--blue-2), var(--navy));
  border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%;
  opacity: .14;
  filter: blur(6px);
}
.hero__media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 12%;
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--lav-2), var(--lav));
  box-shadow: var(--sh-2);
}
.hero__tag {
  position: absolute; z-index: 2; left: -10px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--navy);
  font-size: 13px; font-weight: 600;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: var(--sh-2);
}
.hero__tag-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .18);
}

/* биография */
.about {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(26px, 4vw, 56px);
  box-shadow: var(--sh);
  margin-bottom: clamp(60px, 9vw, 120px);
}
.about__head { margin-bottom: clamp(26px, 3.5vw, 40px); }
.about__body {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 4vw, 56px);
}
.about__txt p { margin-bottom: 18px; color: var(--muted); }
.about__txt p:first-child { color: var(--ink); font-size: clamp(16.5px, 1.4vw, 19px); }

/* Логотип с прозрачным фоном, подложка и смешивание не нужны */
.about__logo { width: min(190px, 60%); margin: 0 auto 22px; opacity: .92; }
.about__path {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}

.tl { position: relative; padding-left: 22px; }
.tl::before {
  content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--lav), var(--blue-2), var(--lav));
  border-radius: 2px;
}
.tl__i { position: relative; padding-bottom: 22px; display: flex; flex-direction: column; gap: 3px; }
.tl__i:last-child { padding-bottom: 0; }
.tl__i::before {
  content: ''; position: absolute; left: -22px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--blue);
}
.tl__y { font-size: 12.5px; font-weight: 600; color: var(--blue); letter-spacing: .02em; }
.tl__t { font-size: 16px; font-weight: 600; color: var(--navy); }
.tl__d { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- 3. УСЛУГИ --------------------------------------------------- */
.services { padding: clamp(56px, 8vw, 110px) 0; background: var(--white); }

.srv { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.srv__c {
  background: var(--sky);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.srv__c:hover { transform: translateY(-4px); box-shadow: var(--sh-2); background: var(--white); }
.srv__i {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(140deg, var(--navy), var(--blue));
  color: #fff; margin-bottom: 18px;
}
.srv__i svg { width: 27px; height: 27px; }
.srv__t { font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 9px; line-height: 1.3; }
.srv__d { font-size: 15px; color: var(--muted); }

/* ---------- 4. ГАЛЕРЕЯ --------------------------------------------------- */
.gallery { padding: clamp(56px, 8vw, 110px) 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--white); color: var(--muted); border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--navy); border-color: var(--blue-2); }
.chip.is-on {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(52, 87, 224, .24);
}

.ba {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; max-height: 62vh;
  border-radius: var(--r);
  background: var(--lav-2);
  box-shadow: var(--sh-2);
  cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.ba__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.ba__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba.is-swap .ba__img { opacity: 0; transition: opacity .12s linear; }

.ba__lbl {
  position: absolute; top: 16px; z-index: 3;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 8px 15px; border-radius: 999px;
  backdrop-filter: blur(8px); pointer-events: none;
}
.ba__lbl--b { left: 16px; background: rgba(22, 37, 90, .72); color: #fff; }
.ba__lbl--a { right: 16px; background: rgba(255, 255, 255, .88); color: var(--navy); }

.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4;
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 12px rgba(22, 37, 90, .35);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(22, 37, 90, .28);
  transition: transform .3s var(--ease);
}
.ba__grip svg { width: 25px; height: 25px; }
.ba:hover .ba__grip { transform: translate(-50%, -50%) scale(1.08); }
.ba.is-drag .ba__grip { transform: translate(-50%, -50%) scale(.94); }

.ba__meta {
  margin-top: 22px;
  display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 44px); align-items: start;
}
.ba__title { font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--navy); line-height: 1.25; }
.ba__desc { color: var(--muted); font-size: 15.5px; max-width: 62ch; }

.grid__h {
  font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--navy);
  margin: clamp(44px, 6vw, 74px) 0 20px;
}

.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.works__i {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--r-sm); background: var(--lav-2);
  box-shadow: var(--sh);
}
.works__i img, .works__i video {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s var(--ease);
}
.works__i:hover img, .works__i:hover video { transform: scale(1.05); }
.works__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 4px 16px rgba(22, 37, 90, .25);
}
.works__play svg { width: 22px; height: 22px; margin-left: 2px; }
.works__i figcaption {
  position: absolute; inset: auto 0 0; padding: 26px 14px 12px;
  font-size: 12.5px; color: #fff;
  background: linear-gradient(transparent, rgba(22, 37, 90, .82));
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.works__i:hover figcaption, .works__i:focus-visible figcaption { opacity: 1; transform: none; }

/* ---------- 5. ОТЗЫВЫ ---------------------------------------------------- */
.reviews { padding: clamp(56px, 8vw, 110px) 0; background: var(--white); }

.rev__grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}

.rform {
  background: var(--sky); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: clamp(22px, 3vw, 34px);
  position: sticky; top: calc(var(--hdr) + 16px);
}
.rform__h { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 20px; }

.f { display: block; margin-bottom: 18px; }
.f__l { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.f input, .f textarea {
  width: 100%; font-size: 15.5px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.f textarea { resize: vertical; min-height: 108px; }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f input:focus, .f textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52, 87, 224, .12);
}
.f__e { display: none; margin-top: 7px; font-size: 12.5px; color: var(--err); }
.f.has-e input, .f.has-e textarea { border-color: var(--err); }
.f.has-e .f__e { display: block; }

.stars { display: inline-flex; gap: 4px; }
.stars__b { line-height: 0; padding: 2px; border-radius: 6px; transition: transform .2s var(--ease); }
.stars__b:hover { transform: scale(1.15); }
.st { width: 26px; height: 26px; fill: #F2B33D; }
.stars--sm .st { width: 15px; height: 15px; }
.st--off { fill: #D8DEEC; }

.rform__msg { margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: 12px; }
.rform__msg.is-ok  { background: rgba(27, 138, 90, .10); color: var(--ok); }
.rform__msg.is-err { background: rgba(192, 57, 43, .10); color: var(--err); }

.rlist { display: grid; gap: 14px; }
.rlist__empty {
  color: var(--muted); font-size: 15.5px;
  background: var(--sky); border: 1px dashed var(--line);
  border-radius: var(--r-sm); padding: 30px; text-align: center;
}
.rev {
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 22px 24px; box-shadow: var(--sh);
}
.rev__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rev__n { font-size: 16px; font-weight: 600; color: var(--navy); }
.rev__t { color: var(--ink); font-size: 15.5px; white-space: pre-line; }
.rev__d { display: block; margin-top: 10px; font-size: 12.5px; color: var(--faint); }

/* ---------- 6. КОНСУЛЬТАЦИЯ ---------------------------------------------- */
.consult {
  padding: clamp(56px, 8vw, 110px) 0;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(91, 123, 240, .14), transparent 70%),
    var(--bg);
}
.consult__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4.5vw, 64px); align-items: center;
}
.consult__media { margin: 0; }
.consult__media img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%;
  border-radius: var(--r); box-shadow: var(--sh-2);
}
.consult__lead { color: var(--muted); font-size: clamp(15.5px, 1.35vw, 17.5px); margin-top: 18px; }

.ticks { margin: 26px 0 30px; display: grid; gap: 12px; }
.ticks li {
  position: relative; padding-left: 34px;
  font-size: 16px; color: var(--ink); font-weight: 500;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--lav) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233457E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.consult__note { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

/* ---------- 7. КОНТАКТЫ -------------------------------------------------- */
.contacts { padding: clamp(56px, 8vw, 110px) 0; background: var(--white); }

.cnt { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.cnt__card {
  background: var(--sky); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 6px;
}
.cnt__l {
  font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 4px;
}
.cnt__l + .cnt__l, .cnt__big + .cnt__l, .cnt__sm + .cnt__l { margin-top: 16px; }
.cnt__big { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; color: var(--navy); transition: color .25s var(--ease); }
a.cnt__big:hover { color: var(--blue); }
.cnt__sm { font-size: 15px; color: var(--muted); }
.cnt__link {
  align-self: flex-start; margin-top: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--blue);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

.soc { display: grid; gap: 10px; margin-top: 4px; }
.soc__b {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px;
  font-size: 15px; font-weight: 500; color: var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.soc__b svg { width: 22px; height: 22px; flex-shrink: 0; }
.soc__b:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: transparent; }
.soc__b--wa svg { color: var(--wa); }
.soc__b--ig svg { color: #C1398A; }
.soc__b--tg svg { color: #2E9FD4; }

/* ---------- подвал ------------------------------------------------------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 30px 0; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot__name { font-size: 17px; font-weight: 700; color: #fff; }
.foot__c { font-size: 13px; }

/* ---------- лайтбокс ----------------------------------------------------- */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13, 20, 44, .93);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(8px, 2vw, 24px); padding: clamp(16px, 4vw, 48px);
  opacity: 0; transition: opacity .22s var(--ease);
}
.lb.is-on { opacity: 1; }
.lb__f { text-align: center; min-width: 0; margin: 0; }
.lb__f img, .lb__f video {
  max-width: 100%; max-height: 76vh; margin-inline: auto;
  object-fit: contain; border-radius: var(--r-sm);
}
.lb__f figcaption { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .68); }
.lb__x {
  position: absolute; top: clamp(12px, 3vw, 26px); right: clamp(12px, 3vw, 26px);
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); transition: background .25s var(--ease);
}
.lb__x:hover { background: rgba(255, 255, 255, .24); }
.lb__x svg { width: 21px; height: 21px; }
.lb__n {
  width: 50px; height: 50px; border-radius: 50%;
  color: #fff; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); transition: background .25s var(--ease);
}
.lb__n:hover { background: rgba(255, 255, 255, .24); }
.lb__n svg { width: 21px; height: 21px; }

/* ---------- анимации ----------------------------------------------------- */
.anim {
  opacity: 0; transform: translateY(16px);
  animation: up .8s var(--ease) forwards; animation-delay: var(--d, 0ms);
}
@keyframes up { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ------------------------------------------------------ */
@media (max-width: 1120px) {
  .nav a { padding: 8px 10px; font-size: 13.5px; }
  .hdr__in { gap: 14px; }
}

@media (max-width: 940px) {
  :root { --hdr: 66px; }

  .nav, .hdr__cta { display: none; }
  .burger { display: block; }
  .hdr__side { margin-left: auto; }

  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; max-width: 440px; }
  /* на узком экране подложке некуда выходить за колонку */
  .hero__blob { inset: 4% 0 8% 0; }
  .hero__media img { aspect-ratio: 4 / 3.6; object-position: 50% 16%; }
  .hero__tag { left: auto; right: 10px; bottom: -14px; }

  .about__body { grid-template-columns: 1fr; }
  .about__logo { display: none; }

  .srv { grid-template-columns: repeat(2, 1fr); }
  .ba__meta { grid-template-columns: 1fr; gap: 8px; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .works__i figcaption { opacity: 1; transform: none; }

  .rev__grid { grid-template-columns: 1fr; }
  .rform { position: static; }

  .consult__grid { grid-template-columns: 1fr; }
  .consult__media { max-width: 440px; }
  .consult__media img { aspect-ratio: 4 / 3.4; }

  .cnt { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { gap: 18px 26px; }

  .srv { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }

  .ba { aspect-ratio: 4 / 3; }
  .ba__grip { width: 44px; height: 44px; }
  .ba__lbl { top: 10px; font-size: 11px; padding: 6px 12px; }
  .ba__lbl--b { left: 10px; }
  .ba__lbl--a { right: 10px; }

  .lb { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lb__f { grid-column: 1 / -1; grid-row: 1; }
  .lb__n--p { grid-row: 2; grid-column: 1; justify-self: start; }
  .lb__n--x { grid-row: 2; grid-column: 2; justify-self: end; }

  .foot__in { flex-direction: column; align-items: flex-start; gap: 8px; }
}

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