@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #4965f2;
  --ink: #171c35;
  --white: #fff;
  --muted: #666a77;
  --gutter: clamp(24px, 3.15vw, 80px);
  --header-height: clamp(88px, 7.4vw, 118px);
  --menu-open-duration: 1100ms;
  --menu-close-duration: 820ms;
  --menu-content-delay: 690ms;
  --menu-step: 75ms;
  --ease-panel: cubic-bezier(.76, 0, .24, 1);
  --ease-content: cubic-bezier(.2, .75, .25, 1);
  color-scheme: light;
  font-family: "Gilroy", Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--white); font-weight: 300; }
body.menu-locked { position: fixed; width: 100%; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { background: none; padding: 0; border: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid currentColor; outline-offset: 8px; border-radius: 2px; }
::selection { color: white; background: var(--ink); }
p, h1, h2 { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-height) + 30px); }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; background: white; color: var(--ink); padding: 14px 18px; transform: translateY(-200%); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

/* Шапка: прозрачная на первом экране, белая после начала прокрутки. */
.header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  min-height: var(--header-height);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(32px, 4.5vw, 90px);
  color: var(--white);
  transition: background-color 320ms ease, box-shadow 320ms ease;
}
.header.is-scrolled { background: white; color: var(--ink); box-shadow: 0 1px 0 #171c3512; }
.brand { font-size: clamp(25px, 2.08vw, 36px); letter-spacing: -.03em; color: white; font-weight: 800; white-space: nowrap; transition: color 300ms ease; }
.brand__dot { color: var(--ink); }
.is-scrolled .brand { color: var(--ink); }
.is-scrolled .brand__dot { color: var(--accent); }
.text-link { font-size: clamp(16px, 1.14vw, 22px); line-height: 1.35; font-weight: 800; white-space: nowrap; position: relative; }
.text-link::after { content: ""; position: absolute; height: 2px; bottom: -5px; left: 0; right: 0; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 280ms ease; }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.header__project { display: inline-flex; align-items: center; gap: 10px; }
.plus { width: 12px; height: 12px; position: relative; }
.plus::before, .plus::after { content: ""; background: currentColor; width: 12px; height: 2px; position: absolute; left: 0; top: 5px; }
.plus::after { transform: rotate(90deg); }
.header__nav { margin-left: auto; display: flex; align-items: center; gap: clamp(22px, 3.2vw, 64px); }
.burger { width: 48px; height: 48px; flex: 0 0 48px; position: relative; }
.burger span { position: absolute; right: 0; width: 34px; height: 3px; background: currentColor; transition: width 250ms ease, transform 300ms ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 28px; width: 24px; }
.burger:hover span:last-child { width: 34px; }

/* Первый экран намеренно строится только на цвете и типографике. */
.hero {
  min-height: 700px;
  min-height: max(700px, 100svh);
  background: var(--accent);
  display: flex;
  flex-direction: column;
  padding: var(--header-height) var(--gutter) clamp(38px, 4.1vw, 82px);
}
.hero__body { flex: 1; display: flex; align-items: center; padding-block: clamp(80px, 13.1vh, 150px) 90px; }
.hero__title { font-size: clamp(50px, 7.52vw, 174px); font-weight: 800; line-height: 1.115; letter-spacing: -.02em; width: 100%; }
.hero__line { display: block; }
.hero__line--light { color: white; }
.hero__line--dark { color: var(--ink); }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero__caption { color: white; font-size: clamp(24px, 2.5vw, 51px); font-weight: 800; line-height: 1.2; }
.scroll-cue { display: flex; width: 48px; height: 58px; align-items: flex-end; justify-content: flex-end; flex-shrink: 0; }
.scroll-cue__mouse { display: block; width: 27px; height: 42px; border: 2px solid var(--ink); border-radius: 20px; position: relative; }
.scroll-cue__mouse::before { content: ""; width: 2px; height: 8px; background: var(--ink); position: absolute; left: calc(50% - 1px); top: -9px; }
.scroll-cue__mouse span { position: absolute; height: 6px; width: 4px; background: white; border-radius: 4px; top: 8px; left: calc(50% - 2px); animation: scroll-wheel 1.9s ease-in-out infinite; }
@keyframes scroll-wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 65% { transform: translateY(9px); opacity: .15; } 80% { transform: translateY(0); opacity: 0; } }

.intro { padding: clamp(72px, 8vw, 150px) var(--gutter); display: grid; grid-template-columns: 1.22fr 1fr; gap: 8vw; }
.eyebrow { font-size: 16px; color: var(--accent); font-weight: 800; margin-bottom: 32px; }
.intro h2 { font-size: clamp(32px, 3.5vw, 65px); line-height: 1.1; font-weight: 800; letter-spacing: -.018em; }
.intro__details { padding-top: 5px; }
.services-list { list-style: none; padding: 0; margin: 0 0 28px; font-weight: 800; font-size: clamp(21px, 1.8vw, 32px); line-height: 1.55; }
.intro__details > p { max-width: 470px; font-size: 20px; line-height: 1.5; }

/* Полноценный финальный экран: разговор, навигация и крупная подпись. */
.site-footer { background: var(--accent); color: white; padding: clamp(52px, 5vw, 94px) var(--gutter) 28px; }
.footer__topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 16px; font-weight: 800; margin-bottom: clamp(28px, 3.2vw, 58px); }
.footer__to-top { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.footer__to-top svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; transition: transform 250ms ease; }
.footer__to-top:hover svg { transform: translateY(-4px); }
.footer__title { margin: 0; font-size: clamp(46px, 6.75vw, 130px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
.footer__cta { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; }
.footer__cta-copy { display: block; }
.footer__cta-copy > span { display: block; }
.footer__cta-invitation { color: var(--ink); transition: color 300ms ease; }
.footer__mobile-break { display: none; }
.footer__cta-icon { display: grid; place-items: center; width: clamp(112px, 13vw, 245px); height: clamp(112px, 13vw, 245px); flex-shrink: 0; background: white; color: var(--ink); border-radius: 50%; transition: background 300ms ease, color 300ms ease, transform 400ms var(--ease-content); }
.footer__cta-icon svg { width: 45%; height: 45%; stroke: currentColor; stroke-width: 1.4; transition: transform 400ms var(--ease-content); }
.footer__cta:hover .footer__cta-icon { background: var(--ink); color: white; transform: rotate(8deg); }
.footer__cta:hover .footer__cta-icon svg { transform: translate(3px, -3px) rotate(-8deg); }
.footer__cta:hover .footer__cta-invitation { color: white; }
.footer__cta:focus-visible { outline-color: white; outline-offset: 14px; }
.footer__body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .7fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); margin-top: clamp(48px, 4.8vw, 92px); padding-top: 34px; border-top: 1px solid #ffffff55; }
.footer__intro > p { font-size: clamp(22px, 2vw, 36px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.footer__intro > span { display: block; margin-top: 20px; font-size: 17px; line-height: 1.45; max-width: 320px; }
.footer__label { font-size: 14px; font-weight: 300; line-height: 1.35; margin: 0 0 20px; }
.footer__nav ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.footer__nav a { font-size: 18px; line-height: 1.3; font-weight: 800; }
.footer__nav a, .footer__contact a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color 220ms ease; }
.footer__nav a:hover, .footer__contact a:hover { text-decoration-color: currentColor; }
.footer__contact { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 18px; row-gap: 5px; margin-top: 20px; }
.footer__contact-kind { font-size: 14px; line-height: 1.35; min-width: 62px; }
.footer__contact [data-contact] { font-size: clamp(20px, 1.7vw, 30px); line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.footer__wordmark-wrap { container-type: inline-size; margin-top: clamp(40px, 4.6vw, 88px); }
.footer__wordmark { display: block; font-size: 19cqw; font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.footer__wordmark > span { color: white; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff55; margin-top: 24px; padding-top: 24px; font-size: 14px; line-height: 1.4; }

/* Кейсы: крупные превью и подписи без лишних рамок. */
.section-space { padding: clamp(72px, 8vw, 150px) var(--gutter); }
.work { padding-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 4.4vw, 80px); }
.section-heading .eyebrow { margin-bottom: 22px; }
.section-title { font-size: clamp(48px, 5.8vw, 112px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
.section-count { display: inline-block; vertical-align: top; color: var(--accent); font-size: .25em; line-height: 1.5; letter-spacing: 0; margin: .22em 0 0 .7em; }
.section-heading__copy, .section-heading__aside > p { font-size: clamp(18px, 1.5vw, 26px); line-height: 1.4; }
.section-heading__aside { padding-bottom: 4px; }
.demo-label { display: inline-block; color: var(--muted); font-size: 14px; line-height: 1.2; margin-top: 18px; }
.cases-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(22px, 2.35vw, 44px); row-gap: clamp(44px, 5vw, 90px); }
.case-card { min-width: 0; }
.case-card__link { display: block; }
.case-card__meta { display: flex; justify-content: space-between; gap: 16px; margin-block: 24px 13px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.case-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.case-card h3 { font-size: clamp(28px, 2.6vw, 48px); margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; transition: color 240ms ease; }
.case-card__description { font-size: clamp(18px, 1.5vw, 25px); line-height: 1.4; margin-top: 8px; }
.arrow-icon { width: 28px; height: 28px; flex: 0 0 28px; stroke: currentColor; stroke-width: 1.4; transition: transform 300ms ease; }
.case-card__heading .arrow-icon { width: 26px; height: 26px; color: var(--accent); }
.case-card__link:hover h3 { color: var(--accent); }
.case-card__link:hover .arrow-icon { transform: translate(3px, -3px); }
.work__more { margin-top: clamp(48px, 5vw, 96px); display: flex; align-items: center; gap: 32px; }
.round-link { display: inline-flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 64px; padding: 20px 30px; background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: 100px; font-weight: 800; font-size: 20px; line-height: 1.3; transition: background 250ms ease, color 250ms ease; }
.round-link:hover { background: var(--ink); border-color: var(--ink); }
.round-link:hover .arrow-icon { transform: translate(3px, -3px); }
.work__more > p { font-size: 18px; line-height: 1.4; color: var(--muted); }

/* Миниатюрные интерфейсы демонстрационных проектов. */
.case-visual { aspect-ratio: 1.37; overflow: hidden; display: flex; align-items: center; padding: 8% 7%; container-type: inline-size; background: #e9edf4; }
.case-visual--forma { background: #dcd8cf; }
.case-visual--flow { background: var(--accent); }
.case-visual--luma { background: #e5dff2; }
.case-visual--atlas { background: #173d3d; }
.case-visual--reserva { background: #ff8257; }
.case-visual--mono { background: #ccdef3; }
.project-window { width: 100%; aspect-ratio: 1.44; flex-shrink: 0; overflow: hidden; background: white; box-shadow: 0 2.5cqw 6cqw #101d3425; border-radius: 3px; font-size: 2cqw; line-height: 1.3; transition: transform 550ms var(--ease-content); pointer-events: none; user-select: none; }
.case-card__link:hover .project-window { transform: translateY(-1.5%) scale(1.025); }
.project-window b, .project-window strong { font-weight: 800; }
.project-window small { font-size: 1.7cqw; }
.project-window img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ui-topbar { height: 14%; display: flex; align-items: center; justify-content: space-between; padding-inline: 5%; gap: 3%; font-size: 1.75cqw; }
.ui-topbar > b { font-size: 3cqw; letter-spacing: -.03em; }
.ui-forma { color: #252621; }
.ui-forma__hero { height: 86%; position: relative; }
.ui-forma__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #12171455, #12171400 65%); }
.ui-forma__copy { position: absolute; inset: 12% auto auto 6%; color: white; z-index: 1; }
.ui-forma__copy small { font-size: 1.55cqw; letter-spacing: .08em; }
.ui-forma__copy strong { display: block; font-size: 7.3cqw; line-height: .98; letter-spacing: -.04em; margin: 10% 0 16%; }
.ui-forma__copy > span { font-size: 1.8cqw; border-bottom: 1px solid #ffffff80; padding-bottom: .5cqw; }
.ui-forma__index { position: absolute; right: 5%; bottom: 7%; color: white; z-index: 1; font-size: 1.7cqw; }
.ui-flow { display: grid; grid-template-columns: 21% 79%; background: #f8f9fe; color: #19234c; }
.ui-flow__side { padding: 18% 13%; display: flex; flex-direction: column; gap: 5%; border-right: 1px solid #e2e6f0; background: white; font-size: 1.7cqw; }
.ui-flow__side > b { font-size: 4.7cqw; color: #4a61ed; letter-spacing: -.05em; margin-bottom: 20%; }
.ui-flow__side > b span { font-size: 1.5cqw; vertical-align: top; }
.ui-flow__side > span { padding-block: 10%; }
.ui-flow__side > small { margin-top: auto; font-size: 1.25cqw; color: #8b93aa; }
.ui-flow__active { color: #4965f2; font-weight: 800; }
.ui-flow__main { padding: 6% 6% 4%; display: flex; flex-direction: column; gap: 5%; }
.ui-flow__heading { display: flex; flex-direction: column; gap: .8cqw; }
.ui-flow__heading strong { font-size: 3.8cqw; letter-spacing: -.025em; }
.ui-flow__heading > span { font-size: 1.5cqw; color: #788199; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ui-stats > div { padding: 10%; background: white; border: 1px solid #eaedf5; border-radius: 5px; display: flex; flex-direction: column; }
.ui-stats small { font-size: 1.25cqw; white-space: nowrap; }
.ui-stats b { font-size: 4.3cqw; line-height: 1.4; }
.ui-stats span { color: #7782a0; font-size: 1.1cqw; }
.ui-flow__chart { flex: 1; min-height: 0; border: 1px solid #eaedf5; border-radius: 5px; padding: 4% 5%; background: white; display: flex; flex-direction: column; }
.ui-flow__chart > b { font-size: 1.8cqw; }
.ui-bars { flex: 1; display: flex; align-items: flex-end; gap: 7%; padding: 6% 1% 0; border-bottom: 1px solid #e6e9f3; background: repeating-linear-gradient(to top, #e9edf8 0, #e9edf8 1px, transparent 1px, transparent 33%); }
.ui-bars i { flex: 1; height: var(--bar); background: #637bf7; border-radius: 3px 3px 0 0; }
.ui-bars i:nth-child(2n) { background: #b1befb; }
.ui-chart-labels { display: flex; justify-content: space-between; color: #78829e; padding-top: 3%; font-size: 1.2cqw; }
.ui-flow__task { display: flex; justify-content: space-between; align-items: center; font-size: 1.35cqw; padding-block: 2%; }
.ui-flow__task em { font-style: normal; padding: 2% 3%; border-radius: 5px; color: #546acb; background: #e9edff; }
.ui-luma { background: #f9f7fc; color: #302444; }
.ui-luma .ui-topbar > b { font-size: 4cqw; }
.ui-luma__body { height: 75%; display: grid; grid-template-columns: 48% 52%; }
.ui-luma__copy { padding: 9% 0 0 10%; position: relative; z-index: 1; }
.ui-luma__copy small { font-size: 1.4cqw; letter-spacing: .1em; }
.ui-luma__copy strong { display: block; font-size: 7.8cqw; line-height: .95; letter-spacing: -.035em; margin: 9% 0 7%; }
.ui-luma__copy p { font-size: 2cqw; line-height: 1.35; margin-bottom: 13%; }
.ui-luma__copy > span { font-size: 1.7cqw; border: 1px solid #30244480; border-radius: 100px; padding: 5% 7%; }
.ui-luma__body img { object-position: 50% 50%; }
.ui-luma__footer { height: 11%; display: flex; align-items: center; justify-content: space-around; font-size: 1.4cqw; }
.ui-atlas { background: #e1f5b5; color: #123835; }
.ui-atlas .ui-topbar { border-bottom: 1px solid #173d3d22; }
.ui-atlas .ui-topbar b { font-size: 3.6cqw; }
.ui-atlas .ui-topbar b span { color: #688b22; }
.ui-atlas__body { height: 86%; display: grid; grid-template-columns: 46% 50%; padding: 7% 5%; gap: 4%; }
.ui-atlas__intro > small { display: block; font-size: 1.45cqw; letter-spacing: .05em; }
.ui-atlas__intro strong { display: block; font-size: 6.65cqw; line-height: 1; letter-spacing: -.04em; margin-block: 10% 15%; }
.ui-atlas__intro > span { font-size: 1.5cqw; background: #173d3d; color: #e1f5b5; padding: 6% 7%; border-radius: 3px; display: inline-block; }
.ui-atlas__course { align-self: center; background: #faffee; border-radius: 5px; padding: 9%; display: flex; flex-direction: column; font-size: 1.6cqw; box-shadow: 0 2cqw 4cqw #10383218; }
.ui-course-icon { font-size: 8cqw; color: #173d3d; letter-spacing: -.05em; line-height: 1; margin-block: 6% 10%; font-weight: 800; }
.ui-atlas__course > b { font-size: 2.4cqw; margin-bottom: 5%; }
.ui-atlas__course > small { font-size: 1.4cqw; color: #60745e; }
.ui-progress { height: .9cqw; background: #dceacb; border-radius: 10px; overflow: hidden; margin-block: 10% 4%; }
.ui-progress i { display: block; width: 60%; height: 100%; background: #6f942f; }
.ui-lesson { display: flex; gap: 8%; align-items: center; border-top: 1px solid #173d3d20; padding-top: 9%; margin-top: 10%; }
.ui-lesson > span:first-child { background: #e4efce; padding: 5%; border-radius: 50%; }
.ui-lesson small { font-size: 1.2cqw; color: #71846c; }
.ui-reserva { color: #2d2927; }
.ui-reserva .ui-topbar { border-bottom: 1px solid #2d292711; }
.ui-reserva .ui-topbar b { color: #e8663f; font-size: 3.5cqw; }
.ui-reserva__main { padding: 6% 5%; }
.ui-reserva__heading { display: flex; align-items: center; justify-content: space-between; gap: 5%; }
.ui-reserva__heading strong { font-size: 4.1cqw; line-height: 1.1; letter-spacing: -.035em; }
.ui-reserva__heading > span { font-size: 1.5cqw; color: #827975; }
.ui-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3%; margin-block: 8% 6%; }
.ui-week > span { display: flex; flex-direction: column; align-items: center; padding: 12% 5%; border-radius: 5px; font-size: 1.5cqw; color: #8a807c; }
.ui-week b { font-size: 3.1cqw; color: #2d2927; margin-top: 15%; }
.ui-week .ui-week__selected { background: #fb7650; color: white; }
.ui-week__selected b { color: white; }
.ui-bookings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.ui-bookings > div { display: flex; flex-direction: column; padding: 10%; gap: 1.4cqw; background: #fff1e8; border-left: 3px solid #ffac82; border-radius: 3px; }
.ui-bookings > div:nth-child(2) { background: #e8f0e3; border-color: #accba2; }
.ui-bookings > div:nth-child(3) { background: #e9ecfa; border-color: #aeb7ec; }
.ui-bookings small { font-size: 1.35cqw; }
.ui-bookings b { font-size: 1.8cqw; }
.ui-bookings span { font-size: 1.15cqw; }
.ui-mono { background: #f5f5f2; color: #252929; }
.ui-mono .ui-topbar b { font-size: 4.2cqw; }
.ui-mono__body { height: 74%; display: grid; grid-template-columns: 46% 54%; }
.ui-mono__copy { padding: 14% 0 0 11%; }
.ui-mono__copy small { font-size: 1.3cqw; letter-spacing: .05em; }
.ui-mono__copy strong { display: block; font-size: 6.9cqw; line-height: 1; letter-spacing: -.04em; margin-block: 10% 9%; }
.ui-mono__copy p { font-size: 1.8cqw; margin-bottom: 13%; }
.ui-mono__copy > span { font-size: 1.65cqw; border-bottom: 1px solid #25292990; padding-bottom: 4%; }
.ui-mono__body img { object-fit: cover; object-position: center; }
.ui-mono__footer { height: 12%; display: flex; justify-content: space-between; align-items: center; padding-inline: 5%; font-size: 1.4cqw; }

/* Технологии: три направления на общей тёмной поверхности. */
.stack { background: var(--ink); color: white; }
.stack .section-heading { align-items: flex-end; margin-bottom: clamp(54px, 6.5vw, 110px); }
.stack .eyebrow { color: #a7b5ff; }
.stack .section-heading__copy { color: #cbd0e2; padding-bottom: 5px; }
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4.2vw, 80px); }
.stack-column { border-top: 1px solid #ffffff40; padding-top: 28px; min-width: 0; }
.stack-column__title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.stack-column__title h3 { margin: 0; font-size: clamp(28px, 2.7vw, 50px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.stack-column__title > span { color: #a7b5ff; font-size: 14px; font-weight: 800; }
.stack-column__description { font-size: 20px; line-height: 1.45; color: #cbd0e2; margin-block: 19px 35px; }
.stack-group { margin-top: 28px; }
.stack-group h4 { font-size: 14px; font-weight: 800; color: #a7b5ff; margin: 0 0 13px; line-height: 1.35; }
.tech-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags li { display: block; border: 1px solid #ffffff33; border-radius: 40px; padding: 9px 13px; font-size: clamp(16px, 1.15vw, 21px); line-height: 1.35; }

/* Общая страница кейсов. */
.page-inner .header { background: white; color: var(--ink); }
.page-inner .brand { color: var(--ink); }
.page-inner .brand__dot { color: var(--accent); }
.header__nav [aria-current="page"] { color: var(--accent); }
.catalog-heading { padding: calc(var(--header-height) + 60px) var(--gutter) 48px; }
.back-link { display: inline-block; font-size: 16px; margin-bottom: 55px; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.catalog-heading .section-heading { margin-bottom: 46px; }
.case-index { display: flex; gap: 12px; flex-wrap: wrap; }
.case-index a { border: 1px solid #171c352b; border-radius: 40px; padding: 11px 22px; font-size: 16px; font-weight: 800; transition: color 200ms ease, border-color 200ms ease; }
.case-index a:hover { color: var(--accent); border-color: var(--accent); }
.case-details { padding-inline: var(--gutter); }
.case-detail { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 115px); padding-block: clamp(42px, 5vw, 96px); border-top: 1px solid #171c3525; align-items: start; }
.case-detail__visual { position: sticky; top: calc(var(--header-height) + 24px); }
.case-detail__index { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.case-detail h2 { font-size: clamp(38px, 4vw, 76px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.case-detail__subtitle { font-size: clamp(21px, 1.8vw, 30px); line-height: 1.25; margin-top: 12px; }
.case-detail__text { margin-top: 36px; }
.case-detail__text h3 { margin: 26px 0 10px; font-size: 16px; font-weight: 800; }
.case-detail__text p { font-size: 19px; line-height: 1.5; }
.case-detail .tech-tags { margin-top: 30px; }
.case-detail .tech-tags li { border-color: #171c3526; font-size: 14px; padding: 8px 12px; color: #555d77; }
.catalog-bottom { padding: 30px var(--gutter) 90px; }

/* Появление при прокрутке включается только при поддержке JS. */
.has-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity 650ms ease, transform 800ms var(--ease-content); }
.has-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Dialog сохраняет фокус внутри меню и блокирует взаимодействие с фоном. */
.menu {
  position: fixed;
  inset: 0;
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.menu::backdrop { background: transparent; }
.menu__surface {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--menu-close-duration) var(--ease-panel) 240ms;
}
.menu.is-open .menu__surface { clip-path: inset(0); transition-duration: var(--menu-open-duration); transition-delay: 0ms; }
.menu.is-animating .menu__surface { will-change: clip-path; }
.menu__close { width: 48px; height: 48px; position: absolute; z-index: 2; top: calc((var(--header-height) - 48px) / 2); right: var(--gutter); color: var(--ink); }
.menu__close span { position: absolute; top: 23px; left: 6px; width: 38px; height: 3px; background: currentColor; transition: transform 300ms ease; }
.menu__close span:first-child { transform: rotate(45deg); }
.menu__close span:last-child { transform: rotate(-45deg); }
.menu__close:hover span:first-child { transform: rotate(135deg); }
.menu__close:hover span:last-child { transform: rotate(45deg); }
.menu__content { min-height: 100%; padding: clamp(128px, 10.6vw, 196px) clamp(52px, 11.75vw, 260px) clamp(38px, 4vw, 80px); display: flex; flex-direction: column; }
.menu__navigation { display: grid; grid-template-columns: 1fr 1.22fr; gap: 8.3vw; }
.menu__column { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(25px, 3.1vw, 56px); }
.menu__link { display: flex; align-items: flex-start; gap: 22px; font-weight: 800; font-size: clamp(38px, 4.16vw, 83px); line-height: 1.08; letter-spacing: -.017em; opacity: 0; transform: translateY(32px); transition: opacity 200ms ease, transform 250ms ease, color 250ms ease; }
.menu__link:hover { color: var(--accent); }
.menu__link svg { width: clamp(27px, 2.3vw, 45px); flex-shrink: 0; margin-top: .15em; stroke: currentColor; stroke-width: 1.4px; transition: transform 300ms ease; }
.menu__link:hover svg { transform: translate(5px, -5px); }
.menu__link--project { color: var(--accent); }
.menu__footer { margin-top: auto; padding-top: clamp(64px, 9vh, 110px); display: grid; grid-template-columns: 1fr 1.22fr; gap: 8.3vw; }
.menu__reveal { opacity: 0; transform: translateY(22px); transition: opacity 180ms ease, transform 220ms ease; }
.menu.is-open .menu__link, .menu.is-open .menu__reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease calc(var(--menu-content-delay) + var(--order) * var(--menu-step)), transform 700ms var(--ease-content) calc(var(--menu-content-delay) + var(--order) * var(--menu-step)), color 220ms ease;
}
.menu__brand { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.menu__signature > p:not(.menu__brand) { font-size: 18px; line-height: 1.45; }
.menu__copyright { display: block; color: var(--muted); font-size: 14px; margin-top: 25px; }
.menu__contacts { border-radius: 3px; outline: 0; }
.menu__contacts:focus-visible { outline: 2px solid var(--accent); outline-offset: 12px; }
.menu__contact-label { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.contact-row { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: baseline; font-size: clamp(18px, 1.25vw, 24px); line-height: 1.35; margin-bottom: 12px; }
.contact-row__label { color: var(--muted); font-weight: 300; font-size: 16px; }
.contact-row [data-contact] { font-weight: 800; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--accent); }
.menu__location { margin-top: 25px; color: var(--muted); font-size: 16px; }

@media (min-width: 1800px) { .menu__desktop-break { display: none; } }
@media (max-width: 1100px) {
  .header { gap: 34px; }
  .header__nav { gap: 24px; }
  .header__nav [data-open-contacts] { display: none; }
  .hero { min-height: max(650px, 100svh); }
  .menu__content { padding-inline: 8vw; }
  .menu__navigation, .menu__footer { gap: 6vw; grid-template-columns: 1fr 1.2fr; }
  .header__nav { gap: 22px; }
  .stack-grid { gap: 26px; }
  .stack-column__description { font-size: 18px; }
  .stack-column__title h3 { font-size: 29px; }
  .case-card__meta { font-size: 13px; gap: 12px; }
  .case-detail { gap: 36px; }
  .footer__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, .7fr) minmax(0, 1fr); gap: 30px; }
  .footer__contact { flex-direction: column; gap: 7px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --header-height: 84px; }
  .header { gap: 20px; }
  .brand { font-size: 26px; }
  .header__nav { display: none; }
  .header__project { margin-left: auto; font-size: 15px; }
  .burger { margin-left: auto; }
  .header__project + .header__nav + .burger { margin-left: 0; }
  .hero { min-height: max(600px, 100svh); padding-bottom: 36px; }
  .hero__body { padding-top: 90px; padding-bottom: 110px; }
  .hero__title { font-size: clamp(49px, 10.6vw, 76px); line-height: 1.05; letter-spacing: -.025em; }
  .hero__line--light { max-width: 13ch; }
  .hero__line--dark { margin-top: 14px; max-width: 14ch; }
  .hero__caption { max-width: 270px; font-size: 25px; line-height: 1.18; }
  .intro { grid-template-columns: 1fr; gap: 44px; padding-block: 70px; }
  .intro h2 { font-size: 39px; }
  .intro__details > p { font-size: 20px; }
  .menu__content { padding: 118px 32px 36px; }
  .menu__navigation { grid-template-columns: 1fr 1.12fr; gap: 30px; }
  .menu__column { gap: 30px; }
  .menu__link { font-size: clamp(31px, 5.2vw, 40px); gap: 9px; letter-spacing: -.02em; }
  .menu__link svg { width: 23px; }
  .menu__footer { grid-template-columns: 1fr 1.12fr; gap: 30px; padding-top: 80px; }
  .menu__brand { font-size: 24px; }
  .menu__signature > p:not(.menu__brand) { font-size: 17px; }
  .contact-row { grid-template-columns: 1fr; gap: 3px; font-size: 19px; margin-bottom: 16px; }
  .contact-row__label { font-size: 14px; }
  .menu__location { font-size: 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 26px; margin-bottom: 36px; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .section-title { font-size: clamp(43px, 7.5vw, 62px); }
  .section-heading__aside { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; }
  .section-heading__aside > p { font-size: 18px; }
  .demo-label { margin: 0; max-width: 115px; text-align: right; font-size: 13px; }
  .cases-grid { column-gap: 22px; row-gap: 44px; }
  .case-card__meta { flex-direction: column; gap: 5px; margin-top: 18px; }
  .case-card__meta span:last-child { display: none; }
  .case-card h3 { font-size: 29px; }
  .case-card__description { font-size: 18px; }
  .case-card__heading .arrow-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .work__more { gap: 22px; }
  .round-link { min-height: 65px; padding: 18px 24px; gap: 35px; font-size: 18px; }
  .work__more > p { font-size: 16px; }
  .stack .section-heading { align-items: flex-start; }
  .stack-grid { grid-template-columns: 1fr; gap: 48px; }
  .stack-column { padding-top: 24px; }
  .stack-column__title h3 { font-size: 36px; }
  .stack-column__description { margin-bottom: 28px; font-size: 20px; }
  .stack-column__description br { display: none; }
  .stack-group { margin-top: 26px; }
  .stack-group h4 { font-size: 15px; }
  .tech-tags li { font-size: 17px; padding: 10px 14px; }
  .catalog-heading { padding-top: calc(var(--header-height) + 35px); padding-bottom: 35px; }
  .back-link { margin-bottom: 36px; }
  .case-index { gap: 8px; }
  .case-index a { font-size: 14px; padding: 10px 17px; }
  .case-detail { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 52px; }
  .case-detail__visual { position: static; }
  .case-detail h2 { font-size: 42px; }
  .case-detail__text { margin-top: 25px; }
  .catalog-bottom { padding-bottom: 65px; }
  .site-footer { padding-top: 48px; }
  .footer__topline { font-size: 14px; margin-bottom: 28px; }
  .footer__title { font-size: clamp(38px, 5.65vw, 48px); }
  .footer__cta { gap: 22px; }
  .footer__cta-icon { width: 100px; height: 100px; }
  .footer__body { grid-template-columns: 1fr 1.3fr; gap: 36px; margin-top: 44px; padding-top: 30px; }
  .footer__intro { grid-column: 1 / -1; }
  .footer__intro > p { font-size: 26px; }
  .footer__intro > span { max-width: none; margin-top: 12px; font-size: 16px; }
  .footer__contact { flex-direction: row; gap: 10px; }
  .footer__contact [data-contact] { font-size: 21px; }
  .footer__wordmark-wrap { margin-top: 40px; }
}
@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .header__project { display: none; }
  .header__project + .header__nav + .burger { margin-left: auto; }
  .hero__title { font-size: clamp(32px, 10.5vw, 55px); }
  .hero__body { padding-top: 64px; padding-bottom: 80px; }
  .hero__line--light { max-width: 10ch; }
  .hero__line--dark { max-width: 14ch; margin-top: 18px; }
  .hero__caption { max-width: 255px; font-size: 23px; }
  .intro h2 { font-size: 32px; }
  .menu__content { padding: 112px var(--gutter) 30px; }
  .menu__navigation { grid-template-columns: 1fr; gap: 25px; }
  .menu__column { gap: 25px; }
  .menu__link { font-size: 37px; line-height: 1.08; gap: 15px; }
  .menu__desktop-break { display: none; }
  .menu__link--project { font-size: clamp(28px, 7.5vw, 37px); }
  .menu__footer { grid-template-columns: 1fr; gap: 36px; padding-top: 55px; }
  .menu__contacts { grid-row: 1; }
  .menu__signature { padding-top: 24px; border-top: 1px solid #171c3517; }
  .menu__signature > p:not(.menu__brand) { display: none; }
  .menu__brand { font-size: 22px; }
  .menu__copyright { margin-top: 14px; }
  .contact-row { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
  .menu__contact-label { font-size: 14px; }
  .section-space { padding-block: 64px; }
  .work { padding-top: 12px; }
  .section-title { font-size: clamp(33px, 9vw, 46px); }
  .section-heading__aside { flex-direction: column; align-items: flex-start; gap: 15px; }
  .demo-label { max-width: none; text-align: left; }
  .cases-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .case-card__meta { flex-direction: row; font-size: 13px; gap: 12px; }
  .case-card__meta span:last-child { display: block; }
  .case-card h3 { font-size: 30px; }
  .case-card__description { font-size: 18px; }
  .work__more { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work__more > p br { display: none; }
  .round-link { min-height: 64px; }
  .stack-column__title h3 { font-size: 33px; }
  .case-detail__text p { font-size: 18px; }
  .site-footer { padding-top: 36px; padding-bottom: 24px; }
  .footer__title { font-size: clamp(36px, 10.6vw, 55px); line-height: 1.05; }
  .footer__cta { display: block; position: relative; }
  .footer__cta-copy > span:first-child { padding-right: 76px; }
  .footer__cta-invitation { margin-top: 9px; }
  .footer__mobile-break { display: block; }
  .footer__cta-icon { position: absolute; right: 0; top: 0; width: 60px; height: 60px; }
  .footer__body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 24px; row-gap: 32px; margin-top: 36px; }
  .footer__intro > p { font-size: 24px; }
  .footer__intro > span { max-width: 260px; }
  .footer__label { margin-bottom: 18px; }
  .footer__nav, .footer__contacts { grid-column: 1 / -1; }
  .footer__nav ul { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer__nav a { font-size: 17px; }
  .footer__contact { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .footer__contact [data-contact] { font-size: 19px; }
  .footer__wordmark-wrap { margin-top: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; padding-top: 20px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  .menu__content { padding-top: 96px; }
  .menu__column { gap: 25px; }
  .menu__link { font-size: 38px; }
  .menu__footer { padding-top: 42px; }
  .menu__desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
