/* БОМЖУРЕКИ — афиши на бетоне, ценник, чек */
:root {
    --asphalt: #232120;
    --concrete: #3a3835;
    --paper: #efe3c8;
    --paper-dim: #d9c9a6;
    --ink: #1c1a17;
    --cardboard: #b98d57;
    --gold: #f0a62a;
    --ketchup: #c4372b;
    --moss: #3e5a45;
    --chalk: #f4efe4;
    --muted: #b7ab97;

    --f-display: 'Unbounded', 'Arial Black', sans-serif;
    --f-body: 'IBM Plex Sans', system-ui, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --f-hand: 'Marck Script', 'Comic Sans MS', cursive;

    --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    background-color: var(--concrete);
    background-image: var(--noise);
    color: var(--chalk);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: var(--asphalt);
    border-bottom: 3px solid var(--gold);
}
.header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding-top: 10px; padding-bottom: 10px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
    letter-spacing: .02em; color: var(--gold);
}
.logo img {
    width: 46px; height: 46px; border-radius: 50%;
    object-fit: cover; object-position: 50% 30%;
    border: 2px solid var(--gold);
}
.nav { display: flex; gap: 26px; }
.nav a {
    text-decoration: none; color: var(--muted);
    font-size: .95rem; font-weight: 500; padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.active { color: var(--chalk); border-bottom-color: var(--gold); }
.nav a.nav-extra { color: var(--gold); }

.btn {
    display: inline-block;
    font-family: var(--f-display); font-weight: 700; font-size: .9rem;
    text-decoration: none;
    background: var(--gold); color: var(--ink);
    padding: 14px 26px;
    border: 3px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-sm { padding: 9px 18px; font-size: .8rem; box-shadow: 3px 3px 0 rgba(0,0,0,.5); border-color: var(--gold); }
.btn-big { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 100px; position: relative; }
.hero .wrap {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: 56px; align-items: center;
}
.hero h1 {
    font-family: var(--f-display); font-weight: 900;
    font-size: clamp(2.5rem, 7.6vw, 6rem);
    line-height: .92; letter-spacing: -.02em;
    color: var(--paper);
    text-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-2deg); transform-origin: left bottom;
    margin-bottom: 28px;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--gold); margin-left: .4em; }
.hero .sub {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.35;
    max-width: 22em; margin-bottom: 14px;
}
.hero .desc {
    font-family: var(--f-hand); font-size: 1.75rem; line-height: 1.25;
    color: var(--paper-dim); margin-bottom: 34px;
}

.poster {
    position: relative;
    background: var(--paper);
    padding: 14px 14px 56px;
    transform: rotate(2.2deg);
    box-shadow: 10px 14px 0 rgba(0,0,0,.45);
}
.poster img { width: 100%; border: 2px solid var(--ink); }
.poster figcaption {
    position: absolute; left: 20px; right: 150px; bottom: 10px;
    font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.1; color: var(--ink);
}
.tape {
    position: absolute; width: 110px; height: 30px;
    background: rgba(240, 220, 150, .75);
    border-left: 2px dashed rgba(0,0,0,.12);
    border-right: 2px dashed rgba(0,0,0,.12);
}
.tape.t1 { top: -14px; left: 30px; transform: rotate(-6deg); }
.tape.t2 { top: -12px; right: 24px; transform: rotate(8deg); }

/* price tag — the one memorable element */
.tag {
    position: absolute; right: -26px; bottom: -50px;
    width: 176px; z-index: 3;
    transform-origin: 50% -30px;
    animation: swing 2.8s ease-out .5s 1 both;
    filter: drop-shadow(6px 8px 0 rgba(0,0,0,.4));
}
.tag-body {
    position: relative;
    background-color: var(--cardboard);
    background-image: var(--noise);
    padding: 36px 14px 16px;
    text-align: center; color: var(--ink);
    clip-path: polygon(14% 0, 86% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
}
.tag-body::before {
    content: ""; position: absolute; top: 13px; left: 50%;
    width: 16px; height: 16px; margin-left: -8px;
    background: var(--concrete); border-radius: 50%;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.5);
}
.tag-price {
    display: block; font-family: var(--f-display); font-weight: 900;
    font-size: 2.2rem; line-height: 1; letter-spacing: -.03em;
}
.tag-sub {
    display: block; margin-top: 8px;
    font-family: var(--f-mono); font-weight: 600; font-size: .8rem; letter-spacing: .06em;
    border-top: 2px dashed var(--ink); padding-top: 8px;
}
.tag-string {
    position: absolute; top: -30px; left: 50%;
    width: 2px; height: 44px; background: var(--paper);
}
@keyframes swing {
    0%   { transform: rotate(-26deg); }
    18%  { transform: rotate(17deg); }
    36%  { transform: rotate(-11deg); }
    54%  { transform: rotate(6deg); }
    72%  { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
}

/* ---------- Sections ---------- */
.band { padding: 90px 0; position: relative; }
.band-dark { background-color: var(--asphalt); background-image: var(--noise); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-paper::before, .band-paper::after {
    content: ""; position: absolute; left: 0; right: 0; height: 14px;
    background:
        linear-gradient(135deg, var(--paper) 25%, transparent 25%) -7px 0,
        linear-gradient(225deg, var(--paper) 25%, transparent 25%) -7px 0;
    background-size: 14px 14px;
}
.band-paper::before { top: -14px; }
.band-paper::after { bottom: -14px; transform: scaleY(-1); }

h2 {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.08; letter-spacing: -.02em; margin-bottom: 14px;
}
.lead { max-width: 38em; font-size: 1.15rem; color: var(--muted); margin-bottom: 52px; }
.band-paper .lead { color: #5b5242; }

/* ---------- Why us: loose notes ---------- */
.why { padding: 20px 0 100px; }
.why .wrap {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 56px; align-items: start;
}
.brandmark { text-align: center; }
.brandmark img {
    width: 200px; height: 200px; margin: 0 auto 14px;
    border-radius: 50%; object-fit: cover; object-position: 50% 25%;
    border: 4px solid var(--gold);
}
.brandmark b { display: block; font-family: var(--f-display); color: var(--gold); font-size: 1.15rem; }
.brandmark span { font-family: var(--f-hand); font-size: 1.4rem; color: var(--paper-dim); }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 8px; }
.note {
    background: var(--paper); color: var(--ink);
    padding: 26px 22px 28px; box-shadow: 6px 8px 0 rgba(0,0,0,.4);
}
.note:nth-child(1) { transform: rotate(-2.2deg); }
.note:nth-child(2) { transform: rotate(1.6deg) translateY(18px); background: var(--gold); }
.note:nth-child(3) { transform: rotate(-1deg) translateY(-6px); }
.note .ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.note h3 { font-family: var(--f-display); font-size: 1rem; line-height: 1.25; margin-bottom: 8px; }
.note p { font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.2; }

/* ---------- History: a real timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 860px; }
.timeline::before {
    content: ""; position: absolute; left: 206px; top: 8px; bottom: 8px; width: 4px;
    background: repeating-linear-gradient(var(--ink) 0 14px, transparent 14px 24px);
}
.era {
    display: grid; grid-template-columns: 190px 1fr; gap: 50px;
    padding: 0 0 46px; position: relative;
}
.era:last-child { padding-bottom: 0; }
.era::after {
    content: ""; position: absolute; left: 198px; top: 8px;
    width: 20px; height: 20px;
    background: var(--paper); border: 4px solid var(--ink); border-radius: 50%;
}
.era-date {
    font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
    line-height: 1.25; text-align: right; padding-top: 4px;
}
.era h3 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; margin-bottom: 8px; }
.era p { max-width: 34em; color: #4a4234; }
.era .em { font-size: 1.9rem; display: inline-block; margin-right: 8px; vertical-align: -3px; }
.era.now::after { background: var(--ketchup); }
.era.now h3 span:not(.em) { background: linear-gradient(transparent 55%, var(--gold) 55%); padding: 0 4px; }
.era.tatar h3 { text-decoration: underline wavy var(--cardboard); text-underline-offset: 6px; }

/* ---------- How to buy: receipt ---------- */
.buy .wrap {
    display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: center;
}
.buy h2 { margin-bottom: 26px; }
.buy-note {
    position: relative; max-width: 30em;
    padding: 22px 24px 22px 74px;
    border: 3px dashed var(--gold); color: var(--paper-dim);
}
.buy-note .em { position: absolute; left: 20px; top: 14px; font-size: 2.2rem; }

.receipt {
    position: relative; background: #f7f1e1; color: #222;
    font-family: var(--f-mono); font-size: .95rem; line-height: 1.5;
    padding: 34px 28px 50px; transform: rotate(1.4deg);
    filter: drop-shadow(10px 12px 0 rgba(0,0,0,.45));
}
.receipt-paper {
    background: #f7f1e1; padding: 34px 28px 50px; margin: -34px -28px -50px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px),
        95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%,
        70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%,
        50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%,
        30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%,
        10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px));
}
.receipt h3 { font-family: var(--f-mono); font-weight: 600; font-size: 1.15rem; text-align: center; margin-bottom: 4px; }
.receipt .addr { text-align: center; font-size: .8rem; color: #666; margin-bottom: 18px; }
.receipt hr { border: 0; border-top: 2px dashed #999; margin: 14px 0; }
.receipt ol { list-style: none; counter-reset: s; }
.receipt li { counter-increment: s; padding: 8px 0 8px 30px; position: relative; }
.receipt li::before { content: counter(s) "."; position: absolute; left: 0; font-weight: 600; }
.receipt li b { display: block; font-weight: 600; }
.receipt li span { color: #555; font-size: .88rem; display: block; }
.receipt .total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.25rem; }
.receipt .stamp {
    position: absolute; right: 14px; bottom: 112px; z-index: 2;
    transform: rotate(-14deg);
    border: 3px solid var(--ketchup); color: var(--ketchup);
    font-family: var(--f-display); font-weight: 800; font-size: .75rem;
    padding: 6px 10px; opacity: .85; background: rgba(247,241,225,.7);
}

/* ---------- Reviews ---------- */
.videos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 76px; }
.vid {
    width: min(100%, 320px); background: var(--paper); color: var(--ink);
    padding: 12px 12px 18px; box-shadow: 8px 10px 0 rgba(0,0,0,.4);
}
.vid:nth-child(1) { transform: rotate(-2deg); }
.vid:nth-child(2) { transform: rotate(1.8deg) translateY(16px); }
.vid video { width: 100%; background: #000; border: 2px solid var(--ink); }
.vid p { font-family: var(--f-hand); font-size: 1.45rem; line-height: 1.1; margin-top: 12px; text-align: center; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; }
.quote { padding: 6px 0 6px 26px; border-left: 6px solid var(--gold); }
.quote:nth-child(even) { border-left-color: var(--ketchup); }
.quote .stars { color: var(--gold); letter-spacing: .15em; font-size: 1rem; }
.quote blockquote { font-family: var(--f-hand); font-size: 2rem; line-height: 1.12; margin: 6px 0 8px; color: var(--chalk); }
.quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }
.reviews-cta { text-align: center; margin-top: 64px; }

/* ---------- Speed test ---------- */
.speed { padding: 64px 0; background-color: var(--moss); background-image: var(--noise); }
.speed .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.speed h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 6px; }
.speed p { color: #d7e2d6; max-width: 32em; }

/* ---------- Contacts ---------- */
.contacts .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contacts img.mascot {
    width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1;
    border-radius: 50%; border: 6px solid var(--gold);
    object-fit: cover; object-position: 50% 25%;
    box-shadow: 10px 12px 0 rgba(0,0,0,.4);
}
.tg-link {
    display: block; font-family: var(--f-display); font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.02em;
    color: var(--gold); text-decoration: none; margin: 10px 0 34px; word-break: break-all;
}
.tg-link:hover { text-decoration: underline; text-underline-offset: 8px; }
.contacts dt { font-family: var(--f-display); font-size: .95rem; color: var(--paper-dim); margin-bottom: 4px; }
.contacts dd { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.footer { background: #141312; color: var(--muted); font-size: .88rem; padding: 28px 0; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav { display: none; }
    .hero .wrap, .buy .wrap, .contacts .wrap, .why .wrap { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .poster { margin: 10px 14px 64px 0; }
    .tag { right: -10px; width: 150px; }
    .brandmark { display: flex; align-items: center; gap: 20px; text-align: left; }
    .brandmark img { width: 96px; height: 96px; margin: 0; }
    .brandmark span { display: none; }
    .notes { grid-template-columns: 1fr; }
    .note:nth-child(n) { transform: rotate(-1deg); }
    .note:nth-child(2) { transform: rotate(1deg); }
    .quotes { grid-template-columns: 1fr; }
    .receipt { max-width: 440px; margin: 0 auto; }
    .contacts .wrap { text-align: center; }
}
@media (max-width: 640px) {
    .band { padding: 70px 0; }
    .timeline::before { left: 9px; }
    .era { grid-template-columns: 1fr; gap: 6px; padding-left: 40px; }
    .era::after { left: 0; }
    .era-date { text-align: left; }
    .btn-header { display: none; }
    .speed .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tag { animation: none; }
    .btn, .nav a { transition: none; }
}
