/* ============================================================
   SDStudio — главная страница
   Вёрстка по макету Figma «SDStudio (Copy)» / фрейм «Главная»
   ============================================================ */

/* ---------- Токены дизайна (из макета) ---------- */
:root {
  /* Цвета */
  --blue: #4A78F0;
  --blue-deep: #3D71F5;
  --dark: #050912;
  --black: #050608;
  --white: #FFFFFF;
  --blue-50: #EFF4FF;
  --border-blue: #E0E5FF;
  --gray-bg: #F5F6FB;
  --gray-card: #F5F6FB;
  --dark-60: rgba(5, 9, 18, 0.6);
  --black-60: rgba(5, 6, 8, 0.6);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-80: rgba(255, 255, 255, 0.8);
  --yellow: #FEB132;
  --border-10: rgba(5, 9, 18, 0.1);
  --ink-gray: #2B2B2B;
  --input-gray: #1E1E1E;

  /* Градиенты */
  --grad-band: linear-gradient(90deg, #FEFFFF 0%, #EFF4FF 100%);
  --grad-hero: linear-gradient(-37deg, rgba(139, 171, 255, 1) 0%, rgba(245, 246, 252, 1) 69%);
  --grad-scene: linear-gradient(202deg, rgba(192, 207, 255, 0.9) 52%, rgba(245, 246, 252, 1) 100%);

  /* Радиусы */
  --r-lg: 20px;
  --r-md: 15px;
  --r-sm: 6px;
  --r-xs: 5px;

  /* Тени */
  --shadow-card: 0px 4px 12px 0px rgba(18, 22, 26, 0.08);
  --shadow-ctrl: 0px 14px 44px rgba(14, 20, 34, 0.08);

  /* Шрифты */
  --f-mont: 'Montserrat', -apple-system, sans-serif;
  --f-inter: 'Inter', -apple-system, sans-serif;

  /* Анимации */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s;
  --t-med: 0.5s;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-inter);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  min-width: 320px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }

/* ---------- Контейнер ---------- */
.container { width: 1280px; margin: 0 auto; }
@media (max-width: 1339px) { .container { width: auto; margin: 0 24px; } }

/* ---------- Типографика ---------- */
.eyebrow {
  font: 500 16px/19px var(--f-inter);
  color: var(--blue);
  letter-spacing: 0;
}
.h2 { font: 600 36px/44px var(--f-inter); color: var(--dark); }
.h2--nw { white-space: nowrap; }
@media (max-width: 1339px) { .h2--nw { white-space: normal; } .h2--nw br { display: none; } }
.sec-head__note { font: 400 16px/25px var(--f-inter); color: var(--dark-60); }

/* Заголовок секции: колонка «пояс + H2» */
.sec-head { display: flex; align-items: flex-end; }
.sec-head__col { display: flex; flex-direction: column; gap: 12px; width: 530px; flex: none; }
.sec-head__col--wide { width: 1263px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 11px 6px; border-radius: var(--r-sm);
  font: 400 14px/20px var(--f-inter);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out),
              background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn__in { display: inline-flex; align-items: center; gap: 4px; justify-content: center; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #3A66DE; box-shadow: 0 8px 20px rgba(74, 120, 240, 0.35); transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--dark); border: 1px solid var(--border-10); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn .arr { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: 68px; background: var(--white);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(5, 9, 18, 0.07); }
.header__in { display: flex; align-items: center; height: 68px; }
.header__logo { width: 217px; height: 31.04px; flex: none; }
.header__logo img { width: 100%; height: 100%; }
.header__nav { display: flex; align-items: center; gap: 38px; margin-left: 191px; }
.header__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  font: 400 14px/17px var(--f-inter); color: var(--dark);
  height: 68px;
  transition: color var(--t-fast);
}
.header__link:hover { color: var(--blue); }
.header__link:hover .chev { transform: translateY(1px); }
.header__link .chev { transition: transform var(--t-fast); color: var(--dark); }
.header__link:hover .chev { color: var(--blue); }
.header__link--active { color: var(--blue); font-weight: 500; }
.header__link--active::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 68px; height: 1px; background: var(--blue);
}
.header__cta { margin-left: auto; width: 185px; }

/* Выпадающий список «Услуги» */
.header__drop-wrap { position: relative; display: flex; align-items: center; height: 68px; }
.header__dropdown {
  position: absolute; top: 60px; left: -18px; min-width: 248px; z-index: 60;
  background: var(--white);
  border: 1px solid var(--border-blue); border-radius: var(--r-md);
  box-shadow: 0 18px 44px rgba(14, 20, 34, 0.12);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}
.header__drop-wrap:hover .header__dropdown,
.header__drop-wrap:focus-within .header__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.header__drop-wrap:hover .chev { transform: rotate(180deg); color: var(--blue); }
.header__drop-wrap:hover > .header__link { color: var(--blue); }
.header__dropdown a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font: 400 14px/20px var(--f-inter); color: var(--dark); white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), padding-left var(--t-fast) var(--ease-out);
}
.header__dropdown a:hover {
  background: rgba(74, 120, 240, 0.08); color: var(--blue); padding-left: 20px;
}
.header__cta .btn__in { gap: 8px; }
.header__burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Герой ---------- */
.hero-wrap { margin-top: 32px; }
.hero {
  position: relative; height: 550px;
  border: 1px solid var(--border-blue); border-radius: var(--r-lg);
  background: var(--grad-hero);
  overflow: hidden;
}
.hero__scene {
  position: absolute; left: 0; top: -86px; width: 1340px; height: 680px;
  background: var(--grad-scene);
}
/* Первый экран: каждый слайд — цельный кадр (картинка + подложка + текст). Смена — «мягкая шторка»:
   новый кадр целиком наезжает поверх старого с размытой границей; старый не двигается и не мигает. */
.hero__frames { position: absolute; inset: 0; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; background: var(--grad-hero); visibility: hidden; z-index: 1; }
.hero__frame.is-on { visibility: visible; z-index: 2; }
.hero__frame.is-leave { visibility: visible; z-index: 1; }
.hero__frame::before { /* мягкая светлая подложка под текстом слева: детали картинки не мешают читать */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 243, 254, 0.92) 0%, rgba(240, 243, 254, 0.75) 38%, rgba(240, 243, 254, 0) 64%);
}
.hero__frame.is-enter {
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 55%); mask-image: linear-gradient(to left, #000 45%, transparent 55%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; /* граница идёт с 8% по 92% времени — без пауз в начале и конце */ -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: hero-wipe 1.1s cubic-bezier(0.6, 0, 0.3, 1) both;
}
.hero__frame.is-enter.is-back { -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 55%); mask-image: linear-gradient(to right, #000 45%, transparent 55%); animation-name: hero-wipe-back; }
@keyframes hero-wipe { from { -webkit-mask-position: 0% 0; mask-position: 0% 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes hero-wipe-back { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
/* картинка: края растворяются в фоне; пока кадр на экране — медленно, почти незаметно приближается */
.hero__slide {
  position: absolute; object-fit: cover; transform: scale(1.02); transform-origin: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 94%, transparent), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 94%, transparent), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.hero__frame.is-on .hero__slide { transform: scale(1.07); transition: transform calc(var(--hero-delay, 7s) + 1.2s) linear; }
.hero__ctrl {
  position: absolute; right: 28px; bottom: 22px; z-index: 3; margin: 0; gap: 20px; height: auto;
  padding: 7px 8px 7px 16px; border-radius: 999px; /* стеклянная подложка — стрелки видны на любой картинке */
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 24px -14px rgba(46, 84, 200, 0.45);
}
@media (prefers-reduced-motion: reduce) { .hero__frame.is-enter { animation: none; -webkit-mask-image: none; mask-image: none; } .hero__frame.is-on .hero__slide { transform: none; transition: none; } .hero__ctrl .controls__dot.is-active::after { animation: none; transform: none; } }
.hero__texts { position: absolute; left: 45px; top: 56px; width: 687px; z-index: 2; }
/* старый текст гаснет в начале смены (пока граница шторки идёт по картинке) — тексты не накладываются */
.hero__texts { transition: opacity 0.25s ease; }
.hero__frame.is-leave .hero__texts { opacity: 0; }
.hero__content { display: flex; flex-direction: column; gap: 46px; }
/* активная точка заполняется за время показа слайда */
.hero__ctrl .controls__dot.is-active { position: relative; overflow: hidden; background: rgba(74, 120, 240, 0.28); }
.hero__ctrl .controls__dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: left;
  animation: hero-progress var(--hero-delay, 7s) linear forwards; }
.hero__ctrl.is-paused .controls__dot.is-active::after { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__head { display: flex; flex-direction: column; gap: 6px; }
.hero__eyebrow { display: flex; align-items: center; gap: 6px; }
.hero__eyebrow img { width: 18px; height: 18px; }
.hero__eyebrow span { font: 500 16px/19px var(--f-inter); color: var(--blue); }
.hero__title { font: 600 48px/59px var(--f-inter); color: var(--dark); }
.hero__mid { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero__text { width: 388px; height: 66px; font: 400 16px/25px var(--f-inter); color: var(--dark); }
.hero__btns { display: flex; align-items: center; gap: 24px; }
.hero__btns .btn--primary { width: 185px; }
.hero__btns .btn--ghost { width: 190px; }
.hero__feats { display: flex; align-items: flex-start; gap: 26px; }
.feat { display: flex; flex-direction: column; gap: 12px; }
.feat img { width: 32px; height: 32px; border-radius: 60px; }
.feat span { font: 400 14px/16px var(--f-inter); color: var(--dark); }
.feat--1 { width: 95px; } .feat--2 { width: 95px; } .feat--3 { width: 140px; }
.feat--4 { width: 142px; } .feat--5 { width: 114px; }

/* ---------- Полоса цифр ---------- */
.stats {
  margin-top: 48px; height: 120px;
  background: var(--grad-band);
  border: 1px solid var(--border-blue); border-radius: var(--r-lg);
  padding: 24px 0 24px 19px;
}
.stats__in { display: flex; align-items: center; gap: 37px; }
.stat { display: flex; align-items: center; gap: 24px; border-right: 1px solid var(--border-blue); }
.stat:last-child { border-right: 0; }
.stat--1 { width: 288px; } .stat--2 { width: 241px; } .stat--3 { width: 317px; } .stat--4 { width: 288px; }
.stat__icon { width: 72px; height: 72px; border-radius: 60px; flex: none; }
.stat__col { display: flex; flex-direction: column; gap: 12px; width: 192px; }
.stat__num { font: 600 30px/25px var(--f-inter); color: var(--dark); height: 24px; }
.stat__label { font: 400 16px/25px var(--f-inter); color: var(--dark-60); height: 24px; white-space: nowrap; }

/* ---------- Секция «Услуги» ---------- */
.services { margin-top: 48px; }
.services__head { display: flex; align-items: flex-end; gap: 238px; }
.services__head-left { display: flex; align-items: flex-end; gap: 84px; }
.services__note { width: 305px; }
.services__all { width: 124px; }
.services__grid { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.services__row { display: flex; gap: 24px; }

.scard {
  position: relative; width: 302px; height: 324px;
  background: var(--blue-50);
  border: 1px solid var(--border-blue); border-radius: var(--r-md);
  overflow: hidden;
}
.scard__img { position: absolute; }

/* 3D-наклон за курсором + блик (эффект с licitex.ru, «Как это работает») */
.tilt3d {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.tilt3d:hover { box-shadow: 0 26px 50px -22px rgba(67, 89, 113, 0.32); }
.tilt3d__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(240px circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 255, 255, 0.5), transparent 60%);
  mix-blend-mode: soft-light;
}
.tilt3d:hover .tilt3d__glare { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .tilt3d { transform: none !important; }
  .tilt3d__glare { display: none; }
}
.scard__text { position: absolute; left: 19px; top: 187px; width: 265px; display: flex; flex-direction: column; gap: 8px; }
.scard__title { font: 600 18px/25px var(--f-mont); color: var(--black); }
.scard__desc { font: 400 14px/20px var(--f-mont); color: var(--black-60); }
.scard__arrow {
  position: absolute; left: 255px; top: 276px; width: 32px; height: 32px; border-radius: 60px;
  transition: transform var(--t-fast) var(--ease-out);
}
.scard:hover .scard__arrow { transform: translateX(4px); }
.services__head { justify-content: flex-start; }
.scard__ph { position: absolute; left: 91px; top: 32px; width: 120px; height: 120px; border-radius: 50%; background: #D9D9D9; }

/* ---------- Секция «Кейсы» (синяя) ---------- */
.cases { margin-top: 48px; background: var(--blue); padding: 47px 0 0; height: 655px; overflow: hidden; }
.cases__col { display: flex; flex-direction: column; gap: 48px; }
.cases__head { display: flex; align-items: flex-end; gap: 188px; }
.cases__head-left { display: flex; align-items: flex-end; gap: 84px; }
.cases .eyebrow--onblue { color: var(--blue); } /* как в макете: сливается с фоном */
.cases .h2 { color: var(--white); }
.cases__note { width: 354px; font: 400 16px/25px var(--f-inter); color: var(--white); }
.cases__all { width: 124px; }
.cases__row {
  display: flex; align-items: center; gap: 24px;
  /* лента кейсов прокручивается по кругу (клоны карточек добавляет main.js) */
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  padding-top: 8px; margin-top: -8px; /* место под подъём карточки при наведении */
}
.cases__row::-webkit-scrollbar { display: none; }
.cases__row .ccard { scroll-snap-align: start; }
.cases__row { cursor: grab; user-select: none; -webkit-user-select: none; }
.cases__row.is-dragging { cursor: grabbing; }
.cases__row.is-dragging .ccard { transform: none; }

.ccard {
  position: relative; width: 302px; height: 324px; flex: none;
  background: var(--white-10); border-radius: var(--r-md); overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.ccard:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.16); }
.ccard--active { border: 2px solid var(--blue); }
.ccard__media { position: absolute; left: 0; top: 0; width: 302px; height: 172px; background: #C0C0C0; overflow: hidden; }
.ccard__media img { position: absolute; transition: transform var(--t-med) var(--ease-out); }
.ccard:hover .ccard__media img { transform: scale(1.04); }
.ccard__tag {
  position: absolute; left: 14px; top: 136px; padding: 4px;
  display: flex; justify-content: center;
  background: var(--blue); border-radius: var(--r-sm);
  font: 400 14px/17px var(--f-inter); color: var(--white); text-align: center;
  white-space: nowrap;
}
.ccard__text { position: absolute; left: 19px; top: 186px; width: 265px; display: flex; flex-direction: column; gap: 8px; }
.ccard__title { font: 600 18px/25px var(--f-mont); color: var(--white); }
.ccard__desc { font: 400 14px/20px var(--f-mont); color: var(--white-80); }
.ccard__link { display: inline-flex; align-items: center; gap: 4px; font: 400 14px/17px var(--f-inter); color: var(--white); }
.ccard__link .arr { transition: transform var(--t-fast) var(--ease-out); }
.ccard:hover .ccard__link .arr { transform: translateX(3px); }

/* ---------- Контролы слайдеров (точки + стрелки) ---------- */
.controls { display: flex; align-items: center; justify-content: space-between; height: 37px; margin-top: 48px; }
.controls__dots { display: flex; align-items: center; gap: 9px; padding-left: 0; }
.controls__dot { width: 8.9px; height: 8.9px; border-radius: 50%; background: #AEAEAE; transition: all var(--t-fast); padding: 0; }
.controls__dot.is-active { width: 26.7px; border-radius: 4.5px; }
.controls--dark .controls__dot.is-active { background: var(--white); }
.controls--light .controls__dot.is-active { background: var(--blue); }
.controls--light .controls__dot { background: rgba(74, 120, 240, 0.25); }
.controls__nav { display: flex; align-items: center; gap: 12px; }
.controls__btn {
  width: 36.4px; height: 36.4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.controls__btn:hover { transform: scale(1.08); }
.controls__btn:active { transform: scale(0.96); }
.controls--dark .controls__btn--prev { border: 2px solid var(--white); color: var(--white); }
.controls--dark .controls__btn--next { background: var(--white); color: var(--blue); box-shadow: var(--shadow-ctrl); }
.controls--light .controls__btn--prev { border: 2px solid var(--blue); color: var(--blue); }
.controls--light .controls__btn--next { background: var(--blue); color: var(--white); box-shadow: var(--shadow-ctrl); }

/* ---------- Секция «Как мы работаем» ---------- */
.process-wrap { margin-top: 48px; }
.process__head .h2 { width: 1263px; }
.process__zone { position: relative; margin-top: 54px; height: 390px; }
.process__line { position: absolute; left: 265.79px; top: 193px; width: 750.41px; height: 5px; }
.pcard {
  position: absolute; top: 0; width: 278.78px; height: 390px;
  background: var(--white); border: 2px solid var(--border-blue); border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
/* синяя рамка — только у карточки под курсором */
.pcard:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(74, 120, 240, 0.12); border-color: var(--blue); }
.pcard--1 { left: 0; }
.pcard--2 { left: 333.74px; }
.pcard--3 { left: 667.48px; }
.pcard--4 { left: 1001.22px; }
.pcard__in { position: absolute; left: 11px; top: 17px; width: 252px; display: flex; flex-direction: column; gap: 8px; }
.pcard__img { width: 252px; height: 252px; }
.pcard__badge { display: flex; align-items: center; gap: 8px; }
.pcard__num {
  width: 42px; height: 42px; border-radius: var(--r-md); background: var(--blue); flex: none;
  display: flex; align-items: center; justify-content: center;
  font: 600 16px/25px var(--f-mont); color: var(--white);
}
.pcard__title { font: 600 16px/25px var(--f-mont); color: var(--black); }
.pcard__desc { font: 400 14px/22px var(--f-mont); color: var(--black-60); }

/* ---------- География ---------- */
.geo { margin-top: 48px; }
.geo__head { display: flex; height: 74px; }
.geo__head .sec-head__col { width: 1263px; }
/* Карта «Стекло»: стеклянная карточка на мягких цветных пятнах. Регионы — встроенный SVG
   (assets/icons/map-ru.svg, data-iso), проекты — assets/data/map-projects.json.
   Поток: 2–5 регионов с проектами загораются по очереди с плашкой; наведение — регион под курсором. */
.geo { position: relative; overflow-x: clip; } /* плашки и пятна не расширяют страницу вбок */
.geo__glass { position: relative; margin-top: 32px; padding: 8px 0 28px; isolation: isolate; }
/* без рамки: цветные пятна и матовое стекло растворяются к краям (слева, справа, снизу) */
.geo__glass::before, .geo__glass::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.geo__glass::before { /* цветные пятна позади стекла */
  inset: -40px 0 0; filter: blur(60px); opacity: 0.6;
  background:
    radial-gradient(38% 55% at 12% 35%, #8FB0FF 0%, transparent 70%),
    radial-gradient(34% 50% at 88% 40%, #B9A8FF 0%, transparent 70%),
    radial-gradient(40% 45% at 55% 95%, #8DE0FF 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
}
.geo__glass::after { /* матовое стекло */
  inset: 0; background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 72%, transparent);
  mask-composite: intersect;
}
.geo__map { position: relative; width: 1280px; height: 686px; transform-origin: 0 0; }
.geo__map > .geo__bg { position: absolute; left: 0; top: 0; width: 1280px; height: 686px; overflow: visible; }
.geo__base path { fill: rgba(255, 255, 255, 0.62); stroke: rgba(74, 120, 240, 0.30); stroke-width: 0.8; cursor: pointer; }
.geo__base { filter: drop-shadow(0 12px 28px rgba(74, 120, 240, 0.18)); }
.geo__lit path {
  opacity: 0; pointer-events: none; fill: url(#geoGlass); stroke: rgba(255, 255, 255, 0.95); stroke-width: 1.2;
  filter: drop-shadow(0 8px 16px rgba(74, 120, 240, 0.55)); transition: opacity 0.8s var(--ease-out);
}
.geo__lit path.is-on { opacity: 1; }
.geo__lit path.is-soft { fill: rgba(74, 120, 240, 0.55); }
.geo__home path { fill: #fff; stroke: var(--blue); stroke-width: 1.6; pointer-events: none; }
.geo__home text { font: 700 9px var(--f-mont); fill: var(--blue); letter-spacing: 0.5px; pointer-events: none; }

/* метка + плашка проекта; плашка в реальном размере при любом масштабе карты (--inv) */
.geo-mk { position: absolute; width: 0; height: 0; pointer-events: none; scale: var(--inv, 1); }
.geo-mk__dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(74, 120, 240, 0.6); opacity: 0; scale: 0.3;
  transition: opacity 0.5s, scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.geo-mk__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(74, 120, 240, 0.55); opacity: 0; }
.geo-mk.is-on .geo-mk__dot, .geo-mk.is-full .geo-mk__dot { opacity: 1; scale: 1; }
.geo-mk.is-on .geo-mk__dot::after, .geo-mk.is-full .geo-mk__dot::after { animation: geo-ring 1.8s ease-out infinite; }
@keyframes geo-ring { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.geo-plate {
  position: absolute; left: 0; bottom: 16px; translate: -50% 0; min-width: 150px; max-width: 280px; padding: 8px 12px 8px 8px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 36px -18px rgba(30, 60, 160, 0.55), 0 2px 6px rgba(30, 60, 160, 0.08), inset 0 1px 0 #fff;
  opacity: 0; transform: translateY(8px) scale(0.94); transform-origin: 50% 100%; white-space: nowrap;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.geo-plate::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; rotate: 45deg;
  background: rgba(255, 255, 255, 0.9); border-right: 1px solid #fff; border-bottom: 1px solid #fff;
}
.geo-mk--below .geo-plate { bottom: auto; top: 16px; transform-origin: 50% 0; }
.geo-mk--below .geo-plate::after { bottom: auto; top: -6px; }
.geo-mk.is-on .geo-plate, .geo-mk.is-full .geo-plate { opacity: 1; transform: none; }
.geo-mk.is-full { z-index: 5; }
.geo-plate__row { display: flex; align-items: center; gap: 8px; }
.geo-plate__logos { display: flex; }
.geo-plate__logos .geo-logo + .geo-logo { margin-left: -8px; }
.geo-mk.is-full .geo-plate__logos { display: none; }
.geo-logo {
  position: relative; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(30, 60, 160, 0.25);
}
.geo-logo img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 58%; height: 58%; object-fit: contain; }
.geo-plate__name { font: 600 13px/16px var(--f-mont); color: var(--black); }
.geo-plate__meta { font: 500 11px/14px var(--f-inter); color: var(--blue); }
.geo-plate__list { display: grid; gap: 6px; max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out), margin 0.45s; }
.geo-mk.is-full .geo-plate__list { max-height: 220px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(74, 120, 240, 0.15); }
.geo-plate__item { display: flex; align-items: center; gap: 8px; font: 500 12px/16px var(--f-inter); color: var(--black); }
.geo-plate__item .geo-logo { width: 22px; height: 22px; box-shadow: 0 2px 6px rgba(30, 60, 160, 0.2); }
.geo-plate__item i { font-style: normal; color: var(--black-60); font-size: 11px; margin-left: auto; padding-left: 10px; }
.geo-tip {
  position: fixed; z-index: 50; pointer-events: none; padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  font: 500 13px var(--f-inter); color: var(--black); background: rgba(255, 255, 255, 0.85); border: 1px solid #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgba(11, 18, 32, 0.35);
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s;
}
.geo-tip.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .geo__lit path, .geo-plate, .geo-mk__dot { transition: none; } }


/* ---------- Технологии ---------- */
.tech {
  margin-top: 68px; background: var(--grad-band);
  border-top: 1px solid var(--border-blue); border-bottom: 1px solid var(--border-blue);
  padding: 42px 0 0; height: 766px; overflow: hidden;
}
.tech__col { display: flex; flex-direction: column; gap: 48px; }
.tech__head { display: flex; align-items: flex-end; gap: 156px; }
.tech__head-left { display: flex; align-items: flex-end; gap: 84px; width: 968px; }
.tech__all { width: 156px; }
.tech__tabs { display: flex; align-items: center; gap: 16px; }
.tab {
  width: 146px; padding: 11px 6px; border-radius: var(--r-sm); text-align: center;
  font: 400 14px/17px var(--f-inter); color: var(--dark);
  background: var(--white); border: 1px solid var(--border-10);
  transition: all var(--t-fast);
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.tech__slider { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  padding: 12px 8px 24px; margin: -12px -8px -24px; scroll-padding-left: 8px; } /* место под наклон и тень */
.tech__slider::-webkit-scrollbar { display: none; }
.tcard {
  position: relative; width: 297px; height: 343px; flex: none; scroll-snap-align: start;
  background: var(--white); border: 2px solid var(--gray-card); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  /* как «Как мы работаем»: 3D-наклон за курсором + блик (tilt3d), синяя рамка — только при наведении */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color var(--t-fast);
}
.tcard:hover { border-color: var(--blue); }
.tech__slider { cursor: grab; user-select: none; -webkit-user-select: none; }
.tech__slider.is-dragging { cursor: grabbing; }
.tech__slider.is-dragging .tcard { transform: none; } /* пока тянут — без наклона */
.tcard[hidden] { display: none; }
.tcard--in { animation: tcard-in 0.5s var(--ease-out) both; }
.tcard--in:nth-child(n) { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes tcard-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .tcard--in { animation: none; } }
.tcard__in { position: absolute; left: 16px; top: 7px; width: 261px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tcard__img { width: 162px; height: 162px; }
.tcard__title { font: 700 18px/32px var(--f-mont); color: var(--dark); text-align: center; }
.tcard__desc { font: 400 14px/22px var(--f-mont); color: var(--black-60); text-align: center; }

/* ---------- ИИ-технологии ---------- */
.ai { margin-top: 68px; }
.ai__in { display: flex; justify-content: space-between; align-items: center; }
.ai__card {
  position: relative; width: 707px; height: 427px;
  background: var(--grad-band); border: 1px solid var(--border-blue); border-radius: var(--r-md);
}
.ai__content { position: absolute; left: 33px; top: 31px; width: 642px; height: 366px; display: flex; flex-direction: column; gap: 75px; }
.ai__head { display: flex; flex-direction: column; gap: 12px; }
.ai__desc { height: 74px; font: 400 16px/25px var(--f-inter); color: var(--dark-60); }
.ai__btn { width: 203px; }
.ai__visual {
  position: relative; width: 574px; height: 427px; overflow: hidden;
  background: var(--blue-deep); border: 1px solid var(--border-blue); border-radius: var(--r-md);
}
.ai__visual img { position: absolute; left: 0; top: -2px; width: 574px; height: 430px; object-fit: cover;
  transition: transform 0.8s var(--ease-out); }
.ai__visual:hover img { transform: scale(1.03); }

/* ---------- Калькулятор ---------- */
.calc { margin-top: 68px; }
.calc__head { display: flex; align-items: flex-end; gap: 84px; }
.calc__head-col { display: flex; flex-direction: column; gap: 12px; width: 844px; }
.calc__note { width: 352px; }
/* ---------- Калькулятор «Стекло»: слева цена и «чек», справа вопрос; одна стеклянная карточка ---------- */
.calc__glass {
  position: relative; isolation: isolate; margin-top: 48px;
  display: grid; grid-template-columns: 360px 1fr; gap: 0;
  border-radius: 28px; overflow: hidden;
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 40px 80px -44px rgba(46, 84, 200, 0.45), inset 0 1px 0 #fff;
}
.calc__glass::before { /* мягкие цветные пятна внутри стекла */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(50px); opacity: 0.55;
  background:
    radial-gradient(40% 60% at 0% 0%, #8FB0FF 0%, transparent 70%),
    radial-gradient(35% 55% at 100% 100%, #B9A8FF 0%, transparent 70%),
    radial-gradient(30% 45% at 60% 0%, #8DE0FF 0%, transparent 70%);
}
/* левая колонка: сумма + выбранное */
.calc__side {
  display: flex; flex-direction: column; gap: 14px; padding: 36px 32px;
  background: linear-gradient(160deg, rgba(74, 120, 240, 0.12), rgba(74, 120, 240, 0.02));
  border-right: 1px solid rgba(255, 255, 255, 0.7);
}
.calc__total { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.calc__from { font: 500 18px/1 var(--f-inter); color: var(--dark-60); }
.calc__sum { font: 700 46px/1.05 var(--f-inter); color: var(--dark); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__cur { font: 600 28px/1 var(--f-inter); color: var(--blue); }
.calc__hint { font: 400 14px/21px var(--f-inter); color: var(--dark-60); }
.calc__receipt { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(74, 120, 240, 0.3); display: grid; gap: 8px; }
.calc__receipt li { display: flex; justify-content: space-between; gap: 12px; font: 400 13px/18px var(--f-inter); color: var(--dark); animation: rc-in 0.35s var(--ease-out) both; }
.calc__receipt li b { font-weight: 600; color: var(--blue); white-space: nowrap; }
.calc__receipt li.is-empty { color: var(--dark-60); }
@keyframes rc-in { from { opacity: 0; transform: translateY(6px); } }
.calc__contact { margin-top: auto; align-self: flex-start; }
/* правая колонка: прогресс, вопрос, варианты, кнопки */
.calc__main { display: flex; flex-direction: column; gap: 22px; padding: 32px 36px; min-height: 420px; }
.calc__progress { display: flex; align-items: center; gap: 14px; }
.calc__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(74, 120, 240, 0.14); overflow: hidden; }
.calc__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7EA2FF, var(--blue)); transition: width 0.5s var(--ease-out); }
.calc__step { font: 500 13px/1 var(--f-inter); color: var(--blue); white-space: nowrap; }
.calc__stage { display: flex; flex-direction: column; gap: 18px; }
.calc__stage.is-out { animation: st-out 0.18s ease-in forwards; }
.calc__stage.is-in { animation: st-in 0.38s var(--ease-out) both; }
.calc__stage.is-in.is-back { animation-name: st-in-back; }
@keyframes st-out { to { opacity: 0; transform: translateX(-18px); } }
@keyframes st-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes st-in-back { from { opacity: 0; transform: translateX(-22px); } }
.calc__q { font: 600 22px/30px var(--f-mont); color: var(--dark); }
.calc__q small { display: block; margin-top: 4px; font: 400 13px/18px var(--f-inter); color: var(--dark-60); }
.calc__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.calc__opts--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.calc__opts--types { grid-template-columns: repeat(4, 1fr); }
/* плитка-вариант */
.copt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 64px;
  padding: 16px 44px 16px 16px; text-align: left; cursor: pointer; color: var(--dark);
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 16px;
  box-shadow: 0 6px 18px -12px rgba(46, 84, 200, 0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
}
.copt:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 14px 28px -16px rgba(46, 84, 200, 0.5); }
.copt.is-on { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74, 120, 240, 0.16), 0 14px 30px -16px rgba(46, 84, 200, 0.6); }
.copt__mark { /* кружок (один ответ) / квадрат (несколько) с галочкой */
  position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(74, 120, 240, 0.35); background: #fff; transition: all 0.2s;
}
.copt--multi .copt__mark { border-radius: 6px; }
.copt.is-on .copt__mark { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; transform: scale(1.05); }
.copt__t { font: 600 15px/20px var(--f-mont); hyphens: auto; }
.copt__s { font: 400 12px/17px var(--f-inter); color: var(--dark-60); }
.copt__p { font: 600 12px/16px var(--f-inter); color: var(--blue); }
.copt__p--free { color: var(--dark-60); font-weight: 500; }
/* шаг 1: плитки с картинками */
.copt--type { min-height: 168px; padding: 16px; overflow: hidden; }
.copt--type .copt__t { font-size: 16px; max-width: 120px; }
.copt--type img { position: absolute; right: -6px; bottom: -6px; width: 132px; height: auto; transition: transform 0.4s var(--ease-out); pointer-events: none; }
.copt--type:hover img, .copt--type.is-on img { transform: translate(-4px, -4px) scale(1.04); }
.copt--type .copt__mark { top: 14px; }
/* кнопки */
.calc__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc__foot .btn { width: 140px; }
.calc__foot .btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.calc__foot .btn.is-hidden { visibility: hidden; }
/* финал: форма и «спасибо» */
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__form .contacts__input { width: 100%; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, 0.75); }
.calc__form .contacts__input.is-error { border-color: #E5484D; background: #FFF5F5; }
.calc__send { grid-column: 1 / -1; justify-self: start; min-width: 240px; }
.calc__form .calc__name { grid-column: 1 / -1; }
.calc__err { grid-column: 1 / -1; margin: -2px 0 0; font: 500 13px/18px var(--f-inter); color: #D93A40; }
.calc__legal { grid-column: 1 / -1; font: 400 12px/16px var(--f-inter); color: var(--dark-60); }
.calc__thanks { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.calc__thanks-ic { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #7EA2FF, var(--blue));
  box-shadow: 0 12px 26px -10px rgba(74, 120, 240, 0.8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #7EA2FF, #4A78F0);
  background-size: 30px, cover; background-position: center; background-repeat: no-repeat; }
.calc__thanks p { font: 400 15px/23px var(--f-inter); color: var(--dark); max-width: 460px; }
@media (prefers-reduced-motion: reduce) { .calc__stage.is-in, .calc__stage.is-out, .calc__receipt li { animation: none; } }

/* ---------- Блог ---------- */
.blog { margin-top: 48px; }
.blog__head { display: flex; align-items: flex-end; gap: 188px; }
.blog__head-left { display: flex; align-items: flex-end; gap: 84px; width: 968px; }
.blog__all { width: 124px; }
.blog__row {
  margin-top: 40px; padding-top: 8px; display: flex; align-items: flex-start; gap: 24px;
  /* лента статей по кругу, как у кейсов (клоны карточек и перетаскивание — main.js, data-loop) */
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.blog__row::-webkit-scrollbar { display: none; }
.blog__row .bcard { scroll-snap-align: start; }
.blog__row.is-dragging { cursor: grabbing; }
.blog__row.is-dragging .bcard { transform: none; }
.bcard {
  position: relative; width: 302px; height: 368px; flex: none;
  background: var(--blue-50); border: 1px solid var(--border-blue); border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.bcard:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(74, 120, 240, 0.12); }
.bcard__media { position: absolute; left: 0; top: 0; width: 302px; height: 172px; background: #C0C0C0; overflow: hidden; }
.bcard__media img { position: absolute; transition: transform var(--t-med) var(--ease-out); }
.bcard:hover .bcard__media img { transform: scale(1.04); }
.bcard__text { position: absolute; left: 19px; top: 186px; width: 265px; display: flex; flex-direction: column; gap: 8px; }
.bcard__meta { display: flex; align-items: center; gap: 8px; }
.bcard__date { font: 400 14px/22px var(--f-mont); color: var(--black-60); }
.bcard__cat {
  padding: 4px; border-radius: var(--r-sm); background: rgba(74, 120, 240, 0.1);
  font: 400 14px/17px var(--f-inter); color: var(--blue); text-align: center;
}
.bcard__title { font: 600 18px/25px var(--f-mont); color: var(--black); }
.bcard__desc { font: 400 14px/20px var(--f-mont); color: var(--black-60); }
.bcard__link { display: inline-flex; align-items: center; gap: 4px; font: 400 14px/17px var(--f-inter); color: var(--blue); }
.bcard__link .arr { transition: transform var(--t-fast) var(--ease-out); }
.bcard:hover .bcard__link .arr { transform: translateX(3px); }

/* ---------- Контакты ---------- */
.contacts { margin-top: 48px; }
.contacts__card {
  position: relative; height: 600px;
  background: var(--blue-50); border: 1px solid var(--border-blue); border-radius: var(--r-md);
  overflow: hidden;
}
.contacts__in { position: absolute; left: 21px; top: 28px; display: flex; align-items: center; gap: 24px; }
.contacts__left { width: 770px; display: flex; flex-direction: column; gap: 28px; }
.contacts__head { display: flex; flex-direction: column; gap: 12px; width: 463px; }
.contacts__sub { font: 400 16px/25px var(--f-inter); color: var(--dark-60); height: 24px; }
.contacts__grid { position: relative; width: 770px; height: 362px; }
.contact-card { position: absolute; background: var(--white-60); border-radius: var(--r-md);
  transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.contact-card:hover { background: rgba(255, 255, 255, 0.85); transform: translateY(-2px); }
.contact-card__in { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.contact-card__row { display: flex; align-items: center; gap: 8px; }
.contact-card__icon { width: 42px; height: 42px; border-radius: var(--r-md); }
.contact-card__title { font: 600 16px/25px var(--f-mont); color: var(--black); }
.contact-card__value { font: 600 16px/25px var(--f-mont); color: var(--black); }
.contact-card__note { font: 400 14px/22px var(--f-mont); color: var(--black-60); height: 19px; }
.contact-card__note--blue { color: var(--blue); }
.contact-card--tel { left: 0; top: 0; width: 249px; height: 126px; }
.contact-card--tel .contact-card__in { left: 26px; top: 10px; width: 199px; }
.contact-card--mail { left: 261px; top: 0; width: 248px; height: 126px; }
.contact-card--mail .contact-card__in { left: 21px; top: 10px; width: 199px; }
.contact-card--tg { left: 521px; top: 0; width: 249px; height: 126px; }
.contact-card--tg .contact-card__in { left: 26px; top: 10px; width: 199px; }
.contact-card--addr { left: 0; top: 138px; width: 770px; height: 139px; }
.contact-card--addr .contact-card__in { left: 19px; top: 19px; width: 408px; }
.contacts__form { position: absolute; left: 0; top: 289px; width: 770px; height: 73px; background: var(--white-60); border-radius: var(--r-md); }
.contacts__form-in { position: absolute; left: 19px; top: 16px; display: flex; align-items: center; gap: 18px; }
.contacts__input {
  width: 184px; padding: 11px 12px; border: 1px solid var(--border-10); border-radius: var(--r-sm);
  background: var(--gray-bg); font: 400 14px/17px var(--f-inter); color: var(--dark);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.contacts__input::placeholder { color: var(--dark-60); }
.contacts__input:focus { outline: none; border-color: var(--blue); background: var(--white); }

/* ---------- Живая карта офиса в «Контактах» (вместо картинки): Яндекс в тонах сайта + метка SDS ---------- */
.contacts__map { background: #EEF2FF; isolation: isolate; }
.office__map { position: absolute; inset: 0; display: block; cursor: pointer; }
.office__frame { position: absolute; inset: -64px -80px 0; } /* поля обрезают кнопки виджета; «© Яндекс» снизу видна */
.office__frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(1) contrast(0.95) brightness(1.06); }
.office__tint { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 22% at 0% 100%, rgba(238, 242, 255, 0.98) 30%, rgba(238, 242, 255, 0) 100%), /* прячет кнопку виджета */
              linear-gradient(0deg, rgba(74, 120, 240, 0.14), rgba(74, 120, 240, 0.14)); }
.office__tint::after { content: ""; position: absolute; inset: 0; background: rgba(74, 120, 240, 0.22); mix-blend-mode: color; }
.office__pin { position: absolute; left: 50%; top: calc(50% - 32px); width: 0; height: 0; z-index: 2; pointer-events: none; }
.office__pin::before, .office__pin::after { content: ""; position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(74, 120, 240, 0.55); animation: office-ring 2.4s ease-out infinite; }
.office__pin::after { animation-delay: 1.2s; }
@keyframes office-ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
.office__pin-in { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font: 800 15px/1 var(--f-mont); letter-spacing: 0.5px; color: #fff;
  background: linear-gradient(140deg, #86A8FF, var(--blue)); border: 3px solid #fff;
  box-shadow: 0 14px 30px -10px rgba(46, 84, 200, 0.75), 0 0 0 8px rgba(255, 255, 255, 0.45); }
.office__pin-in::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 14px; height: 14px; margin-left: -7px; rotate: 45deg;
  background: var(--blue); border-right: 3px solid #fff; border-bottom: 3px solid #fff; border-radius: 0 0 4px 0; z-index: -1; }
/* стеклянная плашка с адресом внизу карты */
.contacts__chip { position: absolute; left: 16px; right: 16px; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 36px -20px rgba(30, 60, 160, 0.55), inset 0 1px 0 #fff; }
.contacts__chip-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contacts__chip-txt b { font: 600 15px/20px var(--f-mont); color: var(--dark); }
.contacts__chip-txt span { font: 400 13px/18px var(--f-inter); color: var(--dark-60); }
.contacts__chip .btn { flex: none; width: auto; padding-left: 18px; padding-right: 18px; }
@media (prefers-reduced-motion: reduce) { .office__pin::before, .office__pin::after { animation: none; opacity: 0; } }
.contacts__send { width: 126px; }
.contacts__photo {
  position: relative; width: 445px; height: 545px; flex: none;
  background: #D4D4D4; border-radius: var(--r-md); overflow: hidden;
}
.contacts__photo-img { position: absolute; left: 0; top: -41px; width: 471px; height: 700px; object-fit: cover; }
.contacts__badge { position: absolute; left: 211px; top: 165.57px; width: 101px; height: 101px;
  animation: badge-float 4s ease-in-out infinite; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* ---------- Отзывы (синяя) ---------- */
.reviews { margin-top: 48px; background: var(--blue); padding: 33px 0 0; height: 587px; overflow: hidden; }
.reviews__col { display: flex; flex-direction: column; gap: 48px; }
.reviews__head { display: flex; align-items: flex-end; gap: 84px; }
.reviews__head-col { display: flex; flex-direction: column; gap: 12px; width: 910px; }
.reviews .eyebrow--onblue { color: var(--blue); }
.reviews .h2 { color: var(--white); width: 303px; }
.reviews__note { width: 286px; font: 400 16px/25px var(--f-inter); color: var(--white); }
.reviews__row { display: flex; align-items: center; gap: 12px; }
.rcard {
  position: relative; width: 419px; height: 270px; flex: none;
  background: var(--white-10); border-radius: var(--r-md);
  transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.rcard:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-4px); }
.rcard--active { border: 2px solid var(--blue); }
.rcard--active .rcard__stars { left: 19px; top: 23px; }
.rcard--active .rcard__quote { left: 19px; top: 59px; }
.rcard--active .rcard__author { left: 19px; top: 188px; }
.rcard--mid { width: 418px; }
.rcard__stars { position: absolute; left: 21px; top: 25px; display: flex; align-items: center; gap: 10px; }
.rcard__stars svg { width: 24px; height: 24px; }
.rcard__quote { position: absolute; left: 21px; top: 61px; width: 365px; height: 100px; font: 400 16px/25px var(--f-inter); color: var(--white-60); }
.rcard__author { position: absolute; left: 21px; top: 190px; display: flex; align-items: center; gap: 14px; }
.rcard__ava { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #C3C3C3; overflow: hidden; flex: none; }
.rcard__ava img { position: absolute; border-radius: 50%; }
.rcard__who { display: flex; flex-direction: column; gap: 4px; width: 248px; }
.rcard__name { font: 600 18px/25px var(--f-inter); color: var(--white); height: 24px; }
.rcard__role { font: 400 16px/25px var(--f-inter); color: var(--white-60); height: 24px; white-space: nowrap; }

/* ---------- Партнёры ---------- */
.partners { margin-top: 48px; overflow: hidden; }
.partners__head { display: flex; flex-direction: column; gap: 12px; }
.partners__title { height: 44px; }
.partners__sub { font: 400 16px/25px var(--f-inter); color: var(--dark-60); height: 24px; }
.partners__strip { margin-top: 48px; overflow-x: auto; scrollbar-width: none; }
.partners__strip::-webkit-scrollbar { display: none; }
.partners__track { display: flex; align-items: center; gap: 12px; width: max-content; }
.partners__track img { width: 220px; height: 114px; flex: none; }

/* ---------- Футер ---------- */
.footer { margin-top: 46px; background: var(--blue-50); border-radius: 15px 15px 0 0; height: 468px; position: relative; }
.footer__in { position: absolute; left: 50%; transform: translateX(-50%); top: 47px; width: 1280px; display: flex; gap: 88px; }
.footer__brand { width: 365px; display: flex; flex-direction: column; gap: 36px; }
.footer__logo { width: 217px; height: 31.04px; }
.footer__desc { font: 400 16px/25px var(--f-inter); color: var(--dark-60); height: 74px; }
.footer__socials { display: flex; align-items: center; gap: 24px; }
.footer__socials a { transition: transform var(--t-fast) var(--ease-out); }
.footer__socials a:hover { transform: translateY(-3px); }
.footer__socials img { width: 42px; height: 42px; border-radius: var(--r-md); }
.footer__col { width: 211px; display: flex; flex-direction: column; gap: 18px; }
.footer__col-title { font: 600 18px/25px var(--f-inter); color: var(--dark); height: 25px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font: 400 14px/25px var(--f-inter); color: var(--dark-60); height: 24px; transition: color var(--t-fast); }
.footer__links a:hover { color: var(--blue); }
.footer__cblock { display: flex; flex-direction: column; gap: 8px; }
.footer__cblock:nth-child(1) { height: 52px; }
.footer__cblock:nth-child(2) { height: 56px; }
.footer__cblock:nth-child(3) { height: 102px; }
.footer__cblocks { display: flex; flex-direction: column; gap: 18px; }
.footer__crow { display: flex; align-items: center; gap: 8px; }
.footer__crow img { width: 24px; height: 24px; }
.footer__cval { font: 600 14px/25px var(--f-mont); color: var(--black); }
.footer__cval--addr { font: 600 14px/22px var(--f-mont); width: 179px; }
.footer__cnote { font: 400 14px/22px var(--f-mont); color: var(--black-60); }
.footer__cnote--blue { color: var(--blue); }
.footer__hr { position: absolute; left: 50%; transform: translateX(-50%); top: 393px; width: 1280px; height: 0; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.footer__bottom { position: absolute; left: 50%; transform: translateX(-50%); top: 417px; width: 1280px; display: flex; align-items: center; gap: 54px; }
.footer__copy { width: 561px; font: 400 14px/22px var(--f-mont); color: var(--ink-gray); }
.footer__legal { display: flex; align-items: center; gap: 44px; }
.footer__legal a { font: 400 14px/22px var(--f-mont); color: var(--ink-gray); transition: color var(--t-fast); }
.footer__legal a:nth-child(1), .footer__legal a:nth-child(2) { width: 238px; }
.footer__legal a:nth-child(3) { width: 101px; }
.footer__legal a:hover { color: var(--blue); }

/* ============================================================
   Анимации появления (scroll reveal)
   ============================================================ */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
/* карточки с 3D-наклоном: после появления transform отдаём tilt-эффекту */
.rv.is-in.tilt3d {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: opacity 0.7s var(--ease-out), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.rv--d1 { transition-delay: 0.08s; }
.rv--d2 { transition-delay: 0.16s; }
.rv--d3 { transition-delay: 0.24s; }
.rv--d4 { transition-delay: 0.32s; }
.rv--d5 { transition-delay: 0.4s; }

/* Стартовая анимация героя */
.hero-load .hero__eyebrow, .hero-load .hero__title, .hero-load .hero__text,
.hero-load .hero__btns, .hero-load .hero__feats { opacity: 0; transform: translateY(24px); }
.hero-ready .hero__eyebrow { animation: hero-in 0.7s var(--ease-out) 0.05s forwards; }
.hero-ready .hero__title { animation: hero-in 0.8s var(--ease-out) 0.15s forwards; }
.hero-ready .hero__text { animation: hero-in 0.7s var(--ease-out) 0.3s forwards; }
.hero-ready .hero__btns { animation: hero-in 0.7s var(--ease-out) 0.42s forwards; }
.hero-ready .hero__feats { animation: hero-in 0.7s var(--ease-out) 0.55s forwards; }
.hero-load .hero__scene { opacity: 0; transform: scale(1.02); }
.hero-ready .hero__scene { animation: scene-in 1.1s var(--ease-out) 0.1s forwards; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes scene-in { to { opacity: 1; transform: none; } }

/* prefers-reduced-motion: выключаем всё движение */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .rv, .hero-load .hero__eyebrow, .hero-load .hero__title, .hero-load .hero__text,
  .hero-load .hero__btns, .hero-load .hero__feats, .hero-load .hero__scene { opacity: 1; transform: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1339px) {
  .hero__scene { left: auto; right: -200px; }
  .sec-head__col, .sec-head__col--wide, .geo__head .sec-head__col { width: auto; flex: 0 1 auto; min-width: 0; }
  .header__nav { margin-left: auto; margin-right: 24px; }
  .stats { height: auto; }
  .stats__in { flex-wrap: wrap; gap: 24px; row-gap: 24px; }
  .stat { border-right: 0 !important; width: auto !important; }
  .stat__col { width: auto; }
  .stat__label { white-space: normal; }
  .geo__head { height: auto; }
  .reviews .h2, .reviews__head-col, .calc__head-col, .contacts__head { width: auto; }
  .services__note, .cases__note, .calc__note, .reviews__note { width: auto; max-width: 420px; }
  .services__row { flex-wrap: wrap; }
  .process__zone { height: auto; display: flex; flex-wrap: wrap; gap: 24px; }
  .pcard { position: static; }
  .process__line { display: none; }
  .process__head .h2 { width: auto; }
  .geo__glass { padding: 4px 0 16px; }
  .footer__in, .footer__hr, .footer__bottom { width: auto; left: 24px; right: 24px; transform: none; }
  .footer__in { flex-wrap: wrap; gap: 40px; }
  .footer { height: auto; position: static; padding-bottom: 24px; }
  .footer__in, .footer__hr, .footer__bottom { position: static; margin: 0 24px; }
  .footer__in { padding-top: 40px; }
  .footer__bottom { flex-wrap: wrap; gap: 16px; padding-top: 20px; }
  .footer__hr { margin-top: 32px; }
  .footer__copy { width: auto; }
  .cases, .reviews, .tech { height: auto; padding-bottom: 47px; }
  .contacts__card { height: auto; }
  .contacts__in { position: static; padding: 28px 21px; flex-wrap: wrap; }
  .contacts__photo { width: 100%; height: 340px; } /* живая карта видна и на телефоне */
  .contacts__chip { flex-direction: column; align-items: stretch; gap: 10px; bottom: 30px; padding: 14px; }
  .contacts__chip .btn { width: 100%; }
  .ai__in { flex-direction: column; gap: 24px; }
  .partners__track { animation-duration: 30s; }
  .sec-head, .services__head, .cases__head, .tech__head, .blog__head, .calc__head, .reviews__head { flex-wrap: wrap; gap: 24px; }
  .tech__head-left, .blog__head-left, .services__head-left, .cases__head-left { flex-wrap: wrap; gap: 24px; width: auto; }
  .process__head .h2, .reviews__head-col, .calc__head-col { width: auto; }
}

/* Планшет: бургер-меню и стек героя */
@media (max-width: 1023px) {
  .calc__glass { grid-template-columns: minmax(0, 1fr); }
  .calc__side { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.7); }
  .calc__opts--types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: flex; margin-left: auto; flex-direction: column; gap: 5px; padding: 8px; }
  .header__burger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .header.is-menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-menu-open .header__burger span:nth-child(2) { opacity: 0; }
  .header.is-menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 68px 0 0; background: var(--white); z-index: 40;
    flex-direction: column; padding: 24px 16px; gap: 4px;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { font: 500 18px/2.4 var(--f-inter); color: var(--dark); border-bottom: 1px solid var(--border-blue); }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
  .hero { height: auto; }
  .hero__texts { position: static; width: auto; padding: 32px 20px 24px; }
  .hero__scene { display: none; }
  .hero__frames { position: relative; display: grid; }
  .hero__frame { position: relative; inset: auto; grid-area: 1 / 1; }
  .hero__frame::before { display: none; } /* картинок нет — подложка не нужна */
  .hero__ctrl { position: static; margin: 0 20px 28px; width: max-content; } /* текст листается и на телефоне */
  .hero__text { width: auto; height: auto; }
  .hero__btns { flex-wrap: wrap; gap: 12px; }
  .hero__feats { flex-wrap: wrap; }
  .process__zone { justify-content: center; }
  .contacts__card { height: auto; }
  .contacts__in { position: static; padding: 28px 21px; flex-wrap: wrap; }
  .contacts__left { width: 100%; }
  .contacts__grid { height: auto; width: 100%; }
  .contact-card { position: static; width: 100% !important; height: auto; margin-bottom: 12px; padding: 16px; }
  .contact-card__in { position: static; width: auto !important; }
  .contacts__form { position: static; width: 100%; height: auto; padding: 16px; }
  .contacts__form-in { position: static; flex-wrap: wrap; }
  .contacts__input { flex: 1 1 180px; width: auto; }
}

@media (max-width: 767px) {
  .calc__side, .calc__main { padding: 24px 20px; }
  .calc__sum { font-size: 38px; }
  .calc__form { grid-template-columns: 1fr; }
  .calc__send { width: 100%; }
  .calc__foot .btn { width: auto; flex: 1; }
  .copt--type { min-height: 140px; }
  .calc__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* на телефоне — два столбца */
  .calc__opts--wide { grid-template-columns: minmax(0, 1fr); }
  .copt { padding: 14px 30px 14px 12px; min-height: 56px; }
  .copt__t { font-size: 14px; line-height: 19px; }
  .copt__mark { right: 10px; top: 14px; width: 16px; height: 16px; }
  .copt.is-on .copt__mark { background-size: 11px; }
  .copt--type img { width: 104px; }
  .tech__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } /* 4 вкладки — два ряда */
  .tech__tabs .tab { width: auto; }
  .container { margin: 0 16px; }
  .header__burger { display: flex; margin-left: auto; flex-direction: column; gap: 5px; padding: 8px; }
  .header__burger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .header.is-menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-menu-open .header__burger span:nth-child(2) { opacity: 0; }
  .header.is-menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__logo { width: 160px; height: auto; }
  .header__logo img { height: auto; }
  .mobile-menu {
    position: fixed; inset: 68px 0 0; background: var(--white); z-index: 40;
    display: none; flex-direction: column; padding: 24px 16px; gap: 4px;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { font: 500 18px/2.4 var(--f-inter); color: var(--dark); border-bottom: 1px solid var(--border-blue); }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }

  .hero { height: auto; }
  .hero__texts { position: static; width: auto; padding: 32px 20px 24px; }
  .hero__scene { display: none; }
  .hero__frames { position: relative; display: grid; }
  .hero__frame { position: relative; inset: auto; grid-area: 1 / 1; }
  .hero__frame::before { display: none; } /* картинок нет — подложка не нужна */
  .hero__ctrl { position: static; margin: 0 20px 28px; width: max-content; } /* текст листается и на телефоне */
  .hero__title { font-size: 32px; line-height: 40px; }
  .hero__text { width: auto; }
  .hero__btns { flex-wrap: wrap; gap: 12px; }
  .hero__feats { flex-wrap: wrap; }
  .stats { height: auto; padding: 24px 19px; }
  .stats__in { flex-wrap: wrap; gap: 24px; }
  .stat { border-right: 0 !important; width: auto !important; }
  .stat__col { width: auto; }
  .h2 { font-size: 26px; line-height: 34px; }
  .hero-wrap { margin-top: 16px; }
  .scard, .ccard, .bcard, .tcard { width: 100%; max-width: 340px; margin: 0 auto; }
  .scard__text, .ccard__text, .bcard__text { width: calc(100% - 38px); }
  .ccard__media, .bcard__media { width: 100%; }
  .cases__row .ccard, .blog__row .bcard { margin: 0; }
  .rcard { width: 100% !important; height: auto; padding-bottom: 24px; }
  .rcard__stars, .rcard__quote, .rcard__author { position: static; margin: 20px 20px 0; width: auto; height: auto; }
  .rcard__role { white-space: normal; }
  .rcard__who { width: auto; min-width: 0; }
  .reviews__row { flex-direction: column; }
  .contacts__grid { height: auto; width: 100%; }
  .contact-card { position: static; width: 100% !important; height: auto; margin-bottom: 12px; padding: 16px; }
  .contact-card__in { position: static; width: auto !important; }
  .contacts__form { position: static; width: 100%; height: auto; padding: 16px; }
  .contacts__form-in { position: static; flex-wrap: wrap; }
  .contacts__input { width: 100%; }
  .contacts__left { width: 100%; }
  .footer { height: auto; }
  .footer__in { position: static; padding: 40px 16px 24px; flex-wrap: wrap; gap: 32px; }
  .footer__hr { position: static; margin: 0 16px; }
  .footer__bottom { position: static; padding: 20px 16px; flex-wrap: wrap; gap: 12px; }
  .footer__copy { width: auto; }
  .footer__legal { flex-wrap: wrap; gap: 16px; }
  .geo__head { height: auto; }
  .geo__head .sec-head__col { width: auto; }
  .tcard { max-width: 297px; }
  .process__head .h2 { width: auto; }
  .ai__card, .ai__visual { width: 100%; height: auto; }
  .ai__content { position: static; width: auto; padding: 24px; gap: 40px; }
  .ai__visual { aspect-ratio: 574 / 427; }
  .partners__track { gap: 8px; }
  .partners__track img { width: 160px; height: 83px; }
}
