:root {
    --bg: #080e1b;
    --panel: #111d30;
    --card: #14243a;
    --card-hover: #1b3048;
    --line: #38516b;
    --accent: #258ab8;
    --cyan: #64d8ff;
    --title: #f1f6ff;
    --muted: #bacbe0;
    --font: "Manrope", system-ui, sans-serif;
    --header: 4.5rem;
    --dock: 5.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + env(safe-area-inset-top));
    scroll-padding-bottom: var(--dock);
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(37, 138, 184, 0.18), transparent 60%),
        var(--bg);
    color: var(--muted);
    font-family: var(--font);
    line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: var(--cyan); }

h1, h2, h3 { color: var(--title); font-weight: 750; letter-spacing: -0.03em; }

h1 { margin: 0 0 0.6rem; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 0.98; }

h2 { margin: 0 0 0.45rem; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; }

h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.02em; }

p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: var(--title);
    color: var(--bg);
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--header);
    padding: calc(0.45rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.45rem max(1rem, env(safe-area-inset-left));
    background: rgba(8, 14, 27, 0.92);
    border-bottom: 1px solid rgba(56, 81, 107, 0.65);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--title);
    text-decoration: none;
}

.brand img { width: 46px; height: 49px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; }

.brand-sub {
    margin-top: 0.2rem;
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 0.35rem 1rem; }

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
    font-size: 0.95rem;
}

.nav-links a[aria-current="true"],
.nav-links a:hover { color: var(--title); }

.lang-switch {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    color: var(--cyan) !important;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--title);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--title);
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.progress {
    position: fixed;
    top: 50%;
    right: 1rem;
    z-index: 35;
    display: grid;
    gap: 0.7rem;
    transform: translateY(-50%);
}

.progress a {
    width: 11px;
    height: 11px;
    border-radius: 99px;
    border: 1px solid var(--cyan);
    background: transparent;
}

.progress a[aria-current="true"] { background: var(--cyan); }

.step {
    scroll-margin-top: calc(var(--header) + env(safe-area-inset-top));
    padding: 1.75rem 0 calc(var(--dock) + 1.25rem);
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.eyebrow {
    margin-bottom: 0.7rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.16em;
}

.lead { max-width: 42rem; color: var(--muted); font-size: 1.05rem; }

.hero-next {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.85rem;
    font-weight: 750;
    text-decoration: none;
}

.accent { color: var(--cyan); }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.hero-visual { display: grid; place-items: center; }

.hero-visual img {
    width: min(100%, 420px);
    height: auto;
    filter: drop-shadow(0 0 36px rgba(37, 138, 184, 0.35));
}

.card-grid,
.partner-grid { margin-top: 1.25rem; display: grid; gap: 0.8rem; }

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile { min-width: 0; }

.tile button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1rem 1rem 0.9rem;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--title);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.tile button p { color: var(--muted); font-size: 0.92rem; }

.tile-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #203b53;
    color: var(--cyan);
}

.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tile-more { margin-top: auto; color: var(--cyan); font-size: 0.88rem; font-weight: 750; }

.tile button:hover,
.tile button:focus-visible { background: var(--card-hover); border-color: var(--cyan); }

.tile button:focus-visible,
.partner-card:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible,
.sheet-close:focus-visible,
.progress a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    padding: 0.85rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--title);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.partner-card:hover,
.partner-card:focus-visible { background: var(--card-hover); border-color: var(--cyan); }

.partner-logo-well {
    display: grid;
    place-items: center;
    min-height: 124px;
    padding: 0.8rem;
    border-radius: 12px;
    background: #f4f7fb;
}

.partner-logo-well img { max-height: 92px; width: auto; object-fit: contain; }

.partner-name { font-weight: 750; }

.partner-go { color: var(--cyan); font-size: 0.88rem; font-weight: 700; }

.cta-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(8, 14, 27, 0.92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

html:has(dialog[open]),
body:has(dialog[open]) { overflow: hidden; }

body:has(dialog[open]) .cta-dock { visibility: hidden; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary { background: var(--cyan); color: #062033; }

.btn-primary:hover { background: #8be3ff; }

.btn-ghost { background: transparent; color: var(--title); border-color: var(--line); }

.btn-ghost:hover { border-color: var(--cyan); background: var(--card); }

.site-footer { padding: 0 0 calc(var(--dock) + 0.5rem); }

.footer-row {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-links { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.footer-links a { color: var(--muted); text-decoration: none; }

.sheet {
    width: min(680px, calc(100vw - 1.5rem));
    max-height: min(86svh, 820px);
    padding: 0;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.sheet::backdrop { background: rgba(4, 8, 16, 0.72); }

.sheet-body { padding: 1.4rem 1.3rem 1.2rem; overflow: auto; max-height: min(86svh, 820px); }

.sheet h2 { margin-bottom: 0.45rem; }

.sheet h3 { margin: 1rem 0 0.4rem; font-size: 0.95rem; color: var(--cyan); }

.sheet ul { margin: 0; padding-left: 1.1rem; }

.sheet li + li { margin-top: 0.25rem; }

.sheet-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 0.7rem;
    border-radius: 12px;
    background: #203b53;
    color: var(--cyan);
}

.sheet-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sheet:not([open]) { display: none; }

.sheet[open] { display: flex; flex-direction: column; }

.sheet-close {
    align-self: flex-end;
    margin: 0.7rem 0.7rem 0 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--title);
    font-size: 1.4rem;
    cursor: pointer;
}

.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

.fine { margin-top: 0.8rem; color: var(--muted); font-size: 0.86rem; }

.lab {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
}

.lab label,
#contactForm label { display: grid; gap: 0.3rem; margin-top: 0.7rem; color: var(--title); font-size: 0.92rem; font-weight: 650; }

.lab input,
#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--title);
}

.optional { color: var(--muted); font-weight: 500; }

.lab-note { margin: 0.35rem 0 0.2rem; font-size: 0.86rem; }

.lab-out { margin-top: 0.7rem; color: var(--title); font-weight: 700; }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-status { min-height: 1.2em; margin-top: 0.8rem; }

.form-status.is-error { color: #ffb4b4; }

.form-status.is-ok { color: #9af0c8; }

@media (min-width: 901px) {
    .step {
        min-height: calc(100svh - var(--header));
        display: flex;
        align-items: center;
        padding: 1.25rem 0 calc(var(--dock) + 1.25rem);
    }
}

@media (max-width: 980px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .hero-visual img { width: min(100%, 160px); }
}

@media (max-width: 860px) {
    :root { --header: 3.6rem; --dock: 4.4rem; }
    .brand img { width: 36px; height: 38px; }
    .brand-name { font-size: 1.15rem; }
    .brand-sub { font-size: 0.6rem; letter-spacing: 0.1em; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.35rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
        background: rgba(8, 14, 27, 0.98);
        border-bottom: 1px solid var(--line);
    }
    .nav-links.is-open { display: flex; }
    .progress { display: none; }
    .tile button { padding: 0.8rem 0.85rem; gap: 0.4rem; }
    .partner-logo-well { min-height: 88px; padding: 0.5rem; }
    .partner-logo-well img { max-height: 64px; }
    .cta-dock { flex-wrap: nowrap; }
    .cta-dock .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.55rem 0.7rem;
        font-size: 0.86rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }
    .sheet {
        width: calc(100vw - 1rem);
        max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 0.75rem);
    }
    .sheet-body {
        max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 4.5rem);
    }
    h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
}

@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
    .partner-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tile button,
    .partner-card,
    .btn { transition: none; }
}
