:root {
    --color-primary: #8b6f47;
    --color-secondary: #a0826d;
    --color-accent: #d4af37;
    --color-bg: #faf8f4;
    --color-ink: #3a2e22;
    --color-muted: #6d5b4a;
    --color-line: #e4d8c8;
    --color-hero: #5c4630;
    --agv-header-h: 72px;
    --agv-page-w: 1120px;
    --space-lg: 24px;
    --font-head: "Bitter", Georgia, serif;
    --font-body: "Cabin", "Segoe UI", sans-serif;
}

@media (max-width: 768px) {
    :root { --agv-header-h: 64px; }
}

[hidden] { display: none !important; }

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html { scroll-padding-top: var(--agv-header-h); }

body {
    padding-top: var(--agv-header-h);
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        repeating-linear-gradient(0deg, rgba(139, 111, 71, 0.05) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(90deg, rgba(139, 111, 71, 0.05) 0 1px, transparent 1px 7px);
}

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

a { color: var(--color-hero); }
a:not(.agv-m-btn) { text-underline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.25;
    font-weight: 700;
}

.agv-l-main, .agv-l-footer, .agv-m-cookie { position: relative; z-index: 1; }

.agv-l-container {
    max-width: var(--agv-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.agv-l-measure { max-width: 760px; }

.agv-l-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.agv-l-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--agv-header-h);
    background: #faf8f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.agv-l-header a,
.agv-l-header a:visited { color: #5c4630; }

.agv-l-header-row {
    display: flex;
    align-items: center;
    min-height: var(--agv-header-h);
    position: relative;
}

.agv-m-logo { display: flex; align-items: center; flex: 0 0 auto; }

.agv-m-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.agv-m-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    align-items: center;
}

.agv-m-nav a {
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 0;
}

.agv-m-nav a.agv-is-active { box-shadow: inset 0 -2px 0 #d4af37; }

.agv-m-burger,
.agv-m-overlay,
.agv-m-drawer { display: none; }

.agv-m-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 2px solid #8b6f47;
    background: #faf8f4;
    padding: 10px;
    cursor: pointer;
}

.agv-m-burger span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #5c4630;
}

.agv-m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    background: #faf8f4;
    color: #5c4630;
    text-decoration: none;
    border: 2px solid #8b6f47;
    box-shadow: 0 0 0 3px #faf8f4, 0 0 0 5px #d4af37;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
}

.agv-m-btn--primary {
    background: #8b6f47;
    color: #faf8f4;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px #faf8f4, 0 0 0 5px #8b6f47;
}

.agv-m-btn--light {
    background: transparent;
    color: #faf8f4;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px #5c4630, 0 0 0 5px #d4af37;
}

.agv-m-hero {
    background: linear-gradient(165deg, #8b6f47 0%, #5c4630 55%, #3a2e22 100%);
    color: #faf8f4;
    padding: 48px 0 56px;
    animation: agv-in 0.3s ease;
}

.agv-m-hero a:not(.agv-m-btn) { color: #faf8f4; }

.agv-m-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 32px;
    align-items: center;
}

.agv-m-hero-title { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }

.agv-m-hero-text { margin: 0 0 20px; max-width: 40rem; }

.agv-m-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.agv-m-hero-still {
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 392px;
    object-fit: contain;
    justify-self: end;
    background: rgba(250, 248, 244, 0.08);
}

.agv-l-shell { padding: 40px 0 16px; animation: agv-in 0.3s ease; }

.agv-l-shell-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 32px;
    align-items: start;
}

.agv-m-block, .agv-m-app { margin: 0 0 40px; }

.agv-l-stills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.agv-l-stills img,
.agv-m-app-preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
}

.agv-m-faq-item {
    border-top: 1px solid var(--color-line);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    background: #fffdf8;
    margin-bottom: 10px;
}

.agv-m-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--color-ink);
    padding: 14px 16px;
    cursor: pointer;
    min-height: 44px;
}

.agv-m-faq-a { padding: 0 16px 14px; }

.agv-m-facts { padding-left: 1.1rem; }
.agv-m-facts li { margin: 6px 0; }

.agv-m-note, .agv-m-checked { color: var(--color-muted); }

.agv-m-verdict {
    font-size: 1.2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 16px;
}

.agv-m-badges {
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.agv-m-app {
    background: #fffdf8;
    padding: 20px;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.agv-m-app-head { display: flex; gap: 16px; align-items: center; }

.agv-m-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.agv-m-app-name { font-family: var(--font-head); font-size: 1.35rem; margin: 0; }
.agv-m-app-dev { margin: 4px 0 0; color: var(--color-muted); }

.agv-l-aside {
    background: #fffdf8;
    padding: 16px;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.agv-l-aside h2 { font-size: 1.25rem; }
.agv-l-aside a { display: block; margin-top: 8px; }

.agv-m-cta {
    background: #efe4d4;
    padding: 48px 0;
    animation: agv-in 0.3s ease;
}

.agv-l-footer {
    background: #3a2e22;
    color: #faf8f4;
    padding: 20px 0 28px;
}

.agv-l-footer a,
.agv-l-footer a:visited,
.agv-m-footer-btn { color: #faf8f4; }

.agv-l-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
}

.agv-m-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.agv-m-footer-btn {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
}

.agv-m-disclaimer { font-size: 0.92rem; color: #e4d8c8; }

.agv-m-cookie { display: none; }

.agv-m-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 16px;
    align-items: center;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: #3a2e22;
    color: #faf8f4;
    border: 2px solid #d4af37;
    padding: 8px 8px 8px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.agv-m-cookie a { color: #d4af37; }
.agv-m-cookie p { margin: 0; }

.agv-m-cookie .agv-m-btn--primary {
    background: #d4af37;
    color: #3a2e22;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    min-height: 40px;
    padding: 8px 20px;
}

.agv-m-page { padding: 36px 0 64px; }
.agv-m-page h1 { margin-top: 0; }

.agv-m-note-card {
    background: #fffdf8;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    overflow: hidden;
}

.agv-m-note-card h2 { font-size: 1.25rem; padding: 0 16px; }
.agv-m-note-card p { padding: 0 16px 16px; }

.agv-m-band { height: 72px; }
.agv-m-band--a { background: linear-gradient(90deg, #8b6f47, #d4af37); }
.agv-m-band--b { background: linear-gradient(90deg, #5c4630, #a0826d); }
.agv-m-band--c { background: linear-gradient(90deg, #d4af37, #8b6f47); }

.agv-m-form { display: grid; gap: 8px; margin-top: 16px; }
.agv-m-form input,
.agv-m-form textarea {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #a0826d;
    background: #fff;
    color: var(--color-ink);
}
.agv-m-address { font-style: normal; margin: 16px 0; }

.agv-l-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.agv-l-gallery img {
    width: auto;
    height: auto;
    max-width: 280px;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.agv-m-crumbs { color: var(--color-muted); font-size: 0.95rem; }
.agv-m-update { background: #fffdf8; padding: 8px 20px 16px; }

@keyframes agv-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .agv-m-logo img { width: 120px; }
    .agv-m-nav { display: none; }
    .agv-l-header-row { justify-content: space-between; }
    .agv-m-burger { display: block; }

    .agv-m-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }

    .agv-m-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #faf8f4;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        padding: 64px 0 20px;
        transform: translateX(100%);
    }

    .agv-m-drawer a {
        display: block;
        padding: 10px 20px;
        font-size: .95rem;
        color: #5c4630;
    }

    .agv-m-drawer .agv-m-btn {
        display: inline-flex;
        margin: 12px 20px;
    }

    .agv-m-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 0;
        font-size: 1.6rem;
        color: #5c4630;
        cursor: pointer;
    }

    body.agv-nav-open { overflow: hidden; }
    body.agv-nav-open .agv-m-overlay { opacity: 1; visibility: visible; }
    body.agv-nav-open .agv-m-drawer { visibility: visible; transform: translateX(0); }

    .agv-m-hero-split,
    .agv-l-shell-row { grid-template-columns: 1fr; }

    .agv-m-hero-still { justify-self: start; }

    .agv-l-grid { grid-template-columns: repeat(2, 1fr); }

    .agv-m-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: 16px;
        max-width: none;
        flex-wrap: wrap;
    }

    .agv-m-btn { min-height: 44px; }
}

@media (max-width: 480px) {
    .agv-l-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .agv-m-hero, .agv-l-shell, .agv-m-cta { animation: none; }
}
