/* =========================================================
   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: 830px; 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: 15px; max-width: 740px; }
.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: 80px 0; }
.audience__inner { display: grid; grid-template-columns: 1fr 684px; gap: 40px; }
.audience__head { position: sticky; top: 40px; align-self: start; }
.audience__head .h2 { max-width: 560px; margin-bottom: 36px; }
.audience__lead { max-width: 520px; font-size: 15px; }
.audience__list { display: grid; gap: 16px; }
.aud-card { display: grid; grid-template-columns: 1fr 305px; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; min-height: 318px; }
.aud-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; }
.aud-card__lead { font-size: 13px; font-weight: 600; line-height: 1.5; padding-bottom: 14px; border-bottom: 1px solid #e7eaf2; margin-bottom: 12px; }
.aud-card__box { background: var(--bg-light); border-radius: 18px; padding: 16px; }
.aud-card__box-title { font-size: 13px; margin-bottom: 10px; }
.aud-card__list { display: grid; gap: 6px; font-size: 11px; color: #3b4a78; }
.aud-card__list li::before { content: "·"; margin-right: 6px; }
.aud-card__link { margin-top: auto; padding-top: 24px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,27,77,.35); }
.aud-card__link:hover { text-decoration-color: currentColor; }
.aud-card__media {
  position: relative; background-size: cover; background-position: center; color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border-radius: var(--radius-lg);
}
.aud-card__media::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(40,60,130,.55), rgba(40,60,130,.35) 50%, rgba(20,35,90,.75)); }
.aud-card__title, .aud-card__caption { position: relative; }
.aud-card__title { font-size: 13px; font-weight: 600; max-width: 190px; }
.aud-card__caption { font-size: 11px; font-weight: 600; line-height: 1.5; max-width: 230px; }

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

.history__track { display: grid; grid-template-columns: repeat(4, 1fr); }
.history__item { position: relative; padding: 0 0 0 36px; border-left: 1px solid var(--line); min-height: 440px; 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: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; }
.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; height: calc(var(--stage-h, 780px) + 150vh); }
.about-rows__sticky { position: sticky; top: var(--stick-top, 60px); padding-bottom: 80px; }
.about-rows__stage { display: grid; gap: 20px; }
.about-rows__row { display: flex; gap: 24px; will-change: transform; }
.about-rows .photo-card { flex: none; width: var(--card-w, 336px); }

/* ---------- Стопка карточек при скролле (Для кого / Ценности / Почему мы) ---------- */
[data-stack] > * { position: sticky; top: var(--stack-top, 40px); }
.aud-card, .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__pin { position: relative; height: calc(var(--sticky-h, 700px) + var(--pin-extra, 240vh)); }
.history__sticky { position: sticky; top: var(--sticky-top, 40px); }
.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; }

/* ---------- Команда: фото закреплено по центру экрана ---------- */
.team__body { position: relative; }
.team__photo-rail { position: absolute; top: 0; bottom: 0; left: 58%; 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; }
}
@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; }
  .team__photo-rail { left: auto; right: 0; width: 240px; }
  .team__photo { --ph: 340px; }
}
@media (max-width: 768px) {
  .about-rows { margin-top: 40px; }
  .about-rows__row { gap: 12px; }
  .about-rows__stage { gap: 12px; }
  .case__content { padding: 0 20px; }
  .team__photo-rail { display: none; }
  .why__item { top: 0; }
  .aud-card { --stack-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-rows, .history__pin { height: auto; }
  .history__sticky { position: static; }
  .about-rows__sticky { position: static; }
  [data-stack] > *, .why__item { position: static; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  :root { --gutter: 32px; }
  .header__nav { left: 230px; }
  .lang { margin-right: 4px; }
  .audience__inner { grid-template-columns: 1fr 600px; }
  .aud-card { grid-template-columns: 1fr 260px; }
  .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__inner { grid-template-columns: 1fr; }
  .audience__head { position: static; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 400px; }
  .history__track { overflow-x: auto; grid-template-columns: repeat(4, minmax(260px, 1fr)); scrollbar-width: none; }
  .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: 14px; }
  .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; }
  .aud-card { grid-template-columns: 1fr; }
  .aud-card__media { min-height: 260px; order: -1; }
  .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: 420px; 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; }
.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; }
body:not(.home):not(.has-hero) .header { background: var(--navy-900, #01143E); padding-bottom: 24px; }

/* ===== Страница «Направления» ===== */
.dir-hero { position: relative; min-height: min(830px, 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); }
.audience--dark .aud-card { background: rgba(37,63,140,.92); color: var(--white); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); }
.audience--dark .aud-card__lead { border-bottom-color: rgba(255,255,255,.2); }
.audience--dark .aud-card__box { background: var(--white); color: var(--text); }
.audience--dark .aud-card__link { text-decoration-color: rgba(255,255,255,.4); }
.audience--dark .audience__lead { opacity: .9; }
.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); }
.team__row.rv { transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.24,1), filter .7s, color .3s; }
