/* ===========================================================================
   OOF «ВНЕ ФОРМАТА» — neo-brutalist / zine theme.
   Reproduces the provided design. Fonts are self-hosted (@font-face from
   /css/fonts.css, generated by scripts/build-fonts.js). Syne has no Cyrillic
   subset, so Russian display text falls back to Unbounded (self-hosted).
   =========================================================================== */

:root {
    --c-bg: #F4F4F0;
    --c-dark: #111111;
    --c-coral: #FF6B6B;
    --c-mint: #38E0C7;
    --c-yellow: #FFD166;

    --border-thick: 3px solid var(--c-dark);
    --shadow-brutal: 6px 6px 0px var(--c-dark);
    --shadow-hover: 10px 10px 0px var(--c-coral);
    --shadow-brutal-sm: 4px 4px 0px var(--c-dark);

    --font-display: 'Syne', 'Unbounded', system-ui, -apple-system, sans-serif;
    --font-hand: 'Caveat', 'Syne', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.oof {
    font-family: var(--font-display);
    font-weight: 600;
    background-color: var(--c-bg);
    color: var(--c-dark);
    overflow-x: hidden;
    background-image: linear-gradient(rgba(17,17,17,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,17,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
}

.oof .noise {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 100; opacity: 0.05;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.oof .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }

.oof h1, .oof h2, .oof h3 { text-transform: uppercase; line-height: 0.9; font-weight: 800; }

.oof .handwrite {
    font-family: var(--font-hand);
    text-transform: none; color: var(--c-coral);
    display: block; margin: 15px 0; transform: rotate(-5deg); font-weight: 700;
}

/* ── Language switcher ── */
.oof .lang-switch {
    position: fixed; top: 16px; right: 16px; z-index: 90; display: flex; gap: 4px;
    background: #fff; border: var(--border-thick); border-radius: 40px; padding: 4px;
    box-shadow: var(--shadow-brutal-sm);
}
.oof .lang-switch a {
    text-decoration: none; color: var(--c-dark); font-weight: 800; font-size: 12px;
    text-transform: uppercase; padding: 4px 10px; border-radius: 40px;
}
.oof .lang-switch a.active { background: var(--c-dark); color: var(--c-mint); }

/* ── Buttons ── */
.oof .btn {
    display: inline-block; background: var(--c-mint); color: var(--c-dark);
    font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
    text-transform: uppercase; padding: 1rem 2.5rem; text-decoration: none;
    border: var(--border-thick); border-radius: 12px; box-shadow: var(--shadow-brutal);
    transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; position: relative; z-index: 10;
    text-align: center;
}
.oof .btn:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-hover); }
.oof .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-brutal); }
.oof .btn-coral { background: var(--c-coral); color: #fff; }

/* ── Stickers / decor ── */
.oof .sticker { position: absolute; z-index: 5; pointer-events: none; }
.oof .spin { animation: oof-spin 10s linear infinite; }
.oof .wiggle { animation: oof-wiggle 3s ease-in-out infinite; }
@keyframes oof-spin { 100% { transform: rotate(360deg); } }
@keyframes oof-wiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ── Hero ── */
.oof .hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; padding-top: 40px; padding-bottom: 40px; }
.oof .hero-logo { width: clamp(120px, 20vw, 220px); margin-bottom: 30px; filter: drop-shadow(4px 4px 0px var(--c-dark)); transform: rotate(-3deg); z-index: 10; }
.oof .hero-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 800; color: var(--c-dark); position: relative; z-index: 2; line-height: 1; text-shadow: 4px 4px 0 #fff, 6px 6px 0 var(--c-mint); }
.oof .hero-title .handwrite { font-size: 0.6em; }
.oof .hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.oof .badge { background: #fff; border: var(--border-thick); padding: 8px 16px; font-weight: 700; border-radius: 50px; font-size: 1.1rem; box-shadow: var(--shadow-brutal); }
.oof .badge-coral { background: var(--c-coral); color: #fff; }
.oof .badge-yellow { background: var(--c-yellow); }
.oof .tape { background: rgba(255,255,255,0.2); border: 1px solid rgba(0,0,0,0.1); height: 35px; width: 160px; position: absolute; z-index: 20; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* ── Marquee ── */
.oof .marquee-container { width: 105vw; margin-left: -2vw; background: var(--c-yellow); border-top: var(--border-thick); border-bottom: var(--border-thick); padding: 15px 0; transform: rotate(-3deg); position: relative; z-index: 15; box-shadow: 0 10px 0 rgba(0,0,0,0.1); overflow: hidden; }
.oof .marquee { display: flex; white-space: nowrap; animation: oof-scroll 15s linear infinite; }
.oof .marquee span { font-size: 1.5rem; font-weight: 800; padding: 0 2rem; }
@keyframes oof-scroll { 100% { transform: translateX(-50%); } }

/* ── Program (zine cards) ── */
.oof .program { padding: 80px 0; position: relative; }
.oof .program-title { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 40px; text-align: center; }
.oof .grid-zine { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; position: relative; }
.oof .zine-card { background: #fff; border: var(--border-thick); padding: 25px; box-shadow: var(--shadow-brutal); position: relative; transition: 0.3s; }
.oof .zine-card:nth-child(1) { transform: rotate(-2deg); }
.oof .zine-card:nth-child(2) { transform: rotate(3deg); margin-top: 40px; background: var(--c-mint); }
.oof .zine-card:nth-child(3) { transform: rotate(-1deg); }
.oof .zine-card:hover { transform: scale(1.05) rotate(0deg); z-index: 10; box-shadow: var(--shadow-hover); }
.oof .zine-card h3 { font-size: 1.8rem; margin-bottom: 15px; line-height: 1; }
.oof .zine-card p { font-size: 1rem; font-weight: 500; line-height: 1.4; text-transform: none; }

/* ── Speakers ── */
.oof .speakers { padding: 60px 0; }
.oof .speaker-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.oof .speaker-item { width: 260px; position: relative; }
.oof .speaker-photo { width: 100%; aspect-ratio: 3/4; border: var(--border-thick); object-fit: cover; background: #fff; box-shadow: var(--shadow-brutal); transition: 0.3s; filter: grayscale(20%) contrast(110%); display: block; }
.oof .speaker-item:hover .speaker-photo { transform: translate(-5px, -5px); filter: grayscale(0%); box-shadow: 12px 12px 0 var(--c-coral); }
.oof .speaker-info { background: #fff; border: var(--border-thick); padding: 10px; position: absolute; bottom: -20px; left: -10px; right: 10px; transform: rotate(-3deg); box-shadow: var(--shadow-brutal-sm); }
.oof .speaker-info h3 { font-size: 1.3rem; }
.oof .speaker-info span { font-family: var(--font-hand); font-size: 1.2rem; color: var(--c-coral); text-transform: none; }

/* ── Ticket / Registration ── */
.oof .ticket-section { padding: 80px 0; display: flex; justify-content: center; overflow-x: hidden; }
.oof .ticket { background: #fff; border: var(--border-thick); width: 100%; max-width: 800px; display: flex; flex-direction: column; box-shadow: var(--shadow-brutal); position: relative; transform: rotate(1deg); }
@media(min-width: 768px) {
    .oof .ticket { flex-direction: row; box-shadow: 15px 15px 0 var(--c-dark); }
    .oof .ticket-stub { border-right: 3px dashed var(--c-dark); border-bottom: none !important; }
}
.oof .ticket-stub { background: var(--c-coral); color: #fff; padding: 30px; border-bottom: 3px dashed var(--c-dark); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.oof .stub-title { font-size: 1.8rem; margin-bottom: 15px; }
.oof .timer-box { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.oof .timer-label { font-family: var(--font-hand); font-size: 1.3rem; text-transform: none; }
.oof .stub-price { margin-top: 22px; border-top: 2px dashed rgba(255,255,255,0.5); padding-top: 16px; }
.oof .stub-price .price-val { font-size: 2.2rem; font-weight: 800; }
.oof .stub-price .price-lbl { font-family: var(--font-hand); font-size: 1.2rem; text-transform: none; }

.oof .ticket-form { padding: 30px; flex-grow: 1; background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cline x1="0" y1="100" x2="100" y2="0" stroke="rgba(0,0,0,0.03)" stroke-width="2"/%3E%3C/svg%3E'); }
.oof .form-group { margin-bottom: 20px; }
.oof .form-group label { display: block; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; font-size: 0.85rem; }
.oof .form-control { width: 100%; padding: 12px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; background: var(--c-bg); border: var(--border-thick); box-shadow: 4px 4px 0 rgba(0,0,0,0.1); transition: 0.2s; outline: none; -webkit-appearance: none; border-radius: 0; }
.oof .form-control:focus { background: #fff; box-shadow: var(--shadow-brutal-sm); transform: translate(-2px, -2px); }
.oof select.form-control { cursor: pointer; }
.oof .seats-msg { margin-top: 10px; font-family: var(--font-hand); font-size: 1.2rem; font-weight: 700; display: none; line-height: 1.2; text-transform: none; }
.oof .form-error { display: none; margin-top: 4px; margin-bottom: 14px; background: #fff; border: 3px solid var(--c-coral); color: #b91c1c; font-weight: 700; padding: 10px 12px; font-size: 0.9rem; }
.oof .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8rem; font-weight: 600; text-transform: none; margin-bottom: 18px; line-height: 1.35; }
.oof .consent input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.oof .consent a { color: var(--c-dark); }

/* ── Footer ── */
.oof footer { border-top: var(--border-thick); padding: 30px 20px; text-align: center; font-weight: 800; text-transform: uppercase; background: var(--c-dark); color: #fff; font-size: 0.9rem; }
.oof footer a { color: var(--c-mint); text-decoration: none; }
.oof footer a:hover { color: var(--c-coral); }
.oof footer .hand { font-family: var(--font-hand); text-transform: none; font-size: 1.3rem; color: var(--c-mint); }

/* ── Mobile ── */
@media (max-width: 768px) {
    .oof .hero { padding-top: 60px; text-align: center; align-items: center; }
    .oof .hero-logo { position: static; transform: rotate(0deg); margin-bottom: 20px; }
    .oof .hero-title { text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--c-mint); }
    .oof .hero-badges { justify-content: center; }
    .oof .badge { font-size: 0.9rem; padding: 6px 12px; }
    .oof .hero .btn { width: 100%; }
    .oof .zine-card:nth-child(1), .oof .zine-card:nth-child(2), .oof .zine-card:nth-child(3) { transform: rotate(0deg); margin-top: 0; }
    .oof .grid-zine { gap: 20px; }
    .oof .sticker { display: none; }
    .oof .ticket { transform: rotate(0deg); box-shadow: var(--shadow-brutal-sm); }
    .oof .ticket-section { padding: 40px 15px; }
    .oof .ticket-stub { padding: 20px; }
    .oof .timer-mobile-wrap { display: flex; justify-content: space-around; width: 100%; gap: 10px; }
    .oof .timer-item-mobile { display: flex; flex-direction: column; align-items: center; }
    .oof .timer-box { font-size: 2rem; margin-top: 0 !important; }
    .oof .timer-label { font-size: 1.1rem; }
    .oof .ticket-form { padding: 20px; }
    .oof .ticket-form h2 { font-size: 2rem !important; }
    .oof .speaker-item { width: 100%; max-width: 300px; margin-bottom: 20px; }
    .oof .speaker-item:nth-child(2) { margin-top: 0 !important; }
    .oof .speaker-info { transform: rotate(0deg); left: 0; right: 0; bottom: -10px; }
}
