/* Navi.Ski studio homepage (index.html, en.html, ua.html, ru.html) */
:root {
    --snow: #F2F6F9;
    --paper: #FFFFFF;
    --ink: #0E2236;
    --slate: #556779;
    --line: #D3DEE7;
    --route: #0A8DD3;
    --route-deep: #0670AA;
    --dot: #24BAB6;
    --accent: #B6313B;
    --accent-deep: #94232C;
    --piste-green: #2E9E4F;
    --piste-black: #0E1A26;
    --halo-black: var(--snow);
    --on-accent: #FFFFFF;
    --phone-shadow: rgba(14,34,54,.28);
    --cta-bg: #0E2236;
    --cta-text: #FFFFFF;
    --cta-muted: #B7C6D4;
    --foot-text: #8DA0B3;
    --foot-link: #C9D6E2;
    --foot-line: #22384E;
    color-scheme: light;
    --sun: none; --moon: inline;
    --display: "Unbounded", "Arial Black", sans-serif;
    --body: "Onest", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --snow: #0A1622;
        --paper: #0F2030;
        --ink: #E6EEF5;
        --slate: #9BB0C3;
        --line: #213649;
        --route: #2AA2E5;
        --route-deep: #5DBCF0;
        --accent: #C93A43;
        --accent-deep: #DA555D;
        --dot: #2CCAC6;
        --piste-green: #35B25A;
        --piste-black: #000000;
        --halo-black: #4A6074;
        --phone-shadow: rgba(0,0,0,.6);
        --cta-bg: #050E17;
        --cta-text: #F2F6F9;
        --cta-muted: #9BB0C3;
        --foot-text: #7D92A6;
        --foot-link: #C3D1DE;
        --foot-line: #16293A;
        color-scheme: dark;
        --sun: inline; --moon: none;
    }
}
:root[data-theme="dark"] {
    --snow: #0A1622;
    --paper: #0F2030;
    --ink: #E6EEF5;
    --slate: #9BB0C3;
    --line: #213649;
    --route: #2AA2E5;
    --route-deep: #5DBCF0;
    --accent: #C93A43;
    --accent-deep: #DA555D;
    --dot: #2CCAC6;
    --piste-green: #35B25A;
    --piste-black: #000000;
    --halo-black: #4A6074;
    --phone-shadow: rgba(0,0,0,.6);
    --cta-bg: #050E17;
    --cta-text: #F2F6F9;
    --cta-muted: #9BB0C3;
    --foot-text: #7D92A6;
    --foot-link: #C3D1DE;
    --foot-line: #16293A;
    color-scheme: dark;
    --sun: inline; --moon: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--snow);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--dot);
    outline-offset: 3px;
    border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.top { position: relative; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark svg { width: 44px; height: 44px; --logo-sky: #B6313B; --logo-snow: #FFFFFF; --logo-peak: #000000; --logo-dot: #24BAB6; }
.mark span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a {
    color: var(--slate); text-decoration: none; font-weight: 500; font-size: .95rem;
    padding: 6px 10px; border-radius: 8px;
}
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.theme {
    margin-left: 8px; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: transparent; color: var(--ink); cursor: pointer;
    font: 400 1.25rem/1 var(--body); display: grid; place-items: center;
    box-shadow: inset 0 0 0 1px var(--line);
}
.theme:hover { background: var(--paper); }
.theme:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
.theme .sun { display: var(--sun); }
.theme .moon { display: var(--moon); }
.top nav .contact { margin-left: 8px; color: var(--paper); background: var(--ink); }
.top nav .contact:hover { color: #FFFFFF; background: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    pointer-events: none; z-index: 3;
}
.hero .route {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 5 / 1; min-height: 160px;
    pointer-events: none; z-index: 0;
}
.route path {
    fill: none; stroke-linejoin: round; stroke-linecap: round;
    stroke-dasharray: 2400; stroke-dashoffset: 2400;
    animation: draw 2.2s cubic-bezier(.6,.05,.3,1) forwards;
}
.route .run { stroke-width: 16; }
.route .halo { stroke-width: 28; stroke: var(--snow); }
.route .halo.black { stroke: var(--halo-black); stroke-width: 24; }
.route .green { animation-delay: .1s; }
.route .green.run { stroke: var(--piste-green); }
.route .black { animation-delay: .45s; }
.route .black.run { stroke: var(--piste-black); }
.route .blue { animation-delay: .8s; }
.route .blue.run { stroke: var(--route); }
.route circle { fill: var(--dot); stroke: var(--snow); stroke-width: 10; }
.route .end { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .45s ease-out 2.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

.hero .wrap {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center;
}
.hero-copy { padding: 24px 0 max(200px, 20vw); max-width: 660px; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.3rem); font-weight: 600; letter-spacing: -0.025em; }
:lang(ru) .hero h1, :lang(uk) .hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.hero .lead { font-size: 1.2rem; color: var(--slate); margin: 28px 0 0; max-width: 34em; }
.hero .lead-strong { font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin: 18px 0 36px; max-width: 34em; }
.hero .lead-strong strong { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
    display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
    padding: 15px 26px; border-radius: 999px;
}
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-deep); }
.btn-plain { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-plain:hover { background: var(--ink); color: var(--snow); }
.hero-phone { justify-self: center; align-self: end; position: relative; z-index: 2; width: min(290px, 100%); margin-bottom: -70px; filter: drop-shadow(0 30px 50px var(--phone-shadow)); }

/* Sections */
section.part { padding: 120px 0; }
section.part.paper { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split .head { position: sticky; top: 32px; }
.part h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.part .intro { color: var(--slate); font-size: 1.12rem; margin: 22px 0 0; max-width: 32em; }

.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 26px 0 26px 44px; border-top: 1px solid var(--line); position: relative; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before {
    content: ""; position: absolute; left: 4px; top: 33px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--dot); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--accent);
}
.part:not(.paper) .points li::before { box-shadow: 0 0 0 4px var(--snow), 0 0 0 6px var(--accent); }
.points h3 { font-family: var(--body); font-weight: 600; font-size: 1.2rem; letter-spacing: 0; }
.points p { margin: 6px 0 0; color: var(--slate); max-width: 36em; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 80px auto 0; max-width: 860px; }
.screens figure { margin: 0; }
.screens img { width: 100%; height: auto; }
.screens figcaption { margin-top: 16px; font-weight: 500; color: var(--ink); text-align: center; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ink); color: var(--snow); font: 600 1.05rem var(--display);
    position: relative; z-index: 1;
}
.steps li::after {
    content: ""; position: absolute; top: 22px; left: 46px; right: 0; height: 3px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 20px);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-family: var(--body); font-weight: 600; font-size: 1.2rem; margin: 22px 0 8px; letter-spacing: 0; }
.steps p { margin: 0; color: var(--slate); }

/* Call to action */
.cta { background: var(--cta-bg); color: var(--cta-text); padding: 110px 0; position: relative; overflow: hidden; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 16em; }
.cta p { color: var(--cta-muted); font-size: 1.15rem; max-width: 34em; margin: 22px 0 36px; }
.cta .btn-main { font-size: 1.1rem; }
.cta .mail { display: block; margin-top: 18px; color: var(--cta-muted); }

/* Footer */
.foot { background: var(--cta-bg); color: var(--foot-text); border-top: 1px solid var(--foot-line); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--foot-link); text-decoration: none; }
.foot a:hover { color: var(--cta-text); text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
    .hero-copy { padding-bottom: 24px; }
    .hero-phone { width: 240px; margin-bottom: -40px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split .head { position: static; }
    .screens { gap: 20px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
    .steps li:nth-child(2)::after { display: none; }
    section.part { padding: 88px 0; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .top .wrap { height: 72px; }
    .mark span { display: none; }
    .top nav .contact { margin-left: 4px; }
    .top nav a { padding: 6px 8px; }
    .hero .lead, .hero .lead-strong { font-size: 1.08rem; }
    .steps { grid-template-columns: 1fr; }
    .steps li::after { display: none; }
    .screens { grid-template-columns: 1fr 1fr; }
    .screens figure:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
    .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .route path { animation: none; stroke-dashoffset: 0; }
    .route .end { animation: none; opacity: 1; }
}
