/* АТМ АЛЬЯНС — фирменный стиль по Guidebook 2025:
   тёмно-голубой #022F66, сигнальный синий #007DC5, бледно-карминный #DB323E, белый; шрифт Noto Sans; кубы как стилеобразующий элемент. */
:root {
  --navy: #022F66;
  --navy-2: #03244d;
  --navy-3: #011a3a;
  --blue: #007DC5;
  --blue-soft: #e6f2fa;
  --red: #DB323E;
  --ink: #0c1b30;
  --text: #2b3a4f;
  --muted: #5d6c81;
  --line: #dfe7f1;
  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(2, 47, 102, .06), 0 8px 24px rgba(2, 47, 102, .08);
  --shadow-lg: 0 2px 6px rgba(2, 47, 102, .08), 0 24px 60px rgba(2, 47, 102, .16);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--b) 35%, transparent); white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--b) 45%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--blue { --b: var(--blue); }
.btn--navy { --b: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { color: var(--navy); background: var(--bg-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blue); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg, .card:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(2,47,102,.06); }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 52px; width: auto; }
.logo .logo--white { display: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15.5px; padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); }
.header__tools { display: flex; align-items: center; gap: 12px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.header__phone small { font-weight: 400; color: var(--muted); font-size: 12px; }
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; color: var(--ink); cursor: pointer; }
.lang__btn svg { width: 16px; height: 16px; }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); }
.lang.open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.lang__list a:hover { background: var(--bg-soft); }
.lang__list a[aria-current="true"] { color: var(--blue); font-weight: 600; }
.lang__list span { color: var(--muted); font-size: 13px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Прозрачная шапка поверх тёмного hero */
.has-hero .header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .header:not(.is-scrolled) .logo--color { display: none; }
.has-hero .header:not(.is-scrolled) .logo--white { display: block; }
.has-hero .header:not(.is-scrolled) .nav a,
.has-hero .header:not(.is-scrolled) .header__phone { color: #fff; }
.has-hero .header:not(.is-scrolled) .header__phone small { color: rgba(255,255,255,.7); }
.has-hero .header:not(.is-scrolled) .nav a:hover { background: rgba(255,255,255,.12); }
.has-hero .header:not(.is-scrolled) .lang__btn { color: #fff; border-color: rgba(255,255,255,.35); }
.has-hero .header:not(.is-scrolled) .burger { background: transparent; border-color: rgba(255,255,255,.35); }
.has-hero .header:not(.is-scrolled) .burger span, .has-hero .header:not(.is-scrolled) .burger span::before, .has-hero .header:not(.is-scrolled) .burger span::after { background: #fff; }
.has-hero .nav-open .header .burger span { background: transparent !important; }
.has-hero main { margin-top: calc(var(--header-h) * -1); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-3); overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(48px, 6vw, 80px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 30%, rgba(0,125,197,.45), transparent 70%),
  linear-gradient(100deg, rgba(1,26,58,.96) 0%, rgba(2,47,102,.82) 45%, rgba(2,47,102,.35) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.kicker::before { content: "//"; letter-spacing: 0; font-weight: 800; }
.hero .kicker { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero .kicker::before { color: var(--red); }
.hero h1 { color: #fff; max-width: 14em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #4fb6f0, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.82); max-width: 36em; margin: 18px 0 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 34px; font-weight: 600; color: rgba(255,255,255,.9); }
.hero__tags li { display: flex; align-items: center; gap: 10px; }
.hero__tags li::before { content: ""; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero__card { position: absolute; background: rgba(255,255,255,.96); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); display: grid; place-items: center; padding: 18px; animation: float 7s ease-in-out infinite; }
.hero__card img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.hero__card--a { left: 4%; top: 0; width: 46%; height: 62%; }
.hero__card--b { right: 0; top: 12%; width: 44%; height: 42%; animation-delay: -2s; }
.hero__card--c { right: 6%; bottom: 0; width: 50%; height: 40%; animation-delay: -4s; }
.hero__card--d { left: 0; bottom: 4%; width: 40%; height: 30%; animation-delay: -1s; background: var(--red); color: #fff; place-items: start; align-content: end; padding: 22px; }
.hero__card--d strong { font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 800; }
.hero__card--d span { font-size: 14px; opacity: .9; line-height: 1.3; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.stat { background: rgba(2,36,77,.55); padding: 26px 26px 24px; }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.stat strong sup { color: var(--red); font-size: .55em; vertical-align: top; margin-left: 2px; }
.stat > span { display: block; margin-top: 10px; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.35; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.82); overflow: hidden; isolation: isolate; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.head > div { max-width: 760px; }
.head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.section--navy .head p { color: rgba(255,255,255,.72); }
.cubes-deco { position: absolute; z-index: -1; opacity: .08; width: 520px; right: -120px; top: -60px; pointer-events: none; }
.section--soft .cubes-deco, .section:not(.section--navy) .cubes-deco { opacity: .05; }

/* Направления — bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dir { position: relative; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); color: var(--text); }
.dir:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.dir__img { position: relative; aspect-ratio: 900 / 760; margin: -8px -8px 18px; background: linear-gradient(160deg, var(--blue-soft), #fff); border-radius: 14px; display: grid; place-items: center; }
.dir__img img { width: 88%; }
.dir__num { position: absolute; top: 20px; right: 22px; font-weight: 800; font-size: 14px; color: var(--blue); opacity: .6; }
.dir h3 { margin-bottom: 8px; }
.dir p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Карточки продуктов */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.card__img { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(90% 90% at 50% 100%, var(--blue-soft), #f8fbfe 70%); }
.card__img img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; transition: transform .5s var(--ease); filter: drop-shadow(0 14px 18px rgba(2,47,102,.18)); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.card .link-arrow { margin-top: auto; }
.card[hidden] { display: none; }

/* Услуги */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { position: relative; display: grid; grid-template-columns: 1fr 42%; min-height: 260px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.svc:first-child { grid-column: span 2; grid-template-columns: 1fr 1.1fr; min-height: 340px; }
.svc__body { padding: 30px; display: flex; flex-direction: column; }
.svc__num { font-weight: 800; color: var(--red); font-size: 15px; margin-bottom: 14px; }
.svc h3 { font-size: clamp(20px, 1.9vw, 26px); }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc .link-arrow { margin-top: auto; }
.svc__img { position: relative; }
.svc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.04); }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.why__item { background: var(--navy); padding: 34px 30px; transition: background .3s; }
.why__item:hover { background: #033a7d; }
.why__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(0,125,197,.25); display: grid; place-items: center; margin-bottom: 22px; color: #6cc3f5; }
.why__icon svg { width: 26px; height: 26px; }
.why__item h3 { font-size: 20px; }
.why__item p { margin: 0; font-size: 15.5px; color: rgba(255,255,255,.72); }

/* Логотипы */
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
@media (max-width: 1180px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 96px; display: grid; place-items: center; padding: 16px 20px; transition: .3s var(--ease); }
.logo-tile img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; transition: .3s; }
.logo-tile:hover { border-color: transparent; box-shadow: var(--shadow); }
.logo-tile:hover img { transform: scale(1.05); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .logo-tile { width: 190px; flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* География */
.geo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.geo__map { position: relative; }
.geo__map svg { width: 100%; height: auto; }
.geo__points { display: grid; gap: 14px; margin-top: 26px; }
.geo__point { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.geo__point b { display: block; color: var(--ink); font-size: 17px; }
.geo__point span { color: var(--muted); font-size: 15px; }
.geo__point .geo__pin { width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; stroke: #fff; display: grid; place-items: center; flex: none; }
.geo__point .geo__pin svg { width: 20px; height: 20px; }
.geo__countries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.geo__countries li { padding: 8px 14px; background: var(--blue-soft); color: var(--navy); border-radius: 999px; font-weight: 600; font-size: 14px; }

/* CTA */
.cta { position: relative; border-radius: 28px; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; background: url(../img/contact-bg.jpg) center/cover; opacity: .55; z-index: -1; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 100% 0, rgba(219,50,62,.35), transparent 60%); z-index: -1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); font-size: 18px; margin: 0; }
.cta__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta__phone { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: #fff; }
.cta__phone:hover { color: #9fd6f7; }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; background: var(--navy); color: rgba(255,255,255,.82); padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url(../img/hero-cubes.jpg) right center/cover; opacity: .5; z-index: -1; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-3) 20%, rgba(2,47,102,.4)); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); max-width: 18em; }
.page-hero p { font-size: clamp(17px, 1.4vw, 19px); max-width: 44em; margin: 16px 0 0; }
.crumbs { list-style: none; padding: 0; margin-top: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; margin-bottom: 22px; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; background: radial-gradient(80% 80% at 50% 90%, var(--blue-soft), #f8fbfe 70%); display: grid; place-items: center; padding: 36px; box-shadow: var(--shadow); overflow: hidden; }
.gallery__main img { position: absolute; inset: 36px; width: calc(100% - 72px); height: calc(100% - 72px); object-fit: contain; filter: drop-shadow(0 20px 26px rgba(2,47,102,.2)); }
.gallery__main.is-photo { padding: 0; }
.gallery__main.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 76px; height: 76px; border-radius: 12px; border: 2px solid transparent; background: var(--bg-soft); padding: 6px; cursor: pointer; transition: .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--blue); background: #fff; }
.prose { font-size: 18px; }
.prose p { color: var(--text); }
.facts { display: grid; gap: 14px; margin: 30px 0; }
.fact { border-radius: 16px; background: var(--bg-soft); padding: 22px 24px; }
.fact h4 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.fact li { position: relative; padding-left: 24px; margin: 6px 0; color: var(--ink); font-weight: 500; }
.fact li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.pills li { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; color: var(--navy); }
.pills-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.detail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.guarantee { border-radius: 16px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.guarantee strong { display: block; color: var(--navy); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.guarantee:first-child strong { color: var(--red); }
.guarantee span { color: var(--muted); font-size: 15px; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); color: var(--ink); font-weight: 500; }
.checklist svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 1px; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* О компании */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 24px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.about-photo__badge { position: absolute; left: -20px; bottom: -24px; background: var(--red); color: #fff; padding: 22px 26px; border-radius: 20px; box-shadow: var(--shadow-lg); max-width: 250px; }
.about-photo__badge strong { display: block; font-size: 40px; line-height: 1; font-weight: 800; }
.about-photo__badge span { font-size: 14px; line-height: 1.35; display: block; margin-top: 8px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.pillar { padding: 22px; border-radius: 16px; background: var(--bg-soft); }
.pillar b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 17px; }
.pillar span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 28px 24px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.value b { color: #fff; font-size: 19px; display: block; margin-bottom: 8px; }
.value span { font-size: 15px; }
.stats--light { background: var(--line); border-color: var(--line); backdrop-filter: none; margin-top: 0; }
.stats--light .stat { background: #fff; }
.stats--light .stat strong { color: var(--navy); }
.stats--light .stat span { color: var(--muted); }

/* Хронология */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--red)); opacity: .35; }
.timeline li { position: relative; padding-top: 58px; }
.timeline li::before { content: ""; position: absolute; top: 14px; left: 0; width: 18px; height: 18px; background: #fff; border: 4px solid var(--blue); transform: rotate(45deg); }
.timeline li:last-child::before { border-color: var(--red); }
.timeline b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--blue), var(--red)); }
  .timeline li { padding: 0 0 26px 44px; }
  .timeline li::before { top: 6px; }
}

/* Контакты */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: 16px; background: var(--bg-soft); }
.contact-card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 4px; }
.contact-card a, .contact-card b { color: var(--ink); font-weight: 600; font-size: 17px; }
.contact-card a:hover { color: var(--blue); }
.contact-card p { margin: 2px 0 0; color: var(--text); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); color: var(--navy); transition: .2s; }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }
.map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 9; min-height: 320px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.panel { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(24px, 3.5vw, 40px); }

/* Форма */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  padding: 22px 16px 8px; font-weight: 500; font-size: 16px; line-height: 1.4; font-family: inherit; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 16px; color: var(--muted); font-size: 16px; pointer-events: none; transition: .18s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,125,197,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: 12px; font-weight: 600; color: var(--blue); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6c81' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.form__consent { font-size: 13px; color: var(--muted); margin: 0; }
.form__status { font-size: 15px; font-weight: 600; margin: 0; }
.form__status.ok { color: #0f8a4a; } .form__status.err { color: var(--red); }
.hp { position: absolute; left: -5000px; }

dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(1,26,58,.6); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__in { padding: clamp(24px, 4vw, 36px); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.modal__head h2 { font-size: 28px; margin: 0; }
.modal__close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; flex: none; }
.modal__close svg { width: 20px; height: 20px; }

/* Плавающие кнопки */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); transition: transform .2s; }
.fab a:hover { transform: scale(1.08); color: #fff; }
.fab svg { width: 26px; height: 26px; }
.fab .wa { background: #25d366; } .fab .tg { background: #229ed9; }

/* Подвал */
.footer { background: var(--navy-3); color: rgba(255,255,255,.7); padding: 72px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img { height: 46px; width: auto; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer li { margin: 9px 0; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer .socials a { background: rgba(255,255,255,.08); box-shadow: none; color: #fff; }
.footer .socials a:hover { background: var(--blue); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.5); }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf strong { font-size: clamp(90px, 16vw, 180px); line-height: 1; color: var(--navy); font-weight: 800; letter-spacing: -.04em; }
.nf strong span { color: var(--red); }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .burger { display: flex; }
  .header .btn { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; background: #fff; padding: 12px var(--gutter) 24px; box-shadow: 0 20px 40px rgba(2,47,102,.15); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s var(--ease); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .nav a { font-size: 18px; padding: 14px 8px; border-radius: 10px; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
  .nav .btn { display: flex; margin-top: 16px; color: #fff !important; border: 0; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .header { background: #fff !important; }
  .nav-open .header .logo--color { display: block !important; }
  .nav-open .header .logo--white { display: none !important; }
  .nav-open .header .lang__btn { color: var(--ink) !important; border-color: var(--line) !important; }
  .nav-open .header .burger { border-color: var(--line) !important; }
  .nav-open .header .burger span::before, .nav-open .header .burger span::after { background: var(--ink) !important; }
  .header__tools { margin-left: auto; }
  .logo img { height: 38px; }
  .hero__grid, .detail, .about-grid, .contact-grid, .geo, .cta { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-list { grid-template-columns: 1fr; }
  .svc:first-child { grid-column: auto; grid-template-columns: 1fr 42%; min-height: 260px; }
  .why { grid-template-columns: 1fr 1fr; }
  .gallery { position: static; }
  .head { flex-direction: column; align-items: start; }
}
@media (min-width: 981px) { .nav .btn { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento, .why, .values, .pillars, .checklist, .form__row { grid-template-columns: 1fr; }
  .svc, .svc:first-child { grid-template-columns: 1fr; }
  .svc__img { aspect-ratio: 16 / 9; order: -1; }
  .stat { padding: 20px 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .about-photo__badge { left: 12px; bottom: -20px; }
  .hero__btns .btn { width: 100%; }
  .fab a { width: 48px; height: 48px; }
  .lang__btn { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .header, .fab, .footer, .cta, dialog { display: none !important; } .has-hero main { margin: 0; } }
