/* VIBE tea — цвета и размеры из DESIGN.md. Только переменные темы. */
:root {
  --burgundy: #7A1430;
  --burgundy-press: #5E0F25;
  --gold: #C9A24A;
  --gold-text: #A97F2C;
  --gold-metal: linear-gradient(100deg, #7F5B1C 0%, #B88A2E 22%, #E2BE62 42%, #9A7128 58%, #D4AE55 78%, #7F5B1C 100%);
  --gold-metal-light: linear-gradient(100deg, #B88A2E 0%, #F3DB8E 30%, #C9A24A 55%, #F7E3A1 75%, #B88A2E 100%);
  --gold-badge: linear-gradient(135deg, #8A6420 0%, #E9C76A 35%, #B88A2E 60%, #F3DB8E 85%, #9A7128 100%);
  --bg: #FBF6EF;
  --card: #FFFFFF;
  --text: #2B1A14;
  --muted: #7A6A60;
  --line: #EADFD3;
  --wa: #0F7A40;
  --error: #C62828;
  --success: #2E7D32;
  --sun: #E8862A;
  --raspberry: #C2264B;
  --spice: #B5743F;
  --r-btn: 12px;
  --r-card: 20px;
  --head: Montserrat, system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* Атрибут hidden сильнее любых display: иначе .form { display: flex } не даёт спрятать форму */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--burgundy); }
h1, h2 { font-family: var(--head); font-weight: 900; margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Металлическое золото — только «VIBE», логотип, значки */
.gold { background: var(--gold-metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldmove 6s ease-in-out infinite; }
.gold-light { background: var(--gold-metal-light); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldmove 6s ease-in-out infinite; }
.badge { background: var(--gold-badge); background-size: 220% 220%; animation: goldmove 5s ease-in-out infinite; color: var(--text); }
@keyframes goldmove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Кнопки */
.nobr { white-space: nowrap; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: var(--r-btn); font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-buy { position: relative; overflow: hidden; background: var(--burgundy); color: #FFFFFF; box-shadow: 0 8px 22px rgba(122, 20, 48, .28); }
.btn-buy:hover { background: var(--burgundy-press); color: #FFFFFF; transform: translateY(-2px); }
.btn-buy::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(243,219,142,.55) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-wa { background: var(--wa); color: #FFFFFF; animation: wapulse 2.5s ease-out infinite; }
.btn-wa:hover { color: #FFFFFF; transform: translateY(-2px); }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(15,122,64,.55); } 70% { box-shadow: 0 0 0 14px rgba(15,122,64,0); } 100% { box-shadow: 0 0 0 0 rgba(15,122,64,0); } }
.btn-pair { display: flex; flex-direction: column; gap: 10px; }
.btn-pair .btn { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }

/* Шапка */
.header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: baseline; gap: 3px; text-decoration: none; }
.logo b { font: 900 28px/1 var(--head); letter-spacing: -1px; }
.logo i { font: italic 800 19px/1 var(--head); }
.nav { display: none; gap: 28px; flex-grow: 1; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--burgundy); }
.city { margin-left: auto; display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 14px; }
.city .icon { width: 18px; height: 18px; color: var(--burgundy); stroke-width: 2; }
.header .btn { display: none; height: 44px; padding: 0 22px; font-size: 15px; }

/* Первый экран */
.hero { padding: 22px 0 28px; }
.hero .wrap { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.hero h1 { font-size: 44px; line-height: .98; }
.hero .sub { font-size: 19px; font-weight: 600; }
.hero .flavors { font-size: 14px; color: var(--muted); }
.price { font: 800 24px/1.2 var(--head); color: var(--burgundy); }
.delivery-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* На телефоне фото стоит между названиями вкусов и ценой */
.hero-text { display: contents; }
.hero .collage { order: 1; }
.hero .after-photo { order: 2; }
.collage { position: relative; height: 330px; margin: 6px -16px 0; }
.collage img { position: absolute; object-fit: cover; box-shadow: 0 16px 32px rgba(43,26,20,.22); background: #F3E7D8; }
.collage .c-left { left: -24px; top: 52px; width: 43%; height: 250px; border-radius: 0 22px 22px 0; }
.collage .c-right { right: -24px; top: 60px; width: 43%; height: 245px; border-radius: 22px 0 0 22px; }
.collage .c-mid { left: 50%; transform: translateX(-50%); top: 0; width: 46%; height: 325px; border-radius: 22px; border: 3px solid var(--bg); box-shadow: 0 22px 44px rgba(43,26,20,.3); object-position: 50% 45%; }
.round-badge { position: absolute; top: 4px; right: 14px; width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font: 900 14px/1.05 var(--head); border: 2px solid #F7E3A1; box-shadow: 0 8px 18px rgba(138,100,32,.4); }

/* Преимущества */
.perks { margin: 0 16px; background: var(--card); border-radius: var(--r-card); padding: 18px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; text-align: center; box-shadow: 0 2px 12px rgba(43,26,20,.05); }
.perk { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.perk .icon { width: 32px; height: 32px; color: var(--gold-text); stroke-width: 1.5; }
.perk small { display: none; color: var(--muted); font-weight: 400; font-size: 14px; }

/* Вкусы */
.tastes { padding: 40px 0 36px; }
.tastes h2, .brew h2 { font-size: 28px; padding: 0 16px; }
.cards { display: flex; gap: 12px; overflow-x: auto; padding: 18px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 78%; max-width: 300px; position: relative; height: 380px; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: center; box-shadow: 0 14px 30px rgba(43,26,20,.18); background: #F3E7D8; transition: transform .35s ease; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.card-info { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(43,26,20,.82); border-radius: 14px; padding: 14px; color: #FFFFFF; display: flex; flex-direction: column; gap: 5px; }
.card-info::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--accent); }
.card-info b { font: 800 21px/1.15 var(--head); }
.card-info span { font-size: 13px; line-height: 1.45; color: var(--line); }
.tastes .note { padding: 0 16px; font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.tastes .btn-pair { padding: 0 16px; }

/* Как заварить */
.brew { background: var(--burgundy-press); color: var(--bg); padding: 40px 0; }
.brew h2 { margin-bottom: 18px; }
.steps { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; margin: 0; list-style: none; }
.step { border: 1px solid rgba(201,162,74,.45); border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: center; font-weight: 700; font-size: 17px; }
.step .num { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 18px/1 var(--head); }
.step .icon { width: 32px; height: 32px; margin-left: auto; color: #E2BE62; stroke-width: 1.4; }

/* Заказ */
.order { padding: 40px 0; }
.order .wrap { display: flex; flex-direction: column; gap: 16px; }
.set-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 150px; gap: 8px; }
.set-photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; border-radius: 14px; background: #F3E7D8; }
.set-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.set-line b { display: block; font: 800 20px/1.2 var(--head); }
.set-line small { font-size: 13px; color: var(--muted); }
.set-price { font: 900 28px/1 var(--head); color: var(--burgundy); white-space: nowrap; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 18px; box-shadow: 0 8px 28px rgba(43,26,20,.08); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form h2 { font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.field input { height: 52px; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 0 14px; font: 400 16px var(--body); background: var(--bg); color: var(--text); }
.field input::placeholder { color: #9A8A80; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.25); }
.field.invalid input { border-color: var(--error); }
.err { display: none; font-weight: 600; font-size: 13px; color: var(--error); }
.invalid .err { display: block; }
.form .btn { width: 100%; }
.form .hint { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.form .legal { text-align: center; font-size: 12px; line-height: 1.45; color: var(--muted); margin: -6px 0 0; }
.form .legal a { color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.alert { display: none; background: #FDECEC; color: var(--error); border-radius: var(--r-btn); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.alert.show { display: block; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 12px 0; }
.success[hidden] { display: none; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: #E6F2E8; display: flex; align-items: center; justify-content: center; color: var(--success); }
.success .check .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.success b { font: 800 22px/1.25 var(--head); }
.success p { margin: 0; color: var(--muted); }
.success .btn { width: 100%; }

/* Доставка и подвал */
.delivery { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.delivery .wrap { display: flex; flex-direction: column; gap: 18px; }
.deliv { display: flex; gap: 12px; }
.deliv .icon { width: 30px; height: 30px; color: var(--gold-text); stroke-width: 1.5; }
.deliv b { display: block; font-size: 16px; }
.deliv span { display: block; font-size: 14px; color: var(--muted); }
.map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; font-weight: 700; font-size: 15px; color: var(--burgundy); text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.map-link .icon { width: 18px; height: 18px; stroke-width: 2; }
.footer { background: var(--text); color: var(--line); padding: 22px 0 110px; font-size: 14px; }
.footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--line); text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer .logo b { font-size: 22px; }
.footer .logo i { font-size: 15px; }

/* Нижняя панель (телефон) и плавающий WhatsApp */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 76px; padding: 0 12px 0 16px; background: var(--burgundy); color: #FFFFFF; display: flex; align-items: center; gap: 10px; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(43,26,20,.2); transform: translateY(110%); transition: transform .3s ease; }
.bar.show { transform: none; }
.bar-price { flex-grow: 1; display: flex; flex-direction: column; }
.bar-price small { font-size: 13px; opacity: .85; }
.bar-price b { font: 800 22px/1.1 var(--head); }
.bar .btn-buy { background: #FFFFFF; color: var(--burgundy); height: 52px; padding: 0 24px; }
.bar .btn-buy:hover { background: #FFFFFF; color: var(--burgundy); }
.bar .btn-wa { width: 52px; height: 52px; padding: 0; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 19; display: flex; align-items: center; gap: 10px; transition: opacity .25s ease, transform .25s ease; }
.fab.hide { opacity: 0; transform: translateY(16px); pointer-events: none; }
.fab .btn-wa { width: 56px; height: 56px; padding: 0; border-radius: 50%; }
.fab .btn-wa .icon { width: 28px; height: 28px; }
.tip { display: flex; align-items: center; gap: 4px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px 8px 14px; box-shadow: 0 8px 24px rgba(43,26,20,.15); font-weight: 600; font-size: 14px; animation: tipin .5s ease-out both; }
.tip[hidden] { display: none; }
.tip button { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tip button .icon { width: 16px; height: 16px; stroke-width: 2.2; }
@keyframes tipin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Компьютер */
@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .header .wrap { height: 72px; gap: 32px; }
  .logo b { font-size: 32px; }
  .logo i { font-size: 22px; }
  .nav { display: flex; }
  .city { margin-left: 0; font-size: 15px; }
  .header .btn { display: inline-flex; }
  .hero { padding: 56px 0 48px; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; align-items: center; }
  .hero-text { display: flex; flex-direction: column; gap: 18px; grid-column: 1; grid-row: 1; }
  .hero h1 { font-size: 76px; }
  .hero .sub { font-size: 24px; }
  .hero .flavors { font-size: 17px; }
  .price { font-size: 32px; }
  .hero .btn-pair { flex-direction: row; flex-wrap: wrap; }
  .hero .btn-pair .btn { width: auto; }
  .delivery-note { justify-content: flex-start; font-size: 15px; }
  .collage { height: 560px; margin: 0 -24px 0 0; grid-row: 1; grid-column: 2; }
  .collage .c-left { left: 0; top: 70px; width: 46%; height: 430px; border-radius: 28px; }
  .collage .c-right { right: -40px; top: 90px; width: 44%; height: 420px; border-radius: 28px 0 0 28px; }
  .collage .c-mid { left: 27%; transform: none; width: 48%; height: 540px; border-radius: 28px; border-width: 4px; }
  .round-badge { width: 118px; height: 118px; top: 18px; right: 8%; font-size: 20px; }
  .perks { max-width: 1152px; margin: 0 auto; padding: 24px 28px; gap: 24px; text-align: left; }
  .perk { flex-direction: row; gap: 14px; font-size: 16px; font-weight: 700; }
  .perk .icon { width: 40px; height: 40px; }
  .perk br { display: none; }
  .perk small { display: block; }
  .tastes { padding: 64px 0; }
  .tastes h2, .brew h2 { font-size: 44px; text-align: center; }
  .cards { max-width: 1200px; margin: 0 auto; padding: 32px 24px 16px; overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card { max-width: none; height: 460px; }
  .card:hover { transform: translateY(-6px); }
  .card-info { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .card-info b { font-size: 24px; }
  .card-info span { font-size: 14px; }
  .tastes .note { text-align: center; font-size: 15px; }
  .tastes .btn-pair { flex-direction: row; justify-content: center; }
  .tastes .btn-pair .btn { width: auto; }
  .brew { padding: 64px 0; }
  .brew h2 { margin-bottom: 36px; }
  .steps { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { flex-direction: column; align-items: flex-start; padding: 28px; font-size: 20px; border-radius: var(--r-card); }
  .step .num { width: 52px; height: 52px; font-size: 22px; }
  .step .icon { order: -1; display: none; }
  .order { padding: 72px 0; }
  .order .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
  .order-side { display: flex; flex-direction: column; gap: 14px; }
  .set-photos { grid-template-rows: 320px; gap: 10px; }
  .set-photos img { border-radius: 18px; }
  .set-line { flex-direction: column; align-items: flex-start; }
  .set-line b { font-size: 30px; }
  .set-line small { font-size: 17px; }
  .set-price { font-size: 52px; }
  .form-card { padding: 36px; }
  .form h2 { font-size: 34px; }
  .delivery .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer { padding: 28px 0; }
  .footer .wrap { flex-direction: row; align-items: center; gap: 24px; }
  .footer .copy { margin-left: auto; }
  .bar { display: none; }
  .fab { right: 24px; bottom: 24px; }
  .fab .btn-wa { width: 60px; height: 60px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .hero h1 { font-size: 60px; }
  .collage { height: 480px; }
  .collage .c-left, .collage .c-right { height: 360px; }
  .collage .c-mid { height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gold, .gold-light, .badge, .btn-buy::after, .btn-wa, .tip, .spinner { animation: none; }
  .btn, .card, .bar, .fab { transition: none; }
}
