/* ============ TOKENS ============ */
:root {
  --bg: #04060f;
  --bg-alt: #080c1a;
  --surface: #0d1224;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9edf7;
  --muted: #8b94ab;
  --accent: #3d8bff;
  --accent-2: #39e0d0;
  --radius: 18px;
  --container: 1200px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ============ TYPO ============ */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 28px; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.h2-wide { max-width: 820px; }

.label, .eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before, .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
}
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.prose p { color: var(--muted); margin-bottom: 20px; }
.prose p.big { color: var(--text); font-size: 1.35rem; line-height: 1.5; letter-spacing: -0.01em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.accent-line {
  color: var(--text) !important; font-weight: 600;
  padding-left: 18px; border-left: 3px solid var(--accent);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 rgba(61, 139, 255, .5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(61, 139, 255, .7); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.12em; font-size: 1.05rem;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.93rem; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.btn--primary { color: #fff; }
.nav-toggle, .burger { display: none; }

/* ============ HERO ============ */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(61,139,255,.25), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__quote {
  font-family: Georgia, serif; font-style: italic;
  color: var(--muted); font-size: 1.2rem; margin-bottom: 14px;
}
.hero__title { font-size: clamp(2.8rem, 8vw, 6.2rem); max-width: 1000px; margin-bottom: 30px; }
.hero__lead { max-width: 680px; color: var(--muted); font-size: 1.15rem; margin-bottom: 64px; }

.chain {
  display: grid; grid-template-columns: repeat(9, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: rgba(13, 18, 36, .6);
}
.chain li {
  padding: 22px 16px; font-weight: 600; font-size: 0.95rem;
  border-right: 1px solid var(--border);
  position: relative; transition: background .25s;
}
.chain li:last-child { border-right: 0; }
.chain li span {
  display: block; font-family: var(--mono); font-size: 0.75rem;
  color: var(--accent-2); margin-bottom: 6px; font-weight: 400;
}
.chain li:hover { background: rgba(61, 139, 255, .12); }
.chain li:last-child { background: linear-gradient(135deg, rgba(61,139,255,.25), rgba(57,224,208,.15)); }

/* ============ SECTIONS ============ */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__lead { color: var(--muted); max-width: 640px; margin: -8px 0 48px; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.split--reverse { grid-template-columns: 1.15fr 1fr; align-items: center; }

.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4,6,15,.6));
}
.photo--tall { aspect-ratio: 1 / 1; margin-top: 40px; }
.photo--wide { aspect-ratio: 4 / 3; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px;
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(61, 139, 255, .5); }
.card__num {
  font-family: var(--mono); font-size: 2.4rem; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  display: block; margin-bottom: 28px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* clients */
.clients { margin-top: 30px; display: grid; gap: 14px; }
.clients li {
  padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--muted); font-size: 0.95rem;
}
.clients strong { color: var(--text); }

/* where */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.9rem; background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot--live { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(57,224,208,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(57,224,208,0); } }

.map {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); padding: 20px;
}

/* team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person {
  display: grid; grid-template-columns: 220px 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.person__body { padding: 30px 28px; }
.person__role { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.person__body h3 { font-size: 1.5rem; }
.person__body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.link-arrow { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.link-arrow:hover { text-decoration: underline; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature { padding: 10px 40px; border-left: 1px solid var(--border); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature__tag {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.feature p:last-child { color: var(--muted); }

/* cta */
.cta { padding: 140px 0; position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(61,139,255,.28), transparent 65%);
}
.cta__inner { position: relative; }
.cta__title { font-size: clamp(3rem, 9vw, 7rem); margin-bottom: 40px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding-top: 80px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer__claim { font-size: 1.2rem; font-weight: 600; margin: 18px 0 12px; }
.footer__brand .muted { font-size: 0.9rem; margin-bottom: 20px; }
address { font-style: normal; display: grid; gap: 4px; color: var(--muted); font-size: 0.9rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--text); font-weight: 500; margin-bottom: 6px;
}
.footer__col a { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem;
}
.footer__bottom div { display: flex; gap: 22px; }
.footer__bottom a:hover { color: var(--text); }
.footer__mega {
  font-size: clamp(5rem, 22vw, 18rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: .8; text-align: center; margin-top: 40px;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1);
  user-select: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain li:nth-child(3n) { border-right: 0; }
  .chain li { border-bottom: 1px solid var(--border); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .burger {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .burger span { width: 22px; height: 2px; background: var(--text); transition: .3s; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 20px 24px;
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav a { padding: 14px 0; width: 100%; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav a.nav__cta { margin-top: 16px; border: 0; width: auto; }
  .nav-toggle:checked ~ .nav { transform: translateY(0); }
  .nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr; gap: 36px; }
  .feature, .feature:first-child { padding: 0 0 0 20px; border-left: 2px solid var(--border); }
  .section { padding: 84px 0; }
  .hero { padding: 80px 0 72px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person__photo img { min-height: 240px; max-height: 320px; }
  .footer__top { grid-template-columns: 1fr; }
  .chain li { padding: 18px 12px; font-size: 0.88rem; }
}

/* =====================================================
   ADDITIONS · сайт автоматизації
   ===================================================== */
.nav a { white-space: nowrap; }
.nav { gap: 24px; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 720px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: -24px 0 64px; }
.hero--page { padding: 90px 0 70px; }
.hero--page .hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero--page .hero__lead { margin-bottom: 0; }
.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--accent-2); }

.hero__visual { margin-top: 10px; }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-split .hero__title { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
.hero-split .photo { aspect-ratio: 4 / 5; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(13,18,36,.6); }
.stat { padding: 28px 26px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.svc {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(61,139,255,.5); }
.svc__img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.svc__body p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.svc__body .link-arrow { margin-top: auto; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(61,139,255,.22), rgba(57,224,208,.12)); border: 1px solid rgba(61,139,255,.35); color: var(--accent-2); }
.icon svg { width: 22px; height: 22px; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.tags li { font-family: var(--mono); font-size: .74rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,.02); }

/* checklist */
.check { display: grid; gap: 12px; margin: 8px 0 26px; }
.check li { position: relative; padding-left: 30px; color: var(--muted); }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px;
  background: rgba(57,224,208,.14); border: 1px solid var(--accent-2); }
.check li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 3px); width: 5px; height: 8px; border: solid var(--accent-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check strong { color: var(--text); font-weight: 600; }

/* service blocks */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 100px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.svc-block:last-child { border-bottom: 0; }
.svc-block--rev .svc-block__img { order: 2; }
.svc-block__img .photo { aspect-ratio: 4 / 3; }
.svc-block h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.svc-block p { color: var(--muted); margin-bottom: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--accent-2); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; }
.step em { display: block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--accent); }

/* brands */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.brands li { padding: 12px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: .95rem; color: var(--text); }
.brands li small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; font-family: var(--mono); }

/* industries */
.ind { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.ind li { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ind li b { display: block; margin-bottom: 6px; }
.ind li span { color: var(--muted); font-size: .9rem; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case__img { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border); }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 28px; }
.case__meta { font-family: var(--mono); font-size: .75rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.case__body p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.case__res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.case__res div { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.case__res b { display: block; font-size: 1.2rem; color: var(--text); }
.case__res span { font-size: .78rem; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; margin-top: 48px; max-width: 900px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(61,139,255,.45); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-list li { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.contact-list small { display: block; font-family: var(--mono); font-size: .72rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.contact-list a, .contact-list span { font-weight: 600; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,139,255,.2); }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form__note { font-size: .8rem; color: var(--muted); }
.form__ok { display: none; padding: 14px; border-radius: 10px; border: 1px solid var(--accent-2); color: var(--accent-2); }

/* cta compact */
.cta--compact { padding: 110px 0; }
.cta--compact .cta__title { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.cta__lead { color: var(--muted); max-width: 620px; margin: -20px auto 36px; }

.note { padding: 18px 22px; border-left: 3px solid var(--accent-2); background: rgba(57,224,208,.06); border-radius: 0 12px 12px 0; color: var(--muted); margin-top: 24px; }
.footer__brand .logo svg { flex: none; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .ind { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .nav { gap: 18px; }
  .nav a { font-size: .88rem; }
}
@media (max-width: 900px) {
  .hero-split, .contact-grid, .svc-block { grid-template-columns: 1fr; gap: 40px; }
  .svc-block--rev .svc-block__img { order: 0; }
  .svc-block { padding: 72px 0; }
  .steps, .cases { grid-template-columns: 1fr; }
  .hero-split .photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .svc-grid, .ind { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 1.7rem; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; }
  .case__res { grid-template-columns: 1fr 1fr 1fr; }
  .hero__actions { margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ ПЕРЕХОДИ ТА АНІМАЦІЇ ============ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .38s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.header { view-transition-name: site-header; transition: box-shadow .3s, background .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); background: rgba(4,6,15,.88); }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .svc.reveal.in:hover, .js .card.reveal.in:hover { transform: translateY(-6px); }
.js .photo.reveal { transform: scale(.97); }
.js .photo.reveal.in { transform: none; }

.hero .eyebrow, .hero .hero__title, .hero .hero__lead, .hero .hero__actions, .hero .hero__quote, .hero .crumbs, .hero .chain, .hero__visual {
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero .hero__title { animation-delay: .08s; }
.hero .hero__lead { animation-delay: .16s; }
.hero .hero__actions { animation-delay: .24s; }
.hero .chain { animation-delay: .32s; }
.hero__visual { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.photo img, .svc__img img, .case__img img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.photo:hover img, .svc:hover .svc__img img, .case:hover .case__img img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.case { transition: transform .3s, border-color .3s; }
.case:hover { border-color: rgba(61,139,255,.5); }
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn--primary:hover::after { transform: translateX(120%); }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav a:not(.btn)::after { display: none; } }
.faq details p { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
/* фото завжди заповнюють рамку, незалежно від пропорцій завантаженого фото */
.photo > img { position: absolute; inset: 0; }
.svc__img, .case__img { position: relative; overflow: hidden; }
.svc__img img, .case__img img { position: absolute; inset: 0; }
.footer__mega { font-size: clamp(3rem, 12.5vw, 11.5rem); white-space: nowrap; }
