/* ============================================================
   SPIRIT × Mr.Bricolage — „Дом с характер“ (дизайн v2)
   Токени по design handoff v2. Остри ъгли навсякъде освен кръговете
   на success/error. Акцент = злато #9e7b34. Светъл хедър.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --ink: #1a1a18;
  --paper: #faf9f6;
  --white: #ffffff;
  --line: #e2e0d8;
  --line-strong: #c9c7bd;
  --muted: #6f6d64;
  --placeholder: #b3b1a6;
  --photo-bg: #f2f0ea;
  --accent: #9e7b34;
  --paper-55: rgba(250, 249, 246, 0.55);
  --paper-40: rgba(250, 249, 246, 0.40);
  --paper-35: rgba(250, 249, 246, 0.35);
  --pad-y: clamp(64px, 8vw, 104px);
  --pad-x: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Jost', Arial, sans-serif; font-weight: 300; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; margin: 0; }

.container { max-width: 1312px; margin: 0 auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; } /* ползва се от админ страниците */
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.accent-line { width: 64px; height: 1px; background: var(--accent); margin: 40px 0; }

/* ---- Buttons ---- */
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding: 17px 36px; border: 1px solid var(--ink); cursor: pointer; transition: background .18s ease, color .18s ease; }
.btn:hover { background: #000; color: var(--paper); }
.btn-outline { display: inline-block; background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding: 16px 36px; transition: background .18s ease, color .18s ease; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   HEADER (светъл)
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250, 249, 246, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; justify-content: space-between; align-items: center; height: 76px; padding: 0 var(--pad-x); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand .name { font-family: 'Playfair Display', serif; font-size: 23px; letter-spacing: 0.05em; color: var(--ink); }
.brand .logo-img { height: 52px; width: auto; align-self: center; }
.brand .logo-img ~ .tagline { align-self: center; padding-left: 14px; border-left: 1px solid var(--line); }
.brand .tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 44px; }
.nav a { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-bottom: 3px; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom: 1px solid var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 12px 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); }

/* Mobile fullscreen menu (светъл) */
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--ink); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .close { position: absolute; top: 18px; right: 20px; background: none; border: 0; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }

/* ============================================================
   HERO (desktop: текст вдясно върху светлата стена)
   ============================================================ */
/* Височина = видимият екран под менюто (76px), между 580 и 720px — така на лаптоп целият герой,
   заедно с предметите, се вижда без скрол. Снимката е закотвена ДОЛУ: реже се само празна стена отгоре. */
.hero { --hero-h: clamp(580px, calc(100vh - 76px), 720px); position: relative; min-height: var(--hero-h); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; background: url('../img/hero.jpg?v=0928') left bottom / cover no-repeat; }
.hero-inner { position: relative; min-height: var(--hero-h); display: flex; align-items: center; justify-content: flex-end; padding: 72px 72px 72px 64px; }
.hero-copy { max-width: 500px; } /* 490 по макета; +10px, за да стои „Дом с характер.“ на един ред при 66px */
.hero .period { margin: 22px 0 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); } /* периодът стои ПОД заглавието */
.hero h1 { margin: 0; font-size: 66px; line-height: 1.08; color: var(--ink); }
.hero .sub { margin-top: 18px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.2; color: var(--ink); }
.hero .sub em { font-style: italic; color: var(--accent); }
.only-phone { display: none; }
.hero .lead { margin: 0; max-width: 480px; font-size: 20px; font-weight: 400; line-height: 1.55; color: var(--ink); }
.hero .hero-logo-wrap { display: block; margin: 16px 0; }
.hero .hero-logo { height: 72px; width: auto; }
.hero .btn-row { display: flex; gap: 20px; margin-top: 44px; flex-wrap: wrap; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--pad-y) var(--pad-x); }
.section-title { margin: 16px 0 0; font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); }

/* ---- Steps ---- */
.steps .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
.step { border-left: 1px solid var(--line); padding: 8px 48px 8px 32px; }
.step-head { display: flex; flex-direction: column; align-items: flex-start; }
.step-head img { height: 180px; width: auto; margin-bottom: 28px; }
.step-head .num { font-family: 'Playfair Display', serif; font-style: italic; font-size: 46px; line-height: 1; color: var(--accent); }
.step-head .label { margin-top: 22px; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.step p { margin: 14px 0 0; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--muted); }

/* ---- Banner ---- */
.banner { position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--pad-x); overflow: hidden; }
.banner::before { content: ''; position: absolute; inset: 0; background: url('../img/wall.jpg') center / cover no-repeat; }
.banner > * { position: relative; }
.banner .eyebrow { letter-spacing: 0.28em; }
.banner .banner-title { margin-top: 20px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: clamp(27px, 3.6vw, 44px); color: var(--ink); }

/* ---- Prizes ---- */
.prizes { border-top: 1px solid var(--line); }
.brush-mark { margin: 18px 0 64px; }
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.prize-card { background: var(--white); border: 1px solid var(--line); }
.prize-card .media { height: 400px; overflow: hidden; background: var(--paper); }
.prize-card .media img { width: 100%; height: 100%; object-fit: cover; }
.prize-card .media.contain { background: var(--photo-bg); display: flex; align-items: center; justify-content: center; }
.prize-card .media.contain img { object-fit: contain; }
.prize-card .media.contain.white { background: var(--white); }
.prize-card .body { padding: 40px 44px 44px; border-top: 1px solid var(--line); }
.prize-card .kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.prize-card .head { display: flex; align-items: baseline; gap: 16px; }
.prize-card .qty { font-family: 'Playfair Display', serif; font-style: italic; font-size: 44px; color: var(--accent); }
.prize-card .name { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.prize-card .desc { margin: 16px 0 0; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--muted); }

/* ---- Full-bleed image strip ---- */
.strip { display: block; width: 100%; height: max(320px, 29vw); object-fit: cover; object-position: center; } /* височината расте с ширината, за да не се реже валякът на широки екрани */
.strip.short { height: max(280px, 22vw); }

/* ---- Products ---- */
.products { background: var(--white); border-top: 1px solid var(--line); }
.products-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.scroll-nav { display: flex; gap: 10px; }
.scroll-btn { width: 46px; height: 46px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.scroll-btn:hover { background: var(--ink); color: var(--paper); }
.scroll-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
/* хоризонтално плъзгане — от край до край на екрана, с прилепване по карти */
.product-scroller { display: flex; gap: 32px; margin: 56px calc(-1 * var(--pad-x)) 0; padding: 0 var(--pad-x) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad-x); -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.product-scroller::-webkit-scrollbar { height: 4px; }
.product-scroller::-webkit-scrollbar-thumb { background: var(--line-strong); }
.product-scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.product-card { display: block; flex: 0 0 280px; scroll-snap-align: start; border: 1px solid var(--line); padding: 36px 28px; text-align: center; background: var(--white); color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.product-card:hover, .product-card:focus-visible { border-color: var(--ink); box-shadow: 0 10px 28px rgba(26,26,24,0.08); }
.product-card img { width: 100%; height: 224px; object-fit: contain; margin: 0 auto; } /* всички пакшоти са на еднакво платно 480×480, подравнени по дъното */
.product-card .p-name { margin-top: 28px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.product-card .p-sub { margin-top: 8px; font-size: 13px; font-weight: 300; color: var(--muted); }
.product-card .p-link { margin-top: 18px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.product-card:hover .p-link { color: var(--ink); }

/* ============================================================
   REGISTRATION FORM
   ============================================================ */
.register { border-top: 1px solid var(--line); display: grid; grid-template-columns: 380px 1fr; gap: 88px; }
.register-intro .section-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; }
.register-intro p { margin: 28px 0 0; font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--muted); }
.register-intro .req { margin-top: 20px; font-size: 13px; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 56px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.field input { border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font-family: 'Jost', sans-serif; font-size: 15px; color: var(--ink); }
.field input::placeholder { color: var(--placeholder); font-weight: 300; }
.field input:focus { outline: none; border-bottom-color: var(--accent); }
.upload { grid-column: 1 / -1; position: relative; border: 1px dashed var(--line-strong); padding: 30px; text-align: center; cursor: pointer; transition: border-color .18s ease; }
.upload:hover, .upload.has-file { border-color: var(--accent); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .u-title { font-size: 14px; color: var(--ink); }
.upload .u-hint { margin-top: 6px; font-size: 12px; font-weight: 300; color: var(--muted); }
.agree { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.checkbox { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox .box { flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.checkbox .box::after { content: '✓'; color: var(--paper); font-size: 11px; line-height: 1; opacity: 0; }
.checkbox input:checked + .box { background: var(--ink); }
.checkbox input:checked + .box::after { opacity: 1; }
.checkbox input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkbox span.txt { font-size: 14px; font-weight: 300; line-height: 1.55; color: var(--ink); }
.checkbox a { border-bottom: 1px solid var(--line-strong); }
.form-card button[type="submit"] { grid-column: 1 / -1; margin-top: 8px; width: 100%; background: var(--ink); color: var(--paper); border: none; padding: 19px; font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; transition: background .18s ease; }
.form-card button[type="submit"]:hover { background: #000; }
.form-card button[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
.form-note { grid-column: 1 / -1; padding: 14px 16px; font-size: 13px; font-weight: 300; line-height: 1.5; border: 1px solid var(--line-strong); }
.form-note.error { background: #faf4f2; color: #7a2f27; border-color: #e3c4bf; }

/* ============================================================
   RESULT (success / error)
   ============================================================ */
.result { text-align: center; padding: clamp(96px, 12vw, 150px) var(--pad-x) clamp(104px, 14vw, 160px); }
.result-icon { width: 76px; height: 76px; margin: 0 auto; border: 1px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--accent); }
.result.error .result-icon { border-color: var(--ink); color: var(--ink); font-family: 'Playfair Display', serif; font-style: italic; font-size: 30px; }
.result h1 { margin-top: 44px; font-size: clamp(32px, 4vw, 48px); color: var(--ink); }
.result p { margin: 24px auto 0; max-width: 480px; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted); }
.result-code { margin-top: 36px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.result .btn-row { display: flex; justify-content: center; gap: 20px; margin-top: 48px; flex-wrap: wrap; }

/* ============================================================
   WINNERS
   ============================================================ */
.winners-wrap { max-width: 960px; margin: 0 auto; padding: var(--pad-y) var(--pad-x) clamp(96px, 12vw, 128px); }
.winners-wrap h1 { margin: 16px 0 0; font-size: clamp(34px, 4vw, 48px); }
.winners-wrap .lead { margin: 24px 0 72px; max-width: 520px; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--muted); }
.wtable { width: 100%; }
.wrow { display: grid; grid-template-columns: 170px 1fr 240px; align-items: baseline; padding: 19px 0; border-bottom: 1px solid var(--line); }
.wtable .whead { padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.wtable .whead div { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.wrow .w-date { font-size: 14px; font-weight: 300; color: var(--muted); }
.wrow .w-name { font-size: 16px; color: var(--ink); }
.wrow .w-prize { font-size: 14px; letter-spacing: 0.08em; text-align: right; color: var(--ink); }
.wrow .w-prize.robot { color: var(--accent); }
.winners-empty { padding: 40px 0; font-size: 15px; font-weight: 300; color: var(--muted); }

/* ============================================================
   LEGAL PAGES (правила, лични данни)
   ============================================================ */
.legal { max-width: 800px; margin: 0 auto; padding: var(--pad-y) var(--pad-x) clamp(96px, 12vw, 128px); }
.legal h1 { margin: 16px 0 32px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; }
.legal h3 { margin: 40px 0 12px; font-size: 22px; }
.legal p, .legal li { font-size: 15px; font-weight: 300; line-height: 1.75; color: #3d3c38; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal ol { padding-left: 22px; margin: 12px 0; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 300; color: #3d3c38; }
.legal-table th, .legal-table td { padding: 10px 14px; border: 1px solid var(--line-strong); text-align: left; white-space: nowrap; }
.legal-table th { font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(0,0,0,0.025); }
.legal-table td:first-child, .legal-table th:first-child { width: 48px; text-align: center; }
@media (max-width: 600px) { .legal-table { font-size: 13px; } .legal-table th, .legal-table td { padding: 8px 8px; white-space: normal; } .legal-table th { font-size: 10px; letter-spacing: 0.06em; } .legal-table td:first-child, .legal-table th:first-child { width: 28px; } }
.legal a { border-bottom: 1px solid var(--line-strong); }
.legal code { font-size: 13px; }
.legal-note { background: #fdf3d8; border: 1px solid #e6d9a8; padding: 12px 16px; font-size: 13px !important; color: #6b5715 !important; }
.legal-foot { margin-top: 32px; font-size: 12px !important; color: var(--muted) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); padding: 56px var(--pad-x); }
.footer-inner { max-width: 1312px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { gap: 12px; align-items: center; }
.site-footer .brand .name { font-size: 18px; color: var(--paper); }
.site-footer .brand .x { color: var(--paper-35); font-size: 12px; }
.site-footer .brand img { height: 30px; width: auto; align-self: center; }
.site-footer .brand .spirit-logo { height: 58px; }
.footer-links { display: flex; gap: 36px; }
.footer-links a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-55); }
.footer-links a:hover { color: var(--paper); }
.copyright { font-size: 12px; font-weight: 300; letter-spacing: 0.06em; color: var(--paper-40); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .register { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { padding: 64px 40px; }
  .hero h1 { font-size: 52px; }
}
/* Нисък десктоп екран (15" лаптоп и подобни): по-стегнат вертикален ритъм, за да се събере текстът */
@media (min-width: 1280px) and (max-height: 820px) {
  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: 60px; }
  .hero .period { margin-top: 16px; }
  .hero .sub { margin-top: 12px; font-size: 29px; }
  .hero .accent-line { margin: 26px 0; }
  .hero .lead { font-size: 18px; }
  .hero .hero-logo-wrap { margin: 10px 0; }
  .hero .hero-logo { height: 58px; }
  .hero .btn-row { margin-top: 30px; }
}
/* Таблет / малък лаптоп: светлата стена е твърде тясна за текста, затова снимката стои
   отгоре (цялата сцена), а текстът — под нея на светъл фон. */
@media (min-width: 561px) and (max-width: 1279px) {
  .hero { min-height: 0; }
  .hero-media { position: static; aspect-ratio: 16 / 9; max-height: 560px; width: 100%; background-position: left bottom; }
  .hero-inner { min-height: 0; justify-content: flex-start; padding: 56px var(--pad-x) 72px; }
  .hero-copy { max-width: 640px; }
}
@media (max-width: 760px) {
  .site-header .bar { height: 60px; padding: 0 20px; }
  .brand { gap: 9px; }
  .brand .name { font-size: 18px; }
  .brand .logo-img { height: 42px; }
  .brand .logo-img ~ .tagline { padding-left: 9px; }
  .brand .tagline { font-size: clamp(11.5px, 3.7vw, 15px); white-space: nowrap; }
  .nav { display: none; }
  .nav-toggle { display: flex; }

  /* общи за таблет и телефон */
  .hero h1 { font-size: 40px; line-height: 1.1; }
  .hero .sub { margin-top: 10px; font-size: 21px; line-height: 1.25; }
  .hero .accent-line { width: 48px; margin: 22px 0; }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .hero .hero-logo { height: 40px; }
  .hero .btn, .hero .btn-outline { font-size: 12px; }

  .steps .steps-grid { grid-template-columns: 1fr; margin-top: 40px; gap: 36px; }
  .step { border-left: none; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .step-head { flex-direction: row; align-items: baseline; gap: 16px; }
  .step-head img { order: 3; height: 110px; margin: 0 0 0 auto; align-self: center; }
  .step-head .num { font-size: 34px; }
  .step-head .label { margin-top: 0; font-size: 13px; letter-spacing: 0.2em; }
  .step p { margin-top: 12px; font-size: 14px; }

  .banner { min-height: 260px; }
  .prize-grid { grid-template-columns: 1fr; gap: 32px; }
  .prize-card .media { height: 250px; }
  .prize-card .body { padding: 24px; }
  .prize-card .kicker { font-size: 11px; margin-bottom: 6px; }
  .prize-card .qty { font-size: 30px; }
  .prize-card .name { font-size: 12px; letter-spacing: 0.18em; }
  .prize-card .desc { font-size: 13px; }
  .strip, .strip.short { height: 160px; }
  .scroll-nav { display: none; }                       /* на телефон се плъзга с пръст */
  .product-scroller { gap: 16px; margin-top: 32px; }
  .product-card { flex-basis: 62vw; max-width: 260px; padding: 24px 16px; }
  .product-card img { height: 190px; }
  .product-card .p-name { margin-top: 18px; font-size: 12px; letter-spacing: 0.16em; }
  .product-card .p-sub { font-size: 12px; }
  .site-footer .brand .name { font-size: 20px; }
  .site-footer .brand img { height: 30px; }
  .form-card { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .site-footer { padding: 44px 24px; }
  .wrow { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .wtable .whead { display: none; }
  .wrow .w-prize { text-align: left; }
  .wrow .w-name { order: -1; }
}

/* Телефон: отделен ВЕРТИКАЛЕН кадър (img/hero-mobile.jpg, 9:16). Героят е висок колкото видимия
   екран (без лентата), за да се виждат текстът, предметите и бутоните без скрол. Без преливка:
   тъмният текст стои само върху БЯЛАТА част на стената (дясно от ръба при ~37% от ширината). */
@media (max-width: 560px) {
  .hero { --m-hero-h: clamp(580px, calc(100svh - 60px), 199vw); min-height: var(--m-hero-h); }
  .hero-media { background: url('../img/hero-mobile.jpg?v=0928') right bottom / cover no-repeat; }
  .hero-inner { min-height: var(--m-hero-h); display: block; padding: 22px 14px 0 calc(37vw + 16px); text-align: left; } /* висок колкото героя, за да се закотвят бутоните към дъното му */
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 8.4vw; line-height: 1.1; }
  .hero .sub { margin-top: 8px; font-size: 5.1vw; line-height: 1.25; }
  .only-phone { display: inline; }
  .hero .period { margin-top: 12px; font-size: 2.45vw; letter-spacing: 0.12em; white-space: nowrap; }
  .hero .accent-line { width: 40px; margin: 14px 0; }
  .hero .lead { max-width: none; font-size: 3.7vw; line-height: 1.45; }
  .hero .hero-logo-wrap { display: block; margin: 8px 0; line-height: 0; }
  .hero .hero-logo { height: 7.4vw; }
  .hero .btn-row { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; flex-wrap: nowrap; gap: 12px; }
  .hero .btn, .hero .btn-outline { flex: 1 1 0; padding: 15px 6px; font-size: 11px; letter-spacing: 0.14em; text-align: center; white-space: nowrap; }
  .hero .btn-outline { background: var(--paper); }  /* плътен фон, за да се чете върху дървото */
}

/* Много тесни телефони (320–359px) */
@media (max-width: 359px) {
  .brand .tagline { font-size: 10.5px; }
  .hero-inner { padding-top: 18px; }
  .hero .btn, .hero .btn-outline { font-size: 10px; letter-spacing: 0.1em; padding: 14px 4px; }
}
