/* =========================================================
   Jardin & Greenfield × Magnum — промо-сайт
   ========================================================= */
:root {
  --bg-900: #2c1204;
  --bg-800: #3d1b08;
  --bg-700: #52260d;
  --bg-600: #6b3614;
  --card: rgba(255, 236, 210, .06);
  --card-strong: rgba(255, 236, 210, .1);
  --line: rgba(240, 210, 170, .16);
  --cream: #f6e6cf;
  --cream-2: #e3c7a3;
  --beige: #d2b28a;          /* фон модалок */
  --beige-dark: #b99468;
  --gold: #d9ae6c;
  --gold-2: #f1d49e;
  --text: #fbf1e3;
  --muted: #d7bfa1;
  --ink: #3a1c09;            /* тёмный текст на светлом */
  --danger: #e2574c;
  --ok: #7fc58a;
  --warn: #f0c06a;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 14px 40px rgba(20, 6, 0, .45);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; position: relative;
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text);
  background:
    radial-gradient(900px 600px at 70% 8%, rgba(190, 110, 40, .45), transparent 70%),
    radial-gradient(800px 700px at 15% 45%, rgba(150, 80, 25, .25), transparent 70%),
    radial-gradient(900px 800px at 85% 75%, rgba(150, 80, 25, .22), transparent 70%),
    linear-gradient(180deg, var(--bg-700) 0%, var(--bg-800) 40%, var(--bg-900) 100%);
  background-color: var(--bg-800);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- декоративные шары ---------- */
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sky__balloon { position: absolute; opacity: .95; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.sky__balloon--1 { width: 210px; right: -60px; top: 1500px; }
.sky__balloon--2 { width: 190px; left: -70px; top: 2300px; animation-delay: -3s; }
.sky__balloon--3 { width: 120px; right: 4%; top: 2900px; animation-delay: -5s; opacity: .8; }
body[data-view="lk"] .sky__balloon--1 { top: 90px; right: -50px; width: 190px; }
body[data-view="lk"] .sky__balloon--2 { top: 420px; left: -80px; width: 170px; }
body[data-view="lk"] .sky__balloon--3 { top: 700px; right: 3%; width: 100px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-22px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .sky__balloon, .hero__balloon, .spark { animation: none !important; } html { scroll-behavior: auto; } }

.spark { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: url(../img/sparkle.svg) center/contain no-repeat; animation: twinkle 3.2s ease-in-out var(--d, 0s) infinite; z-index: 2; }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }

/* ---------- типографика ---------- */
.title-xl, .title-lg {
  margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.08;
  background: linear-gradient(180deg, #f7e2c2 0%, #d8b184 55%, #a8784a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-xl { font-size: clamp(32px, 4.6vw, 58px); }
.title-lg { font-size: clamp(26px, 3.2vw, 40px); text-align: center; margin-bottom: 36px; position: relative; }
.title-lg::after { content: ''; position: absolute; width: 26px; height: 26px; top: -10px; margin-left: 6px; background: url(../img/sparkle.svg) center/contain no-repeat; }

/* ---------- кнопки ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(180deg, #fbeedc 0%, #ecd3b1 60%, #dcb88e 100%);
  box-shadow: 0 4px 0 #7a4f2a, 0 10px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7a4f2a, 0 4px 10px rgba(0,0,0,.3); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 11px; border-radius: 10px; }
.btn--lg { --h: 56px; padding: 0 36px; font-size: 15px; border-radius: 14px; }
.btn--white { background: #fff; box-shadow: 0 4px 0 var(--ink), 0 8px 18px rgba(58,28,9,.25); width: 100%; --h: 52px; font-size: 15px; }
.btn--white:active { box-shadow: 0 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--cream-2); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.header.is-scrolled { background: rgba(44, 18, 4, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header__inner { max-width: 1400px; display: flex; align-items: center; gap: 18px; min-height: 76px; }
.header__logos { display: flex; align-items: center; gap: 16px; flex-shrink: 0; text-decoration: none; }
.logo { height: 26px; width: auto; }
.logo--jardin { height: 46px; }
.logo--greenfield { height: 23px; margin-top: 4px; }
.logo--delonghi { height: 20px; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__link { font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; white-space: nowrap; opacity: .92; }
.nav__link:hover { color: var(--gold-2); }
.nav__buttons { display: flex; gap: 10px; margin-left: 8px; }
.btn--profile span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--card-strong); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; padding-top: 30px; padding-bottom: 40px; min-height: 560px; }
.hero__period { font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; margin: 0 0 18px; color: var(--cream); }
.hero__lead { max-width: 440px; color: var(--muted); margin: 18px 0 30px; font-size: 16px; }
.hero__lead b { color: var(--cream); }
.hero__lead .brand { color: var(--gold-2); font-weight: 700; }
.hero__visual { position: relative; height: 520px; }
.hero__visual img { height: auto; }
.hero__glow { position: absolute; left: 12%; top: 18%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(255, 190, 110, .45), transparent); filter: blur(10px); }
.hero__products { position: absolute; left: 4%; bottom: 7%; height: 76%; display: flex; align-items: flex-end; gap: 14px; z-index: 2; }
.hero__products img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.hero__products .hero__jardin { height: 100%; }
.hero__balloon { position: absolute; right: -4%; top: -2%; width: 40%; animation: float 8s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); z-index: 1; }
.hero__balloon--small { width: 13%; right: 42%; top: -4%; animation-delay: -4s; opacity: .8; filter: blur(.5px); }

/* ---------- секции и карточки ---------- */
.section { padding: 56px 0 30px; }
.section--first { padding-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1040px; }
.step { position: relative; padding: 110px 22px 24px; margin-top: 60px; display: flex; flex-direction: column; }
.step__img { position: absolute; left: 50%; top: -58px; transform: translateX(-50%); height: 150px; width: 100%; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.step__img img { max-height: 100%; width: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.step__img--products { gap: 8px; }
.step__img--products img { height: 124px; }
.step__img--prizes { height: 140px; }
.step__num { font-size: 40px; font-weight: 300; line-height: 1; color: var(--cream-2); margin-bottom: 8px; }
.step__title { font-size: 15px; font-weight: 800; text-transform: uppercase; margin: 0 0 4px; }
.step__text { margin: 0; font-size: 13px; color: var(--muted); }
.step__note { margin-top: 10px; font-size: 12px; color: var(--cream-2); }
.step__cta { margin-top: auto; padding-top: 16px; }
.step__cta a { font-size: 13px; color: var(--muted); text-underline-offset: 3px; }
.step__cta a:hover { color: var(--text); }

/* призы */
.prizes { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 26px; align-items: end; }
.prize { text-align: center; display: flex; flex-direction: column; align-items: center; }
.prize__group { font-weight: 800; text-transform: uppercase; font-size: 15px; margin: 0 0 8px; }
.prize__qty { display: inline-block; min-width: 46px; padding: 3px 10px; border-radius: 20px; font-weight: 700; font-size: 13px; color: var(--ink); background: linear-gradient(180deg, #f5e1c2, #d6b085); margin-bottom: 18px; }
.prize__visual { position: relative; width: 100%; height: 230px; display: flex; align-items: center; justify-content: center; }
.prize__visual img { max-height: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.prize__name { font-size: 16px; font-weight: 700; margin: 16px 0 2px; }
.prize__value { font-size: 13px; color: var(--muted); margin: 0; }
.prize--main .prize__visual { height: 260px; }
.prize--main .prize__group { color: var(--gold-2); font-size: 17px; }

.goldcard {
  position: relative; width: min(100%, 360px); aspect-ratio: 1.6; border-radius: 22px; padding: 26px 26px; text-align: left; color: #3d1f08; overflow: hidden;
  background: linear-gradient(125deg, #f8e3b6 0%, #d9b06a 30%, #f5dc9f 52%, #c1904a 75%, #edd092 100%);
  box-shadow: 0 0 0 1px rgba(255,240,200,.5) inset, 0 22px 50px rgba(0,0,0,.5), 0 0 60px rgba(255,190,100,.35);
  display: flex; flex-direction: column; justify-content: space-between;
}
.goldcard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.goldcard__label { font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.goldcard__row { display: flex; align-items: center; gap: 14px; }
.goldcard__chip { width: 52px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #fff3cf, #caa15b 45%, #f3dc9e 60%, #a57a35); box-shadow: inset 0 0 0 1px rgba(90,55,10,.35); position: relative; flex-shrink: 0; }
.goldcard__chip::before { content: ''; position: absolute; inset: 10px 14px; border: 1.5px solid rgba(90,55,10,.45); border-radius: 4px; }
.goldcard__sum { font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; }
.goldcard__sub { font-weight: 600; font-size: 14px; }
.info-btn { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(61,31,8,.18); color: #3d1f08; font-weight: 800; cursor: pointer; z-index: 2; }
.tooltip { position: absolute; right: 8px; top: 46px; width: 260px; z-index: 5; background: var(--beige); color: var(--ink); font-size: 12px; line-height: 1.45; padding: 14px 30px 14px 14px; border-radius: 12px; box-shadow: var(--shadow); text-align: left; }
.tooltip button { position: absolute; right: 6px; top: 6px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--ink); }

/* победители */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tab { border: 1.5px solid var(--cream-2); background: transparent; color: var(--cream); padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 12px; text-transform: uppercase; cursor: pointer; transition: .15s; }
.tab small { display: block; font-weight: 500; font-size: 10px; opacity: .75; text-transform: none; }
.tab[aria-selected="true"] { background: linear-gradient(180deg, #fbeedc, #dcb88e); color: var(--ink); border-color: transparent; box-shadow: 0 3px 0 #7a4f2a; }
.winners { max-width: 980px; margin: 0 auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 0 20px; }
.table td { background: var(--card-strong); padding: 16px 20px; font-size: 14px; }
.table td:first-child { border-radius: 14px 0 0 14px; }
.table td:last-child { border-radius: 0 14px 14px 0; }
.winners__scroll { max-height: 420px; overflow: auto; padding-right: 6px; scrollbar-color: var(--gold) transparent; }
.empty { text-align: center; padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty b { display: block; font-size: 17px; color: var(--cream); text-transform: uppercase; margin-bottom: 6px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--card-strong); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 15px; }
.faq__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(180deg, #fbeedc, #dcb88e); box-shadow: 0 3px 0 #7a4f2a; transition: transform .25s; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 14px; white-space: pre-line; }
.faq__ask { padding: 28px; position: sticky; top: 100px; }
.faq__ask h3 { margin: 0 0 6px; font-size: 18px; text-transform: uppercase; }
.faq__ask p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ---------- ЛК ---------- */
.lk-data { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; max-width: 820px; margin: 0 auto; }
.lk-data__info { border-top: 1px solid var(--cream-2); border-bottom: 1px solid var(--cream-2); padding: 26px 40px; min-width: 320px; }
.lk-data dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-weight: 700; font-size: 15px; }
.lk-data dt { color: var(--cream); }
.lk-data dd { margin: 0; word-break: break-word; }
.lk-data__links { display: flex; justify-content: flex-end; gap: 18px; margin-top: 14px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--pending { color: var(--warn); }
.status--accepted { color: var(--ok); }
.status--rejected { color: #ff8a7f; }
.receipt-reason { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 280px; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); background: #fff; }
.thumb-file { display: inline-flex; width: 40px; height: 40px; border-radius: 8px; background: var(--card-strong); align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }

.prize-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; max-width: 1100px; margin: 0 auto; }
.pcard { text-align: center; width: 240px; }
.pcard__visual { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pcard__visual img { max-height: 100%; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.pcard__visual .goldcard { width: 230px; padding: 18px; border-radius: 16px; }
.pcard__visual .goldcard__label { font-size: 15px; }
.pcard__visual .goldcard__sum { font-size: 22px; }
.pcard__visual .goldcard__chip { width: 38px; height: 30px; }
.pcard__name { font-weight: 700; margin: 0; }
.pcard__meta { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.lk-empty { text-align: center; font-weight: 700; text-transform: uppercase; color: var(--cream); margin: -18px 0 0; letter-spacing: .02em; }

/* ---------- подвал ---------- */
.footer { position: relative; z-index: 1; margin-top: 80px; padding: 34px 0 30px; background: linear-gradient(180deg, rgba(20,6,0,.35), rgba(20,6,0,.6)); border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; gap: 24px 30px; flex-wrap: wrap; justify-content: space-between; }
.footer__top .footer__links { margin-left: auto; }
.footer__logos { display: flex; gap: 16px; align-items: center; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; }
.footer__links a:hover { color: var(--gold-2); }
.footer__legal { font-size: 11px; color: var(--muted); line-height: 1.55; margin: 26px 0 0; }

/* ---------- модалки ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 6, 0, .7); backdrop-filter: blur(4px); animation: fade .2s; }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; background: var(--beige); color: var(--ink); border-radius: 22px; padding: 36px 40px 34px; box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal__box--wide { max-width: 520px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal__close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.modal__close:hover { background: rgba(58,28,9,.08); }
.modal h2 { margin: 0 0 24px; text-align: center; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.modal p { font-size: 13px; text-align: center; margin: 0 0 16px; }
.modal .muted { color: #6a4a2e; }
.form { display: flex; flex-direction: column; gap: 10px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid transparent; background: #fff; color: var(--ink); border-radius: 10px; font: inherit; font-size: 16px; /* 16px — без зума на iOS */
  padding: 12px 14px; min-height: 48px; outline: none; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%233a1c09' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #8b7560; }
.field__counter { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: #8b7560; }
.field__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(226,87,76,.2); }
.field__error { display: block; margin-top: 4px; font-size: 12px; color: #a3261c; font-weight: 600; }
.form-error { background: rgba(163,38,28,.1); color: #8f1f16; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.4; cursor: pointer; }
.check input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.check a { font-weight: 600; }
.check.is-error { color: #a3261c; }
.form__submit { margin-top: 12px; }
.form__alt { text-align: center; font-size: 13px; margin-top: 16px; }
.form__alt button, .form__small { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; color: var(--ink); }
.form__alt button { font-size: 13px; font-weight: 600; }
.choice { display: flex; flex-direction: column; gap: 10px; }
.choice p { margin: 8px 0 0; }
.demo-note { background: rgba(255,255,255,.45); border: 1px dashed #8b6a44; border-radius: 10px; padding: 10px; font-size: 12px; text-align: center; margin-bottom: 16px; }
.demo-note code { font-size: 15px; font-weight: 700; user-select: all; }

.dropzone { border: 2px dashed rgba(58,28,9,.45); border-radius: 14px; padding: 22px 16px; text-align: center; cursor: pointer; transition: .15s; background: rgba(255,255,255,.25); }
.dropzone:hover, .dropzone.is-over { background: rgba(255,255,255,.5); border-color: var(--ink); }
.dropzone b { display: block; font-size: 14px; margin-bottom: 4px; }
.dropzone small { font-size: 11px; color: #6a4a2e; }
.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.upload-actions .btn { --h: 46px; font-size: 12px; padding: 0 10px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file { position: relative; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; background: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.file img { width: 100%; height: 100%; object-fit: cover; }
.file button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 4px; border: 0; background: var(--ink); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.attach { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; font-weight: 600; margin-top: 2px; }
.hint { font-size: 11px; line-height: 1.5; color: #6a4a2e; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,3,0,.9); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lightbox .modal__close { color: #fff; position: fixed; }

.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -150%); z-index: 130; background: var(--cream); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: transform .3s, opacity .3s, visibility .3s; max-width: calc(100% - 32px); text-align: center; opacity: 0; visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- адаптив ---------- */
@media (max-width: 1365px) {
  .nav { gap: 14px; }
  .nav__buttons { gap: 8px; margin-left: 4px; }
  .header__logos { gap: 12px; }
  .logo { height: 22px; } .logo--jardin { height: 40px; } .logo--greenfield { height: 20px; } .logo--delonghi { height: 17px; }
}
@media (max-width: 1365px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(44,18,4,.98); padding: 10px 24px 26px; box-shadow: 0 20px 40px rgba(0,0,0,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; max-height: calc(100dvh - 76px); overflow: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { font-size: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__buttons { flex-direction: column; margin: 18px 0 0; }
  .nav__buttons .btn { --h: 48px; font-size: 13px; }
  .header { background: rgba(44, 18, 4, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (max-width: 1040px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .prizes { grid-template-columns: 1fr 1fr; }
  .prize--main { grid-column: 1 / -1; order: -1; }
  .faq { grid-template-columns: 1fr; }
  .faq__ask { position: static; text-align: center; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; min-height: 0; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__visual { height: 380px; max-width: 520px; width: 100%; margin: 0 auto; order: -1; }
  .hero__balloon { width: 30%; right: 2%; top: 6%; }
  .hero__balloon--small { display: none; }
  .lk-data { gap: 26px; }
  .lk-data__info { padding: 22px 10px; min-width: 0; width: 100%; }
  .footer__top { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; gap: 16px; }
  .sky__balloon--1, .sky__balloon--2 { width: 110px; opacity: .45; }
  .sky__balloon--3 { opacity: .45; }
  /* таблицы → карточки */
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards { border-spacing: 0; }
  .table--cards tr { background: var(--card-strong); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; }
  .table--cards td { background: none; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; border-radius: 0 !important; }
  .table--cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex-shrink: 0; }
  .receipt-reason { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .header__inner { min-height: 64px; gap: 10px; }
  .nav { inset: 64px 0 auto 0; max-height: calc(100dvh - 64px); }
  .header__logos { gap: 8px; }
  .logo { height: 16px; } .logo--jardin { height: 32px; } .logo--greenfield { height: 15px; margin-top: 2px; } .logo--delonghi { height: 13px; }
  .hero__visual { height: 300px; }
  .btn--lg { width: 100%; }
  .section { padding: 44px 0 16px; }
  .title-lg { margin-bottom: 26px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { margin-top: 70px; }
  .prizes { grid-template-columns: 1fr; gap: 44px; }
  .prize--main { grid-column: auto; }
  .prize__visual { height: 200px; }
  /* на телефоне все недели видны сразу: 3 вкладки в ряд, «Главный приз» — ниже */
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
  .tab { padding: 8px 6px; min-width: 0; }
  .modal { padding: 10px; align-items: flex-end; }
  .modal__box { padding: 30px 20px 24px; border-radius: 22px; max-height: calc(100dvh - 20px); }
  .upload-actions { grid-template-columns: 1fr; }
  .faq__q { padding: 16px; font-size: 14px; }
  .faq__a p { padding: 0 16px 18px; }
  .footer__logos { flex-wrap: wrap; justify-content: center; }
}

/* статус распознавания QR-кода при загрузке чека */
.qr-status { font-size: 12px; line-height: 1.4; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.qr-status.is-ok { background: rgba(47, 138, 72, .15); color: #1f5e30; }
.qr-status.is-warn { background: rgba(255, 255, 255, .45); color: #6a4a2e; font-weight: 500; }


/* ---------- призы: главный + спецприз ---------- */
.prizes__top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: end; max-width: 980px; margin: 0 auto; }
.prize--special .prize__group { max-width: 320px; line-height: 1.3; }
.prizes__weekly { margin-top: 64px; text-align: center; }
.prizes__sub { margin: 0 0 6px; font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--cream); }
.prizes__subtext { margin: 0 0 30px; color: var(--muted); }
.vouchers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.vprize { display: flex; flex-direction: column; align-items: center; }
.vprize__name { margin: 14px 0 2px; font-weight: 700; font-size: 15px; }
.vprize__note { margin: 0; font-size: 12px; color: var(--muted); }

/* карточка электронного сертификата */
.voucher { position: relative; width: 100%; max-width: 230px; aspect-ratio: 1.58; border-radius: 16px; padding: 14px 16px; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; color: #3d1f08;
  background: linear-gradient(135deg, #fffdf9 0%, #f6efe4 55%, #e8dac6 100%);
  box-shadow: 0 16px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.6); }
.voucher__ribbon { position: absolute; top: 0; bottom: 0; right: 22%; width: 12px; background: linear-gradient(180deg, #f3d58f, #b88539 50%, #e8c47a); }
.voucher__ribbon::after { content: ''; position: absolute; left: 50%; top: 26%; width: 30px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fbe7b8, #c99a4b 60%, #9c6b28); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.voucher__label { position: relative; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a0753a; max-width: 70%; line-height: 1.25; }
.voucher__brand { position: relative; font-weight: 800; font-size: 17px; line-height: 1.1; max-width: 72%; }
.voucher__brand img { height: 22px; width: auto; }
.voucher__sum { position: relative; font-weight: 800; font-size: 22px; line-height: 1; }
.voucher--dark { background: linear-gradient(135deg, #2a2f3a 0%, #151820 60%, #0d0f14 100%); color: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); }
.voucher--dark .voucher__label { color: #d9b878; }
.voucher--s { max-width: 200px; padding: 12px 14px; }
.voucher--s .voucher__sum { font-size: 19px; }
.voucher--s .voucher__brand { font-size: 15px; }

/* баннер гарантированного подарка в блоке призов */
.gift-banner { margin: 56px auto 0; max-width: 860px; display: flex; align-items: center; gap: 24px; padding: 20px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(240,200,140,.16), rgba(240,200,140,.05)); border: 1px solid rgba(240,210,170,.3); text-align: left; }
.gift-banner__visual { flex: 0 0 170px; }
.gift-banner__visual .voucher { max-width: 170px; }
.gift-banner__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gift-banner__text b { font-size: 16px; color: var(--gold-2); }
.gift-banner__text span { color: var(--cream); }

/* окно подарка */
.upload-ok { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: #1f5e30; background: rgba(255,255,255,.45); border-radius: 10px; padding: 10px; margin-top: 8px !important; }
.gift { text-align: center; margin: 18px 0 8px; }
.gift__visual { display: flex; justify-content: center; margin-bottom: 18px; }
.gift__visual .voucher { max-width: 240px; }
.gift__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.gift__text { font-size: 15px !important; font-weight: 600; margin-bottom: 8px !important; }
.gift__note { font-size: 12px !important; color: #6a4a2e; }
.gift__details { white-space: pre-line; text-align: left !important; font-size: 13px; }
.gift__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.btn--ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); width: 100%; --h: 48px; }
.btn--ghost-dark:active { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pcard--gift .link-btn { margin-top: 6px; }

/* шаг 3: кофемашина + сертификат ровно */
.step__img--prizes { height: 140px; }
.step__img--prizes .step__machine { height: 128px; position: static; }
.step__img--prizes .step__cert { height: 80px; position: static; margin-left: -14px; }
.step__img--prizes { display: flex; align-items: flex-end; justify-content: center; }

@media (max-width: 1040px) {
  .vouchers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .prizes__top { grid-template-columns: 1fr; gap: 48px; }
  .gift-banner { flex-direction: column; text-align: center; }
  .gift-banner__text { align-items: center; }
  .gift-banner__visual { flex-basis: auto; }
}
@media (max-width: 560px) {
  .vouchers { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .voucher { padding: 10px 12px; border-radius: 12px; }
  .voucher__brand { font-size: 13px; } .voucher__sum { font-size: 16px; } .voucher__label { font-size: 7.5px; }
  .voucher__brand img { height: 16px; }
  .vouchers .vprize:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .prizes__sub { font-size: 18px; }
}

/* переключатель языка РУС / ҚАЗ */
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--card-strong); border: 1px solid var(--line); flex-shrink: 0; }
.lang-switch button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .03em; padding: 6px 8px; border-radius: 7px; cursor: pointer; min-width: 38px; }
.lang-switch button[aria-pressed="true"] { background: linear-gradient(180deg, #fbeedc, #dcb88e); color: var(--ink); }
.step__title--plain { text-transform: none; font-size: 15px; line-height: 1.35; }
@media (max-width: 1365px) { .lang-switch { margin-left: auto; } .burger { margin-left: 8px; } }
@media (max-width: 560px) { .lang-switch button { padding: 6px 6px; min-width: 34px; font-size: 10px; } }
/* узкие телефоны: логотипы + РУС/ҚАЗ + меню в одну строку */
.burger { flex-shrink: 0; }
@media (max-width: 430px) {
  .header__inner { gap: 8px; }
  .header__logos { gap: 7px; min-width: 0; }
  .logo--jardin { height: 27px; } .logo--greenfield { height: 13px; } .logo--magnum { height: 14px; } .logo--delonghi { height: 11px; }
  .lang-switch button { min-width: 30px; padding: 5px 4px; }
  .burger { width: 40px; height: 40px; padding: 11px 10px; margin-left: 6px; }
}
@media (max-width: 350px) {
  .logo--magnum { display: none; }
}

/* ---- Вход / регистрация через WhatsApp ---- */
.btn--wa { width: 100%; --h: 52px; font-size: 15px; background: #1f9d55; color: #fff; gap: 10px; box-shadow: 0 4px 0 #14683a, 0 8px 18px rgba(20,104,58,.25); }
.btn--wa:hover { background: #22ab5d; }
.btn--wa:active { box-shadow: 0 1px 0 #14683a; }
.btn--wa svg { flex: 0 0 auto; }
.form__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 12px; opacity: .75; }
.form__or::before, .form__or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.wa-ok { display: flex; gap: 8px; align-items: flex-start; background: rgba(31,157,85,.12); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 0 0 14px; }
.wa-ok svg { color: #1f9d55; flex: 0 0 auto; margin-top: 2px; }
.form__alt [data-wa-resend]:disabled { opacity: .6; cursor: default; text-decoration: none; }
