/* Караван Coca-Cola — стиль по мокапу клиента (концепт 1): красные экраны, светлые экраны выбора, открытка-марка. */
@font-face { font-family: "Better With"; src: url(fonts/BetterWith.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "TCCC Unity"; src: url(fonts/TCCCUnity-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TCCC Unity"; src: url(fonts/TCCCUnity-Medium.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
:root {
  --red: #e4002b; --red-d: #c4001f; --pink: #fde4e8; --bg: #f1f1f1; --ink: #1d1d1f; --muted: #6b6b70; --r: 22px;
  --display: "Better With", Georgia, serif; --ui: "TCCC Unity", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--red); color: var(--ink); font: 16px/1.35 var(--ui); }
body.light-bg { background: var(--bg); }
a { color: inherit; }
.screen { display: none; min-height: 100vh; padding-bottom: calc(28px + env(safe-area-inset-bottom)); animation: fade .25s ease; position: relative; overflow-x: hidden; }
.screen.on { display: block; }
.screen.red { background: var(--red); color: #fff; }
.screen.light { background: var(--bg); color: var(--ink); }
.pad { padding: 16px; }
.center { text-align: center; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.5px; line-height: 1.02; margin: 0; }
h1.display { font-size: 34px; }
.display.big { font-size: 46px; margin: 10px 0 12px; }
.display.huge { font-size: 64px; }
.red-t { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 17px; line-height: 1.3; margin: 0 0 16px; }

/* кнопки */
.btn { display: block; width: 100%; border: 0; border-radius: 30px; padding: 16px; margin: 14px 0 0; font: 700 17px var(--ui); cursor: pointer; text-align: center; }
.btn:disabled { opacity: .5; }
.btn.white { background: #fff; color: var(--red); }
.btn.white:disabled { background: rgba(255,255,255,.45); color: #fff; opacity: 1; }
.btn.red { background: var(--red); color: #fff; }
.btn.grad { background: linear-gradient(90deg, #e4002b, #ff4b5c); color: #fff; box-shadow: 0 8px 18px rgba(228,0,43,.3); }
.btn.outline { background: #fff; color: var(--red); border: 1.5px solid #e2e2e2; }
.btn.pill { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; font-size: 17px; }
.btn.pill-w { width: auto; padding: 16px 48px; margin: 18px auto 0; }
.btn.small { padding: 9px 14px; font-size: 14px; width: auto; margin: 0; }
.btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.btn.wide { margin-top: 16px; }
.ci { width: 18px; height: 18px; }
.ulink { display: block; text-align: center; margin: 16px 0 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
.ulink.red-l { color: var(--red); text-decoration: none; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.two .btn { margin: 0; }

/* верхняя строка экранов */
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.back { border: 0; background: #fff; border-radius: 24px; padding: 10px 16px; font: 500 16px var(--ui); color: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.06); cursor: pointer; }
.balance { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border-radius: 22px; padding: 6px 12px 6px 8px; font: 700 18px var(--ui); }
.balance img { width: 22px; height: 22px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.lang { display: inline-flex; background: #fff; border-radius: 22px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06); flex: none; }
.lang button { border: 0; background: transparent; border-radius: 18px; padding: 7px 13px; font: 700 15px var(--ui); color: var(--ink); cursor: pointer; }
.lang button.on { background: var(--red); color: #fff; }
.lang.inline { margin: 6px 0 12px; }

/* заставка */
.splash.on { display: flex; align-items: center; justify-content: center; }
.splash video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-anim { text-align: center; width: 100%; }
.logo-w { width: 230px; display: block; margin: 0 auto; animation: pop .8s ease both; }
.logo-w.small { width: 150px; margin: 0 0 10px; animation: none; }
.splash-sub { font: 26px var(--display); margin-top: 6px; opacity: 0; animation: fade .6s .5s ease forwards; }
.road { margin: 50px 0 0; height: 80px; border-bottom: 3px dashed rgba(255,255,255,.4); position: relative; overflow: hidden; }
.convoy { position: absolute; bottom: 4px; left: -110%; display: flex; gap: 14px; animation: drive 4.6s cubic-bezier(.3,.1,.3,1) forwards; }
.convoy svg { width: 120px; height: 52px; }
@keyframes drive { to { left: 110%; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.skip { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; opacity: .75; font-size: 14px; }

/* согласие */
.consent .hero { height: 210px; position: relative; overflow: hidden; }
.consent .hero-img { position: absolute; inset: 0; background: radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 55%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 85% 60%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 10% 70%, #fff 50%, transparent 51%), linear-gradient(180deg, #2a0712 0%, #7a0018 60%, #e4002b 100%); }
.consent .hero-trucks { position: absolute; left: 0; right: 0; bottom: 70px; display: flex; gap: 10px; justify-content: center; z-index: 1; }
.consent .hero-trucks svg { width: 110px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.consent .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(228,0,43,0) 30%, var(--red) 100%); }
.consent .pad { margin-top: -70px; position: relative; }
.tick { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); border-radius: 16px; padding: 15px 16px; margin: 10px 0; font-size: 16px; cursor: pointer; }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.tick .box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #d0d0d0; display: inline-flex; align-items: center; justify-content: center; }
.tick input:checked + .box { background: var(--red); border-color: var(--red); }
.tick input:checked + .box::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tick a { color: var(--red); text-decoration: none; }
.tick.dark { border: 1.5px solid #e2e2e2; }

/* подарок */
.gift { text-align: center; }
.gift .rays { position: absolute; inset: -20% -40% auto; height: 120vw; background: url(img/box-rays.webp) center/contain no-repeat; opacity: .55; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; opacity: .85; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
.giftbox { position: relative; width: 340px; height: 330px; margin: 0 auto; }
.giftbox img { position: absolute; left: 0; top: 0; width: 340px; height: 340px; }
.giftbox .glow { opacity: 0; transition: opacity .6s .3s; }
.giftbox .lid { transition: transform .8s cubic-bezier(.3,1.5,.6,1), opacity .8s; z-index: 3; }
.giftbox .body { z-index: 2; }
.giftbox .coin { width: 130px; height: 130px; left: 105px; top: 170px; z-index: 1; opacity: 0; transition: transform 1s .35s cubic-bezier(.2,1.4,.5,1), opacity .4s .35s; }
.giftbox .coin-logo { width: 90px; height: 34px; left: 125px; top: 218px; z-index: 1; opacity: 0; object-fit: contain; transition: transform 1s .35s cubic-bezier(.2,1.4,.5,1), opacity .4s .35s; }
.giftbox.open .lid { transform: translate(95px, -130px) rotate(28deg) scale(.85); }
.giftbox.open .glow { opacity: 1; }
.giftbox.open .coin, .giftbox.open .coin-logo { opacity: 1; transform: translateY(-150px); }
.gift-text { position: relative; padding: 0 20px; margin-top: -30px; }
.gift-text .lead { margin: 8px auto 0; max-width: 320px; }

/* главная */
.row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 14px; }
.row-top h1 { font-size: 27px; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.steps div { background: rgba(255,255,255,.18); border-radius: 14px; padding: 10px; font-size: 14px; line-height: 1.2; min-height: 92px; }
.steps b { display: block; font: 24px var(--display); margin-bottom: 4px; }
.card { background: #fff; color: var(--ink); border-radius: var(--r); padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.card:active { transform: scale(.985); }
.magic { min-height: 300px; }
.magic h2 { font-size: 34px; }
.magic-text { width: 47%; position: relative; z-index: 2; }
.magic-text p { color: #444; font-size: 15px; margin: 8px 0 0; }
.fan { position: absolute; right: 6px; top: 34px; width: 50%; height: 210px; }
.fan img { position: absolute; width: 58%; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.fan img:nth-child(1) { left: 0; top: 30px; transform: rotate(-9deg); }
.fan img:nth-child(2) { right: 0; top: 34px; transform: rotate(8deg); }
.fan img:nth-child(3) { left: 21%; top: 0; z-index: 2; }
.magic .btn { position: absolute; left: 16px; bottom: 16px; margin: 0; }
.sec { color: #fff; font: 500 16px var(--ui); margin: 6px 0 8px; }
.mycards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; }
.mycards .mc { flex: none; width: 104px; cursor: pointer; }
.mycards .mc img, .mycards .mc .ph { width: 104px; height: 130px; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.mycards .mc .st { font-size: 11px; margin-top: 4px; color: #fff; opacity: .9; }
.where { min-height: 220px; }
.where h2 { font-size: 26px; }
.where-text { width: 48%; position: relative; z-index: 2; }
.where-text p { margin: 6px 0 0; color: #555; font-size: 14px; }
.where-map { position: absolute; right: 6px; top: 12px; width: 58%; }
.truck-art { position: absolute; left: 12px; bottom: 10px; width: 150px; }
.promo { background: linear-gradient(160deg, #ff2a3d, #c4001f); color: #fff; min-height: 150px; }
.promo-label { font: 700 12px var(--ui); letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.lockup { width: 70%; max-width: 260px; margin: 10px 0 6px; display: block; }
.promo-go { font-size: 14px; opacity: .9; }
.soon { display: flex; gap: 14px; align-items: center; }
.soon span { font-size: 34px; }
.soon p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.testtools { margin-top: 10px; padding: 12px; border: 1px dashed rgba(255,255,255,.6); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #fff; }

/* сцены */
.scenes { display: grid; gap: 12px; margin-top: 14px; }
.scene { display: grid; grid-template-columns: 44% 1fr auto; align-items: center; background: #fff; border-radius: var(--r); overflow: hidden; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.06); min-height: 132px; }
.scene .pics { position: relative; height: 132px; background: var(--pink); }
.scene .pics img { position: absolute; width: 46%; top: 16px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.scene .pics img:nth-child(1) { left: 6%; transform: rotate(-8deg); top: 22px; }
.scene .pics img:nth-child(2) { right: 6%; transform: rotate(8deg); top: 22px; }
.scene .pics img:nth-child(3) { left: 27%; z-index: 2; }
.scene .info { padding: 14px; }
.scene .name { font: 30px var(--display); color: var(--red); line-height: 1; }
.scene .meta { color: #555; font-size: 14px; margin-top: 6px; }
.scene .chev { color: var(--red); font-size: 26px; padding-right: 14px; }

/* открытки */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 4px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.tpl { flex: 0 0 76%; scroll-snap-align: center; cursor: pointer; }
.tpl .frame { background: #fff; padding: 8px; border-radius: 6px; border: 3px solid transparent; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.tpl.sel .frame { border-color: var(--red); }
.tpl .frame img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.tpl .cap { font: 700 17px var(--ui); margin: 14px 4px 2px; }
.tpl .need { color: var(--muted); font-size: 14px; margin: 0 4px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #cfcfcf; }
.dots i.on { background: var(--red); }

/* фото */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.slot { aspect-ratio: 1; border-radius: 16px; background: #fff; border: 2px dashed #d6d6d6; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--red); overflow: hidden; position: relative; cursor: pointer; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot .busy { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); }

/* генерация: марка с размытым фото, аватары, чек-лист */
.stamp { background: #fff; padding: 10px; width: 78%; margin: 6px auto 0; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.stamp-head { background: var(--red); color: #fff; font: 30px var(--display); padding: 18px 10px; line-height: 1; }
.stamp-win { height: 180px; overflow: hidden; position: relative; background: #ddd; }
.stamp-win .blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(16px) saturate(1.2); animation: breathe 2s ease-in-out infinite alternate; }
@keyframes breathe { to { filter: blur(10px) saturate(1.4); } }
.stamp-foot { height: 42px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, #fff 40px 44px, var(--red) 44px 60px, #fff 60px 64px); }
.avatars { display: flex; justify-content: center; gap: 8px; margin: 18px 0 10px; }
.avatars img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.checks { list-style: none; padding: 0; margin: 10px auto 16px; max-width: 280px; text-align: left; }
.checks li { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 17px; color: var(--muted); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d0d0d0; box-sizing: border-box; }
.checks li.on { color: var(--ink); }
.checks li.on::before { border-color: var(--red); border-top-color: transparent; animation: spin .8s linear infinite; }
.checks li.done { color: var(--ink); }
.checks li.done::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' stroke='%23fff' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--red); }

/* результат */
.status-chip { display: table; margin: 0 auto 10px; padding: 6px 12px; border-radius: 14px; background: #fff; font-size: 14px; color: var(--muted); }
.status-chip.ok { background: #e3f6ea; color: #1b7a43; } .status-chip.screen { background: #fff2c4; color: #7a5600; } .status-chip.bad { background: #eee; color: #555; }
.cardimg { width: 92%; display: block; margin: 0 auto 6px; box-shadow: 0 12px 28px rgba(0,0,0,.14); aspect-ratio: 4/5; object-fit: cover; background: #ddd; }
.note { background: #fff; border-radius: 18px; padding: 16px; margin-top: 14px; }
.note p { margin: 0; color: #444; }
.promo-code { margin: 14px 0 0; background: #fff; border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.promo-code .muted { grid-column: 1 / -1; }
.promo-code b { font-size: 21px; letter-spacing: 1px; }
.ribbon { height: 70px; margin-top: 16px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 25%, var(--red) 0), var(--red); position: relative; overflow: hidden; }
.ribbon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 24%; background: url(img/logo.webp) center/80% no-repeat; }
.ribbon::after { content: ""; position: absolute; left: 30%; top: 0; bottom: 0; width: 70%; background: repeating-linear-gradient(90deg, transparent 0 24px, #fff 24px 30px); opacity: .9; }

/* где караван */
.map-card { background: var(--red); border-radius: var(--r); padding: 14px 10px 6px; margin: 12px 0 16px; color: #fff; }
.map-head { font: 700 12px var(--ui); letter-spacing: 1.2px; text-transform: uppercase; padding: 0 6px 6px; }
.sec2 { font-size: 30px; margin: 10px 0 10px; color: var(--ink); }
.list { display: grid; gap: 10px; }
.stop { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 14px 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.stop .c { font: 26px var(--display); line-height: 1.05; }
.stop .p { color: #555; font-size: 14px; margin-top: 4px; }
.stop .right { display: flex; align-items: center; gap: 8px; flex: none; }
.badge { background: var(--red); color: #fff; border-radius: 12px; padding: 4px 10px; font: 700 12px var(--ui); letter-spacing: .5px; white-space: nowrap; }
.badge.move::before { content: "● "; color: #ffb3c0; }
.badge.soon { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.badge.done { background: #ddd; color: #555; }
.chev { color: var(--red); font-size: 22px; }
.datehead { color: var(--muted); font: 700 13px var(--ui); text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 0; }
.info-card { background: #fff; border-radius: 18px; padding: 6px 16px; margin: 10px 0; }
.info-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eee; }
.info-card .row:last-child { border: 0; }
.info-card .row span { color: var(--muted); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); background: rgba(20,20,20,.9); color: #fff; padding: 12px 14px; border-radius: 14px; z-index: 99; text-align: center; }
