/* Спільне для сторінок товарів: блок спецпропозиції з формою, відлік до справжнього дедлайну, підказки Нової пошти.
   Кольори беруться зі змінних сторінки: --panel, --panel-2, --line, --ink, --muted, --cta, --cta-ink, --hl, --danger, --radius, --f-display, --f-body. */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px;
  background: var(--cta); color: var(--cta-ink); font: 800 1.05rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px var(--cta-glow); transition: transform .15s ease, box-shadow .2s ease; }
.btn::after { content: "→"; font-weight: 800; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 38px var(--cta-glow); }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn[disabled]::after { content: none; }

/* Смуга довіри з позначками */
.trust { background: var(--panel); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding-block: 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.trust span::before { content: "✓"; color: var(--cta); font-weight: 800; margin-right: 6px; }
.trust b { color: var(--ink); font-weight: 700; }

/* Великі цифри під героєм */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; min-width: 0; }
.stats b { display: block; font: 800 clamp(1rem, 4.2vw, 1.6rem)/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.3; color: var(--muted); }
/* Короткий відлік знижки під ціною */
.cd-inline { flex: 1 1 100%; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--hl); background: color-mix(in srgb, var(--hl) 10%, transparent); color: var(--ink); font-weight: 700; font-size: .95rem; }
.cd-inline .t { white-space: nowrap; color: var(--muted); }
.cd-inline b { font: 800 1.3rem/1 var(--f-display); color: var(--hl); font-variant-numeric: tabular-nums; }
@media (min-width: 560px) { .cd-inline { flex: 0 1 auto; } }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--hl); color: var(--hl); font: 700 .85rem/1.2 var(--f-body); }

/* Спецпропозиція: картка з фото, відліком і формою */
.order { padding-block: clamp(40px, 8vw, 80px); }
.offer { max-width: 620px; margin: 0 auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.offer-head { padding: 26px 22px 6px; }
.offer-head h2 { margin-top: 10px; font-size: clamp(1.55rem, 5.6vw, 2.2rem); }
.offer-head h2 em { font-style: normal; color: var(--hl); }
.offer-head .lede { margin-top: 10px; }
.offer-photo { margin: 18px 0 0; border-radius: 16px; overflow: hidden; background: #fff; }
.offer-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.offer-photo.contain img { object-fit: contain; }
.offer form { padding: 18px 22px 24px; border-top: 1px solid var(--line); margin-top: 22px; }

.countdown { margin-top: 18px; }
.countdown p { font-weight: 700; color: var(--ink); }
.countdown .boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.countdown .boxes div { background: var(--night, #000); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font: 800 clamp(1.3rem, 5vw, 1.8rem)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.countdown small { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Форма */
form { display: grid; gap: 14px; }
.qty { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.qty legend { font-weight: 700; margin-bottom: 8px; }
.qty label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--panel); }
.qty label:has(input:checked) { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta) inset; }
.qty input { accent-color: var(--cta); width: 20px; height: 20px; margin: 0; }
.qty .opt { display: flex; align-items: center; gap: 12px; }
.qty .sum { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty .save { display: block; color: var(--hl); font-size: .82rem; font-weight: 700; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 520px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; position: relative; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field input { width: 100%; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); padding: 0 16px; font: 600 1.05rem var(--f-body); }
.field input::placeholder { color: var(--muted); opacity: .75; font-weight: 500; }
.field input:focus { border-color: var(--cta); }
.field input:disabled { opacity: .55; }
.field .hint { font-size: .8rem; color: var(--muted); }
.tel { display: flex; align-items: stretch; }
.tel span { display: flex; align-items: center; padding: 0 12px 0 16px; border: 1.5px solid var(--line); border-right: 0; border-radius: 14px 0 0 14px; background: var(--panel); color: var(--muted); font-variant-numeric: tabular-nums; }
.tel input { border-radius: 0 14px 14px 0; }

/* Підказки Нової пошти */
.np-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; max-height: 290px; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.np-list li { padding: 11px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; font-size: .95rem; }
.np-list li small { display: block; color: var(--muted); font-size: .8rem; }
.np-list li[aria-selected="true"], .np-list li:hover { background: var(--line); }
.np-list .empty { cursor: default; color: var(--muted); }
.np-list .empty:hover { background: none; }

.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; }
.total span { color: var(--muted); font-weight: 600; }
.total b { white-space: nowrap; }
.total b { font: 800 clamp(1.6rem, 6vw, 2rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 700; }
.fine { color: var(--muted); font-size: .84rem; }
.lock::before { content: "🔒 "; }
form .btn { width: 100%; font-size: 1.1rem; min-height: 60px; }
.thanks { margin: 22px; padding: 24px; border-radius: 18px; border: 1.5px solid var(--cta); background: var(--panel); display: grid; gap: 10px; }
.thanks h3 { font-size: 1.4rem; color: var(--hl); }
.thanks .note { color: var(--muted); font-size: .85rem; }

/* Кнопка внизу екрана на телефоні */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--night, #000) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(8px); transition: transform .25s ease; }
.sticky-cta .p { font: 800 1.35rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.sticky-cta .p small { display: block; font: 600 .75rem var(--f-body); color: var(--muted); margin-top: 4px; }
.sticky-cta .btn { min-height: 50px; padding: 0 22px; }
.sticky-cta.is-away { transform: translateY(110%); }
@media (min-width: 900px) { .sticky-cta { display: none; } }
