﻿:root {
    --bg: #f2f6f9;
    --bg-alt: #e9eff4;
    --card: #ffffff;
    --ink: #14202b;
    --ink-soft: #4d6072;
    --line: #cad8e5;
    --brand: #1f6fb2;
    --brand-deep: #18598f;
    --accent: #0f766e;
    --accent-deep: #0b5d57;
    --ok: #1b7f5e;
    --err: #b43a3a;
    --r-xl: 24px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 9px;
    --shadow-a: 0 14px 34px rgba(20, 43, 69, 0.10);
    --shadow-b: 0 20px 45px rgba(15, 35, 58, 0.17);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI Variable", "Trebuchet MS", "Verdana", sans-serif;
    line-height: 1.72;
    background:
        radial-gradient(circle at 0% 0%, rgba(31, 111, 178, 0.10), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.09), transparent 30%),
        linear-gradient(180deg, #f5f8fb 0%, #edf3f7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.wrap {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

img {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: var(--r-lg);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1300;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 0.6rem 0.9rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(12px);
    background: rgba(242, 246, 249, 0.92);
    border-bottom: 1px solid #d3e0ea;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.8rem 0;
}

.brand-kicker {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.brand strong {
    display: block;
    font-family: "Cambria", "Palatino Linotype", serif;
    font-size: 1.06rem;
}

.brand-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 0.08rem 0.24rem;
    transition: color .2s ease, transform .2s ease, background-color .2s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
    color: var(--brand);
    transform: translateY(-1px);
    background: rgba(31, 111, 178, 0.08);
}

.menu-toggle {
    display: none;
    border: 1px solid #b9ccdc;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0.42rem 0.84rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 999px;
    border: 1px solid #c9d8e5;
    background: #fff;
    color: var(--ink);
    padding: 0.3rem 0.72rem;
    transition: .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.hero {
    padding: 2.6rem 0 1.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.15rem;
}

.hero-grid > div {
    background: linear-gradient(170deg, #fbfdff, #ffffff);
    border: 1px solid #d4e1eb;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-a);
    padding: 1.2rem;
}

.hero h1,
.section h2,
.section h3 {
    font-family: "Cambria", "Palatino Linotype", serif;
    line-height: 1.24;
}

.hero h1 {
    margin: 0.38rem 0 0.82rem;
    font-size: clamp(1.62rem, 3.2vw, 2.35rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c7d9e9;
    border-radius: 999px;
    background: linear-gradient(90deg, #e9f3fc, #e8f6f4);
    color: #2c4f69;
    padding: 0.24rem 0.7rem;
    font-size: 0.8rem;
}

.hero-tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags span {
    border-radius: 999px;
    border: 1px solid #d2dfeb;
    background: #fff;
    padding: 0.24rem 0.6rem;
    font-size: 0.8rem;
}

.ops-strip {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.ops-strip article {
    background: #fff;
    border: 1px solid #d5e1eb;
    border-radius: var(--r-sm);
    padding: 0.62rem;
}

.ops-strip strong {
    display: block;
    font-size: 0.88rem;
}

.ops-strip p {
    margin: 0.22rem 0 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.hero-figure {
    background: linear-gradient(170deg, #172536, #0f1c29);
    border: 1px solid #29435d;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-b);
    padding: 0.86rem;
}

.hero-chart {
    margin-top: 0.7rem;
    border: 1px solid #cad8e5;
    border-radius: var(--r-md);
    background: #fff;
    padding: 0.32rem;
}

.hero-chart polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section {
    padding: 2.2rem 0;
}

.section.alt {
    background: linear-gradient(180deg, #edf3f7, #e7eef3);
    border-top: 1px solid #d7e3ec;
    border-bottom: 1px solid #d7e3ec;
}

.section h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 2.7vw, 1.92rem);
}

.section p {
    margin: 0 0 0.72rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.08rem;
    align-items: start;
}

.two-col > div,
.two-col > figure {
    background: var(--card);
    border: 1px solid #d4e1eb;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-a);
    padding: 1rem;
}

.inline-visual,
.section-image {
    margin: 1rem 0;
    background: #fff;
    border: 1px solid #d3e1eb;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-a);
    padding: 0.72rem;
}

.inline-visual figcaption {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.inline-visual.compact-note {
    max-width: 840px;
}

.section-image.compact {
    max-width: 560px;
}

.related {
    margin-top: 0.95rem;
    border: 1px dashed #9fb7c9;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.85rem 0.95rem;
}

.related h3 {
    margin: 0 0 0.42rem;
    font-family: "Segoe UI Variable", "Trebuchet MS", sans-serif;
    font-size: 0.98rem;
}

.related a {
    display: inline-flex;
    margin-right: 0.5rem;
    margin-bottom: 0.32rem;
    font-weight: 600;
    text-decoration: none;
}

.tools-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.tool-card {
    background: #fff;
    border: 1px solid #d3e0ea;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-a);
    padding: 0.95rem;
}

.tool-list {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
}

.tool-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid #e0e9f0;
    padding: 0.45rem 0;
}

label {
    display: grid;
    gap: 0.32rem;
    font-size: 0.9rem;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    width: 100%;
    border: 1px solid #bed0df;
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    padding: 0.56rem 0.64rem;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(31, 111, 178, 0.24);
    border-color: var(--brand);
}

button {
    border: 1px solid var(--brand);
    border-radius: var(--r-sm);
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    color: #fff;
    padding: 0.56rem 0.74rem;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.05);
}

.faq-item {
    background: #fff;
    border: 1px solid #d2dfea;
    border-radius: var(--r-lg);
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    border: 0;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    color: var(--ink);
    text-align: left;
    padding: 0.9rem 0.95rem;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 0.95rem;
    transition: max-height .35s ease, padding .35s ease;
}

.faq-panel.is-open {
    padding: 0 0.95rem 0.86rem;
}

.contact-form {
    background: #fff;
    border: 1px solid #d2deea;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-a);
    padding: 1rem;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
}

.checkbox-line input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.26rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    min-height: 1.2rem;
    font-weight: 600;
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.site-footer {
    border-top: 1px solid #d4e0ea;
    background: linear-gradient(180deg, #e9eff4, #e2eaf0);
    padding: 1rem 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

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

.footer-links a,
.back-top {
    text-decoration: none;
    border: 1px solid #c2d3e1;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.84rem;
    padding: 0.3rem 0.62rem;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.footer-links a:hover,
.back-top:hover {
    transform: translateY(-1px);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.cookie-banner {
    position: fixed;
    z-index: 1300;
    right: 1rem;
    bottom: 1rem;
    width: min(780px, calc(100vw - 2rem));
}

.cookie-banner__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.8rem;
    align-items: end;
    border-radius: 18px;
    border: 1px solid #32587a;
    background: linear-gradient(145deg, #15314b, #11263a);
    color: #e8f3fb;
    box-shadow: 0 22px 54px rgba(11, 27, 41, 0.50);
    padding: 0.95rem;
}

.cookie-badge {
    margin: 0 0 0.35rem;
    display: inline-flex;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(232, 243, 251, 0.42);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
}

.cookie-banner__content h2 {
    margin: 0 0 0.28rem;
    font-family: "Cambria", "Palatino Linotype", serif;
    font-size: 1.14rem;
    line-height: 1.3;
}

.cookie-banner__content p {
    margin: 0;
    color: #c9dceb;
    font-size: 0.9rem;
}

.cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.cookie-btn {
    width: 100%;
    border: 1px solid #6e8ca7;
    border-radius: 10px;
    background: #1f4668;
    color: #edf6fd;
    padding: 0.55rem 0.5rem;
}

.cookie-btn:hover {
    background: #27567d;
}

.cookie-btn--primary {
    border-color: #4ba79f;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.cookie-btn--primary:hover {
    background: linear-gradient(180deg, #148980, #0e6a63);
}

.cookie-panel {
    position: fixed;
    inset: 0;
    z-index: 1310;
    background: rgba(8, 20, 31, 0.66);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.cookie-modal {
    width: min(620px, 100%);
    border: 1px solid #cad9e6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    box-shadow: 0 24px 60px rgba(15, 31, 47, 0.32);
    padding: 1rem;
}

.cookie-modal__head {
    margin-bottom: 0.45rem;
}

.cookie-modal__head h2 {
    margin: 0.35rem 0;
    font-size: 1.3rem;
}

.cookie-modal__head p {
    margin: 0;
    color: var(--ink-soft);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
    border-bottom: 1px solid #d7e3ed;
    padding: 0.7rem 0;
}

.cookie-option h3 {
    margin: 0;
    font-size: 1rem;
}

.cookie-option p {
    margin: 0.22rem 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.cookie-switch {
    min-width: 94px;
    border: 1px solid #b2c8d9;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0.35rem 0.7rem;
}

.cookie-switch[aria-pressed="true"] {
    border-color: var(--ok);
    background: var(--ok);
    color: #fff;
}

.cookie-switch.required {
    opacity: 0.85;
}

.cookie-modal__actions {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.section,
.hero-grid > div,
.hero-figure,
.two-col > div,
.two-col > figure,
.inline-visual,
.section-image,
.tool-card,
.faq-item,
.cookie-banner__inner,
.cookie-modal {
    animation: fadeUp .4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1050px) {
    .hero-grid,
    .two-col,
    .tools-grid,
    .ops-strip {
        grid-template-columns: 1fr;
    }

    .cookie-banner__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        display: flex;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .35s ease, opacity .35s ease;
    }

    .site-nav.open {
        max-height: 320px;
        opacity: 1;
    }

    .cookie-banner {
        left: 0.65rem;
        right: 0.65rem;
        width: auto;
        bottom: 0.65rem;
    }

    .cookie-banner__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 1.8rem 0;
    }

    .cookie-panel {
        align-items: end;
        padding: 0;
    }

    .cookie-modal {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 100%;
        max-height: 92vh;
        overflow-y: auto;
    }

    .cookie-modal__actions {
        grid-template-columns: 1fr;
    }

    .site-nav a,
    .footer-links a,
    .back-top {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
