/* ==========================================================================
   Engineering Services — Техническое обследование зданий и сооружений
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-cyrillic-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #B6312A;
  --red-600: #9E2822;
  --red-800: #6E1A16;
  --red-50: #FBEFEE;
  --ink: #141414;
  --ink-2: #3A3A3A;
  --muted: #6F6F6F;
  --line: #E6E3DF;
  --bg: #FFFFFF;
  --bg-soft: #F4F2EF;
  --bg-dark: #111111;
  --bg-dark-2: #1B1B1B;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1840px;
  --gutter: clamp(16px, 2.1vw, 40px);
  --header-h: clamp(68px, 5.2vw, 100px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 50px -24px rgba(20, 20, 20, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red);
}
.section--dark .eyebrow, .request-section .eyebrow { color: #E2554D; }
.h2 {
  font-size: clamp(28px, 3.4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.h2 em { font-style: normal; color: var(--red); }
.section--dark .h2 em, .request-section .h2 em { color: #E2554D; }
.h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; font-weight: 650; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); }
.section--dark .lead, .request-section .lead { color: rgba(255, 255, 255, .72); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 18px 60px; align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
/* надзаголовок — отдельной строкой сверху, заголовок и описание — в одной строке по центру друг друга */
.section-head > div:first-child { display: contents; }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px; border-radius: 12px;
  font-size: 16px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(182, 49, 42, .8); }
.btn--red:hover { background: var(--red-600); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f1efec; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { --h: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .35); }
.header__inner { height: 100%; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 32px); position: relative; }
.header__inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.header__logo { flex: none; }
.header__logo img { width: clamp(124px, 9.7vw, 186px); height: auto; }
.header__city { margin-left: clamp(0px, 3.2vw, 72px); }
.city-trigger--header { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(15px, .95vw, 18px); font-weight: 450; white-space: nowrap; }
.city-trigger--header svg { width: 16px; height: 16px; transition: transform .3s; }
.city-trigger--header[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__nav { display: flex; gap: clamp(14px, 1.65vw, 32px); margin-left: auto; }
.header__nav a { font-size: clamp(14px, .95vw, 18px); font-weight: 450; color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.header__nav a:hover { color: var(--red); }
.header__nav a:hover::after { transform: scaleX(1); }
.header__social { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 28px); margin-left: clamp(4px, 1.2vw, 24px); }
.header__social a { color: var(--red); display: grid; place-items: center; width: 28px; height: 28px; transition: transform .25s var(--ease), opacity .2s; }
.header__social a:hover { transform: translateY(-2px); opacity: .8; }
.header__social svg { width: 22px; height: 22px; }
.header__btn.btn { --h: clamp(46px, 3.1vw, 60px); min-width: clamp(150px, 13.9vw, 266px); padding: 0 24px; border-radius: 10px; font-size: clamp(15px, 1.04vw, 20px); font-weight: 500; box-shadow: none; }
.header__phone { display: none; font-weight: 650; font-size: 15px; white-space: nowrap; margin-left: auto; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--bg-soft); color: var(--ink);
  transition: background .25s, color .25s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--red); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a:not(.btn) { font-size: 26px; font-weight: 650; letter-spacing: -.01em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu__phone { margin-top: 22px; font-size: 22px; font-weight: 700; }

/* ---------- City switcher ---------- */
.city-wrap { position: relative; display: inline-block; }
.city-trigger { cursor: pointer; }
.city-pop {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 0;
  min-width: 250px; max-width: calc(100vw - 2 * var(--gutter)); padding: 8px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: 16px; font-weight: 450; letter-spacing: 0; text-transform: none; line-height: 1.3; color: var(--ink);
  display: none;
}
.city-pop.is-open { display: grid; animation: popIn .2s ease; }
@keyframes popIn { from { opacity: 0; } }
.city-pop button { text-align: left; padding: 11px 14px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.city-pop button:hover, .city-pop button.is-active { background: var(--red-50); color: var(--red); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
.hero__head { padding-top: clamp(30px, 5.2vw, 100px); padding-bottom: clamp(22px, 2.4vw, 46px); }
.hero__title {
  font-size: clamp(30px, 3.45vw, 72px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--red);
  max-width: 19em;
  text-wrap: balance;
}
.hero__city {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  text-decoration: underline; text-decoration-thickness: .065em; text-underline-offset: .11em;
  transition: opacity .2s;
}
.hero__city:hover { opacity: .8; }
.hero__title .city-pop { top: calc(100% + 14px); }

.hero__media {
  position: relative; flex: 1 0 auto; display: flex;
  min-height: clamp(540px, 37vw, 720px);
  color: #fff;
  background: #7b9bb8;
  overflow: hidden; isolation: isolate;
}
/* Фото — отдельным слоем, чтобы медленно приближать/отдалять его, не трогая текст (эффект Ken Burns) */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/photos/hero-building.webp") center 64% / cover no-repeat;
  transform-origin: 60% 55%;
  /* сначала «камера» отъезжает от фасада и поднимается, затем фото спокойно «дышит» */
  animation: heroIntro 5s cubic-bezier(.16, .7, .25, 1) both, heroZoom 18s ease-in-out 5s infinite alternate;
  will-change: transform;
}
@keyframes heroIntro {
  from { transform: scale(1.75) translate3d(7%, -17%, 0); }
  to   { transform: scale(1.02) translate3d(0, 0, 0); }
}
@keyframes heroZoom {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.2%, -1.6%, 0); }
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 22, 34, .66) 0%, rgba(14, 22, 34, .42) 34%, rgba(14, 22, 34, .08) 62%, rgba(14, 22, 34, 0) 75%),
    linear-gradient(180deg, rgba(14, 22, 34, .25) 0%, rgba(14, 22, 34, 0) 30%);
}
.hero__grid {
  --cw: 19.2%;
  --cg: clamp(10px, 1.05vw, 20px);
  position: relative; width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, var(--cw)));
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--cg);
  padding-top: clamp(22px, 1.85vw, 36px);
  padding-bottom: clamp(22px, 2.1vw, 40px);
}
.hero__lead {
  grid-column: 1 / 3; grid-row: 1;
  font-size: clamp(18px, 1.46vw, 30px); line-height: 1.28; font-weight: 400;
  max-width: 34em; padding-right: var(--cg);
  text-wrap: pretty;
  text-shadow: 0 1px 24px rgba(20, 40, 60, .25);
}
.hero__cta { grid-column: 1; grid-row: 2; margin-top: clamp(20px, 2.1vw, 40px); position: relative; z-index: 1; }
.btn--hero.btn {
  --h: clamp(56px, 4.55vw, 88px);
  min-width: clamp(240px, 23.2vw, 446px);
  border-radius: clamp(12px, 1.05vw, 20px);
  font-size: clamp(16px, 1.15vw, 22px); font-weight: 500;
}
.hero__stat-top { grid-column: 4; grid-row: 1 / 3; align-self: start; }
.hero__bottom {
  grid-column: 1 / -1; grid-row: 4;
  display: grid; grid-template-columns: subgrid;
  margin-top: clamp(24px, 2vw, 40px);
}
.hero__bottom .stat:nth-child(1) { grid-column: 2; }
.hero__bottom .stat:nth-child(2) { grid-column: 3; }
.hero__bottom .stat:nth-child(3) { grid-column: 4; }

.stat {
  container-type: inline-size;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(150px, 10.6vw, 204px);
  padding: clamp(14px, 1.05vw, 20px);
  background: rgba(34, 24, 24, .5);
  backdrop-filter: blur(26px) saturate(1.1); -webkit-backdrop-filter: blur(26px) saturate(1.1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.stat--light { background: rgba(176, 178, 198, .42); }
.stat__num { font-size: min(21cqi, 84px); line-height: .95; font-weight: 400; letter-spacing: -.035em; white-space: nowrap; }
.stat__num sup { font-size: .42em; vertical-align: top; position: relative; top: .05em; margin-left: .04em; }
.stat__label { font-size: clamp(13px, 5.6cqi, 20px); line-height: 1.2; color: #fff; max-width: 17em; }

@media (min-width: 1081px) and (max-height: 860px) {
  .hero__head { padding-top: clamp(24px, 3.4vw, 64px); padding-bottom: clamp(18px, 1.8vw, 32px); }
  .hero__media { min-height: 0; }
  .hero__cta { margin-top: clamp(16px, 1.6vw, 28px); }
  .btn--hero.btn { --h: clamp(52px, 4vw, 72px); }
  .stat { min-height: clamp(132px, 9.4vw, 180px); }
  .hero__bottom { margin-top: 18px; }
}
@media (max-width: 1240px) {
  .header__social { display: none; }
}
@media (min-width: 1081px) and (max-width: 1440px) {
  .scen .scen__panel.is-active { grid-template-columns: minmax(0, 1fr); }
  .scen .scen__media { order: -1; min-height: 0; aspect-ratio: 16 / 7; }
  .scen .scen__body { gap: 18px; }
  .scen .scen__tab { font-size: 16px; padding: 13px 16px; }
  .scen .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
}
@media (max-width: 1080px) {
  .header__city, .header__nav, .header__btn { display: none !important; }
  .header__phone { display: block; }
  .hero { min-height: 0; }
  .hero__media { min-height: 0; }
  .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; row-gap: var(--cg); padding-top: 28px; padding-bottom: 28px; }
  .hero__lead { grid-column: 1 / -1; grid-row: auto; max-width: 30em; padding-right: 0; }
  .hero__cta { grid-column: 1 / -1; grid-row: auto; margin: 6px 0 clamp(60px, 14vw, 140px); }
  .hero__stat-top { grid-column: 1; grid-row: auto; }
  .hero__bottom { display: contents; }
  .hero__bottom .stat:nth-child(n) { grid-column: auto; }
  .stat { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .hero__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { min-height: 140px; }
}
@media (max-width: 760px) {
  .hero__head { padding-top: 26px; }
  .hero__title { font-size: clamp(25px, 7.3vw, 38px); line-height: 1.08; letter-spacing: -.015em; max-width: none; }
  .hero__title .city-wrap { display: block; margin-top: .04em; }
  .hero__bg { background-size: auto 128%; background-position: 50% 92%; transform-origin: 50% 60%; }
  .hero__media::before { background: linear-gradient(180deg, rgba(14, 22, 34, .6) 0%, rgba(14, 22, 34, .35) 45%, rgba(14, 22, 34, .15) 100%); }
  .hero__cta .btn { width: 100%; min-width: 0; }
  .stat { min-height: 120px; }
  .stat__label { font-size: clamp(12px, 7.5cqi, 15px); }
}
@media (max-width: 380px) {
  .header__phone { font-size: 13px; }
}

/* ---------- Hero: вступительная анимация ---------- */
.hero__lead            { animation: introUp .9s var(--ease) .7s both; }
.hero__cta             { animation: introUp .9s var(--ease) 1.05s both; }
.hero__stat-top        { animation: introCard 1s var(--ease) 2s both; }
.hero__bottom .stat:nth-child(1) { animation: introCard 1s var(--ease) 2.2s both; }
.hero__bottom .stat:nth-child(2) { animation: introCard 1s var(--ease) 2.35s both; }
.hero__bottom .stat:nth-child(3) { animation: introCard 1s var(--ease) 2.5s both; }
@keyframes introUp   { from { opacity: 0; transform: translate3d(-24px, 0, 0); } }
@keyframes introCard { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
/* пока фото не загрузилось — всё на паузе (класс .js ставится скриптом, без JS анимация идёт сразу) */
.js .hero:not(.is-ready) .hero__bg,
.js .hero:not(.is-ready) .hero__lead,
.js .hero:not(.is-ready) .hero__cta,
.js .hero:not(.is-ready) .stat { animation-play-state: paused; }

/* ---------- Clients marquee ---------- */
.clients { padding: clamp(36px, 4vw, 64px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.clients__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.4vw, 36px); }
.clients__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.clients__note { font-size: 15px; color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: clamp(10px, 1.2vw, 18px); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo { flex: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: clamp(130px, 11vw, 190px); height: clamp(56px, 4.6vw, 80px); margin-right: clamp(12px, 1.4vw, 26px); padding: 8px 14px; border-radius: 12px; background: #fff; }
.logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .72; mix-blend-mode: multiply; display: block; transition: filter .3s, opacity .3s; }
.logo:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why (3 reasons) ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-soft);
  padding: clamp(22px, 2vw, 34px) clamp(20px, 2vw, 32px) clamp(24px, 2.2vw, 36px);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card__num { font-size: 14px; font-weight: 600; color: var(--red); }
.why-card__img { width: 100%; height: clamp(170px, 15vw, 270px); margin: 14px 0 22px; display: flex; align-items: center; justify-content: center; }
.why-card__img img { max-height: 100%; width: auto; max-width: 70%; object-fit: contain; }
.why-card__img img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18)); transition: transform .7s var(--ease); }
.why-card:hover .why-card__img img { transform: translateY(-8px) rotate(-3deg); }
.why-card p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.why-card--red { background: var(--red); color: #fff; }
.why-card--red .why-card__num { color: rgba(255, 255, 255, .7); }
.why-card--red p { color: rgba(255, 255, 255, .85); }

.definition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.definition__text { border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.definition__text p + p { margin-top: 14px; }
.definition__img { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; }
.definition__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scenarios ---------- */
.scen { display: grid; grid-template-columns: clamp(270px, 22vw, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.scen__nav { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 22px; }
.scen__group-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.scen__tab {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-radius: 12px;
  font-size: 17px; font-weight: 550; line-height: 1.25;
  background: #fff; border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.scen__tab + .scen__tab { margin-top: 6px; }
.scen__tab svg { width: 18px; height: 18px; flex: none; opacity: .35; transition: opacity .25s, transform .3s var(--ease); }
.scen__tab:hover { border-color: #cfcac4; }
.scen__tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.scen__tab.is-active svg { opacity: 1; transform: translateX(3px); }

.scen__panel { display: none; border-radius: var(--radius-lg); background: #fff; overflow: hidden; border: 1px solid var(--line); }
.scen__panel.is-active { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); animation: fadeUp .5s var(--ease); }
.scen__body { padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.scen__body .h3 { font-size: clamp(24px, 2.2vw, 34px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1.04; }
.scen__body > p { color: var(--ink-2); }
.scen__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.checklist { display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.4; }
.checklist li svg { width: 22px; height: 22px; color: var(--red); margin-top: 0; }
.scen__result { border-radius: 14px; background: var(--red-50); padding: 18px 20px; }
.scen__result .scen__label { color: var(--red); margin-bottom: 6px; }
.scen__result p { font-weight: 550; line-height: 1.4; }
.scen__media { position: relative; min-height: 420px; background: #ddd; }
.scen__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scen__case {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 16px 18px; border-radius: 14px; color: #fff;
  background: rgba(17, 17, 17, .5); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 14px; line-height: 1.4;
}
.scen__case b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); font-weight: 600; margin-bottom: 4px; }
.scen__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Advantages (dark) ---------- */
.adv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adv-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 300px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-dark-2);
  isolation: isolate;
}
.adv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .85; transition: transform 1s var(--ease), opacity .5s, filter .5s; filter: grayscale(.2); }
.adv-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 17, 17, .1) 0%, rgba(17, 17, 17, .2) 35%, rgba(17, 17, 17, .9) 100%); }
.adv-card:hover img { transform: scale(1.06); opacity: 1; filter: none; }
.adv-card__num { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.adv-card h3 { font-size: 24px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 8px; }
.adv-card p { font-size: 15px; color: rgba(255, 255, 255, .7); line-height: 1.45; }
.adv__why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.adv__why-item { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.adv__why-item svg { width: 28px; height: 28px; flex: none; color: #E2554D; }
.adv__why-item b { display: block; font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.adv__why-item span { font-size: 15px; color: rgba(255, 255, 255, .65); }

/* ---------- Methods / scope ---------- */
.scope__tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg-soft); margin-bottom: 28px; flex-wrap: wrap; }
.scope__tab { padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s; }
.scope__tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .3); }
.scope__panel { display: none; }
.scope__panel.is-active { display: block; animation: fadeUp .5s var(--ease); }

.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stage-card { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); display: flex; flex-direction: column; }
.stage-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.stage-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stage-card:hover .stage-card__img img { transform: scale(1.06); }
.stage-card__body { padding: 18px 18px 22px; }
.stage-card h3 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
.stage-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method { border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 210px; transition: border-color .3s, background .3s; }
.method:hover { border-color: var(--red); background: var(--red-50); }
.method__tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); }
.method__tag--d { background: var(--red); color: #fff; }
.method h3 { font-size: 19px; font-weight: 650; line-height: 1.25; }
.method p { font-size: 15px; color: var(--muted); margin-top: auto; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.calc__intro { border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.calc__intro .h3 { font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; letter-spacing: -.02em; }
.calc__intro p { color: rgba(255, 255, 255, .7); margin-top: 14px; }
.calc__soft { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__soft span { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: 15px; }
.calc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__item { border-radius: var(--radius); background: var(--bg-soft); padding: 24px; }
.calc__item b { display: block; font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.calc__item p { font-size: 15px; color: var(--ink-2); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px); opacity: .5; }
.process__step { position: relative; padding-right: 18px; }
.process__dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--red); color: var(--red);
  font-weight: 700; font-size: 18px; margin-bottom: 22px; position: relative; z-index: 1;
  transition: background .3s, color .3s;
}
.process__step:hover .process__dot, .process__step.is-final .process__dot { background: var(--red); color: #fff; }
.process__step h3 { font-size: 17px; font-weight: 650; line-height: 1.25; margin-bottom: 8px; }
.process__step p { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

.deliver { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.deliver__card { border-radius: var(--radius-lg); background: var(--red); color: #fff; padding: clamp(28px, 3vw, 44px); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.deliver__card .h3 { font-size: clamp(26px, 2.4vw, 36px); text-transform: uppercase; letter-spacing: -.02em; max-width: 12ch; line-height: 1.02; }
.deliver__card p { color: rgba(255, 255, 255, .85); max-width: 32ch; margin-top: 14px; }
.deliver__card img { position: absolute; right: -20px; bottom: -30px; width: 46%; max-width: 280px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.deliver__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliver__item { border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.deliver__item i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--red); }
.deliver__item b { font-size: 17px; font-weight: 650; line-height: 1.25; }
.deliver__item span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- CTA banner ---------- */
.banner { border-radius: var(--radius-lg); overflow: hidden; position: relative; color: #fff; background: var(--red) url("../img/photos/night-crane.webp") right center / cover no-repeat; isolation: isolate; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--red) 0%, rgba(182, 49, 42, .94) 42%, rgba(110, 26, 22, .35) 100%); }
.banner__inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(130px, 13vw, 210px) minmax(0, 300px); gap: clamp(24px, 3vw, 48px); padding: clamp(30px, 4vw, 60px); align-items: center; }
.banner .h2 { font-size: clamp(28px, 3.2vw, 46px); }
.banner p { color: rgba(255, 255, 255, .85); margin-top: 16px; max-width: 46ch; }
.banner .banner__sub { margin-top: 10px; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .88); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.banner__icon { width: 100%; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .38)); animation: iconFloat 6s ease-in-out infinite; }
@keyframes iconFloat { 50% { transform: rotate(-3deg) translateY(-10px); } }
@media (max-width: 1080px) { .banner__icon { display: none; } }
.field {
  width: 100%; height: 58px; border-radius: 12px; padding: 0 18px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .08); }
.field.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(182, 49, 42, .12); }
textarea.field { height: 110px; padding-top: 16px; resize: vertical; }
.field--glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.field--glass::placeholder { color: rgba(255, 255, 255, .75); }
.field--glass:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.consent { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.consent a { text-decoration: underline; }
.banner .consent { color: rgba(255, 255, 255, .7); }
.form-ok { display: none; text-align: center; padding: 20px; }
.form-ok b { display: block; font-size: 22px; margin-bottom: 6px; }
.is-sent .form-ok { display: block; }
.is-sent .form-fields { display: none; }

/* ---------- Cases ---------- */
#cases .section-head { grid-template-columns: 1fr auto; }
@media (max-width: 1440px) {
  #cases .section-head { grid-template-columns: 1fr; }
  #cases .cases__filters { justify-content: flex-start; }
}
.cases__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 550; background: #fff; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case[hidden] { display: none; }
.case__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .case__img img { transform: scale(1.05); }
.case__city { position: absolute; top: 14px; left: 14px; padding: 7px 12px; border-radius: 8px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 600; }
.case__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__title { font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.case__client { font-size: 13.5px; color: var(--muted); }
.case__result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.case__result svg { width: 22px; height: 22px; color: var(--red); }
.cases__more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Press ---------- */
.press-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  border-radius: var(--radius-lg); background: var(--bg-dark); color: #fff;
}
.press-card__main { padding: clamp(28px, 4vw, 72px); display: flex; flex-direction: column; align-items: flex-start; }
.press-card .eyebrow { color: #E2554D; margin-bottom: clamp(20px, 2.4vw, 36px); }
.press-card__brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.press-card__forbes { font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 4.6vw, 84px); font-weight: 700; line-height: .9; letter-spacing: -.02em; }
.press-card__country { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.press-card__meta { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .5); }
.press-card__title { margin-top: clamp(24px, 3vw, 44px); font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; font-weight: 650; letter-spacing: -.02em; }
.press-card__lead { margin-top: 14px; max-width: 34em; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .72); text-wrap: pretty; }
.press-card .btn { margin-top: clamp(24px, 2.6vw, 40px); }
.press-card__quote {
  margin: 0; position: relative;
  padding: clamp(28px, 4vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 2.4vw, 36px);
  background: linear-gradient(160deg, #BD352D 0%, #94241F 60%, #6E1A16 100%);
}
.press-card__quote::before {
  content: "\201C"; position: absolute; top: clamp(4px, 1vw, 20px); right: clamp(16px, 3vw, 48px);
  font-family: Georgia, serif; font-size: clamp(140px, 16vw, 280px); line-height: 1; color: rgba(255, 255, 255, .12); pointer-events: none;
}
.press-card__quote p { position: relative; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 2.6vw, 46px); line-height: 1.18; font-style: italic; letter-spacing: -.01em; text-wrap: balance; }
.press-card__quote footer { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); }
.press-card__quote footer div { display: flex; flex-direction: column; gap: 2px; }
.press-card__avatar { width: clamp(52px, 4.4vw, 72px); height: clamp(52px, 4.4vw, 72px); flex: none; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.press-card__quote footer b { font-size: 17px; font-weight: 650; }
.press-card__quote footer span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.press { padding-bottom: clamp(48px, 6vw, 96px); }

/* ---------- Geo ---------- */
.geo-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); color: #fff;
  padding: clamp(28px, 4vw, 72px);
  background: linear-gradient(160deg, #BD352D 0%, #94241F 55%, #5E1512 100%);
}
.geo-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 75% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 75% 30%, #000 30%, transparent 85%);
}
.geo-panel .eyebrow { color: rgba(255, 255, 255, .8); margin-bottom: 18px; }
.geo-panel .h2 { max-width: 13em; }
.geo-panel__sub { margin-top: 12px; font-size: clamp(20px, 1.9vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .82); }
.geo-panel .lead { color: rgba(255, 255, 255, .78); margin-top: 20px; max-width: 34em; }
.geo-panel__head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.geo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 3vw, 48px); }
.geo-stat { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 14px; }
.geo-stat b { display: block; font-size: clamp(36px, 3.6vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.geo-stat span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .75); }

.geo-map { display: block; width: 100%; height: auto; overflow: visible; }
.geo-map__country { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .3s; }
.geo-map__country:hover { fill: rgba(255, 255, 255, .16); }
.geo-map__country-label { fill: rgba(255, 255, 255, .5); font-size: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.geo-map__dot { fill: rgba(255, 255, 255, .7); }
.geo-map, .geo-map * { outline: none; -webkit-tap-highlight-color: transparent; }
.geo-map__office { cursor: pointer; }
.geo-office { -webkit-tap-highlight-color: transparent; }
.geo-map__pin { fill: #fff; stroke: var(--red); stroke-width: 3; transition: r .3s var(--ease); }
.geo-map__pulse { fill: rgba(255, 255, 255, .5); transform-box: fill-box; transform-origin: center; animation: geoPulse 2.6s ease-out infinite; }
.geo-map__office text { fill: #fff; font-size: 24px; font-weight: 650; paint-order: stroke; stroke: rgba(110, 26, 22, .55); stroke-width: 5px; stroke-linejoin: round; transition: font-size .3s; }
.geo-map__office.is-active .geo-map__pin { r: 12; }
.geo-map__office.is-active text { font-size: 30px; }
@keyframes geoPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

.geo-offices {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(32px, 4vw, 64px);
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); overflow: hidden;
}
.geo-office { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; background: rgba(94, 21, 18, .55); cursor: default; outline: none; transition: background .25s; }
.geo-office:hover, .geo-office:focus-visible, .geo-office.is-active { background: rgba(255, 255, 255, .12); }
.geo-office__country { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.geo-office__city { font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin-top: 4px; }
.geo-office__addr { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.geo-office__phone { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: #fff; }
.geo-office__phone:hover { text-decoration: underline; }
.geo-office--cta { background: #fff; color: var(--ink); }
.geo-office--cta:hover { background: #fff; }
.geo-office--cta .geo-office__country { color: var(--red); }
.geo-office--cta .geo-office__addr { color: var(--ink-2); }
.geo-office__link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--red); }
.geo-office__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.geo-office__link:hover svg { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__aside .lead { margin-top: 18px; }
.faq__aside .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.faq__icon { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--bg-soft); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq__item.is-open .faq__icon { background: var(--red); color: #fff; transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 26px 0; color: var(--ink-2); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Request (финальная форма) ---------- */
.request-section { background: var(--bg-dark); color: #fff; overflow: hidden; }
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(30px, 6vw, 110px); align-items: center; }
.request > * { min-width: 0; }
.request__aside .eyebrow { margin-bottom: 18px; }
.request__aside .lead { margin-top: 20px; max-width: 32em; }
.request__perks { margin-top: 32px; display: grid; gap: 14px; }
.request__perks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: rgba(255, 255, 255, .85); }
.request__perks svg { width: 26px; height: 26px; color: #E2554D; }
.request__card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 44px); }
.request__card .form-fields, .modal__body .form-fields { display: grid; gap: 10px; }
.request__title { font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -.015em; margin-bottom: 8px; }
.request__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.request__or::before, .request__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1fbd5a; }
.form-ok img { width: 110px; margin: 0 auto 14px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .15)); }
.form-ok { color: var(--ink-2); }
.form-ok b { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #fff; padding-top: clamp(60px, 7vw, 100px); border-top: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { width: 170px; filter: brightness(0) invert(1); }
.footer__about { margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .6); max-width: 32ch; }
.footer__title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; font-size: 15.5px; }
.footer__links a { color: rgba(255, 255, 255, .85); transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__phone { font-size: clamp(24px, 2.2vw, 32px); font-weight: 650; letter-spacing: -.02em; }
.footer__mail { display: block; margin-top: 6px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social .icon-btn { background: rgba(255, 255, 255, .08); color: #fff; }
.footer__social .icon-btn:hover { background: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 30px 0; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: rgba(255, 255, 255, .45); }
@media (min-width: 761px) { .footer__bottom { padding-right: 96px; } } /* место под плавающую кнопку WhatsApp */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__legal a:hover { color: #fff; }
.cr { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .45); }
.cr-badge { display: inline-flex; align-items: center; gap: 9px; background: #050605; color: #eef0ea; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 7px 14px 7px 12px; font: 600 13.5px/1 "Inter Tight", system-ui, -apple-system, sans-serif; letter-spacing: -.01em; transition: transform .2s, box-shadow .2s; }
.cr-logo { font-weight: 800; font-size: 14px; letter-spacing: -.03em; color: #eef0ea; }
.cr-logo i { font-style: normal; color: #bdfe02; }
.cr:hover .cr-badge { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(189, 254, 2, .55); }

/* ---------- Floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.mobile-cta { display: none; }

/* ---------- Modal / popup ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__box {
  position: relative; width: min(100%, 940px); max-height: calc(100vh - 32px); overflow: hidden auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff; border-radius: var(--radius-lg);
  transform: translateY(24px) scale(.98); transition: transform .45s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; transition: background .2s; }
.modal__close:hover { background: #e9e6e2; }
.modal__close svg { width: 18px; height: 18px; }
.modal__media {
  position: relative; min-height: 520px; color: #fff; display: flex; align-items: flex-end;
  background: #3b4f66 url("../img/photos/engineer.webp") 62% center / cover no-repeat;
}
.modal__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 26, .15) 0%, rgba(14, 18, 26, .35) 45%, rgba(14, 18, 26, .9) 100%); }
.modal__media-text { position: relative; padding: clamp(24px, 3vw, 36px); }
.modal__badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.modal__media-title { margin-top: 14px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.modal__media ul { margin-top: 18px; display: grid; gap: 8px; }
.modal__media li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.modal__media li svg { width: 18px; height: 18px; flex: none; color: #fff; background: var(--red); border-radius: 50%; padding: 3px; }
.modal__body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; min-width: 0; }
.modal__body > form { margin: auto 0; } /* центрирует, но не выталкивает верх за край, если формы много */
.modal__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; padding-right: 36px; }
.modal__sub { color: var(--ink-2); margin: 6px 0 14px; }
@media (max-height: 640px) and (min-width: 761px) {
  .modal__media { min-height: 0; }
  .modal__media ul { display: none; }
  .modal__body { padding: 24px 32px; }
  .modal__sub { margin-bottom: 8px; }
}
@media (max-width: 760px) {
  .modal { padding: 12px; align-items: center; }
  .modal__box { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; }
  @supports (height: 100dvh) { .modal__box { max-height: calc(100dvh - 24px); } }
  .modal__media { flex: none; min-height: 0; height: clamp(120px, 26vh, 200px); aspect-ratio: auto; background-position: 62% 28%; }
  .modal__media ul { display: none; }
  .modal__media-text { padding: 16px 18px; }
  .modal__badge { padding: 5px 10px; font-size: 11px; }
  .modal__media-title { margin-top: 8px; font-size: 20px; }
  .modal__close { top: 10px; right: 10px; width: 38px; height: 38px; background: rgba(255, 255, 255, .92); }
  .modal__body { flex: none; padding: 18px 18px 20px; }
  .modal__title { font-size: 20px; padding-right: 0; }
  .modal__sub { font-size: 14.5px; line-height: 1.45; margin: 6px 0 10px; }
  .modal__body .form-fields { gap: 8px; }
  .modal__body .field { height: 50px; font-size: 16px; }
  .modal__body .btn { --h: 50px; font-size: 15.5px; padding: 0 14px; gap: 10px; white-space: nowrap; }
  .modal__body .consent { font-size: 11.5px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .modal__media { height: 92px; }
  .modal__badge { display: none; }
  .modal__media-title { margin-top: 0; font-size: 18px; }
  .modal__sub { display: none; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .process { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .burger { display: block; }
  .section-head { grid-template-columns: 1fr; }
  .cases__filters { justify-content: flex-start; }
  .geo-panel__head { grid-template-columns: 1fr; }
  .press-card__main, .press-card__quote { padding: clamp(24px, 3.4vw, 40px); }
  .press-card__title { font-size: clamp(24px, 2.8vw, 30px); }
  .press-card__quote p { font-size: clamp(22px, 2.7vw, 28px); }
  .press-card .btn { padding: 0 20px; }
  .geo-panel__map { max-width: 760px; }
  .geo-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cases .section-head { grid-template-columns: 1fr; }
  .scen { grid-template-columns: 1fr; }
  .scen__nav { position: static; flex-direction: row; overflow-x: auto; gap: 18px; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .scen__nav::-webkit-scrollbar { display: none; }
  .scen__group { flex: none; }
  .scen__group > div { display: flex; gap: 6px; }
  .scen__tab { white-space: nowrap; width: auto; padding: 12px 16px; font-size: 15px; }
  .scen__tab + .scen__tab { margin-top: 0; }
  .scen__tab svg { display: none; }
  .adv__grid, .cases__grid, .methods { grid-template-columns: 1fr 1fr; }
  .adv__why { grid-template-columns: 1fr; }
  .calc, .deliver, .faq, .request, .banner__inner, .definition { grid-template-columns: 1fr; }
  .banner__actions { justify-content: flex-start; }
  .faq { gap: 30px; }
  .faq__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .why__grid { grid-template-columns: 1fr; }
  .why-card__img { height: 170px; }
  .scen__panel.is-active { grid-template-columns: 1fr; }
  .scen__media { min-height: 260px; order: -1; }
  .scen__cta .btn { flex: 1 1 100%; }
  .adv__grid, .cases__grid, .methods, .calc__list, .deliver__list { grid-template-columns: 1fr; }
  .adv-card { min-height: 230px; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stages .stage-card:last-child { grid-column: span 2; }
  .stage-card__img { aspect-ratio: 16 / 10; }
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process__step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 0 0 26px; }
  .process__step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--red) 0 6px, transparent 6px 11px); opacity: .5; }
  .process__step:last-child::before { display: none; }
  .process__dot { grid-row: span 2; margin: 0; }
  .process__step h3 { margin-top: 4px; }
  .deliver__card { min-height: 340px; }
  .press-card { grid-template-columns: 1fr; }
  .press-card__quote::before { font-size: 110px; top: 14px; right: 18px; }
  .press-card__quote p { padding-top: 52px; font-size: clamp(22px, 5.6vw, 30px); }
  .deliver__card img { width: 120px; right: -10px; bottom: -24px; }
  .cases__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .cases__filters::-webkit-scrollbar { display: none; }
  .scope__tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .scope__tabs::-webkit-scrollbar { display: none; }
  .scope__tab { flex: none; white-space: nowrap; padding: 11px 16px; font-size: 14.5px; }
  .chip { flex: none; padding: 9px 16px; font-size: 14px; }
  .faq__a p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .wa-float { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 52px 52px 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { --h: 52px; padding: 0 12px; font-size: 15px; }
  .mobile-cta .btn--outline, .mobile-cta .btn--wa { padding: 0; }
  .mobile-cta .btn svg { width: 22px; height: 22px; }
  .btn--wa { background: #25D366; color: #fff; }
}

/* ---------- Узкие телефоны ---------- */
@media (max-width: 480px) {
  .btn { padding-left: 18px; padding-right: 18px; gap: 10px; font-size: 15px; }
}
@media (max-width: 400px) {
  .btn svg:has(use[href="#i-arrow"]) { display: none; }
  .definition__text, .deliver__card, .request__card { padding: 22px 20px; }
  .banner__inner { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; height: auto; min-height: var(--h); padding-top: 12px; padding-bottom: 12px; }
  .h2 { font-size: clamp(25px, 8vw, 34px); overflow-wrap: break-word; }
  .hero__title { overflow-wrap: break-word; }
  .scen__body { padding: 22px 18px; }
  .scen__body .h3 { font-size: 22px; }
  .stages { grid-template-columns: 1fr; }
  .stages .stage-card:last-child { grid-column: auto; }
  .definition__text .btn, .deliver__card .btn, .faq__aside .btn { width: 100%; }
  .deliver__card img { width: 80px; max-width: none; top: 18px; right: 16px; bottom: auto; transform: rotate(8deg); }
  .deliver__card .h3 { max-width: calc(100% - 90px); }
  .deliver__card { min-height: 0; gap: 24px; }
  .request__card { padding: 22px 18px; }
  .banner__actions .btn { width: 100%; }
  .geo-stats { grid-template-columns: 1fr; gap: 0; }
  .geo-offices { grid-template-columns: 1fr; }
  .press-card .btn { width: 100%; }
  .geo-office { padding: 14px 16px 16px; gap: 2px; }
  .geo-office__city { font-size: 17px; margin-top: 2px; }
  .geo-office__phone { padding-top: 6px; }
  .geo-panel { padding: 26px 18px; }
  .geo-stat { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; }
  .geo-stat span { margin-top: 0; }
  .geo-map__office text, .geo-map__country-label { display: none; }
  .mobile-cta .btn--red { font-size: 14px; padding: 0 8px; white-space: nowrap; }

}

