/* =========================================================
   ProfUborka — главная страница
   ========================================================= */

@font-face { font-family: "SF Display"; src: url("../fonts/sf-display-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "SF Display"; src: url("../fonts/sf-display-500.woff") format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "SF Display"; src: url("../fonts/sf-display-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --navy-900: #071645;
  --navy-800: #0b1f5c;
  --navy-700: #0f2a78;
  --navy-600: #173a99;
  --primary: #0a2a80;
  --text: #0b1b4d;
  --muted: #7482a8;
  --line: #c9cfe0;
  --bg-light: #f4f6fa;
  --white: #fff;
  --orange: #f26b1d;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1360px;
  --gutter: 40px;
  --font: "SF Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 80px 0; }
.section--dark {
  color: var(--white);
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(40, 80, 190, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-900) 100%);
}

.h2 {
  font-size: clamp(32px, 4.3vw, 62px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.section:not(.section--dark) .h2 { color: var(--text); }

.label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 48px; padding: 4px 4px 4px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  min-width: 364px; border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn__icon {
  flex: none; width: 38px; height: 38px; border-radius: 7px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center no-repeat;
}
.btn--white { background: var(--white); color: var(--primary); border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.btn--white:hover { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn--outline { color: var(--white); border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.btn--outline .btn__icon,
.btn--glass .btn__icon,
.btn--primary .btn__icon {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a2a80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--primary { background: var(--primary); color: var(--white); min-width: 280px; }
.btn--primary:hover { background: var(--navy-600); }
.btn--glass { color: var(--white); border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); min-width: 274px; font-weight: 500; font-size: 15px; height: 60px; padding-left: 16px; padding-right: 10px; }
.btn--wide { min-width: 338px; }
.btn--block { width: 100%; min-width: 0; }

.caret { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 4px; vertical-align: middle; transition: transform .2s; }

/* ---------- Header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding-top: 24px; color: var(--white); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; height: 54px; }
/* Плашка меню лежит под контейнером (z-index: -1) — пропускаем клики сквозь контейнер к ссылкам */
.header__inner { pointer-events: none; }
.header__inner > * { pointer-events: auto; }
button, .menu a { cursor: pointer; }
.header__logo img { width: 190px; height: auto; }
.header__nav {
  position: absolute; left: 460px; right: var(--gutter); top: 0;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; height: 54px; display: flex; align-items: center; padding: 0 16px; z-index: -1;
}
.menu { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.menu a, .menu__toggle { padding: 6px 0; display: inline-flex; align-items: center; transition: opacity .2s; }
.menu a:hover, .menu__toggle:hover { opacity: .75; }
.menu__has-sub { position: relative; }
.menu__sub, .lang__list {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 260px;
  background: var(--white); color: var(--text); border-radius: 12px; padding: 8px;
  box-shadow: 0 16px 40px rgba(7,22,69,.2);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.menu__sub a, .lang__list a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.menu__sub a:hover, .lang__list a:hover { background: var(--bg-light); opacity: 1; }
.is-open > .menu__sub, .lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@media (hover: hover) and (min-width: 1101px) {
  .menu__has-sub:hover > .menu__sub { opacity: 1; visibility: visible; transform: none; }
  .menu__has-sub:hover > .menu__toggle .caret { transform: rotate(180deg); }
}
.is-open > .menu__toggle .caret, .lang.is-open .caret { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.lang { position: relative; margin-right: 16px; }
.lang__current { font-size: 14px; font-weight: 600; }
.lang__list { min-width: 80px; left: auto; right: -12px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 8px; font-size: 14px; font-weight: 600; transition: background .2s;
}
.header__tg { width: 40px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; transition: background .2s; }
.header__phone:hover, .header__tg:hover { background: rgba(255,255,255,.15); }
.burger { display: none; width: 40px; height: 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--navy-900); overflow: hidden;
  color: var(--white); padding: 180px 0 40px;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,20,50,.45) 0%, rgba(10,20,50,.15) 45%, rgba(10,20,50,.35) 100%); }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 610px; }
.hero__eyebrow { font-size: 15px; font-weight: 500; opacity: .9; margin-bottom: 24px; }
.hero__title { font-size: clamp(38px, 4.9vw, 70px); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; max-width: 1100px; margin-bottom: 24px; }
.hero__text { font-size: 18px; line-height: 1.5; max-width: 760px; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 40px; }

/* ---------- About ---------- */
.about { padding-top: 84px; }
.about__title { max-width: 960px; margin-bottom: 40px; }
.about__text { max-width: 870px; font-size: 15px; display: grid; gap: 14px; }
.photo-card {
  position: relative; aspect-ratio: 336 / 376; border-radius: 22px; overflow: hidden;
  border: 4px solid rgba(30,60,150,.6); background: var(--navy-700);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card__title {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 86px;
  display: flex; align-items: center; padding: 16px; font-size: 15px; font-weight: 500; line-height: 1.35;
  background: rgba(70,80,110,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px 16px 0 0;
}

/* ---------- Audience ---------- */
.audience { padding: 100px 0; }
.audience__head { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: end; margin-bottom: 48px; }
.audience__aside { display: grid; gap: 20px; justify-items: start; }
.audience__lead { font-size: 15px; line-height: 1.55; color: #3b4a78; }
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s cubic-bezier(.22,.8,.24,1), box-shadow .35s; }
.aud-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(7,22,69,.12); }
.aud-card__media { position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; color: var(--white); background: var(--navy-800); }
.aud-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,.8,.24,1); }
.aud-card:hover .aud-card__media img { transform: scale(1.05); }
.aud-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,22,69,.1) 30%, rgba(7,22,69,.35) 55%, rgba(7,22,69,.88)); }
.aud-card__num { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.aud-card__over { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; display: grid; gap: 10px; }
.aud-card__title { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
.aud-card__caption { font-size: 13px; line-height: 1.45; opacity: .85; }
.aud-card__body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.aud-card__lead { font-size: 15px; line-height: 1.5; color: var(--text); }
.aud-card__box { background: var(--bg-light); border-radius: var(--radius); padding: 18px; }
.aud-card__box-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.aud-card__list { display: grid; gap: 10px; font-size: 14px; color: #3b4a78; }
.aud-card__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.aud-card__list li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
.aud-card__foot { margin-top: auto; display: grid; gap: 14px; justify-items: center; }
.aud-card__link { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,27,77,.35); }
.aud-card__link:hover { text-decoration-color: currentColor; }

/* ---------- Services ---------- */
.services { padding: 84px 0 80px; }
.services__title { max-width: 800px; margin-bottom: 36px; }
.services__lead { max-width: 580px; font-size: 15px; margin-bottom: 76px; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.service-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 453px; padding: 24px; border-radius: var(--radius-lg);
  background: rgba(70,110,200,.28); backdrop-filter: blur(8px);
  transition: background .25s, transform .25s;
}
.service-card:hover { background: rgba(80,120,215,.4); transform: translateY(-3px); }
.service-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.service-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,22,69,.85) 0%, rgba(7,22,69,.35) 25%, rgba(7,22,69,.55) 60%, rgba(7,22,69,.9) 100%); }
.service-card > *:not(.service-card__bg) { position: relative; z-index: 1; }
.service-card__title { font-size: 19px; font-weight: 500; line-height: 1.17; max-width: 270px; }
.service-card__text { margin-top: auto; font-size: 15px; line-height: 1.45; padding-top: 24px; }
.service-card__format { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 11px; font-weight: 600; }
.service-card__format span { display: block; font-weight: 500; opacity: .6; margin-bottom: 8px; }
.services__cta { text-align: center; margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.services__cta p { font-size: 22px; max-width: 560px; line-height: 1.5; }

/* ---------- History ---------- */
.history { padding: 40px 0 0; }
.history__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.history__head .h2 { max-width: 1060px; }
.arrows { display: flex; gap: 8px; flex: none; }
.arrow { width: 38px; height: 38px; border-radius: 8px; background: var(--white); position: relative; transition: background .2s; }
.arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.arrow--prev::before { border-right: 6px solid var(--primary); left: -2px; }
.arrow--next::before { border-left: 6px solid var(--primary); left: 2px; }
.arrow--next, .arrow:hover { background: var(--primary); }
.arrow--next::before, .arrow:hover::before { border-left-color: var(--white); border-right-color: var(--white); }
.arrow--next:hover { background: var(--navy-600); }

/* годы идут в одну ленту по 4 на экране, активный прокручивается в видимую область (main.js) */
.history__track { display: grid; grid-auto-flow: column; grid-auto-columns: 25%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.history__track::-webkit-scrollbar { display: none; }
.history__item { position: relative; padding: 0 0 0 36px; border-left: 1px solid var(--line); min-height: 380px; cursor: pointer; }
.history__item.is-active { border-left-color: var(--text); }
.history__year { font-size: clamp(48px, 5vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: #8792b3; transition: color .2s; }
.history__caption { font-size: 15px; color: #8792b3; margin-top: 12px; max-width: 280px; min-height: 42px; transition: color .2s; }
.history__item.is-active .history__year, .history__item.is-active .history__caption { color: var(--text); }
.history__ticks {
  height: 120px; margin: 24px 0 24px -36px; opacity: .45;
  background: repeating-linear-gradient(90deg, transparent 0 34px, var(--line) 34px 35px, transparent 35px 47px, var(--line) 47px 48px, transparent 48px 60px);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent);
  mask: linear-gradient(180deg, #000 30%, transparent);
}
.history__item.is-active .history__ticks { opacity: 1; background: repeating-linear-gradient(90deg, transparent 0 34px, #8a95b8 34px 35px, transparent 35px 48px); }
.history__details { display: none; }
.history__item.is-active .history__details { display: block; animation: fade .4s; }
.history__details p { font-size: 13px; font-weight: 600; line-height: 1.55; color: #3b4a78; max-width: 270px; margin-bottom: 16px; }
.history__details img { width: 288px; max-width: 100%; height: 170px; object-fit: cover; border-radius: 22px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.values { display: grid; grid-template-columns: 1fr 660px; gap: 40px; padding: 150px 0 80px; }
.values__text .label { margin-bottom: 10px; }
.values__p { font-size: 15px; line-height: 1.47; max-width: 560px; margin-bottom: 30px; }
.values__list { display: grid; gap: 16px; }
.value-card { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 24px; min-height: 213px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.value-card__title { font-size: 15px; font-weight: 600; }
.value-card__text { font-size: 13px; color: #3b4a78; max-width: 340px; line-height: 1.55; }
.value-card__icon { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 140px; height: 140px; fill: #e6e8ee; color: #e6e8ee; }

/* ---------- Partners + cases ---------- */
.dark-wrap { color: var(--white); background:
  radial-gradient(900px 600px at 20% 25%, rgba(60,90,190,.35), transparent 60%),
  radial-gradient(900px 700px at 80% 70%, rgba(50,90,200,.35), transparent 60%),
  linear-gradient(170deg, var(--navy-800), var(--navy-700) 50%, var(--navy-900)); }
.dark-wrap .section--dark { background: none; }
.partners { padding: 84px 0 120px; }
.partners .h2 { margin-bottom: 66px; }
.partners__body { display: grid; grid-template-columns: 560px 1fr; align-items: center; margin-right: calc(var(--gutter) * -1); }
.partners__name { font-size: 22px; font-weight: 500; margin-bottom: 26px; }
.partners__desc { font-size: 13px; font-weight: 600; max-width: 260px; line-height: 1.55; opacity: .9; }
.partners__viewport { overflow: hidden; }
.partners__track { position: relative; display: flex; gap: 24px; transition: transform .5s ease; }
.partner {
  flex: none; width: 250px; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: rgba(200,210,235,.45); display: grid; place-items: center;
  font-size: 48px; font-weight: 500; color: rgba(230,236,255,.85); letter-spacing: -0.02em;
  transition: background .25s; border: 2px solid transparent;
}
.partner img { max-width: 70%; max-height: 50%; object-fit: contain; }
/* нет логотипа — название компании */
.partner__text { max-width: 80%; font-size: 22px; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: 0; color: var(--navy-900); }
.partner:hover, .partner.is-active { background: rgba(210,220,245,.6); }
.partner.is-active { border-color: rgba(255,255,255,.5); }
.partners__progress { position: relative; height: 1px; background: rgba(255,255,255,.3); margin-top: 56px; }
.partners__progress span { position: absolute; left: 0; top: -1px; height: 2px; width: 10%; background: var(--white); transition: left .4s, width .4s; }

.cases { padding: 70px 0 80px; }
.cases__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; padding-left: 12px; }
.link-arrow { font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.cases__list { display: grid; gap: 24px; }
.case.is-open { background: var(--white); color: var(--text); }
.case__head { width: 100%; display: grid; grid-template-columns: 196px 1fr 38px; align-items: start; text-align: left; padding: 24px 24px 24px 36px; }
.case__num { font-size: 36px; font-weight: 300; color: #a9b4d4; line-height: 1; padding-top: 6px; }
.case.is-open .case__num { color: #6e7ba8; }
.case__title { display: block; font-size: 22px; font-weight: 500; line-height: 1.2; max-width: 420px; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 16px; }
.tag { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid currentColor; border-radius: 20px; font-size: 13px; font-weight: 600; }
.case__toggle { width: 38px; height: 38px; border-radius: 8px; background: var(--white); position: relative; }
.case__toggle::before, .case__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform .25s; }
.case__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.case.is-open .case__toggle { background: #e8ebf2; }
.case.is-open .case__toggle::before { transform: translate(-50%, -50%) rotate(45deg); }
.case.is-open .case__toggle::after { transform: translate(-50%, -50%) rotate(135deg); }
.gallery { position: absolute; top: 24px; right: 86px; bottom: 24px; width: 535px; }
.gallery { position: relative; border-radius: 16px; overflow: hidden; background: #222; }
.gallery__main { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery__thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding: 20px 24px; background: linear-gradient(transparent, rgba(0,0,0,.55)); overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs img, .gallery__more { flex: none; width: 58px; height: 58px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: .85; transition: .2s; }
.gallery__thumbs img.is-active { border-color: var(--white); border-radius: 50%; opacity: 1; }
.gallery__thumbs img:hover { opacity: 1; }
.gallery__more { display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--white); font-size: 15px; font-weight: 600; cursor: default; }

/* ---------- Why ---------- */
.why { padding: 84px 0 110px; }
.why__title { max-width: 620px; margin-bottom: 40px; }
.why__list { border-top: 1px solid var(--line); }
.why__item { display: grid; grid-template-columns: 404px 1fr 160px; gap: 0; padding: 22px 0 18px; border-bottom: 1px solid var(--line); min-height: 147px; }
.why__name { font-size: 19px; font-weight: 500; max-width: 240px; line-height: 1.2; }
.why__text { font-size: 15px; max-width: 590px; line-height: 1.47; }
.why__num { font-size: clamp(56px, 7vw, 100px); font-weight: 300; line-height: .9; justify-self: end; letter-spacing: -0.03em; align-self: end; transition: color .2s; }
.why__item:hover .why__num { color: var(--navy-600); }

/* ---------- Lead form ---------- */
.lead { display: grid; grid-template-columns: 1fr 1fr; }
.lead__form-wrap {
  color: var(--white); padding: 66px 40px 40px;
  background: radial-gradient(500px 500px at 30% 60%, rgba(20,60,170,.6), transparent 70%), linear-gradient(180deg, var(--navy-900), #031047);
}
.lead__form-wrap > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.lead__title { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 500; text-align: center; margin-bottom: 30px; }
.lead__text { text-align: center; font-size: 15px; max-width: 380px; margin-bottom: 36px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 10px; }
.field__label { font-size: 13px; padding-left: 4px; }
.field input, .field select {
  width: 100%; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  background: rgba(120,140,200,.25); color: var(--white); font: inherit; font-size: 13px; outline: none; transition: border-color .2s, background .2s;
}
.field input::placeholder { color: rgba(255,255,255,.7); font-size: 11px; }
.field input:focus, .field select:focus { border-color: rgba(255,255,255,.6); background: rgba(120,140,200,.35); }
.field select { appearance: none; -webkit-appearance: none; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='white'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: var(--text); }
.field__phone { position: relative; display: block; }
.field__phone input { padding-left: 76px; font-weight: 600; }
.field__flag { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 12px; border-radius: 2px;
  background: linear-gradient(#1eb5e5 0 33%, #fff 33% 36%, #e21d24 36% 39%, #fff 39% 61%, #e21d24 61% 64%, #fff 64% 67%, #1eb53a 67%); }
.field__flag::after { content: ""; position: absolute; left: 30px; top: -6px; width: 1px; height: 24px; background: rgba(255,255,255,.3); }
.form .btn { margin-top: 96px; }
.btn__icon--dark { background-color: var(--primary); }
.form__success { text-align: center; font-size: 15px; padding: 12px; background: rgba(255,255,255,.12); border-radius: 8px; }

.lead__side { position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 24px; min-height: 600px; }
.career { width: 100%; display: grid; grid-template-columns: 1fr 274px; gap: 24px; padding: 24px; border-radius: var(--radius); background: rgba(190,205,235,.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--white); margin-bottom: 0; }
.career__title { font-size: 22px; line-height: 1.2; max-width: 260px; }
.career__right { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.career__text { font-size: 15px; max-width: 180px; }

/* ---------- Team ---------- */
.team { padding: 80px 0; }
.team__inner { position: relative; }
.team__title { max-width: 640px; margin-bottom: 64px; }
.team__row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); color: #7c87ab; font-size: 15px; cursor: default; transition: color .2s; }
.team__row.is-active { color: var(--text); font-weight: 600; border-bottom-color: #5a6890; }

/* ---------- Reviews ---------- */
.reviews { padding: 80px 0 80px; overflow: hidden; }
.reviews__title { max-width: 680px; margin-bottom: 40px; }
.reviews__body { display: grid; grid-template-columns: 344px 1fr; align-items: end; }
.reviews__arrows { padding-bottom: 0; }
.reviews__viewport { margin-right: calc((100vw - 100%) / -2 - var(--gutter)); overflow: hidden; }
.reviews__track { display: flex; gap: 16px; transition: transform .5s ease; }
.review { flex: none; width: 328px; min-height: 389px; background: var(--white); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review__head { display: flex; gap: 14px; }
.review__avatar { width: 57px; height: 57px; border-radius: 8px; object-fit: cover; object-position: top; }
.review__name { font-size: 15px; margin-top: 10px; margin-bottom: 4px; }
.stars { color: #ffc400; font-size: 11px; letter-spacing: 3px; }
.review__text { font-size: 15px; line-height: 1.33; }

/* ---------- Footer ---------- */
.footer { color: var(--white); padding: 56px 0 72px;
  background: radial-gradient(800px 500px at 50% 100%, rgba(30,70,190,.6), transparent 70%), linear-gradient(170deg, var(--navy-800), var(--navy-700) 60%, var(--navy-900)); }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 128px; }
.footer__logo img { width: 190px; height: auto; }
.footer__up { font-size: 13px; opacity: .8; }
.footer__up:hover { opacity: 1; }
/* «Разработано в Kelyan Media»: при наведении текст и логотип сменяются на «С любовью» и сердце */
.footer__dev { display: flex; align-items: center; gap: 12px; border-radius: 8px; color: rgba(255,255,255,.55); font-size: 17px; letter-spacing: -0.02em; cursor: default; }
.footer__dev:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.footer__dev-text, .footer__dev-icon { display: grid; overflow: hidden; }
.footer__dev-text { height: 1.2em; line-height: 1.2; }
.footer__dev-icon { width: 36px; height: 36px; }
.footer__dev-text > *, .footer__dev-icon > * { grid-area: 1 / 1; transition: transform .2s ease-out; }
.footer__dev-icon img { width: auto; height: 34px; place-self: center; opacity: .6; }
.footer__dev-icon svg { width: 28px; height: 28px; place-self: center; color: #ff9db6; }
.footer__dev-text > :last-child { transform: translateY(100%); }
.footer__dev-icon svg { transform: translateY(150%); }
.footer__dev:is(:hover, :focus, :active) .footer__dev-text > :first-child { transform: translateY(-100%); }
.footer__dev:is(:hover, :focus, :active) .footer__dev-icon img { transform: translateY(-120%); }
.footer__dev:is(:hover, :focus, :active) .footer__dev-text > :last-child,
.footer__dev:is(:hover, :focus, :active) .footer__dev-icon svg { transform: none; }
@media (prefers-reduced-motion: reduce) { .footer__dev-text > *, .footer__dev-icon > * { transition: none; } }

/* Плавающие кнопки справа внизу: Telegram и телефон — после 3 с без прокрутки ниже первого экрана,
   «наверх» — только пока пользователь листает вверх */
.float-actions { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.float-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--white);
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 10px 30px rgba(7,22,69,.25);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .4s, transform .4s, visibility .4s, background .2s, margin .3s; }
.float-btn svg { width: 22px; height: 22px; }
.float-btn.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.float-btn--tg { background: #2aabee; }
.float-btn--tg:hover { background: #1d97d6; }
.float-btn--phone { background: var(--white); color: var(--primary); border-color: rgba(7,22,69,.12); }
.float-btn--phone:hover { color: var(--navy-600); }
.float-btn--phone svg { width: 20px; height: 20px; }
.to-top { background: var(--primary); }
.to-top:hover { background: var(--navy-600); }
/* скрытая стрелка не держит место — контакты опускаются вниз */
.to-top:not(.is-visible) { margin-top: -64px; }
@media (max-width: 700px) {
  .float-actions { right: 16px; bottom: 16px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .to-top:not(.is-visible) { margin-top: -56px; }
}
@media (prefers-reduced-motion: reduce) { .float-btn { transition: opacity .2s, visibility .2s; transform: none; } }
.footer__grid { display: grid; grid-template-columns: 218px 324px 1fr 366px; gap: 0; align-items: start; }
.footer__heading { font-size: 19px; opacity: .7; margin-bottom: 18px; }
.footer__menu { display: grid; gap: 10px; font-size: 13px; font-weight: 600; }
.footer__menu a:hover, .footer__contacts a:hover { opacity: .75; }
.footer__contacts { display: grid; gap: 14px; font-size: 15px; }
.footer__contacts li { display: flex; align-items: center; gap: 8px; }
.footer__contacts svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.footer__buttons { display: grid; gap: 12px; }
.footer__buttons .btn { min-width: 0; width: 100%; font-size: 13px; }


/* =========================================================
   Анимации и интерактив
   ========================================================= */

/* ---------- About: фон + ряды карточек ---------- */
.about {
  position: relative; overflow-x: clip; padding-bottom: 0;
  background: radial-gradient(50% 50% at 50% 50%, #032A80 0%, #01143E 100%);
}
.about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/about-bg.jpg") right center / cover no-repeat;
  mix-blend-mode: soft-light; opacity: .55;
}
.about > * { position: relative; }
/* «Почему именно мы»: две бесконечные ленты едут навстречу друг другу, при наведении останавливается только та, на которую навели */
.about-rows { position: relative; margin-top: 60px; padding-bottom: 80px; }
.about-rows__stage { display: grid; gap: 20px; overflow: hidden; }
.about-rows__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.about-rows__title { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.about--light .about--light .about-rows__title { color: var(--text); }
.about-rows__row { --gap: 24px; display: flex; gap: var(--gap); width: max-content; animation: about-marquee var(--dur, 60s) linear infinite; will-change: transform; }
.about-rows__row--bottom { animation-direction: reverse; }
.about-rows__row:hover { animation-play-state: paused; }
@keyframes about-marquee { to { transform: translate3d(calc(-50% - var(--gap) / 2), 0, 0); } }
.about-rows .photo-card { flex: none; width: clamp(220px, 22vw, 336px); }
@media (prefers-reduced-motion: reduce) { .about-rows__row { animation: none; } .about-rows__stage { overflow-x: auto; } }

/* ---------- Стопка карточек при скролле (Для кого / Ценности / Почему мы) ---------- */
[data-stack] > * { position: sticky; top: var(--stack-top, 40px); }
.value-card { transform-origin: 50% 0; transform: scale(calc(1 - var(--p, 0) * .08)); filter: brightness(calc(1 - var(--p, 0) * .22)); will-change: transform; }
.values__text { position: sticky; top: 40px; align-self: start; }

/* Почему мы — как harkcap: строка прилипает, следующая наезжает, предыдущая гаснет */
.why__item { position: sticky; top: 0; background: var(--bg-light); }
.why__item > * { opacity: calc(1 - var(--p, 0) * .8); transform: translateY(calc(var(--p, 0) * 24px)); }

/* ---------- Услуги: фото появляется при наведении ---------- */
.service-card__bg { opacity: 0; transform: scale(1.08); transition: opacity .5s ease, transform .9s ease; }
.service-card.is-active .service-card__bg { opacity: 1; transform: none; }

/* ---------- История: прогресс активного года ---------- */
.history__item { transition: border-color .3s; }
.history__ticks { position: relative; }
.history__item.is-active .history__ticks { background: repeating-linear-gradient(90deg, transparent 0 34px, var(--line) 34px 35px, transparent 35px 48px); }
.history__item.is-active .history__ticks::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 34px, var(--text) 34px 35px, transparent 35px 48px);
  clip-path: inset(0 calc((1 - var(--fill, 0)) * 100%) 0 0);
}
.history__item.is-active .history__details p { animation: fadeUp .6s ease both; }
.history__item.is-active .history__details img { animation: reveal .8s cubic-bezier(.6,0,.2,1) .1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(0 0 100% 0 round 22px); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round 22px); transform: none; } }

/* ---------- Партнёры: активный по центру, перетаскивание ---------- */
.partners__viewport { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.partners__viewport.is-dragging { cursor: grabbing; }
.partners__viewport.is-dragging .partners__track { transition: none; }
.partner { -webkit-user-drag: none; }
.partner img { pointer-events: none; }
.partners__name, .partners__desc { transition: opacity .2s; }
.partners__info.is-switching .partners__name, .partners__info.is-switching .partners__desc { opacity: 0; }

/* ---------- Кейсы: открытие по наведению ---------- */
.case {
  position: relative; display: flex; flex-direction: column; min-height: 160px;
  border-radius: var(--radius-lg); background: rgba(80,120,210,.25);
  transition: background .45s ease, color .45s ease, min-height .6s cubic-bezier(.4,0,.2,1);
}
.case.is-open { min-height: 512px; }
.case__body { display: grid; grid-template-rows: 0fr; flex: 0 0 auto; transition: grid-template-rows .6s cubic-bezier(.4,0,.2,1); }
.case.is-open .case__body { grid-template-rows: 1fr; flex: 1 1 auto; }
.case__content { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 661px 0 222px; }
.case__text { display: flex; flex-direction: column; padding-bottom: 24px; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
.case.is-open .case__text { opacity: 1; transform: none; transition: opacity .5s .2s, transform .5s .2s; }
.case__text .label { margin-bottom: 8px; }
.case__text p:not(.label) { font-size: 15px; line-height: 1.2; margin-bottom: 22px; max-width: 440px; }
.case__text .btn { margin-top: 26px; align-self: flex-start; }
.case .gallery { position: absolute; top: 24px; right: 86px; bottom: 24px; width: 535px; opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.case.is-open .gallery { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .15s, transform .5s .15s, visibility 0s; }
/* у открытого кейса заголовок и метки не заходят под галерею: отступ = ширина галереи + её отступ справа + 24px − колонка крестика */
.case.is-open .case__main { padding-right: 583px; }

/* ---------- Команда: фото закреплено по центру экрана ---------- */
.team__body { position: relative; }
.team__photo-rail { position: absolute; top: 0; bottom: 0; left: 40%; width: 356px; z-index: 2; pointer-events: none; } /* между ФИО и должностями: длинные должности не уходят под фото */
.team__photo {
  --ph: min(510px, 66vh);
  position: sticky; top: calc(50vh - var(--ph) / 2); height: var(--ph);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800);
  box-shadow: 0 20px 50px rgba(7,22,69,.15);
}
.team__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.team__photo img.is-current { opacity: 1; z-index: 2; }
.team__photo img.is-prev { opacity: 1; z-index: 1; transition: none; }
.team__row { font-size: 17px; transition: color .25s; }
.team__role { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.team__role::before { content: "+"; font-weight: 300; font-size: 18px; opacity: 0; transform: translateX(6px); transition: .25s; }
.team__row.is-active .team__role::before { opacity: 1; transform: none; }

/* ---------- Рекомендации ---------- */
.review__logo { width: 57px; height: 57px; flex: none; border-radius: 8px; background: #e8ebf2; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.review__role { font-size: 13px; color: var(--muted); }
.review__text { margin-top: auto; }
.review__link { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

@media (max-width: 1280px) {
  .case__content { padding-right: 520px; }
  .case .gallery { width: 440px; right: 40px; }
  .case__main { max-width: 520px; }
  .case.is-open .case__main { padding-right: 442px; max-width: none; }
}
@media (max-width: 1100px) {
  .case.is-open { min-height: 0; }
  .case__content { padding: 0 24px 0 114px; }
  .case .gallery { position: relative; inset: auto; width: 100%; max-width: 640px; aspect-ratio: 4 / 3; margin-bottom: 24px; }
  .case__main { max-width: none; }
  .case.is-open .case__main { padding-right: 0; }
  .team__photo-rail { left: 44%; width: 240px; }
  .team__photo { --ph: 340px; }
}
@media (max-width: 768px) {
  .about-rows { margin-top: 40px; }
  .about-rows__head { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .about-rows__row { --gap: 12px; }
  .about-rows__stage { gap: 12px; }
  .case__content { padding: 0 20px; }
  .team__photo-rail { display: none; }
  .why__item { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-stack] > *, .why__item { position: static; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  :root { --gutter: 32px; }
  .header__nav { left: 230px; }
  .lang { margin-right: 4px; }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }
  .aud-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .aud-card:last-child .aud-card__media { aspect-ratio: auto; min-height: 100%; }
  .values { grid-template-columns: 1fr 1fr; }
  .partners__body { grid-template-columns: 360px 1fr; }
  .why__item { grid-template-columns: 320px 1fr 140px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1.3fr; row-gap: 40px; }
  .footer__buttons { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .header__nav {
    position: fixed; inset: 0; transform: none; width: auto; height: auto; z-index: 40; border-radius: 0;
    background: rgba(7,22,69,.97); padding: 110px var(--gutter) 40px; align-items: flex-start;
    opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-open .header__nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; gap: 8px; font-size: 24px; font-weight: 500; }
  .menu__sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; color: var(--white); box-shadow: none; padding: 4px 0 0 12px; }
  .menu__sub a { font-size: 17px; padding: 6px 0; }
  .menu__sub a:hover { background: none; }
  .is-open > .menu__sub { display: block; }
  .header__logo, .header__actions { position: relative; z-index: 41; }
  .header__actions { margin-right: 0; }
  .burger { display: flex; }
  .nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .audience__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 400px; }
  .history__track { grid-auto-columns: minmax(260px, 33.333%); }
  .values { grid-template-columns: 1fr; padding-top: 100px; }
  .partners__body { grid-template-columns: 1fr; gap: 32px; }
  .case__head { grid-template-columns: 90px 1fr 38px; padding-left: 24px; }
  .why__item { grid-template-columns: 1fr 1.4fr 100px; gap: 24px; }
  .lead { grid-template-columns: 1fr; }
  .lead__side { min-height: 520px; }
  .reviews__body { grid-template-columns: 1fr; gap: 24px; }
  .reviews__arrows { order: 2; }
  .reviews__viewport { margin-right: calc(var(--gutter) * -1); }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .btn { min-width: 0; width: 100%; }
  .header { padding-top: 16px; }
  .header__logo img { width: 140px; }
  .header__phone span, .lang { display: none; }
  .header__phone { padding: 0; width: 40px; justify-content: center; }
  .hero { min-height: min(100svh, 760px); padding: 120px 0 24px; }
  .hero__inner { min-height: 0; }
  .hero__eyebrow { font-size: 13px; }
  .hero__text { font-size: 16px; }
  .hero__buttons { flex-direction: column; padding-top: 32px; }
  .photo-card { border-width: 2px; border-radius: 16px; }
  .photo-card__title { font-size: 13px; min-height: 64px; padding: 10px 12px; }
  .audience__grid { grid-template-columns: 1fr; }
  .aud-card:last-child { display: flex; }
  .aud-card:last-child .aud-card__media { aspect-ratio: 4 / 3.4; min-height: 0; }
  .aud-card__body { padding: 20px; }
  .services__lead { margin-bottom: 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-card__text { margin-top: 40px; }
  .services__cta p { font-size: 18px; }
  .history__head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .history__item { min-height: 340px; padding-left: 20px; }
  .history__ticks { margin-left: -20px; height: 100px; }
  .history__item { min-height: 0; padding-bottom: 8px; }
  .value-card__icon { width: 90px; height: 90px; right: 20px; opacity: .8; }
  .value-card__text { max-width: 70%; }
  .partner { width: 180px; font-size: 34px; }
  .partners { padding-bottom: 72px; }
  .cases__head { flex-direction: column; align-items: flex-start; padding-left: 0; }
  .case__head { grid-template-columns: 1fr 38px; padding: 20px; }
  .case__num { grid-column: 1; font-size: 28px; margin-bottom: 12px; }
  .case__main { grid-column: 1; grid-row: 2; }
  .case__toggle { grid-column: 2; grid-row: 1; }
  .case__title { font-size: 19px; margin-bottom: 16px; }
  .tags { gap: 8px; }
  .tag { height: 32px; font-size: 12px; }
  .gallery__thumbs { padding: 12px; gap: 8px; }
  .gallery__thumbs img, .gallery__more { width: 44px; height: 44px; }
  .why__item { grid-template-columns: 1fr 64px; gap: 10px 16px; min-height: 0; }
  .why__name { grid-column: 1; }
  .why__text { grid-column: 1; }
  .why__num { grid-column: 2; grid-row: 1 / 3; font-size: 52px; align-self: start; }
  .lead__form-wrap { padding: 48px 16px 32px; }
  .form .btn { margin-top: 24px; }
  .career { grid-template-columns: 1fr; }
  .career__right { gap: 20px; }
  .career__text { max-width: none; }
  .btn--glass { min-width: 0; }
  .review { width: 280px; min-height: 340px; }
  .footer__top { margin-bottom: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__contacts { grid-column: 1 / -1; }
  .footer__buttons { grid-template-columns: 1fr; }
}

/* ===== WordPress ===== */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { text-align: center; font-size: 15px; padding: 12px; background: rgba(255,80,80,.18); border-radius: 8px; }
.form button[disabled] { opacity: .6; pointer-events: none; }
img.value-card__icon { object-fit: contain; }
.review__logo { overflow: hidden; }
.review__logo img { width: 100%; height: 100%; object-fit: contain; }
.review__initial { font-size: 24px; font-weight: 600; color: var(--navy-900); }
/* логотип заказчика: широкие логотипы получают больше места */
.review__logo:has(img) { width: auto; min-width: 57px; max-width: 110px; padding: 6px 8px; background: var(--white); border: 1px solid #e8ebf2; }
.review__logo:has(img) img { width: auto; height: auto; max-width: 94px; max-height: 43px; }
.page-main { padding: 160px 0 100px; background: var(--bg-light); color: var(--text, #0b1a3a); }
.page-main .h2 { margin-bottom: 32px; }
.page-content { max-width: 820px; font-size: 17px; line-height: 1.6; }
.page-content > * + * { margin-top: 1em; }
.page-content a { text-decoration: underline; }
.page-content ul, .page-content ol { padding-left: 1.4em; list-style: revert; }
.page-content h2 { font-size: 22px; line-height: 1.3; margin-top: 1.8em; scroll-margin-top: 120px; }
body:not(.home):not(.has-hero) .header { background: var(--navy-900, #01143E); padding-bottom: 24px; }

/* ===== Страница «Направления» ===== */
.dir-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; color: var(--white); overflow: hidden;
  background: radial-gradient(50% 50% at 50% 50%, #032A80 0%, #01143E 100%); }
.dir-hero::before { content: ""; position: absolute; inset: 0; background: var(--dir-bg) center 75% / cover no-repeat; mix-blend-mode: luminosity; opacity: .22; }
.dir-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,20,62,.55) 0%, rgba(1,20,62,0) 40%, rgba(1,20,62,.35) 100%); }
.dir-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-top: 140px; padding-bottom: 110px; }
.dir-hero__title { font-size: clamp(40px, 5vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; max-width: 780px; }
.dir-hero__text { max-width: 540px; margin-top: 32px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.dir-hero__down { position: relative; width: 1px; height: 120px; margin-top: 170px; background: rgba(255,255,255,.55); animation: dir-down 2.4s ease-in-out infinite; }
.dir-hero__down::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 7px; height: 7px; border-right: 1px solid rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.75); transform: rotate(45deg); }
@keyframes dir-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

.directions { background: var(--bg-light); }
.directions__title { margin-bottom: 48px; }
.directions__list { display: flex; gap: 16px; height: 600px; }
.dir-card { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); background: var(--navy-800); outline: none;
  transition: flex-grow .7s cubic-bezier(.22,.8,.24,1); }
.dir-card.is-active { flex-grow: 2.05; }
.dir-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,.8,.24,1); }
.dir-card.is-active .dir-card__bg { transform: scale(1.04); }
.dir-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1,20,62,.35) 0%, rgba(1,20,62,.12) 40%, rgba(1,20,62,.7) 100%); transition: background .5s; }
.dir-card__top { display: flex; align-items: center; gap: 10px; }
.dir-card__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.dir-card__icon svg { width: 22px; height: 22px; fill: var(--primary); }
.dir-card__count { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.dir-card__title { margin-top: 56px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; }
.dir-card__bottom { margin-top: auto; }
.dir-card__list { display: grid; gap: 10px; margin-bottom: 24px; font-size: 13px; font-weight: 500; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(12px);
  transition: max-height .5s ease, opacity .3s ease, transform .5s ease; }
.dir-card__list li::before { content: "· "; }
.dir-card.is-active .dir-card__list { max-height: 320px; opacity: 1; transform: none; transition-delay: .2s; }
.dir-card__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; padding: 4px 4px 4px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.85);
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--white); transition: background .35s, color .35s; }
.dir-card__btn .btn__icon { background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a2a80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition: background-color .35s; }
.dir-card.is-active .dir-card__btn,
.dir-card__btn:hover { background: var(--white); color: var(--primary); }
.dir-card.is-active .dir-card__btn .btn__icon,
.dir-card__btn:hover .btn__icon { background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

@media (max-width: 1100px) {
  .directions__list { height: 540px; }
  .dir-card { padding: 20px; }
  .dir-card__title { margin-top: 40px; }
}
@media (max-width: 900px) {
  .dir-hero__down { margin-top: 90px; height: 80px; }
  .directions__list { flex-direction: column; height: auto; }
  .dir-card { min-height: 460px; }
  .dir-card__list { max-height: none; opacity: 1; transform: none; }
  .dir-card__btn { background: var(--white); color: var(--primary); }
  .dir-card__btn .btn__icon { background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
}
@media (prefers-reduced-motion: reduce) {
  .dir-card, .dir-card__bg, .dir-card__list, .dir-hero__down { transition: none; animation: none; }
}

/* ===== О компании ===== */
.stats { background: var(--bg-light); padding: 56px 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; padding: 24px; border-radius: var(--radius-lg); background: var(--white); color: var(--text); }
.stat__value { font-size: clamp(40px, 3.6vw, 56px); line-height: 1; font-weight: 300; letter-spacing: -0.04em; }
.stat__label { font-size: 14px; font-weight: 500; line-height: 1.35; }
.about--light { background: var(--bg-light); color: var(--text); }
.about--light::before { display: none; }
.about--light .h2 { color: var(--text); }
.partners__head { display: grid; gap: 28px; margin-bottom: 72px; }
.partners__head .h2 { margin-bottom: 0; }
.partners__lead { max-width: 760px; font-size: 15px; line-height: 1.5; opacity: .9; }

/* ===== Контакты ===== */
.contact__list dd, .requisites__col dd { margin: 0; }
.contact { background: var(--bg-light); padding: 40px 0 80px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.contact__form { border-radius: var(--radius-lg); padding: 48px 40px 40px; }
.contact__form .form .btn { margin-top: 40px; }
.contact__direct { display: flex; flex-direction: column; padding: 48px 40px 40px; border-radius: var(--radius-lg); background: var(--white); color: var(--text); }
.contact__title { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.contact__list { margin-bottom: 40px; }
.contact__list > div { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.contact__list dd { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.contact__list a:hover { color: var(--navy-600); }
.contact__direct .btn { margin-top: auto; }

.map { position: relative; height: 640px; background: #e5e7eb; }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__inner { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 40px; pointer-events: none; }
.map__card { pointer-events: auto; width: 100%; max-width: 420px; padding: 24px; border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: 0 16px 40px rgba(7,22,69,.18); }
.map__label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.map__address { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 24px; }
.map__card .btn { min-width: 0; width: 100%; }

.requisites { background: var(--bg-light); }
.requisites__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.requisites__file { color: var(--primary); }
.requisites__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.requisites__col { border-top: 1px solid var(--primary); }
.requisites__col > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.requisites__col dt { color: var(--muted); }
.requisites__col dd { font-weight: 600; }

@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 200px; }
  .contact__grid, .requisites__grid { grid-template-columns: 1fr; }
  .requisites__grid { gap: 0; }
  .requisites__grid .requisites__col + .requisites__col { border-top: 0; }
}
@media (max-width: 768px) {
  .stats__grid { gap: 10px; }
  .stat { min-height: 160px; padding: 18px; }
  .contact__form, .contact__direct { padding: 32px 20px 24px; }
  .contact__list dd { font-size: 17px; }
  .map { height: 520px; }
  .map__inner { padding-bottom: 16px; }
  .requisites__head { flex-direction: column; align-items: flex-start; }
  .requisites__col > div { grid-template-columns: 130px 1fr; }
}

/* ===== Появление текстов (main.js → reveal) ===== */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px);
  transition: opacity .9s cubic-bezier(.22,.8,.24,1), transform .9s cubic-bezier(.22,.8,.24,1), filter .9s cubic-bezier(.22,.8,.24,1); }
.rv.is-in { opacity: 1; transform: none; filter: none; }
.rv-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.rv-w > span { display: inline-block; transform: translate3d(0, 105%, 0); opacity: 0;
  transition: transform 1s cubic-bezier(.22,.8,.24,1), opacity .6s ease; }
.rv-words.is-in .rv-w > span { transform: none; opacity: 1; }
/* У этих элементов есть свои transition — сохраняем их вместе с появлением */
.service-card.rv { transition: opacity .9s cubic-bezier(.22,.8,.24,1), transform .9s cubic-bezier(.22,.8,.24,1), filter .9s, background .4s, border-color .4s; }
.dir-card.rv { transition: opacity .9s cubic-bezier(.22,.8,.24,1), transform .9s cubic-bezier(.22,.8,.24,1), filter .9s, flex-grow .7s cubic-bezier(.22,.8,.24,1); }
.aud-card.rv { transition: opacity .9s cubic-bezier(.22,.8,.24,1), transform .9s cubic-bezier(.22,.8,.24,1), filter .9s, box-shadow .35s; }
.aud-card.rv.is-in:hover { transform: translateY(-4px); transition-duration: .35s; }
.team__row.rv { transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.24,1), filter .7s, color .3s; }

/* =========================================================
   Страница направления (/napravleniya/business/ …)
   ========================================================= */
.dp-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy-900); }
.dp-hero__slides { position: absolute; inset: 0; }
.dp-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 4.5s cubic-bezier(.2,.6,.3,1); }
.dp-hero__slide.is-active { opacity: 1; transform: scale(1); }
.dp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(1,20,62,.55) 0%, rgba(1,20,62,0) 28%, rgba(1,20,62,0) 50%, rgba(1,20,62,.62) 100%); }
.dp-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: 56px; }
.dp-hero__text { max-width: 470px; margin: 0 0 32px; font-size: 15px; line-height: 1.45; }
.dp-hero__title { margin: 0; max-width: 900px; font-size: clamp(40px, 4.5vw, 66px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.dp-hero__dots { position: absolute; right: var(--gutter); bottom: 56px; display: flex; flex-direction: column; gap: 10px; }
.dp-hero__dot { position: relative; display: block; width: 14px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; transition: height .5s cubic-bezier(.22,.8,.24,1); }
.dp-hero__dot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dotted rgba(255,255,255,.7); transform: translateX(-50%); }
.dp-hero__dot span { position: absolute; left: 50%; top: 0; width: 2px; height: 0; margin-left: -1px; background: var(--white); }
.dp-hero__dot.is-active { height: 64px; }
.dp-hero__dot.is-active::before { border-left: 2px solid rgba(255,255,255,.3); }
.dp-hero__dot.is-active span { animation: dp-fill var(--dp-interval, 3s) linear forwards; }
@keyframes dp-fill { to { height: 100%; } }

.dp-services { padding: 90px 0 110px; }
.dp-services__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.dp-services__head .h2 { margin: 0; }
.dp-services__arrows { display: flex; gap: 16px; flex: none; }
.dp-arrow { position: relative; width: 40px; height: 40px; border-radius: 6px; border: 1.5px solid var(--text); background: transparent; color: var(--text); cursor: pointer; transition: background .25s, color .25s, opacity .25s, border-color .25s; }
.dp-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h16M12 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h16M12 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.dp-arrow--prev::before { transform: scaleX(-1); }
.dp-arrow:hover:not(:disabled) { background: var(--text); color: var(--white); }
.dp-arrow:disabled { opacity: .35; cursor: default; }
.dp-services__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

.sv-card { --c-bg: #d6d7db; --c-fg: var(--primary); --c-icon: #aeb0b6;
  grid-column: span 4; position: relative; display: block; min-height: 320px;
  border-radius: 18px; background: var(--c-bg); color: var(--c-fg); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: background .45s ease, color .45s ease, transform .45s cubic-bezier(.22,.8,.24,1), box-shadow .45s, opacity .5s ease; }
/* сетка повторяется каждые 5 карточек: широкая + узкая, затем три равных */
.dp-services__grid > .sv-card:nth-child(5n+1) { grid-column: span 7; min-height: 360px; }
.dp-services__grid > .sv-card:nth-child(5n+2) { grid-column: span 5; min-height: 360px; }
.dp-services__grid > .sv-card:nth-child(5n+1), .dp-services__grid > .sv-card:nth-child(5n+4) { --c-bg: var(--primary); --c-fg: var(--white); --c-icon: var(--white); }
.sv-card[hidden] { display: none; }
/* неполный последний ряд растягивается на всю ширину (только сетка услуг направления, на десктопе) */
@media (min-width: 1101px) {
  [data-more-grid] > .sv-card:nth-child(5n+1):last-child, [data-more-grid] > .sv-card:nth-child(5n+3):last-child { grid-column: span 12; }
  [data-more-grid] > .sv-card:nth-child(5n+3):nth-last-child(2), [data-more-grid] > .sv-card:nth-child(5n+4):last-child { grid-column: span 6; }
}
.sv-card.is-revealed { animation: sv-reveal .7s cubic-bezier(.22,.8,.24,1) both; animation-delay: var(--d, 0s); }
@keyframes sv-reveal { from { opacity: 0; transform: translate3d(0, 30px, 0); } }
.dp-services__more { display: flex; justify-content: center; margin-top: 40px; }
.sv-card.is-empty { opacity: 0; transform: scale(.97); pointer-events: none; }

/* Слой одного слайда: фото, иконка, название */
.sv-card__layer { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 24px 90px 30px 22px; pointer-events: none; }
.sv-card__photo { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: 0; transform: scale(1.04);
  transition: opacity .55s ease, transform 1s cubic-bezier(.22,.8,.24,1); }
.sv-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.82) 100%); transition: opacity .5s; }
.sv-card__layer.is-active .sv-card__photo { opacity: 1; transform: scale(1); }
/* Карточка с фото — текст и иконка белые */
.sv-card.has-photo { --c-fg: var(--white); --c-icon: var(--white); --c-bg: #1b1b1f; }
.sv-card__body { display: block; max-width: 420px; }
.sv-card__desc { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; opacity: .82; }
.sv-card__icon { position: absolute; top: 22px; right: 24px; width: 84px; height: 84px; color: var(--c-icon); transition: color .45s; }
.sv-card__icon svg { width: 100%; height: 100%; display: block; }
.sv-card__title { display: block; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.sv-card__icon, .sv-card__body { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(4px);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease, color .45s; }
.sv-card__layer.is-active .sv-card__icon, .sv-card__layer.is-active .sv-card__body { opacity: 1; transform: none; filter: none;
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,.8,.24,1), filter .6s ease, color .45s; transition-delay: calc(.3s + var(--d, 0s)); }
.sv-card__layer.is-active .sv-card__body { transition-delay: calc(.38s + var(--d, 0s)); }
.sv-card__layer.is-leaving .sv-card__icon, .sv-card__layer.is-leaving .sv-card__body { transform: translate3d(0, -22px, 0); }
.dp-services__grid.is-back .sv-card__layer:not(.is-active) .sv-card__icon,
.dp-services__grid.is-back .sv-card__layer:not(.is-active) .sv-card__body { transform: translate3d(0, -22px, 0); }
.dp-services__grid.is-back .sv-card__layer.is-leaving .sv-card__icon,
.dp-services__grid.is-back .sv-card__layer.is-leaving .sv-card__body { transform: translate3d(0, 22px, 0); }

.sv-card__go { position: absolute; right: 22px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .35s, color .35s; }
.sv-card__go::before { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h20M15 1l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h20M15 1l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s cubic-bezier(.22,.8,.24,1); }
@media (hover: hover) {
  .sv-card:hover { --c-bg: var(--primary); --c-fg: var(--white); --c-icon: var(--white); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
  .sv-card.has-photo:hover { --c-bg: #1b1b1f; }
  .sv-card:hover .sv-card__layer.is-active .sv-card__photo { transform: scale(1.09); transition: opacity .55s ease, transform 1.4s cubic-bezier(.22,.8,.24,1); }
  .sv-card:hover .sv-card__go { background: var(--white); color: var(--primary); }
  .sv-card:hover .sv-card__go::before { transform: translateX(3px); }
}
.sv-card.rv { transition: opacity .9s cubic-bezier(.22,.8,.24,1), transform .9s cubic-bezier(.22,.8,.24,1), filter .9s, background .45s, color .45s; }
.sv-card.rv .sv-card__layer.is-active .sv-card__icon, .sv-card.rv .sv-card__layer.is-active .sv-card__body { transition-delay: 0s; }

@media (max-width: 1100px) {
  .sv-card, .dp-services__grid > .sv-card:nth-child(n) { grid-column: span 6; min-height: 260px; }
  .dp-services__grid > .sv-card:nth-child(5n) { grid-column: span 12; }
  .sv-card__icon { width: 68px; height: 68px; }
}
@media (max-width: 700px) {
  .dp-hero__inner { padding-bottom: 40px; padding-right: 48px; }
  .dp-hero__text { font-size: 14px; margin-bottom: 20px; }
  .dp-hero__dots { right: 16px; bottom: 40px; }
  .dp-services { padding: 60px 0 70px; }
  .dp-services__head { margin-bottom: 24px; }
  .dp-arrow { width: 36px; height: 36px; }
  .dp-services__arrows { gap: 10px; }
  .dp-services__grid { gap: 12px; }
  .sv-card, .dp-services__grid > .sv-card:nth-child(n) { grid-column: span 12; min-height: 190px; }
  .sv-card__layer { padding: 20px 84px 24px 20px; }
  .sv-card__go { right: 20px; bottom: 20px; }
  .sv-card__icon { width: 56px; height: 56px; top: 18px; right: 20px; }
  .sv-card__title { font-size: 19px; }
  .sv-card__desc { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-hero__slide { transition: opacity .6s; transform: none; }
  .sv-card__icon, .sv-card__body { transform: none !important; filter: none !important; }
}

/* =========================================================
   Светлая шапка (страница услуги)
   ========================================================= */
.header__logo-dark { display: none; }
@media (min-width: 1101px) {
  .light-header .header { color: var(--text); }
  .light-header .header__logo img { display: none; }
  .light-header .header__logo .header__logo-dark { display: block; }
  .light-header .header__nav { background: rgba(10,42,128,.05); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .light-header .header__phone, .light-header .header__tg { border-color: var(--text); }
  .light-header .header__phone:hover, .light-header .header__tg:hover { background: rgba(10,42,128,.07); }
}
@media (max-width: 1100px) {
  .light-header:not(.nav-open) .header { color: var(--text); }
  .light-header:not(.nav-open) .header__logo img { display: none; }
  .light-header:not(.nav-open) .header__logo .header__logo-dark { display: block; }
  .light-header:not(.nav-open) .header__phone, .light-header:not(.nav-open) .header__tg, .light-header:not(.nav-open) .burger { border-color: var(--text); }
}

/* =========================================================
   Страница услуги
   ========================================================= */
.svc { padding: 200px 0 140px; }
.svc__head { text-align: center; margin-bottom: 64px; }
.svc__eyebrow { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.svc__title { margin: 0 auto; max-width: 900px; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; font-weight: 500; letter-spacing: -0.045em; color: var(--text); }
.svc__body { display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 1fr); gap: 64px; align-items: start; justify-content: space-between; }
.svc__block { padding: 0 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.svc__h { margin: 0 0 14px; font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.svc__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.svc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.svc__list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.svc__facts { display: grid; gap: 14px; margin-bottom: 36px; }
.svc__format { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc__pill { text-align: right; }
.svc__note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.svc__list--plus li::before { content: "+"; width: auto; height: auto; background: none; top: 0; left: 0; color: var(--primary); font-weight: 600; }
.svc__format .svc__h { margin: 0; }
.svc__pill { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1.5px solid var(--text); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); }

.svc__gallery { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
.svc__gallery:has(> .svc__main:only-child) { grid-template-columns: 1fr; }
.svc__thumbs { display: flex; flex-direction: column; gap: 10px; }
.svc__thumb { position: relative; display: block; width: 80px; aspect-ratio: 80 / 100; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); cursor: pointer; opacity: .75; transition: opacity .3s, transform .3s; }
.svc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,.8,.24,1); }
.svc__thumb::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 0 var(--primary); transition: box-shadow .3s; }
.svc__thumb:hover { opacity: 1; }
.svc__thumb:hover img { transform: scale(1.06); }
.svc__thumb.is-active { opacity: 1; }
.svc__thumb.is-active::after { box-shadow: inset 0 0 0 2px var(--primary), inset 0 0 0 4px var(--white); }
.svc__main { margin: 0; }
.svc__frame { position: relative; aspect-ratio: 615 / 700; border-radius: 16px; overflow: hidden; background: var(--line); }
.svc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity .7s ease, transform 1.2s cubic-bezier(.22,.8,.24,1); }
.svc__photo.is-active { opacity: 1; transform: none; }
.svc__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.svc__caption-text { transition: opacity .3s; }
.svc__caption-text.is-fading { opacity: 0; }
.svc__count { flex: none; color: var(--text); font-weight: 600; }
.svc__count b { font-weight: 600; }

@media (max-width: 1100px) {
  .svc { padding: 150px 0 100px; }
  .svc__body { grid-template-columns: 1fr; gap: 48px; }
  .svc__gallery { order: -1; }
}
@media (max-width: 700px) {
  .svc { padding: 120px 0 70px; }
  .svc__head { margin-bottom: 36px; }
  .svc__gallery { grid-template-columns: 1fr; }
  .svc__thumbs { order: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .svc__thumb { flex: none; width: 64px; }
  .svc__format { flex-wrap: wrap; }
  .svc__btn { width: 100%; min-width: 0; }
}

/* =========================================================
   Модальное окно «Заказать услугу»
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,12,36,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.modal__dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 40px 36px 32px; border-radius: 24px; background: var(--white); color: var(--text); box-shadow: 0 30px 80px rgba(4,12,36,.35);
  opacity: 0; transform: translate3d(0, 30px, 0) scale(.97); transition: opacity .4s ease, transform .5s cubic-bezier(.22,.8,.24,1); }
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal-open { overflow: hidden; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); transition: background .2s, transform .3s; }
.modal__close::before, .modal__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: var(--text); transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__close:hover { background: #e6e9f2; transform: rotate(90deg); }
.modal__title { margin: 0 48px 10px 0; font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.modal__text { margin: 0 0 26px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.order-form { display: grid; gap: 16px; }
.order-form[hidden], .order-done[hidden] { display: none; }
.mfield { display: grid; gap: 8px; }
.mfield__label { font-size: 13px; font-weight: 600; padding-left: 2px; }
.mfield input, .mfield textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  font: inherit; font-size: 15px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.mfield textarea { resize: vertical; min-height: 92px; }
.mfield input::placeholder, .mfield textarea::placeholder { color: #9aa4c2; }
.mfield input:focus, .mfield textarea:focus, .mselect__control:focus-visible, .mselect.is-open .mselect__control { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10,42,128,.1); }
.mfield.is-invalid input, .mfield.is-invalid .mselect__control { border-color: #e04848; }

.mselect { position: relative; }
.mselect__control { position: relative; display: flex; align-items: center; width: 100%; min-height: 52px; padding: 8px 44px 8px 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); text-align: left; transition: border-color .2s, box-shadow .2s; }
.mselect__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mselect__chips:empty { display: none; }
.mselect__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--primary); color: var(--white); font-size: 13px; line-height: 1.2;
  animation: chip-in .3s cubic-bezier(.22,.8,.24,1); }
.mselect__chip i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; flex: none; }
.mselect__chip i::before, .mselect__chip i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.4px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.mselect__chip i::after { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes chip-in { from { opacity: 0; transform: scale(.8); } }
.mselect__placeholder { padding-left: 4px; font-size: 15px; color: #9aa4c2; }
.mselect.has-value .mselect__placeholder { display: none; }
.mselect__caret { position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--text); border-bottom: 1.6px solid var(--text); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.mselect.is-open .mselect__caret { transform: rotate(-135deg); margin-top: -2px; }
.mselect__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 2; max-height: 260px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(7,22,69,.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.mselect.is-open .mselect__list { opacity: 1; visibility: visible; transform: none; }
.mselect__option { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background .15s; }
.mselect__option:hover { background: var(--bg-light); }
.mselect__option input { position: absolute; opacity: 0; pointer-events: none; }
.mselect__check { position: relative; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 6px; transition: background .2s, border-color .2s; }
.mselect__check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg) scale(0); transition: transform .2s; }
.mselect__option input:checked + .mselect__check { background: var(--primary); border-color: var(--primary); }
.mselect__option input:checked + .mselect__check::after { transform: rotate(45deg) scale(1); }
.mselect__option input:focus-visible + .mselect__check { box-shadow: 0 0 0 3px rgba(10,42,128,.2); }

.order-form__btn { margin-top: 8px; justify-content: space-between; }
.order-form__btn[disabled] { opacity: .6; pointer-events: none; }
.order-form__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(224,72,72,.1); color: #c23434; font-size: 14px; }
.order-form__policy { margin: 0; font-size: 12px; text-align: center; color: var(--muted); }
.order-done { text-align: center; padding: 12px 0 4px; }
.order-done__icon { display: block; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--primary); position: relative; animation: chip-in .5s cubic-bezier(.22,.8,.24,1); }
.order-done__icon::after { content: ""; position: absolute; left: 27px; top: 18px; width: 14px; height: 28px; border-right: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(45deg); }
.order-done__title { margin: 0 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.order-done__btn { min-width: 200px; }
@media (max-width: 700px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { max-width: none; max-height: 92svh; padding: 32px 20px 24px; border-radius: 22px 22px 0 0; transform: translate3d(0, 100%, 0); }
  .modal__title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal__dialog, .modal__overlay { transition: none; }
}

/* =========================================================
   Страница «О компании» (template-about.php)
   ========================================================= */
.ab-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.ab-eyebrow--center { display: flex; justify-content: center; }

.ab-section { padding: 70px 0; }
.ab-section__title { margin-bottom: 48px; max-width: 960px; }
.ab-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }

/* 1. О компании */
.ab-intro { padding: 170px 0 90px; }
.ab-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.ab-intro__title { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; font-weight: 500; letter-spacing: -0.045em; color: var(--text); margin-bottom: 32px; }
.ab-intro__p { display: grid; gap: 14px; max-width: 560px; font-size: 15px; line-height: 1.55; color: #3b4a78; }
.ab-intro__media { margin: 0; aspect-ratio: 660 / 540; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.ab-intro__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }

/* 2. Миссия */
.ab-mission { padding: 90px 0 110px; text-align: center; }
.ab-mission__text { max-width: 1120px; margin: 0 auto; font-size: clamp(30px, 4vw, 58px); line-height: 1.08; font-weight: 500; letter-spacing: -0.04em; color: var(--text); }

/* 3. Обращение руководителя */
.ab-ceo__grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 80px; align-items: center; }
.ab-ceo__photo { margin: 0; aspect-ratio: 440 / 520; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.ab-ceo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ab-ceo__quote { position: relative; margin: 0; padding-top: 72px; }
.ab-ceo__quote::before { content: "\201D"; position: absolute; right: 0; top: -20px; font-size: 160px; line-height: 1; font-weight: 600; color: var(--primary); }
.ab-ceo__text { display: grid; gap: 16px; font-size: 16px; line-height: 1.65; color: #3b4a78; max-width: 720px; }
.ab-ceo__sign { display: grid; gap: 4px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ab-ceo__sign b { font-size: 18px; font-weight: 600; color: var(--primary); }
.ab-ceo__sign span { font-size: 14px; color: var(--muted); }

/* 4. Команда */
.ab-team__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.ab-team__track::-webkit-scrollbar { display: none; }
.ab-member { scroll-snap-align: start; padding: 12px 12px 24px; border-radius: var(--radius-lg); background: var(--white); text-align: center; }
.ab-member__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: var(--line); }
.ab-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .5s; }
.ab-member:hover .ab-member__photo img { transform: scale(1.05); }
.ab-member__name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); margin-bottom: 6px; }
.ab-member__role { font-size: 13px; color: var(--muted); }

/* 5. Преимущества — фото-карточки, подпись всегда белая на тёмной подложке */
.ab-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-why__card { position: relative; aspect-ratio: 440 / 360; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-700); }
.ab-why__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ab-why__card:hover img { transform: scale(1.05); }
.ab-why__card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(7,22,69,.92), rgba(7,22,69,0)); pointer-events: none; }
.ab-why__title { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--white); }

/* 6. История — год крупно, листается прокруткой */
.ab-history { position: relative; padding: 100px 0; overflow: hidden; }
.ab-history__title { margin-bottom: 40px; }
.ab-history__stage { position: relative; min-height: clamp(160px, 18vw, 260px); }
.ab-history__item { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 520px); justify-content: start; gap: 64px; align-items: center;
  opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity .3s ease, transform .5s ease; pointer-events: none; }
.ab-history__item.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s ease .25s, transform .9s cubic-bezier(.22,.8,.24,1) .25s; }
.ab-history__item.is-past { transform: translate3d(0, -40px, 0); }
.ab-history__year { font-size: clamp(110px, 15vw, 220px); line-height: .9; font-weight: 300; letter-spacing: -0.05em; color: var(--primary); }
.ab-history__caption { font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--text); text-transform: uppercase; letter-spacing: -0.01em; }
.ab-history__text { margin-top: 14px; font-size: 15px; line-height: 1.55; color: #3b4a78; }
.ab-history__dots { display: flex; gap: 8px; margin-top: 48px; }
.ab-history__dots button { position: relative; padding: 14px 0 0; min-width: 72px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; transition: color .3s; }
.ab-history__dots button::before { content: ""; position: absolute; left: 0; right: 8px; top: 0; height: 2px; border-radius: 2px; background: var(--line); transition: background .3s; }
.ab-history__dots button.is-active { color: var(--primary); }
.ab-history__dots button.is-active::before { background: var(--primary); }
.ab-history__dots--many { gap: 4px; }
.ab-history__dots--many button { flex: 1; min-width: 0; font-size: 12px; }


/* 8. Ценности — три карточки: светлая / синяя / тёмная */
.ab-values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ab-value { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 28px; border-radius: var(--radius-lg); background: var(--white); color: var(--text); overflow: hidden; }
.ab-value--brand { background: var(--primary); color: var(--white); }
.ab-value--dark { background: var(--navy-900); color: var(--white); }
.ab-value__num { font-size: 14px; font-weight: 600; opacity: .5; margin-bottom: 20px; }
.ab-value__title { font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; text-transform: uppercase; }
.ab-value__text { margin-top: auto; padding-top: 32px; font-size: 14px; line-height: 1.55; opacity: .85; max-width: 340px; }

/* 9. Партнёры — сетка логотипов */
.ab-partners { padding-bottom: 110px; text-align: center; }
.ab-partners__title { margin: 0 auto 24px; max-width: 900px; }
.ab-partners__lead { max-width: 760px; margin: 0 auto 48px; font-size: 15px; line-height: 1.55; color: #3b4a78; }
.ab-partners__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ab-partners__track { display: flex; gap: 16px; width: max-content; padding: 4px 0 24px; animation: ab-marquee calc(var(--n, 6) * 4s) linear infinite; }
.ab-partners__marquee:hover .ab-partners__track { animation-play-state: paused; }
.ab-partners__track .ab-partner { flex: 0 0 240px; }
@keyframes ab-marquee { to { transform: translate3d(calc(-50% - 8px), 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ab-partners__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .ab-partners__track [aria-hidden] { display: none; } }
.ab-partner { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.ab-partner:hover { border-color: var(--line); box-shadow: 0 12px 30px rgba(7,22,69,.08); }
.ab-partner img { max-width: 80%; max-height: 64%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.ab-partner:hover img { filter: none; opacity: 1; }
.ab-partner span { font-size: 28px; font-weight: 500; color: var(--line); letter-spacing: -0.02em; }
.ab-partner .partner__text { max-width: 100%; font-size: 17px; color: #3b4a78; }

@media (max-width: 1100px) {
  .ab-intro { padding: 130px 0 70px; }
  .ab-intro__grid, .ab-ceo__grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-ceo__photo { max-width: 440px; }
  .ab-team__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .ab-why__grid, .ab-values__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ab-section { padding: 48px 0; }
  .ab-section__title, .ab-section__head { margin-bottom: 28px; }
  .ab-intro { padding: 110px 0 48px; }
  .ab-mission { padding: 56px 0 64px; }
  .ab-ceo__quote { padding-top: 48px; }
  .ab-ceo__quote::before { font-size: 110px; top: -14px; }
  .ab-team__track { grid-auto-columns: 72%; }
  .ab-why__grid, .ab-values__grid { grid-template-columns: 1fr; }
  .ab-why__title { font-size: 16px; left: 18px; right: 18px; bottom: 18px; }
  .ab-value { min-height: 220px; }
  .ab-history__item { grid-template-columns: 1fr; gap: 16px; align-content: center; }
  .ab-history__stage { min-height: 340px; }
  .ab-history__caption { font-size: 18px; }
  .ab-history__dots button { min-width: 0; flex: 1; }
  .ab-history__dots--many button { font-size: 0; padding-top: 10px; } /* на телефоне — только полоски, год виден крупно */
  .ab-partners__track .ab-partner { flex-basis: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-history__item { transition: none; }
}
/* Блок «О компании» главной на светлом фоне: подпись карточки белая, иначе тёмный текст сливается с подложкой */
.about--light .photo-card__title { color: var(--white); background: rgba(7,22,69,.55); }

/* =========================================================
   Кейсы: каталог (template-cases.php)
   ========================================================= */
.cl-list__head { flex-direction: column; align-items: flex-start; gap: 18px; }
.cl-list__lead { max-width: 760px; font-size: 15px; line-height: 1.55; color: #3b4a78; }
.cl-list__grid > .sv-card { min-height: 420px; }
.cl-list__grid > .sv-card:nth-child(4n+1), .cl-list__grid > .sv-card:nth-child(4n+4) { grid-column: span 7; }
.cl-list__grid > .sv-card:nth-child(4n+2), .cl-list__grid > .sv-card:nth-child(4n+3) { grid-column: span 5; }
.cl-card__num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .75; }
.cl-why { padding-top: 0; }
.cl-why__title { margin-bottom: 40px; max-width: 900px; }
.cl-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cl-why__item { display: flex; flex-direction: column; min-height: 240px; padding: 24px; border-radius: var(--radius-lg); background: var(--white); }
.cl-why__item:nth-child(2) { background: var(--primary); color: var(--white); }
.cl-why__item:nth-child(4) { background: var(--navy-900); color: var(--white); }
.cl-why__num { font-size: 14px; font-weight: 600; opacity: .5; }
.cl-why__name { margin-top: auto; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.cl-why__text { margin-top: 12px; font-size: 14px; line-height: 1.5; opacity: .85; }

/* =========================================================
   Кейс (template-case.php)
   ========================================================= */
.cs-hero { padding: 190px 0 0; overflow: hidden; }
.cs-hero__eyebrow { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.cs-hero__title { max-width: 1100px; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -0.045em; color: var(--text); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cs-tags li { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--text); }
.cs-strip { display: flex; gap: 16px; margin-top: 64px; padding: 0 var(--gutter); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.cs-strip::-webkit-scrollbar { display: none; }
.cs-strip.is-dragging { cursor: grabbing; }
.cs-strip__item { flex: none; width: clamp(240px, 24vw, 340px); aspect-ratio: 340 / 382; margin: 0; border-radius: 20px; overflow: hidden; background: var(--line); }
.cs-strip__item img, .cs-strip__item video { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

.cs-body { padding-top: 80px; padding-bottom: 60px; }
.cs-row { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 0 40px; padding: 30px 0 80px; border-top: 1px solid var(--line); }
.cs-row__num { display: block; margin-bottom: 30px; font-size: 14px; color: var(--muted); }
.cs-row__title { font-size: clamp(30px, 3vw, 42px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; color: var(--text); }
.cs-row__body { padding-top: 22px; min-width: 0; }
.cs-lead { max-width: 720px; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; color: var(--text); }

.cs-task.has-image { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.cs-task__main { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.cs-task__img { margin: 0; aspect-ratio: 300 / 426; border-radius: 20px; overflow: hidden; background: var(--line); }
.cs-task__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-facts { margin: 0; border-top: 1px solid var(--line); }
.cs-facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cs-facts dt { color: var(--muted); }
.cs-facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--text); }

.cs-stat__value { font-size: clamp(48px, 5vw, 76px); line-height: 1; font-weight: 300; letter-spacing: -0.05em; color: var(--text); }
.cs-stat__value small { font-size: .42em; letter-spacing: -0.02em; }
.cs-stat__label { margin-top: 14px; font-size: 14px; color: #3b4a78; }
.cs-stats--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cs-stats--grid .cs-stat { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cs-stats--grid .cs-stat:nth-last-child(-n+2) { border-bottom: 0; }
.cs-stats--row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 120px; }
.cs-stats--row .cs-stat { padding-right: 24px; }
.cs-stats--row .cs-stat + .cs-stat { padding-left: 40px; border-left: 1px solid var(--line); }
.cs-zones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cs-stats + .cs-zones { margin-top: 60px; }
.cs-zones__label { margin-right: 12px; font-size: 14px; color: #3b4a78; }
.cs-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--text); border-radius: 999px; font-size: 14px; color: var(--text); }

.cs-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.cs-tab { display: inline-flex; align-items: center; gap: 22px; min-height: 40px; padding: 0 16px; border: 1px solid var(--text); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text); transition: background .25s, color .25s, border-color .25s; }
.cs-tab small { font-size: 12px; opacity: .65; }
.cs-tab:hover { background: rgba(10,42,128,.06); }
.cs-tab.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.cs-panel { display: none; }
.cs-panel.is-active { display: block; animation: cs-in .5s cubic-bezier(.22,.8,.24,1); }
.cs-steps.is-active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@keyframes cs-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.cs-step { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 170px; padding: 20px; border-radius: 16px; background: #eef1f7; }
.cs-step span { font-size: 14px; color: var(--muted); }
.cs-step p { font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--text); }

.cs-compare { --pos: 50%; position: relative; max-width: 640px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--line); user-select: none; }
.cs-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cs-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.cs-compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 8px; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='white'%3E%3Cpath d='M0 5l5-5v10zM16 5l-5-5v10z'/%3E%3C/svg%3E") center no-repeat; }
.cs-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cs-compare__tag { position: absolute; bottom: 20px; padding: 6px 16px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--text); pointer-events: none; }
.cs-compare__tag--before { left: 20px; }
.cs-compare__tag--after { right: 20px; }

.cs-review.has-letter { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
.cs-review__who { display: grid; gap: 4px; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.cs-review__who span { color: var(--muted); }
.cs-review__letter { display: block; padding: 16px; border-radius: 16px; background: var(--white); box-shadow: 0 12px 30px rgba(7,22,69,.08); }

.cs-nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0 40px; border-top: 1px solid var(--line); }
.cs-nav__back { color: var(--text); }
.cs-nav__next { display: grid; gap: 4px; text-align: right; }
.cs-nav__next span { font-size: 13px; color: var(--muted); }
.cs-nav__next b { font-size: 20px; font-weight: 500; color: var(--text); transition: color .2s; }
.cs-nav__next:hover b { color: var(--navy-600); }

@media (max-width: 1100px) {
  .cl-list__grid > .sv-card:nth-child(n) { grid-column: span 6; min-height: 320px; }
  .cl-why__grid { grid-template-columns: 1fr 1fr; }
  .cs-hero { padding-top: 140px; }
  .cs-row { grid-template-columns: 1fr; padding-bottom: 56px; }
  .cs-row__num { margin-bottom: 12px; }
  .cs-stats--row { margin-top: 48px; }
}
@media (max-width: 700px) {
  .cl-list__grid > .sv-card:nth-child(n) { grid-column: span 12; }
  .cl-why__grid { grid-template-columns: 1fr; }
  .cl-why__item { min-height: 180px; }
  .cs-hero { padding-top: 110px; }
  .cs-tags { margin-top: 24px; gap: 8px; }
  .cs-strip { margin-top: 36px; gap: 10px; }
  .cs-strip__item { width: 62vw; }
  .cs-body { padding-top: 48px; }
  .cs-lead { font-size: 17px; }
  .cs-task.has-image, .cs-review.has-letter { grid-template-columns: 1fr; }
  .cs-task__img { aspect-ratio: 4 / 3; }
  .cs-steps.is-active { grid-template-columns: 1fr; }
  .cs-step { min-height: 0; gap: 16px; }
  .cs-stats--grid { grid-template-columns: 1fr; }
  .cs-stats--grid .cs-stat:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cs-stats--row { grid-template-columns: 1fr; }
  .cs-stats--row .cs-stat + .cs-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
  .cs-nav { flex-direction: column; align-items: flex-start; }
  .cs-nav__next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-panel.is-active { animation: none; }
}
/* Первый экран направлений и каталога кейсов: реальные фото светлые (небо, фасады) — низ затемнён сильнее, чтобы текст читался */
.dp-hero::after { background: linear-gradient(180deg, rgba(7,22,69,.55) 0%, rgba(7,22,69,.05) 30%, rgba(7,22,69,.45) 60%, rgba(7,22,69,.92) 100%); }
