:root {
    --bg: #eaf1f9;
    --paper: #ffffff;
    --ink: #16365c;
    --ink-2: #4a5f7a;
    --muted: #8b9bb0;
    --line: #dfe8f2;
    --blue: #1e8fe1;
    --blue-dark: #1769b5;
    --blue-soft: #e7f2fc;
    --navy: #16365c;
    --dark: #0f2742;
    --tg: #2aabee;
    --flag-red: #d52b1e;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    color: var(--ink);
    background:
        radial-gradient(1100px 600px at 50% -10%, #f4f9fe 0%, var(--bg) 60%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button, .btn { touch-action: manipulation; }

.screen {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.card {
    width: 100%;
    max-width: 440px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(22, 54, 92, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px 14px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.brand-mark svg { width: 38px; height: 38px; }

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-name b { color: var(--navy); font-weight: 800; }
.brand-name span { color: var(--blue); }

.photo {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--dark);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 39, 66, 0.05) 0%, rgba(15, 39, 66, 0) 35%, rgba(15, 39, 66, 0.25) 100%);
}

.badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 39, 66, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge svg {
    width: 15px;
    height: 15px;
    color: #fff;
    flex: 0 0 auto;
}

.body {
    padding: 22px 24px 20px;
}

h1 {
    margin: 0;
    font-size: clamp(24px, 6.5vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--navy);
}

.lead {
    margin: 10px 0 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.55;
}

.actions {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 54px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.btn svg { width: 21px; height: 21px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-primary svg path { stroke: #fff; }
.btn-primary svg rect { fill: rgba(255, 255, 255, 0.2); }

.btn-secondary {
    background: var(--paper);
    color: var(--navy);
    border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-secondary svg { fill: var(--tg); }

.btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.tricolor {
    display: block;
    height: 4px;
    background: linear-gradient(90deg,
        #ffffff 0 33.33%,
        #1e5fbf 33.33% 66.66%,
        var(--flag-red) 66.66% 100%);
    border-top: 1px solid var(--line);
}

.company {
    padding: 14px 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}

.company-org { color: var(--ink-2); font-weight: 600; }
.company-reg { color: var(--muted); }

.company-disclaimer {
    margin: 2px 0 0;
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--muted);
}

.company a {
    color: var(--blue);
    text-decoration: none;
    width: fit-content;
    margin-top: 2px;
}
.company a:hover { text-decoration: underline; }

/* ---- Мобильный слайдер авто (на десктопе остаётся статичное .photo) ---- */
.slider { display: none; }

@media (max-width: 767px) {
    .photo { display: none; }
    .slider { display: block; position: relative; background: var(--dark); }
}

.viewport { overflow: hidden; }

.track {
    display: flex;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.4, 0.05, 0.2, 1);
}
.track.no-anim { transition: none; }

.slide {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
}
.slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 45%;
    display: block;
    background: var(--dark);
}

.cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 16px 26px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 39, 66, 0) 0%, rgba(15, 39, 66, 0.45) 45%, rgba(15, 39, 66, 0.88) 100%);
}
.cap-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cap-row b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.cap-row i {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
}
.cap-spec { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.cap-price { margin-top: 3px; font-size: 19px; font-weight: 800; color: #fff; }

.nav {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 39, 66, 0.25);
    transition: background 0.18s ease, transform 0.12s ease;
}
.nav svg { width: 17px; height: 17px; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.nav:hover { background: #fff; }
.nav:active { transform: translateY(-50%) scale(0.92); }
.nav:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.dot.active { width: 20px; border-radius: 3px; background: #fff; }
.dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 420px) {
    .brand { padding: 14px 18px 12px; }
    .body { padding: 18px 18px 16px; }
    .company { padding: 12px 18px 16px; }
    .btn { height: 52px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
