@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
/* Усі кольори, шрифти й радіуси — тут. Під новий дизайн достатньо змінити змінні. */
:root {
  --bg: #fffdf9;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --line: #ece7df;
  --chip: #f4f1ec;
  --accent: #e8573f;
  --accent-ink: #ffffff;
  --accent-soft: #fdebe7;
  --ok: #1f9d55;
  --ok-soft: #e3f5ea;
  --warn-soft: #fff5e0;
  --radius: 14px;
  --radius-sm: 999px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.2; margin: .35em 0 .4em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
ul.plain { list-style: none; padding: 0; margin: .5em 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* шапка й підвал: без меню — людина приходить з пошуку одразу на потрібну сторінку */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; min-height: 56px; }
.logo { font-weight: 800; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
h1.logo { margin: 0; line-height: inherit; }
.site-footer { margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-row p { margin: .4em 0; max-width: 760px; }
.footer-links a { color: var(--muted); }

/* хлібні крихти: повні на комп'ютері, «‹ назад» на телефоні */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs-back { display: none; margin-top: 14px; font-size: .95rem; color: var(--muted); text-decoration: none; padding: 6px 0; }
.crumbs-back-always { display: inline-block; }

/* кнопки, чипи */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); border: 0; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(.95); }
.btn-small { padding: 7px 12px; font-size: .88rem; }
.btn-big { padding: 14px 26px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border-radius: var(--radius-sm); background: var(--chip);
  border: 1px solid transparent; font-size: .88rem; color: var(--text); font-family: inherit; white-space: nowrap; }
.chip-sm { padding: 2px 9px; font-size: .78rem; }
.chip-link { text-decoration: none; cursor: pointer; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.chips, .chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row { margin: 8px 0 20px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: .88rem; cursor: pointer; }
.chip-check span em { font-style: normal; color: var(--muted); font-size: .8em; }
.chip-check input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-check input:checked + span em { color: inherit; }
.chip-check input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge { font-size: .7rem; padding: 1px 7px; border-radius: var(--radius-sm); font-weight: 600; }
.badge-demo { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.9); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem; background: var(--surface); white-space: nowrap; }
.seg input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }

/* головна */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 32px 0 40px; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: -.2em; }
.picker { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 18px; }
.picker-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.picker label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.picker .btn-big { margin-top: 16px; }
select, input[type=number], input[type=text], input[type=email], input[type=password], input[type=url], textarea {
  font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; }
textarea { resize: vertical; }
.block { margin: 40px 0; }
.holiday-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.holiday { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none; }
.holiday span { color: var(--accent); font-weight: 600; }
.steps { padding-left: 1.2em; }
.steps li { margin: .5em 0; }

/* сторінка підбірки */
.lead-summary { font-size: 1.05rem; color: #384152; max-width: 820px; margin: 0 0 12px; }
.countdown { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 5px 13px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.hint { background: var(--warn-soft); padding: 12px 14px; border-radius: 10px; }
.refine { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.refine-row { display: flex; gap: 12px; align-items: baseline; }
.refine-label { flex: 0 0 90px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.chips-scroll { display: flex; flex-wrap: wrap; gap: 8px; }

.filterbar { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.fb-extra { display: flex; flex-direction: column; gap: 12px; }
.fb-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fb-label { flex: 0 0 90px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.fb-interests { align-items: flex-start; }
.fb-interests .chips { flex: 1; }
.fb-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.fb-select { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.fb-select select { width: auto; padding: 7px 10px; }
.fb-toggle { display: none; }
.reset { font-size: .85rem; color: var(--muted); align-self: flex-start; }

.results-head { margin-bottom: 12px; }
.results-title { font-size: 1.1rem; margin: 0; }
.results.loading { opacity: .5; transition: opacity .15s; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.more { text-align: center; margin: 24px 0; }
.empty { padding: 32px; text-align: center; background: var(--surface); border-radius: var(--radius); }

/* картка товару */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #f6f2ec; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.ph { font-size: 3rem; opacity: .7; }
.ph-big { font-size: 6rem; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.card-title { font-size: 1rem; margin: 0; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.card-note { font-size: .88rem; color: #4b5563; margin: 0; }
.gift-score { margin: 0; font-size: .85rem; color: var(--ok); font-weight: 600; }
.ext-rating { margin: 0; font-size: .85rem; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 4px; }
.price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.price s { font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: 4px; }
.price-big { font-size: 1.6rem; }

/* рядок кнопок-списків (уточнення + фільтри) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; align-items: center; }
.pill { position: relative; }
.pill > summary { list-style: none; cursor: pointer; padding: 8px 30px 8px 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--line); font-size: .92rem; font-weight: 600; white-space: nowrap; user-select: none; position: relative; }
.pill > summary::-webkit-details-marker { display: none; }
.pill > summary::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-52%); font-size: .75rem; color: var(--muted); }
.pill[open] > summary { border-color: var(--text); }
.pill.active > summary { background: var(--text); color: #fff; border-color: var(--text); }
.pill.active > summary::after { color: #fff; }
.pill-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-width: 360px; max-height: 60vh; overflow: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 8px; }
.pill-head { display: none; }
.pill-options { display: flex; flex-direction: column; }
.pill-options-grid { display: grid; grid-template-columns: 1fr 1fr; min-width: 300px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; cursor: pointer; font-size: .95rem; }
.opt:hover { background: var(--chip); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt input:checked + span { font-weight: 700; color: var(--accent); }
.opt-check span::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 4px; margin-right: 10px; vertical-align: -3px; }
.opt-check input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.opt em { font-style: normal; color: var(--muted); font-size: .8em; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill-done { display: none; }
.pill-reset { font-size: .9rem; color: var(--muted); padding: 8px 4px; }

/* тексти під товарами */
.info.tip { max-width: 860px; margin-top: 28px; background: var(--warn-soft); box-shadow: none; }
.tip p { margin: .3em 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0; }
.info { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.info h2 { font-size: 1.05rem; }
.info p { margin: 0; }
.info-warn { background: var(--warn-soft); box-shadow: none; }
.article { max-width: 820px; margin: 28px 0; }
.related { margin: 36px 0; }
.related h2 { font-size: 1.1rem; }
.seo-block { max-width: 860px; margin: 32px 0 10px; }
.seo-block h2 { margin-top: 26px; font-size: 1.15rem; }
.mini-list { padding-left: 1.2em; }
.mini-list li { margin: .4em 0; }
.mini-list a { font-weight: 600; }
.faq details { background: var(--surface); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }

/* сторінка товару */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; margin-top: 10px; }
.product-img { background: #f6f2ec; border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.demo-note { font-size: .85rem; color: #9b1c1c; background: #fde8e8; padding: 6px 10px; border-radius: 8px; display: inline-block; margin: 0 0 10px; }
.buy-box { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.buy-bar { display: none; }
.desc summary { cursor: pointer; color: var(--muted); }
.reviews { margin: 44px 0; }
.gift-summary { display: flex; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.gift-summary p { margin: 0 0 6px; }
.gift-big { font-size: 2.6rem; font-weight: 800; color: var(--ok); }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eee; width: min(360px, 60vw); }
.b-loved { background: var(--ok); } .b-ok { background: #f2c94c; } .b-miss { background: #e35d5d; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review p { margin: 4px 0; }
.stars-static { color: #f2a93b; letter-spacing: 1px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 30px; }

/* форми */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; font-weight: 600; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp { position: absolute; left: -9999px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2rem; color: #d6d1c8; cursor: pointer; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f2a93b; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 14px 0; }
.flash-ok { background: var(--ok-soft); color: #14653a; }
.flash-error { background: #fde8e8; color: #9b1c1c; }

/* «Усі підбірки» */
.sitemap-block { margin: 28px 0; }
.sitemap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px 28px; }
.sitemap a { text-decoration: none; }
.sitemap a:hover { color: var(--accent); }
.sitemap-sub { font-size: .9rem; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.sitemap-sub a { color: var(--muted); }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .picker-row { grid-template-columns: 1fr 1fr; }
  .product, .two-col, .info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-row { min-height: 50px; }
  h1 { margin-top: .2em; }
  .crumbs-full { display: none; }
  .crumbs-back { display: inline-block; margin-top: 10px; }

  .hero { padding: 20px 0 28px; }
  .picker { padding: 16px; }
  .picker .btn-big { width: 100%; }
  .holiday-row { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .holiday { flex: 0 0 auto; padding: 12px 14px; scroll-snap-align: start; }

  /* кнопки-списки: один рядок зі свайпом; список відкривається знизу екрана */
  /* без mask-image: вона робить ряд «контейнером» для fixed-елементів і ховає нижню панель */
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; }
  .pill[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(20, 24, 33, .4); z-index: 40; cursor: default; }
  .pill-panel { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; top: auto; max-width: none; max-height: 72vh;
    border-radius: 18px 18px 0 0; padding: 6px 12px calc(14px + env(safe-area-inset-bottom)); }
  .pill-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 12px 6px 8px;
    position: sticky; top: -6px; background: var(--surface); }
  .pill-close { background: none; border: 0; font-size: 1.1rem; padding: 6px 8px; cursor: pointer; color: var(--muted); }
  .opt { padding: 13px 10px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .pill-options-grid .opt { border-bottom: 1px solid var(--line); }
  .pill-done { display: flex; width: 100%; margin-top: 12px; }
  body.sheet-open { overflow: hidden; }

  /* чипи уточнення: один рядок зі свайпом, край підказує, що є ще */
  .refine-row, .fb-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .refine-label, .fb-label { flex-basis: auto; font-size: .85rem; }
  .chips-scroll, .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .chips-scroll::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
  .chips-scroll .chip { padding: 8px 14px; }
  .chips-row .chip { padding: 8px 14px; }

  /* фільтри: на виду лише бюджет, решта — за кнопкою */
  .filterbar { padding: 12px; gap: 10px; }
  .fb-group:first-child { position: relative; }
  .fb-toggle { display: inline-flex; align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--accent);
    font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
  .fb-toggle::after { content: "\00a0▾"; }
  .filterbar.open .fb-toggle::after { content: "\00a0▴"; }
  .fb-extra { display: none; }
  .filterbar.open .fb-extra { display: flex; }
  .fb-row { gap: 10px; }
  .fb-select { flex: 1 1 140px; flex-direction: column; align-items: stretch; gap: 4px; }
  .fb-select select { width: 100%; font-size: 16px; }

  /* картки: горизонтальні й компактні — на екран влазить 3–4 подарунки замість одного */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { flex-direction: row; }
  .card-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 120px; }
  .ph { font-size: 2.2rem; }
  .badge-demo { top: 6px; left: 6px; }
  .card-body { padding: 10px 12px; gap: 5px; }
  .card-title { font-size: .95rem; }
  .card-note { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .price { font-size: 1rem; }
  .price-big { font-size: 1.5rem; }
  .card-foot .btn-small { padding: 7px 11px; font-size: .84rem; }

  /* сторінка товару: менше фото, кнопка покупки завжди внизу екрана */
  .product { gap: 14px; }
  .product-img { aspect-ratio: auto; height: 200px; }
  .ph-big { font-size: 4.5rem; }
  .buy-bar { display: flex; transform: translateY(0); transition: transform .2s; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .buy-bar .btn { flex: 1; max-width: 260px; }
  .buy-bar.hidden { transform: translateY(110%); }
  body:has(.buy-bar) .site-footer { padding-bottom: 90px; }
  .gift-summary { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sitemap { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- поради (як обрати подарунок) */
.advice { margin: 40px 0 8px; max-width: 980px; }
.advice-lead { font-size: 1.05rem; max-width: 760px; margin: 0 0 18px; }
.advice-note { color: var(--muted); max-width: 760px; margin: -6px 0 18px; }
.advice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.advice-card { background: var(--surface); border-radius: var(--radius); padding: 16px 18px 6px; box-shadow: var(--shadow); }
.advice-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 8px; }
.advice-card h3 .ico { font-size: 1.15rem; line-height: 1; }
.advice-card ul { margin: 0; padding: 0; list-style: none; }
.advice-card li { position: relative; padding: 0 0 10px 18px; }
.advice-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.advice-card li strong { font-weight: 650; }
.advice-card.wide { grid-column: 1 / -1; }
.advice-card.good { border-top: 3px solid var(--ok); }
.advice-card.good li::before { background: var(--ok); }
.advice-card.avoid { background: var(--warn-soft); box-shadow: none; }
.advice-card.avoid li::before { background: #d99a1e; }
.advice-card.nobuy li::before, .advice-card.present li::before { background: var(--accent); }
.advice-card.budget p { margin: 0 0 10px; }
.budget-bars { display: grid; gap: 6px; margin: 4px 0 12px; }
.budget-bar { display: grid; grid-template-columns: 124px 1fr 34px; align-items: center; gap: 10px; font-size: .9rem; white-space: nowrap; }
.budget-bar .track { height: 8px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.budget-bar .fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.budget-bar a { color: inherit; }
@media (max-width: 720px) {
  .advice-grid { grid-template-columns: 1fr; }
  .budget-bar { grid-template-columns: 112px 1fr 28px; font-size: .86rem; }
}

/* ---------------------------------------------------------------- коментарі */
.comments { margin-top: 44px; max-width: 760px; }
.comment-form { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); gap: 10px; }
.comment-form textarea, .comment-form input[type=text] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.comment-form textarea { resize: vertical; min-height: 84px; }
.comment-row { display: flex; gap: 10px; }
.comment-row input { flex: 1; min-width: 0; }
.reply-to { margin: 0; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.reply-to[hidden] { display: none; }
.form-msg { margin: 0; min-height: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: #b42318; }
.comment-list { margin-top: 18px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.comment p { margin: 4px 0 2px; overflow-wrap: anywhere; }
.comment-new { animation: comment-in .6s ease; }
@keyframes comment-in { from { background: var(--accent-soft); } to { background: transparent; } }
.replies { margin: 8px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment-reply { padding: 10px 0; border-bottom: 0; }
.comment-admin > header strong { color: var(--ok); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .comment-row { flex-direction: column; }
  .comment-row .btn { width: 100%; }
}

/* головна: свята одразу під формою, без заголовка */
.holidays-block { margin-top: 16px; }
.hero { padding-bottom: 12px; }

/* ---------------------------------------------------------------- одна кнопка «Уточнити» */
.pill-main > summary { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.pill-main .ico-filter { width: 16px; height: 16px; flex: 0 0 auto; }
.pill-panel-wide { min-width: 320px; max-width: 420px; padding-bottom: 0; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup > summary { list-style: none; cursor: pointer; padding: 12px 10px; font-weight: 600; display: flex; justify-content: space-between; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
.fgroup[open] > summary::after { transform: rotate(180deg); }
.fgroup > .pill-options { padding: 0 0 10px; }
.panel-actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 6px; background: var(--surface); }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; font-size: .88rem; color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.active-chip span[aria-hidden] { color: var(--muted); font-size: .8em; }
@media (max-width: 640px) {
  .pill-panel-wide { min-width: 0; max-width: none; }
  .panel-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- згорнуті блоки під товарами */
.fold { margin: 14px 0; border-top: 1px solid var(--line); max-width: 980px; }
.fold > summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 0; position: relative; font-weight: 600; color: var(--text); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "▾"; position: absolute; right: 4px; top: 14px; color: var(--muted); transition: transform .15s; }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold > summary:hover { color: var(--accent); }
.advice .fold { border-top: 0; margin-top: 6px; }
.advice .fold > summary { color: var(--accent); font-weight: 600; }
.seo-block { margin-top: 24px; }
.seo-block .fold h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.faq h3 { font-size: 1rem; margin: 14px 0 4px; }
.faq p { margin: 0 0 8px; color: var(--muted); }
.related .chips-row { margin-bottom: 12px; }

/* ---------------------------------------------------------------- товар: перехід у магазин, опис, відгук */
.go-note { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.desc { margin-top: 18px; }
.desc h2 { font-size: 1.05rem; margin-bottom: 6px; }
.desc-more > summary { list-style: none; cursor: pointer; }
.desc-more > summary::-webkit-details-marker { display: none; }
.desc-toggle { color: var(--accent); font-weight: 600; white-space: nowrap; }
.desc-more[open] > summary { display: none; }
.review-box { max-width: 560px; margin-top: 24px; }
.review-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .review-form .form-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- сторінки довіри */
.info-page h2 { margin-top: 28px; font-size: 1.2rem; }
.info-page ul, .info-page ol { padding-left: 20px; }
.info-page li { margin-bottom: 8px; }
.info-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.info-table th { font-size: .85rem; color: var(--muted); }
.contact-form { max-width: 560px; }
.contact-form textarea, .contact-form input[type=text], .contact-form input[type=email] { width: 100%; }
.info-updated { margin-top: 32px; }
@media (max-width: 640px) { .info-table, .info-table tr, .info-table td, .info-table th { display: block; } .info-table tr:first-child { display: none; } .info-table td { border: 0; padding: 4px 0; } .info-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; } .info-table td:first-child { font-weight: 600; } }
.review-form .seg { flex-wrap: wrap; }

/* ================================================================ ТЕМНА «СТУДІЯ» — єдиний стиль усього сайту
   Та сама гама, що й у квізі: графітово-синя сцена, скляні картки, тепле світло як акцент.
   Щоб повернути світлу тему — видаліть цей блок до кінця файлу. */
:root {
  color-scheme: dark;
  --bg: #141a22;
  --surface: linear-gradient(155deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 60%, rgba(255,255,255,.06) 100%);
  --solid: #1f2731;                          /* непрозорі панелі: випадні списки, нижні панелі на телефоні */
  --text: #eef2f7;
  --muted: #a3adbb;
  --line: rgba(255,255,255,.12);
  --chip: rgba(255,255,255,.08);
  --accent: #ff9a62;
  --accent-ink: #251812;
  --accent-soft: rgba(255,154,98,.14);
  --warm1: #ffd3a1; --warm3: #e8603f;
  --ok: #5fd395;
  --ok-soft: rgba(95,211,149,.14);
  --warn-soft: rgba(255,200,120,.09);
  --glass-edge: rgba(255,255,255,.16);
  --shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 60px -30px rgba(0,0,0,.75);
  --font: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body {
  background:
    radial-gradient(60% 40% at 95% 8%, rgba(255,190,130,.10), transparent 70%),
    radial-gradient(50% 50% at 0% 35%, rgba(150,185,230,.08), transparent 70%),
    linear-gradient(180deg, #1b222c 0%, #141a22 40%, #10151c 100%);
  background-attachment: fixed;
}
a:hover { color: var(--accent); }
::selection { background: rgba(255,154,98,.35); }

/* шапка й підвал */
.site-header { background: rgba(16,21,28,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-footer { background: rgba(10,14,20,.45); border-top: 1px solid var(--line); }

/* скло: усе, що було білими картками */
.card, .picker, .holiday, .info, .advice-card, .faq details, .gift-summary, .comment-form, .empty, .filterbar {
  background: var(--surface); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.card { transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,210,170,.35); }

/* кнопки */
.btn { background: linear-gradient(150deg, var(--warm1) 0%, var(--accent) 55%, var(--warm3) 100%); color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px rgba(255,140,80,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn:hover { filter: brightness(1.05); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.chip-check input:checked + span, .seg input:checked + span, .pill.active > summary {
  background: linear-gradient(150deg, var(--warm1), var(--accent)); color: var(--accent-ink); border-color: transparent; }
.pill.active > summary::after { color: var(--accent-ink); }
.pill[open] > summary { border-color: var(--accent); }
.chip-check span, .seg span, .pill > summary, .active-chip { background: var(--chip); }

/* поля вводу */
select, input[type=number], input[type=text], input[type=email], input[type=password], input[type=url], textarea,
.comment-form textarea, .comment-form input[type=text] { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
select option { background: var(--solid); color: var(--text); }
::placeholder { color: #7d8898; }

/* непрозорі панелі */
.pill-panel, .pill-head, .panel-actions, .buy-bar { background: var(--solid); }
.pill-panel { border: 1px solid var(--glass-edge); box-shadow: 0 24px 60px rgba(0,0,0,.55); }

/* головна */
.hero { background: radial-gradient(70% 90% at 50% 0%, rgba(255,170,110,.12), transparent 70%); }
.holiday span { color: var(--accent); }
.lead, .lead-summary { color: var(--muted); }

/* картки товарів: фото — на світлій «студійній» підкладці, як у прев'ю квізу */
.card-img, .product-img { background: linear-gradient(160deg, #f4efe9 0%, #ddd6cd 100%); }
.card-img { margin: 8px 8px 0; border-radius: 12px; overflow: hidden; }
.badge-demo { background: rgba(20,26,34,.78); color: #ffd3a1; z-index: 1; }
/* немає фото — об'ємний предмет на «студійному» тлі, як у прев'ю квізу */
.card-img.noimg, .product-img.noimg { background: var(--sc); position: relative; }
.card-img.noimg::after, .product-img.noimg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 75% 20%, rgba(255,235,210,.45), transparent 70%); }
.obj { width: 46%; max-width: 130px; height: auto; aspect-ratio: 1; overflow: visible; position: relative; z-index: 1;
  filter: drop-shadow(0 14px 12px rgba(0,0,0,.35)); transition: transform .3s; }
.obj-big { width: 52%; max-width: 280px; }
.card:hover .obj { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
.card-note { color: var(--muted); }
.price s { color: var(--muted); }
.countdown { background: var(--accent-soft); color: var(--warm1); }

/* блоки з порадами й попередженнями */
.info-warn, .advice-card.avoid, .hint, .info.tip { background: var(--warn-soft); border: 1px solid rgba(255,200,120,.18); box-shadow: none; }
.advice-card.good { border-top: 3px solid var(--ok); }
.demo-note { background: rgba(232,96,63,.16); color: #ffb8a3; }
.flash-ok { background: var(--ok-soft); color: #9cebc0; }
.flash-error { background: rgba(232,96,63,.16); color: #ffb8a3; }
.form-msg.error { color: #ff9b85; }
.bar { background: rgba(255,255,255,.12); }
.stars label { color: rgba(255,255,255,.22); }
.budget-bar .track { background: rgba(255,255,255,.1); }
.budget-bar .fill, .advice-card li::before { background: linear-gradient(90deg, var(--warm1), var(--accent)); }
.advice-card.good li::before { background: var(--ok); }
.comment-new { animation: none; }

/* телефон */
@media (max-width: 640px) {
  .card-img { margin: 6px 0 6px 6px; }
  .pill[open] > summary::before { background: rgba(5,8,12,.6); }
}
/* кнопка магазину не вилазить за картку: на вузькій картці переноситься під ціну */
.card-foot { flex-wrap: wrap; }
.card-foot .btn { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }


/* ---------- один фільтр: стать + вік ---------- */
.qf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 18px; }
.qf-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card, rgba(255,255,255,.06));
  border: 1px solid var(--line); }
.qf-seg label { position: relative; cursor: pointer; }
.qf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.qf-seg span { display: block; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.qf-seg input:checked + span { background: var(--accent, #7c5cff); color: #fff; }
.qf-seg input:focus-visible + span { outline: 2px solid var(--accent, #7c5cff); outline-offset: 2px; }
.qf-age { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; }
.qf-age-l { font-weight: 600; color: var(--muted); }
.qf-age input[type=range] { flex: 1; accent-color: var(--accent, #7c5cff); min-width: 120px; outline: none; }
.qf-age input[type=range]:focus-visible { outline: 2px solid var(--accent, #7c5cff); outline-offset: 4px; border-radius: 4px; }
.qf-age:not(.is-set) input[type=range] { opacity: .55; }
.qf-age output { min-width: 78px; font-weight: 650; font-variant-numeric: tabular-nums; }
.qf-age:not(.is-set) output { color: var(--muted); font-weight: 500; }
.qf-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 4px 6px; }
.qf-x:hover { color: var(--text, #fff); }
.related-h { margin: 12px 0 6px; font-weight: 600; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .qf-seg { width: 100%; } .qf-seg label { flex: 1; text-align: center; } .qf-seg span { padding: 7px 8px; } .qf-age { max-width: none; } }

.picker-simple .qf { margin: 0; }
