/* Larixoft — EN corporate page. Self-contained: no dependency on the legacy site CSS.
   Design: Figma «EN Corporate · Mobile 390» (2270:2); desktop derives from the same blocks. */

@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/golos-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/golos-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/golos-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/golos-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/golos-800-latin.woff2") format("woff2"); }

:root {
    --navy: #0a2a52;
    --navy-700: #12417d;
    --blue: #1561b1;
    --blue-400: #3b8be0;
    --yellow: #f4cd0e;
    --ink: #0a2342;
    --cloud: #f3f6fa;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
    margin: 0;
    font-family: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: var(--navy);
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--pad), 520px); margin-inline: auto; }

/* ── Header ───────────────────────────────────────────────── */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: #fff; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: min(100% - 40px, 524px); margin-inline: auto; padding: 18px 0 12px;
}
.logo img { width: 156px; height: auto; }
.nav, .header-side { display: none; }
.header-controls { display: flex; gap: 10px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 150ms var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--call { color: var(--yellow); }
.burger { display: grid; gap: 3px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 1px; background: #fff; }
.cross { position: relative; width: 18px; height: 18px; }
.cross::before, .cross::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 1px; background: #fff; }
.cross::before { transform: rotate(45deg); }
.cross::after { transform: rotate(-45deg); }

.langs { display: flex; gap: 14px; font-size: 13px; line-height: 18px; font-weight: 500; }
.langs a { color: rgba(255, 255, 255, 0.6); padding: 6px 2px; transition: color 150ms var(--ease); }
.langs a:hover { color: #fff; }
.langs a[aria-current] { color: #fff; font-weight: 600; }

/* ── Mobile menu ──────────────────────────────────────────── */
.menu {
    position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px;
    padding: 18px 20px 32px; background: var(--navy); color: #fff;
}
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top img { width: 156px; height: auto; }
.menu-nav { display: grid; gap: 4px; margin-top: 12px; }
.menu-nav a { padding: 12px 4px; font-size: 24px; line-height: 32px; font-weight: 800; letter-spacing: -0.005em; }
.menu-langs { font-size: 15px; }
.menu .btn { margin-top: auto; }
.menu-open { overflow: hidden; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 58px; border-radius: 14px;
    font-size: 18px; font-weight: 700; white-space: nowrap;
    transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 28px rgba(244, 205, 14, 0.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(244, 205, 14, 0.42); }
.btn--primary:active { transform: translateY(0) scale(0.97); }
.btn svg { transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 104px 0 60px; }
.hero-glow {
    position: absolute; left: -170px; top: -210px; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(21, 97, 177, 0.55), rgba(21, 97, 177, 0));
    pointer-events: none;
}
.hero-inner { position: relative; }
.hero-h1 { font-size: clamp(29px, 9.2vw, 36px); line-height: 1.222; font-weight: 800; letter-spacing: -0.01em; }
.hero-h1 span { white-space: nowrap; }
.hero-h1 span { display: block; }
.hero-h1 .accent { color: var(--yellow); }
.swash { display: block; width: 96px; height: 10px; margin-top: 6px; overflow: visible; }
.swash--hero { width: 146px; height: 13px; margin-top: 8px; }
.hero-sub { margin-top: 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: rgba(255, 255, 255, 0.84); }
.hero-cta { margin-top: 28px; }

.pixels { position: absolute; width: 37px; height: 37px; opacity: 0.8; pointer-events: none; }
.pixels i { position: absolute; width: 7px; height: 7px; left: calc(var(--x) * 10px); top: calc(var(--y) * 10px); background: var(--c); opacity: var(--o); }
.pixels--hero { right: -12px; top: 50px; }
.pixels--hero-2 { display: none; }

/* ── Sections ─────────────────────────────────────────────── */
/* Секція на 1px заходить на попередню (власний margin, не дочірній — без margin collapse):
   на дробових DPR крайні рядки сусідніх блоків покриті частково, і крізь них проступав фон body. */
.section { position: relative; margin-top: -1px; padding-top: 1px; }
/* Верхні 3px секції — кольором попередньої: згладжений верхній рядок SVG-хвилі
   на дробових DPR інакше змішується з фоном секції і дає волосину на стику. */
.section--light { background: linear-gradient(to bottom, var(--navy) 3px, var(--cloud) 3px); color: var(--navy); }
.section--navy { background: linear-gradient(to bottom, var(--cloud) 3px, var(--navy) 3px); color: #fff; overflow: hidden; }
.wave { position: relative; z-index: 1; display: block; width: 100%; height: 72px; }
.section > .container { padding-top: 30px; padding-bottom: 44px; }
h2 { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.005em; }

/* Services */
.services { display: grid; gap: 12px; margin-top: 20px; }
.card { background: #fff; border: 1px solid rgba(10, 42, 82, 0.08); border-radius: 14px; }
.services .card { padding: 18px 18px 20px; }
.card-head { display: flex; align-items: center; gap: 12px; }
.tile {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; background: rgba(21, 97, 177, 0.1); color: var(--blue);
}
.card h3 { font-size: 17px; line-height: 22px; font-weight: 700; }
.card p { margin-top: 12px; color: rgba(10, 42, 82, 0.78); }

/* Clients / map */
.clients-glow {
    position: absolute; left: 0; right: 0; top: 72px; bottom: 0;
    background: radial-gradient(ellipse closest-side at 50% 50%, rgba(21, 97, 177, 0.5), rgba(21, 97, 177, 0));
    pointer-events: none;
}
.clients-inner { position: relative; z-index: 1; display: flex; flex-direction: column; }
.clients-copy { display: contents; }
.clients .head { order: 1; }
.map { order: 2; display: block; margin-top: 24px; }
.map img { width: 100%; height: auto; image-rendering: auto; }
.legend { order: 3; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 13px; line-height: 18px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; }

/* About + contact */
.about-inner { display: grid; gap: 28px; }
.lead { margin-top: 16px; color: rgba(10, 42, 82, 0.78); }
.section > .about-inner { padding-bottom: 48px; }
.contact { padding: 22px 20px; scroll-margin-top: 24px; }
.contact-title { font-size: 22px; line-height: 28px; }
.contact-list { display: grid; gap: 12px; margin: 18px 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; color: rgba(10, 42, 82, 0.78); }
.contact-list svg { flex: none; color: var(--blue); }
.contact-list .strong { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--navy); }
.contact-list a { transition: color 150ms var(--ease); }
.contact-list a:hover { color: var(--blue); }

/* Footer */
.footer > .footer-inner { padding-top: 26px; padding-bottom: 32px; }
.footer-logo { width: 120px; height: auto; }
.legal { margin-top: 22px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.8); }
.legal-name { font-size: 16px; line-height: 22px; font-weight: 600; color: #fff; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.copy { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.55); }

/* ── Motion (only with JS; content is fully visible without it) ───── */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .hero-h1 span, .js .hero-sub, .js .hero-cta { animation: rise 0.7s var(--ease) both; }
.js .hero-h1 span:nth-child(2) { animation-delay: 0.08s; }
.js .hero-h1 span:nth-child(3) { animation-delay: 0.16s; }
.js .hero-sub { animation-delay: 0.3s; }
.js .hero-cta { animation-delay: 0.4s; }
.js .swash--hero path { stroke-dasharray: 1; animation: draw 0.7s var(--ease) 0.45s both; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .hero-h1 span, .js .hero-sub, .js .hero-cta, .js .swash--hero path { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn, .btn svg, .icon-btn { transition: none; }
}

/* ── Tablet: wider reading column, 2-up services ──────────── */
@media (min-width: 680px) {
    .container { width: min(100% - 2 * var(--pad), 640px); }
    .header-inner { width: min(100% - 40px, 644px); }
    .services { grid-template-columns: 1fr 1fr; gap: 16px; }
    .btn { width: auto; min-width: 260px; padding: 0 32px; display: inline-flex; }
    .menu .btn { display: flex; }
}

/* ── Desktop ──────────────────────────────────────────────── */
@media (min-width: 980px) {
    :root { --pad: 32px; }
    body { font-size: 16px; line-height: 24px; }
    .container { width: min(100% - 2 * var(--pad), 1200px); }
    .wave { height: 90px; }
    h2 { font-size: 40px; line-height: 48px; }
    .swash { width: 130px; height: 12px; margin-top: 8px; }
    .section > .container { padding-top: 48px; padding-bottom: 88px; }

    .header-inner { width: min(100% - 64px, 1200px); padding: 22px 0; gap: 32px; }
    .logo img { width: 176px; }
    .header-controls { display: none; }
    .nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
    .nav a { padding: 8px 0; color: rgba(255, 255, 255, 0.82); transition: color 150ms var(--ease); }
    .nav a:hover { color: #fff; }
    .header-side { display: flex; align-items: center; gap: 28px; }
    .header-cta {
        display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 12px;
        background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 700;
        transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
    }
    .header-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(244, 205, 14, 0.35); }

    .hero { padding: 168px 0 120px; }
    .hero-glow { left: -260px; top: -320px; width: 980px; height: 980px; }
    .hero-copy { max-width: 760px; }
    .hero-h1 { font-size: 72px; line-height: 80px; letter-spacing: -0.015em; }
    .swash--hero { width: 270px; height: 19px; margin-top: 12px; }
    .hero-sub { margin-top: 28px; max-width: 600px; font-size: 20px; line-height: 30px; }
    .hero-cta { margin-top: 40px; height: 66px; font-size: 20px; }
    .pixels--hero { right: 40px; top: 24px; width: 148px; height: 148px; }
    .pixels--hero-2 { display: block; right: 200px; top: 250px; width: 111px; height: 111px; opacity: 0.45; }
    .pixels--hero-2 i { width: 21px; height: 21px; left: calc(var(--x) * 30px); top: calc(var(--y) * 30px); }
    .pixels--hero i { width: 28px; height: 28px; left: calc(var(--x) * 40px); top: calc(var(--y) * 40px); }

    .services { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
    .services .card { padding: 26px 24px 28px; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
    .services .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 42, 82, 0.1); }
    .card-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .tile { width: 52px; height: 52px; border-radius: 14px; }
    .card h3 { font-size: 19px; line-height: 26px; }
    .card p { font-size: 15px; line-height: 23px; }

    .clients-inner { flex-direction: row; align-items: center; gap: 64px; }
    .clients-copy { display: block; flex: 0 0 380px; }
    .map { flex: 1 1 auto; margin-top: 0; }
    .legend { margin-top: 32px; font-size: 15px; line-height: 20px; gap: 12px 28px; }
    .legend i { width: 10px; height: 10px; }
    .clients-glow { top: 90px; background: radial-gradient(ellipse closest-side at 66% 50%, rgba(21, 97, 177, 0.5), rgba(21, 97, 177, 0)); }

    .about-inner { grid-template-columns: minmax(0, 1fr) 440px; gap: 96px; align-items: start; }
    .lead { margin-top: 24px; max-width: 560px; font-size: 18px; line-height: 28px; }
    .contact { padding: 32px; }
    .contact-title { font-size: 26px; line-height: 32px; }
    .contact .btn { width: 100%; }

    .footer > .footer-inner { padding-top: 40px; padding-bottom: 40px; }
    .footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
    .footer-logo { width: 156px; }
    .legal { margin-top: 0; text-align: right; }
    .footer-bottom { margin-top: 32px; }
}

@media (min-width: 980px) and (max-width: 1199.98px) {
    .services { grid-template-columns: 1fr 1fr; }
    .card-head { flex-direction: row; align-items: center; }
    .clients-copy { flex-basis: 320px; }
    .clients-inner { gap: 40px; }
    .about-inner { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; }
    .hero-h1 { font-size: 60px; line-height: 68px; }
}
