:root {
    --bg: #f4f5f6;
    --paper: #ffffff;
    --ink: #18181c;
    --ink-2: #353539;
    --muted: #7a7d85;
    --line: #e9eaee;
    --line-2: #f1f2f5;
    --accent: #ffdb4d;
    --accent-dark: #f0c800;
    --accent-soft: #fff8db;
    --link: #2c5fff;
    --link-dark: #1f47cc;
    --good: #00a86b;
    --tg: #2aabee;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body { margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    color: var(--ink);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

button, .btn, .thumb, .nav-arrow, .cookie-accept, .cookie-close {
    touch-action: manipulation;
}

img { max-width: 100%; height: auto; }
.slide, .thumb img { image-rendering: -webkit-optimize-contrast; }

.topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.topbar-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--ink);
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name strong { font-weight: 700; font-size: 15px; }
.brand-name small { color: var(--muted); font-size: 12px; margin-top: 1px; }

.topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
}

.topbar-meta .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e6f9ee;
    color: var(--good);
    font-weight: 600;
    font-size: 12px;
}

.topbar-meta .badge svg { width: 13px; height: 13px; }

.crumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px 8px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.5; }
.crumbs .current { color: var(--ink); }

.listing {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.gallery {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    overflow: hidden;
}

.slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.slide.active { opacity: 1; }

.frame-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.frame-tag svg { width: 13px; height: 13px; }

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.18s ease, transform 0.18s ease;
    opacity: 0;
}

.gallery:hover .nav-arrow,
.nav-arrow:focus-visible { opacity: 1; }

.nav-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.nav-arrow.prev { left: 12px; }
.nav-arrow.next { right: 12px; }
.nav-arrow svg { width: 18px; height: 18px; }

.thumbs {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    padding: 8px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.thumb {
    appearance: none;
    border: 2px solid transparent;
    background: var(--bg);
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb:hover { transform: translateY(-1px); }
.thumb.active { border-color: var(--ink); }

.info {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.kicker .live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d6443a;
}

.kicker .live::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: #d6443a;
    box-shadow: 0 0 0 0 rgba(214, 68, 58, 0.5);
    animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(214, 68, 58, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(214, 68, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 68, 58, 0); }
}

h1 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: var(--ink);
}

.subtitle {
    margin: 4px 0 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.deal-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--accent-soft);
    border-radius: 10px;
    border: 1px solid #f5dd60;
}

.deal-num {
    font-size: clamp(34px, 3.6vw, 44px);
    line-height: 0.95;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.deal-num em { font-style: normal; color: #b88a00; }

.deal-text {
    line-height: 1.4;
    font-size: 13.5px;
    color: var(--ink-2);
}

.deal-text strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 2px;
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-right: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
}

.spec:nth-child(2n) { border-right: 0; }
.spec:nth-last-child(-n+2) { border-bottom: 0; }

.spec-label {
    color: var(--muted);
    font-size: 12px;
}

.spec-value {
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
}

.spec-value.good {
    color: var(--good);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spec-value.good svg { width: 14px; height: 14px; }

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

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

.btn-primary {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary svg path { stroke: var(--ink); }
.btn-primary svg rect { fill: rgba(0, 0, 0, 0.14); }

.btn-secondary {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line);
}
.btn-secondary:hover {
    border-color: var(--ink);
    background: #f9f9fb;
}
.btn-secondary svg { fill: var(--tg); }

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

.trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.trust li svg {
    width: 16px;
    height: 16px;
    color: var(--good);
    flex: 0 0 auto;
}

.note {
    margin: 0;
    padding: 12px 14px;
    background: #f8f8fb;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 3px solid var(--accent);
}

.footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.footer-in a {
    color: var(--link);
    text-decoration: none;
}

.footer-in a:hover { text-decoration: underline; }

.cookie-banner {
    position: fixed;
    left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 100;
    max-width: 540px;
    width: calc(100% - 32px);
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.cookie-text-short { display: none; }
.cookie-banner a { color: var(--link); }
.cookie-accept {
    border: 0; padding: 8px 14px;
    background: var(--accent); color: var(--ink);
    font-weight: 700; font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s ease;
}
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-close {
    appearance: none;
    background: transparent; border: 0;
    color: var(--muted);
    width: 28px; height: 28px;
    font-size: 18px; line-height: 1;
    cursor: pointer;
}
.cookie-close:hover { color: var(--ink); }

@media (max-width: 880px) {
    body { font-size: 14px; }
    .topbar-in { padding: 10px 14px; }
    .topbar-meta { font-size: 12px; gap: 8px; }
    .crumbs { padding: 10px 14px 6px; font-size: 12px; }
    .listing {
        padding: 4px 14px 20px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .gallery { border-radius: 10px; }
    .info { padding: 16px; border-radius: 10px; gap: 14px; }
    .frame-tag { font-size: 11px; padding: 5px 10px; }
    .nav-arrow { display: none; }
    h1 { font-size: 20px; }
    .subtitle { font-size: 13.5px; }
    .deal-num { font-size: 32px; }
    .deal-text strong { font-size: 14px; }
    .specs { grid-template-columns: 1fr; }
    .spec { border-right: 0; }
    .actions { grid-template-columns: 1fr; }
    .btn { height: 48px; font-size: 14px; }
    .trust { grid-template-columns: 1fr; }
    .thumbs { grid-template-columns: repeat(4, 1fr); }
    .footer-in { padding: 14px; font-size: 12px; gap: 8px; }
}

@media (max-width: 420px) {
    .thumbs { grid-template-columns: repeat(3, 1fr); padding: 6px; gap: 5px; }
    .topbar-meta .badge-text { display: none; }
    .cookie-text-full { display: none; }
    .cookie-text-short { display: inline; }
}

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