/* NewDanilWhite6 — warm editorial / emerald / terracotta (system fonts) */
:root {
    --sand: #f4ede4;
    --sand-dark: #e8dcc8;
    --ink: #1a1814;
    --ink-soft: #3d3830;
    --emerald: #1c3d36;
    --emerald-light: #2a5c52;
    --copper: #c45c3e;
    --copper-hot: #d9744a;
    --gold-line: rgba(196, 92, 62, 0.45);
    --card: #fffcf7;
    --shadow: rgba(26, 24, 20, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-sans:
        system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        sans-serif;
    --header-h: 4rem;
    --z-particles: 0;
    --z-frame: 1;
    --z-header: 50;
    --z-cookie: 120;
    --z-captcha: 130;
    --z-age: 140;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--sand);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(
            900px 520px at 12% 8%,
            rgba(28, 61, 54, 0.09),
            transparent 55%
        ),
        radial-gradient(
            700px 480px at 92% 18%,
            rgba(196, 92, 62, 0.11),
            transparent 50%
        ),
        linear-gradient(
            165deg,
            var(--sand) 0%,
            var(--sand-dark) 55%,
            #f0e6d8 100%
        );
    animation: bg-drift 22s var(--ease) infinite alternate;
}

@keyframes bg-drift {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(6deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

.particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-particles);
    opacity: 0.35;
}

@media (max-width: 720px) {
    .particle-canvas {
        opacity: 0.22;
    }
}

.frame {
    position: relative;
    z-index: var(--z-frame);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.2rem 3.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-age);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(26, 24, 20, 0.82);
    backdrop-filter: saturate(1.05) blur(6px);
}

@media (max-width: 720px) {
    .modal-overlay,
    .modal-overlay--captcha {
        backdrop-filter: none;
        background: rgba(26, 24, 20, 0.92);
    }

    .modal-overlay--captcha {
        background: rgba(28, 61, 54, 0.94);
    }
}

.modal-overlay--captcha {
    z-index: var(--z-captcha);
    background: rgba(28, 61, 54, 0.78);
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal {
    width: min(100%, 420px);
    padding: 1.75rem 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--gold-line);
    box-shadow: 0 28px 60px var(--shadow);
    text-align: center;
    animation: modal-pop 0.5s var(--ease) both;
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal--captcha {
    width: min(100%, 460px);
}

.modal__brand img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-dark);
}

.modal__brand--sm img {
    width: 56px;
    height: 56px;
}

.modal__badge {
    margin: 0.35rem 0 0;
}

.modal__title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin: 0.75rem 0 0.5rem;
    color: var(--emerald);
    letter-spacing: -0.02em;
}

.modal__text,
.modal__hint {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
    text-align: left;
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.btn {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--emerald);
    color: #f8faf8;
    box-shadow: 0 6px 20px rgba(28, 61, 54, 0.25);
}

.btn--primary:hover {
    background: var(--emerald-light);
}

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

.btn--ghost:hover {
    border-color: var(--copper);
    color: var(--copper);
}

.btn--sm {
    font-size: 0.9rem;
    padding: 0.5rem 0.95rem;
}

.btn--accent {
    background: linear-gradient(135deg, var(--copper), var(--copper-hot));
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border: none;
    box-shadow: 0 8px 24px rgba(196, 92, 62, 0.35);
}

.btn--accent:hover {
    filter: brightness(1.05);
}

.btn--pulse {
    animation: pulse-glow 2.8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 8px 24px rgba(196, 92, 62, 0.35);
    }
    50% {
        box-shadow: 0 10px 32px rgba(196, 92, 62, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn--pulse {
        animation: none;
    }
}

/* Captcha */
.captcha-field {
    position: relative;
    margin: 0.5rem auto;
    width: fit-content;
    touch-action: none;
}

.captcha-board {
    display: block;
    border-radius: var(--radius-sm);
    border: 2px solid var(--emerald);
    background: #0f2420;
}

.captcha-slot {
    position: absolute;
    border: 3px dashed var(--copper-hot);
    border-radius: 10px;
    pointer-events: none;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px rgba(255, 250, 245, 0.35) inset;
}

.captcha-tile {
    position: absolute;
    left: 12px;
    top: 58px;
    cursor: grab;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 2;
    touch-action: none;
}

.captcha-tile:active {
    cursor: grabbing;
}

.captcha-status {
    min-height: 1.4em;
    font-size: 0.9rem;
    color: var(--copper);
    margin: 0.5rem 0 0;
}

/* Cookie bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-cookie);
    background: rgba(255, 252, 247, 0.96);
    border-top: 1px solid var(--gold-line);
    padding: 0.85rem 1rem;
    box-shadow: 0 -12px 40px var(--shadow);
    animation: cookie-up 0.45s var(--ease) both;
}

@keyframes cookie-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}

.cookie-bar[hidden] {
    display: none !important;
}

.cookie-bar__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.cookie-bar__text {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0;
    flex: 1 1 280px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.cookie-bar__logo {
    flex-shrink: 0;
    border-radius: 8px;
}

.cookie-bar__actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-bar a {
    color: var(--copper);
    font-weight: 600;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(244, 237, 228, 0.9);
    border-bottom: 1px solid rgba(28, 61, 54, 0.1);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.65rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
}

.wordmark img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-dark);
    vertical-align: middle;
    transition: transform 0.35s var(--ease);
}

.wordmark:hover img {
    transform: rotate(-4deg) scale(1.04);
}

.skip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.skip-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--emerald);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    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:focus {
    position: fixed;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 200;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 0.85rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--card);
    border: 2px solid var(--copper);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px var(--shadow);
}

.ribbon {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.55rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald);
    border-bottom: 1px dashed var(--gold-line);
}

.ribbon__tag {
    font-weight: 700;
}

.ribbon__note {
    color: var(--ink-soft);
    font-weight: 500;
}

.main {
    padding-top: 0.5rem;
}

.hero {
    padding: 2.25rem 0 1.5rem;
}

.hero__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper);
    animation: kicker-flicker 4s ease-in-out infinite;
}

@keyframes kicker-flicker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__kicker {
        animation: none;
    }
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    color: var(--emerald);
    letter-spacing: -0.03em;
}

.hero__lead {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 58ch;
}

.section {
    padding: 2.25rem 0;
    border-top: 1px solid rgba(28, 61, 54, 0.12);
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 0.75rem;
    color: var(--emerald);
}

.section__title--offer {
    color: var(--copper);
}

.section__intro,
.section__body {
    margin: 0 0 1rem;
    max-width: 68ch;
    color: var(--ink-soft);
}

.section__subtitle {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--ink);
}

.section__note {
    font-size: 0.85rem;
    color: var(--copper);
    margin: 0 0 1rem;
    font-weight: 600;
}

.section--slant {
    background: linear-gradient(
        105deg,
        rgba(28, 61, 54, 0.06) 0%,
        transparent 45%
    );
    margin: 0 -1.2rem;
    padding: 2.25rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.grid {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--card);
    padding: 1.2rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(196, 92, 62, 0.2);
    box-shadow: 0 10px 28px var(--shadow);
    transition:
        transform 0.35s var(--ease),
        border-color 0.35s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--copper);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

.card__title {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: var(--emerald);
}

.card__body {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.checklist {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
}

.checklist li {
    margin-bottom: 0.45rem;
}

.section--offer {
    background: linear-gradient(180deg, rgba(196, 92, 62, 0.08), transparent);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    margin-top: 0.5rem;
}

.offer-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    background: var(--card);
    border-radius: var(--radius);
    overflow: visible;
    border: 1px solid var(--gold-line);
    box-shadow: 0 16px 44px var(--shadow);
    padding: 0.35rem 0 0.35rem 0.35rem;
}

@media (max-width: 820px) {
    .offer-card {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 1rem;
        text-align: center;
    }

    .offer-card__body {
        text-align: left;
    }
}

.offer-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(112px, 28vw, 156px);
    height: clamp(112px, 28vw, 156px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: #0f2420;
    border-radius: var(--radius-sm);
    overflow: hidden;
    line-height: 0;
}

.offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 0.4rem;
    box-sizing: border-box;
    transition: transform 0.45s var(--ease);
}

.offer-card__media:hover img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .offer-card__media:hover img {
        transform: none;
    }
}

.offer-card__body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.offer-card__heading {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--emerald);
}

.offer-card__promo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--copper);
    margin: 0 0 0.65rem;
}

.offer-card__fine {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 0 0 1rem;
}

code {
    font-size: 0.88em;
    background: rgba(28, 61, 54, 0.08);
    padding: 0.12em 0.3em;
    border-radius: 6px;
}

a {
    color: var(--emerald-light);
    text-underline-offset: 0.18em;
}

/* Footer */
.footer {
    margin-top: 2rem;
    padding: 2rem 0 4.5rem;
    border-top: 1px solid rgba(28, 61, 54, 0.15);
    text-align: center;
}

.footer__badges {
    margin-bottom: 1rem;
}

.footer__disclaimer {
    max-width: 52ch;
    margin: 0 auto 1.25rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.footer__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
}

.footer__logo-link {
    display: inline-flex;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-dark);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s;
}

.footer__logo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px var(--shadow);
}

.footer__logo-link img {
    height: 40px;
    width: auto;
    display: block;
}

.footer__tiny {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    color: var(--ink-soft);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s var(--ease),
        transform 0.65s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

body.modal-open {
    overflow: hidden;
}
