/* Покана „Даваме думата“ — коледно парти 2026. Мобилна първо: всичко е мислено за телефон в ръка. */

@font-face { font-family: "Playfair"; src: url(f/playfair-cyrillic.woff2) format("woff2"); font-weight: 500 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; src: url(f/playfair-latin.woff2) format("woff2"); font-weight: 500 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(f/cormorant-cyrillic.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url(f/cormorant-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(f/cormorant-i-cyrillic.woff2) format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url(f/cormorant-i-latin.woff2) format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bad Script"; src: url(f/badscript-cyrillic.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Bad Script"; src: url(f/badscript-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --paper: #f3e8d6;
  --paper-2: #ead9bf;
  --note: #f8f0e2;
  --ink: #3b2a20;
  --ink-2: #6d5747;
  --red: #7d1a24;
  --red-2: #a3242f;
  --pine: #21462f;
  --gold: #c1a27a;
  --gold-2: #e6c98f;
  --night: #140e0b;
  --warm: 255 196 120;
  --serif: "Playfair", Georgia, serif;
  --display: "Cormorant", Georgia, serif;
  --hand: "Bad Script", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.5 var(--serif);
  background:
    radial-gradient(120% 60% at 50% 0%, #fbf3e6 0%, transparent 70%),
    radial-gradient(140% 90% at 50% 120%, #d9c2a0 0%, transparent 60%),
    var(--paper);
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
body::before { /* хартиена текстура */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: url(/assets/img/grain.webp); opacity: .35; mix-blend-mode: multiply;
}
body::after { /* винетка — топла светлина от центъра */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(80, 45, 20, .22) 100%);
}
body.is-dark { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.inv { position: relative; max-width: 560px; margin: 0 auto; }

/* ——— Портата ——— */
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 0;
  background: radial-gradient(90% 60% at 50% 30%, #2a1b13 0%, var(--night) 70%);
  color: #e8d6bc; text-align: center; touch-action: none;
  transition: opacity 1.4s var(--ease) .5s, visibility 0s 2s;
}
.gate__glow { position: absolute; left: 50%; top: 0; width: 120vmax; height: 120vmax; transform: translate(-50%, -55%); background: radial-gradient(closest-side, rgba(var(--warm) / .14), transparent); opacity: .5; transition: opacity .3s; }
.gate__kicker { position: absolute; top: max(28px, env(safe-area-inset-top)); left: 0; right: 0; margin: 0; font: 600 11px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: rgba(232, 214, 188, .5); }
.cord { position: absolute; top: 0; left: 50%; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.cord__line { width: 2px; height: 38vh; background: linear-gradient(#5a4636, #b79a74); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3); transform-origin: top; transition: height .5s var(--spring); }
.cord__knob { all: unset; position: relative; width: 26px; height: 40px; cursor: grab; touch-action: none; margin-top: -2px; }
.cord__knob::before { content: ""; position: absolute; inset: -30px; } /* по-голяма зона за пръста */
.cord__knob span { position: absolute; inset: 0; border-radius: 12px 12px 14px 14px; background: radial-gradient(circle at 35% 28%, #f7e3b5, #c39a55 45%, #6e4f25 100%); box-shadow: 0 8px 20px rgba(0, 0, 0, .55), inset 0 -3px 6px rgba(0, 0, 0, .3); }
.cord__knob::after { content: ""; position: absolute; left: 50%; top: 100%; width: 60px; height: 60px; transform: translate(-50%, -30%); border-radius: 50%; border: 1px solid rgba(230, 201, 143, .5); animation: ping 2.2s var(--ease) infinite; pointer-events: none; }
.cord.is-pulling .cord__line { transition: none; }
.cord.is-pulling .cord__knob::after { animation: none; opacity: 0; }
.gate__hint { position: absolute; top: calc(38vh + 80px); left: 0; right: 0; margin: 0; display: grid; gap: 6px; }
.gate__hint span { font: italic 500 40px/1 var(--display); color: #f1dfc0; }
.gate__hint small { font: 500 12px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 214, 188, .45); }
@keyframes ping { 0% { transform: translate(-50%, -30%) scale(.4); opacity: .9; } 100% { transform: translate(-50%, -30%) scale(1.6); opacity: 0; } }
body.is-lit .gate { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-lit .gate__glow { opacity: 1; }
.flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: radial-gradient(circle at 50% 30%, rgba(255, 236, 200, .95), rgba(255, 200, 130, .4) 40%, transparent 75%); animation: flash 1.1s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 14% { opacity: .2; } 22% { opacity: .9; } 100% { opacity: 0; } }

.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

/* ——— Лампички (SVG, рисува се от JS) ——— */
.wire { fill: none; stroke: #3a2b20; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.wire--2 { stroke: #5c4634; stroke-width: 1; opacity: .7; }
.bulb { transform-box: fill-box; transform-origin: 50% 0; }
.bulb__cap { fill: #2c2018; }
.bulb__g { fill: #6d5a45; opacity: .5; transition: fill .2s, opacity .2s; }
.bulb__halo { fill: url(#halo); opacity: 0; }
body.is-lit .bulb__g { fill: #ffe7b0; opacity: 1; animation: glow 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
body.is-lit .bulb__halo { opacity: .9; animation: halo 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes glow { 0%, 100% { fill: #ffe7b0; } 50% { fill: #ffd27a; } }
@keyframes halo { 0%, 100% { opacity: .95; } 50% { opacity: .55; } }

/* ——— Заглавие ——— */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; padding: calc(min(58vw, 300px) * .92) 22px 110px; text-align: center; }
.pine { position: absolute; z-index: 0; mix-blend-mode: multiply; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease) .6s, transform 2.2s var(--ease) .6s; }
.pine--tl { top: 0; left: 0; width: min(58%, 300px); transform: translate(-14%, -14%); }
.pine--tr { top: 0; right: max(-18%, -110px); width: min(60%, 320px); transform: translate(10%, -12%) scaleX(-1) rotate(-38deg); }
body.is-lit .pine { opacity: 1; }
body.is-lit .pine--tl { transform: none; }
body.is-lit .pine--tr { transform: scaleX(-1) rotate(-30deg); }
.lights--top { position: absolute; left: -4%; right: -4%; top: 0; width: 108%; height: 120px; overflow: visible; }
.hero__in { position: relative; z-index: 1; }
.lights--top, .scroll { z-index: 1; }

.title { position: relative; margin: 0 auto; white-space: nowrap; color: var(--red); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.title__l { display: block; }
.title { display: inline-block; padding: 0 .55em; }
.title__l--1 { font: italic 500 clamp(54px, 17vw, 96px)/.9 var(--display); color: var(--ink); transform: translateX(-.3em); }
.title__l--2 { font: 700 clamp(72px, 23vw, 128px)/.86 var(--display); letter-spacing: -.02em; transform: translateX(.2em); }
/* Големи бледи кавички — „даваме думата“ като цитат; стоят встрани от буквите */
.title__q { position: absolute; z-index: -1; font: 700 clamp(120px, 36vw, 200px)/1 var(--display); color: var(--red); opacity: 0; transition: opacity 1.2s var(--ease) 1s, transform 1.2s var(--ease) 1s; }
.title__q--o { left: -.14em; bottom: -.08em; transform: translateY(20px); }
.title__q--c { right: -.12em; top: -.3em; transform: translateY(-20px); }
body.is-lit .title__q { opacity: .13; transform: none; }
.title .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(6px); }
body.is-lit .title .ch { animation: chIn .9s var(--ease) forwards; animation-delay: calc(1.1s + var(--i) * 55ms); }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
.swash { display: none; }
.swash path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 620; stroke-dashoffset: 620; }
body.is-lit .swash path { animation: draw 1.3s var(--ease) 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.sub { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 40px 0 0; }
.sub__t { white-space: nowrap; font: italic 500 clamp(40px, 12vw, 62px)/1.05 var(--display); color: var(--pine); clip-path: inset(0 100% 0 0); }
body.is-lit .sub__t { animation: wipe 1.4s var(--ease) 2.5s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.sub__line { flex: 0 1 34px; height: 1px; background: var(--pine); opacity: 0; transform: scaleX(0); transition: .8s var(--ease) 3.2s; }
body.is-lit .sub__line { opacity: .5; transform: none; }
.hero__when { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin: 26px auto 0; font: 600 14px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transform: translateY(10px); transition: 1s var(--ease) 3.4s; }
.hero__when i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
body.is-lit .hero__when { opacity: 1; transform: none; }
.scroll { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font: 400 18px/1 var(--hand); opacity: 0; transition: opacity 1s 4s; }
.scroll i { width: 1px; height: 34px; background: linear-gradient(var(--ink-2), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
body.is-lit .scroll { opacity: .8; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ——— Общи заглавия ——— */
.sec-h { padding: 0 24px; text-align: center; }
.eyebrow { margin: 0 0 10px; font: 600 11px/1.3 var(--serif); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); filter: brightness(.8); }
.sec-h h2 { margin: 0; font: 800 clamp(32px, 9.4vw, 48px)/1.02 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.sec-h h2 em { font: italic 600 1.2em/1 var(--display); color: var(--red); }
.lede { margin: 14px auto 0; max-width: 30ch; font: 400 19px/1.4 var(--hand); color: var(--ink-2); }
[data-reveal], .sec-h { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-in[data-reveal], .sec-h.is-in { opacity: 1; transform: none; }

/* ——— Гирлянда ——— */
.words { position: relative; padding: 70px 0 30px; }
.garland { position: relative; margin-top: 28px; touch-action: pan-y; }
.row { position: relative; height: 206px; }
.row--big { height: 300px; }
.row__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tag { position: absolute; left: 0; top: 0; width: 34%; transform-origin: 50% 0; will-change: transform; z-index: 2; }
.tag[data-small] { width: 23%; }
.tag--hero { width: 60%; z-index: 3; }
.tag::before { /* дървено щипче */
  content: ""; position: absolute; left: 50%; top: -14px; width: 13px; height: 34px; margin-left: -6.5px; z-index: 3; border-radius: 2px;
  background: linear-gradient(90deg, #a77b48 0 46%, #5d3f1f 46% 54%, #b98b55 54%); box-shadow: 0 3px 4px rgba(50, 25, 5, .35);
}
.card { position: relative; display: grid; transform-style: preserve-3d; transition: transform .8s var(--spring); cursor: pointer; }
.tag.is-flipped .card { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1; position: relative; display: grid; place-content: center; min-height: 0; aspect-ratio: 1 / .92; padding: 14px 10px 12px; text-align: center;
  font: 400 clamp(22px, 6.6vw, 30px)/1.12 var(--hand); -webkit-text-stroke: .02em currentColor; color: var(--pine);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 30%),
    radial-gradient(130% 100% at 50% 0%, var(--note), #efe2cb);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 18px -8px rgba(70, 40, 15, .45), 0 2px 3px rgba(70, 40, 15, .15);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 1px;
}
.face::after { content: ""; position: absolute; inset: 0; background: url(/assets/img/grain.webp); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.face u { display: block; width: 62%; height: 8px; margin: 6px auto 0; border-bottom: 2px solid currentColor; border-radius: 0 0 50% 40%; opacity: .7; transform: rotate(-3deg); }
.face--b { transform: rotateY(180deg); font: 400 clamp(16px, 4.5vw, 20px)/1.2 var(--hand); color: var(--red); padding: 12px; }
.tag[data-small] .face { aspect-ratio: 1 / 1.05; }
.tag--blank .face--b { font-size: 15px; }
.tag--hero .face { aspect-ratio: 1 / .78; color: var(--ink); font-size: clamp(24px, 7.2vw, 34px); }
.tag--hero .face b { display: block; margin-top: 2px; font: 400 clamp(48px, 15vw, 70px)/1.05 var(--hand); color: var(--red); }
.tag--hero .face u { color: var(--red); width: 54%; }
.tag--hero .face--b { font-size: clamp(21px, 5.8vw, 27px); }
.heart { font-style: normal; color: var(--red); font-size: .8em; }
.tag--edge { opacity: .92; }
.tag.is-new .face { color: var(--red); }

/* влизане на листчетата: падат на мястото си */
.tag { opacity: 0; }
.garland.is-in .tag { animation: drop 1.1s var(--spring) forwards; animation-delay: calc(var(--k, 0) * 90ms); }
@keyframes drop { 0% { opacity: 0; translate: 0 -40px; } 100% { opacity: 1; translate: 0 0; } }
.garland.is-in .tag--edge { animation-name: dropEdge; }
@keyframes dropEdge { 0% { opacity: 0; translate: 0 -40px; } 100% { opacity: .92; translate: 0 0; } }

/* ——— Кога и къде ——— */
.when { position: relative; padding: 80px 22px 40px; }
.cal { position: relative; width: min(74%, 290px); margin: 36px auto 0; padding: 34px 20px 24px; text-align: center; background: linear-gradient(#fbf5ea, #f1e3ca); box-shadow: 0 30px 50px -24px rgba(70, 35, 10, .55), 0 2px 0 #fff inset; border-radius: 6px; transform: rotate(-2deg); }
.cal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(var(--red), #6a1520); border-radius: 6px 6px 0 0; }
.cal__rings { position: absolute; top: -12px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; }
.cal__rings i { width: 10px; height: 26px; border-radius: 6px; background: linear-gradient(90deg, #8c8378, #e8e1d6, #8c8378); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.cal__m { position: relative; margin: -14px 0 10px; font: 700 15px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: #fbe9d3; }
.cal__d { margin: 0; font: 900 clamp(150px, 44vw, 210px)/.8 var(--serif); color: var(--ink); letter-spacing: -.04em; }
.cal__w { margin: 34px 0 0; font: italic 500 40px/1 var(--display); color: var(--pine); }
.cal__h { margin: 8px 0 0; font: 800 28px/1 var(--serif); color: var(--red); }
.cal__h span { font: 400 16px/1 var(--serif); font-style: italic; color: var(--ink-2); }
.cal.is-in { animation: calIn 1.2s var(--spring) both; }
@keyframes calIn { 0% { transform: rotate(-14deg) translateY(40px) scale(.9); } 100% { transform: rotate(-2deg); } }

.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 40px auto 0; text-align: center; }
.count div { padding: 12px 4px 10px; background: rgba(255, 250, 240, .55); border: 1px solid rgba(125, 26, 36, .14); border-radius: 4px; }
.count b { display: block; font: 800 30px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.count b.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.count small { display: block; margin-top: 6px; font: 600 10px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

.place { position: relative; margin: 34px auto 0; max-width: 380px; text-align: center; }
.place__pin { width: 30px; margin: 0 auto 10px; fill: none; stroke: var(--red); stroke-width: 1.6; }
.place__a { margin: 0; font: 700 26px/1.15 var(--serif); }
.place__a span { display: block; margin-top: 4px; font: 400 21px/1.3 var(--hand); color: var(--ink-2); }
.place__btns { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--serif); cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; -webkit-user-select: none; user-select: none; }
.btn svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.96); }
.btn--ghost { border: 1.5px solid rgba(59, 42, 32, .3); color: var(--ink); background: rgba(255, 250, 240, .5); }
.btn--red { width: 100%; min-height: 58px; font-size: 18px; color: #fff3e3; background: linear-gradient(180deg, var(--red-2), var(--red)); box-shadow: 0 12px 24px -10px rgba(125, 26, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.calmenu { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.calmenu a { font: 400 20px/1.2 var(--hand); color: var(--red); }
.calmenu[hidden] { display: none; }

.ribbon { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 56px -22px 0; padding: 15px 10px; font: 600 clamp(13px, 3.8vw, 16px)/1 var(--serif); color: #fbe9d3; white-space: nowrap; background: linear-gradient(180deg, #8f1f2a, var(--red) 60%, #66141c); box-shadow: 0 10px 20px -10px rgba(80, 15, 20, .6); }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 5px; bottom: 5px; left: 0; right: 0; border-top: 1px solid rgba(230, 201, 143, .55); border-bottom: 1px solid rgba(230, 201, 143, .55); pointer-events: none; }
.ribbon::after { display: none; }
.ribbon i { width: 1px; height: 18px; background: rgba(230, 201, 143, .6); }

/* ——— RSVP ——— */
.rsvp { position: relative; padding: 90px 18px 40px; }
.form { position: relative; margin: 34px auto 0; max-width: 420px; padding: 34px 22px 26px; background: linear-gradient(180deg, #fbf6ec, #f2e6d0); box-shadow: 0 36px 60px -30px rgba(70, 35, 10, .6), 0 2px 0 #fff inset; border-radius: 3px; transform: rotate(.6deg); }
.form::after { content: ""; position: absolute; inset: 0; background: url(/assets/img/grain.webp); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.form > * { position: relative; z-index: 1; }
.form__pin { position: absolute; top: -18px; left: 50%; width: 16px; height: 40px; margin-left: -8px; border-radius: 3px; background: linear-gradient(90deg, #a77b48 0 46%, #5d3f1f 46% 54%, #b98b55 54%); box-shadow: 0 3px 5px rgba(50, 25, 5, .35); }
.f { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.f label, .f legend { display: block; margin-bottom: 8px; padding: 0; font: 600 12px/1.2 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.f label span { letter-spacing: 0; text-transform: none; font-weight: 400; font-style: italic; }
.f input:not([type=radio]) { width: 100%; min-height: 52px; padding: 6px 2px 2px; border: 0; border-bottom: 1.5px solid rgba(59, 42, 32, .35); border-radius: 0; background: transparent; font: 400 24px/1.3 var(--hand); color: var(--ink); outline: 0; transition: border-color .2s; }
.f input:focus { border-color: var(--red); }
.f__err { display: block; min-height: 0; margin-top: 6px; font: 600 13px/1.3 var(--serif); color: var(--red-2); }
.f__err:empty { display: none; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice__o { position: relative; display: block; margin: 0 !important; cursor: pointer; letter-spacing: 0 !important; text-transform: none !important; }
.choice__o input { position: absolute; opacity: 0; pointer-events: none; }
.choice__o span { display: grid; gap: 4px; min-height: 84px; place-content: center; padding: 12px 8px; text-align: center; border: 1.5px solid rgba(59, 42, 32, .22); border-radius: 10px; background: rgba(255, 255, 255, .35); transition: .25s var(--ease); }
.choice__o b { font: 400 24px/1.1 var(--hand); color: var(--ink); }
.choice__o small { font: 400 12px/1.2 var(--serif); color: var(--ink-2); }
.choice__o input:checked + span { border-color: var(--red); background: var(--red); transform: rotate(-1.5deg) scale(1.03); box-shadow: 0 10px 20px -10px rgba(125, 26, 36, .7); }
.choice__o input:checked + span b, .choice__o input:checked + span small { color: #fff1e0; }
.choice__o:nth-child(2) input:checked + span { background: var(--pine); border-color: var(--pine); transform: rotate(1.5deg) scale(1.03); box-shadow: 0 10px 20px -10px rgba(33, 70, 47, .7); }
.choice__o input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.f--word { transition: opacity .3s; }
.wordnote { position: relative; width: 78%; margin: 30px auto 0; padding: 26px 14px 18px; background: radial-gradient(130% 100% at 50% 0%, #fff9ee, #efe2cb); box-shadow: 0 14px 22px -12px rgba(70, 40, 15, .5); transform: rotate(-2.5deg); }
.wordnote__clip { position: absolute; top: -16px; left: 50%; width: 13px; height: 34px; margin-left: -6.5px; border-radius: 2px; background: linear-gradient(90deg, #a77b48 0 46%, #5d3f1f 46% 54%, #b98b55 54%); box-shadow: 0 3px 4px rgba(50, 25, 5, .35); }
.f .wordnote input { text-align: center; border-bottom-style: dashed; font-size: 36px; color: var(--red); }
.f .wordnote input::placeholder { color: rgba(109, 87, 71, .45); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn--go span { transition: transform .3s var(--ease); }
.btn--go svg { transition: transform .3s var(--ease); }
.btn--go:hover svg { transform: translateX(4px); }
.btn--go[disabled] { opacity: .7; pointer-events: none; }
.form__err { margin: 12px 0 0; text-align: center; font: 600 14px/1.3 var(--serif); color: var(--red-2); }
.form__err:empty { display: none; }
.form.is-sent { animation: sent .9s var(--ease) forwards; }
@keyframes sent { 0% { transform: rotate(.6deg); } 30% { transform: rotate(-3deg) translateY(10px) scale(.98); } 100% { transform: rotate(8deg) translateY(-120%) scale(.6); opacity: 0; } }
.fly { position: fixed; z-index: 40; pointer-events: none; display: grid; place-content: center; padding: 18px 12px; text-align: center; font: 400 24px/1.15 var(--hand); color: var(--red); background: radial-gradient(130% 100% at 50% 0%, #fff9ee, #efe2cb); box-shadow: 0 20px 30px -12px rgba(70, 40, 15, .5); transition: transform 1s var(--ease); }

.done { margin: 30px auto 0; max-width: 420px; text-align: center; }
.done[hidden] { display: none; }
.done__t { margin: 0; font: 800 clamp(30px, 9vw, 40px)/1.05 var(--serif); color: var(--ink); }
.done__t em { font: italic 600 1.2em/1 var(--display); color: var(--red); }
.done__s { margin: 12px 0 0; font: 400 20px/1.4 var(--hand); color: var(--ink-2); }
.link { all: unset; margin-top: 14px; font: 600 13px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 3px; cursor: pointer; }

.wall { margin: 50px -18px 0; text-align: center; }
.wall[hidden] { display: none; }
.wall__g { position: relative; margin-top: 10px; }

/* ——— Край ——— */
.foot { position: relative; padding: 50px 30px calc(50px + env(safe-area-inset-bottom)); text-align: center; }
.foot img { display: block; width: min(80%, 300px); height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.foot p { margin: 22px 0 0; font: italic 500 32px/1.1 var(--display); color: var(--pine); }

/* ——— Конфети от хартия ——— */
.confetti { position: fixed; top: 0; left: 0; z-index: 45; width: 9px; height: 13px; pointer-events: none; will-change: transform; }

/* ——— По-широк екран: поканата остава „телефонна“ ——— */
@media (min-width: 700px) {
  .inv { max-width: 600px; }
  .ribbon { margin-left: 0; margin-right: 0; border-radius: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .title .ch, .tag, [data-reveal], .sec-h { opacity: 1 !important; transform: none !important; filter: none !important; }
  .sub__t { clip-path: none; }
}
