:root {
  color-scheme: light;
  --paper: #f4ecdf;
  --sheet: #fbf6ec;
  --ink: #2b2420;
  --muted: #6a6257;
  --line: #ddcfb6;
  --band: #eadcc4;
  --accent: #6d2f2b;
  --wine2: #4f1f1d;
  --gold: #b08d57;
  --hand: "Marck Script", cursive;
  --error: #a3261d;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.7 var(--text);
}
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font: italic 400 22px var(--display);
  text-decoration: none;
}
/* Маленький золотий місяць перед назвою. */
.site-head .brand::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3a9 9 0 1 0 6 15 7.5 7.5 0 1 1-6-15z' fill='%23b08d57'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Верхня панель закріплена під час прокручування. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 2px 12px 10px;
  background: var(--paper);
}
/* Тонка золота хвиля з ромбиком під шапкою. */
.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M7 1l5 4-5 4-5-4z' fill='%23b08d57' stroke='%23f4ecdf' stroke-width='1.5'/%3E%3C/svg%3E") center / 14px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='98' height='10'%3E%3Cpath d='M0 5Q24.5 1 49 5T98 5' fill='none' stroke='%23b08d57'/%3E%3C/svg%3E") center / 98px 10px repeat-x;
}
.site-head .brand { grid-column: 2; }
.head-tools { display: flex; grid-column: 1; }
.icon-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ink); }
.icon-btn svg { width: 24px; height: 24px; }

/* Меню й пошук на весь екран */
.overlay-open { overflow: hidden; }
.overlay { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 2px 12px 32px; overflow-y: auto; border: 0; background: var(--paper); color: var(--ink); }
.overlay:focus { outline: none; }
.overlay-top { display: flex; align-items: center; min-height: 60px; padding-bottom: 8px; }
.menu-links { max-width: 640px; margin: 8px auto 0; padding: 0 12px; }
.menu-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font: 500 26px/1.25 var(--display); text-decoration: none; }
.search-top { gap: 6px; max-width: 664px; margin: 0 auto; padding-top: 6px; }
.search-form { flex: 1; min-width: 0; }
.search-form input { width: 100%; padding: 10px 14px; border: 1px solid #c9bca6; border-radius: 4px; background: var(--sheet); color: var(--ink); font: 17px var(--text); -webkit-appearance: none; appearance: none; }
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-results { max-width: 640px; margin: 18px auto 0; padding: 0 12px; }
.search-results h2 { margin: 0 0 6px; font-size: 25px; }
.search-results section { padding: 0; margin-bottom: 26px; }
.result { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.result-name { display: block; font: 600 21px/1.25 var(--display); }
.result-about { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.no-results { color: var(--muted); font-size: 16px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
/* Смуга «Як це працює» з фігурним краєм, як у паперової серветки. */
#how { position: relative; background: var(--band); }
#how::before, #how::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle at 6px -2px, var(--paper) 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x;
}
#how::before { top: 0; }
#how::after { bottom: 0; transform: scaleY(-1); }

/* Заголовки між тонкими золотими лініями із зірочками. */
.pick legend, .wrap > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
}
.pick legend::before, .pick legend::after, .wrap > h2::before, .wrap > h2::after, .orn::before, .orn::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.pick legend::after, .wrap > h2::after, .orn::after { background: linear-gradient(90deg, var(--gold), transparent); }
.pick legend i, .wrap > h2 i, .orn i { color: var(--gold); font-size: .45em; font-style: normal; }
.wrap > h2 { font-size: clamp(28px, 5vw, 36px); text-align: center; }
.orn { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 26px; line-height: 1; }

/* Рівні тексту: сторінка → розділ (бордовий) → підрозділ → основний текст → деталі (дрібні, сірі). */
h1, h2, h3 { font-family: var(--display); }
h1 { margin: 0 0 8px; font-size: clamp(34px, 6.5vw, 54px); font-weight: 500; line-height: 1.08; }
h2 { margin: 0 0 28px; color: var(--accent); font-size: clamp(32px, 5vw, 40px); font-weight: 600; line-height: 1.15; }
h3 { margin: 0 0 6px; font-size: 26px; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 18px; }
.muted { color: var(--muted); }
.quiet-link { color: var(--accent); }

/* Перший екран */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
/* Малюнок у пергаментній рамці. */
.art {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 12px auto 0;
  aspect-ratio: 350 / 196;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(120% 90% at 50% 0%, #f1e4cf 0%, #e7d6bb 70%, #dcc6a4 100%);
}
.art::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(176, 141, 87, .55); border-radius: 3px; pointer-events: none; }
.art svg { display: block; width: 100%; height: 100%; }
/* На комп’ютері картинка ліворуч стоїть на місці, поки прокручується права частина з вибором і запитаннями. */
@media (min-width: 721px) { .hero .art { position: sticky; top: 84px; } }
.hand { margin: 0 0 4px; color: var(--accent); font: 22px/1.3 var(--hand); }
.pick { margin: 0; padding: 8px 0 10px; border: 0; min-width: 0; }
.pick legend { float: left; width: 100%; padding: 0; margin: 10px 0 12px; font-size: 23px; white-space: nowrap; }
.pick legend + * { clear: both; }

/* Вибір листа: три картки з іконками. */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kind { position: relative; display: block; cursor: pointer; }
.kind input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kind-body { display: block; height: 100%; padding: 12px 4px 10px; border: 1px solid #cdbd9f; border-radius: 8px; background: var(--sheet); font: 600 16px/1.15 var(--display); text-align: center; }
.kind-body svg { display: block; width: 24px; height: 24px; margin: 0 auto 6px; color: var(--accent); }
.kind input:checked + .kind-body, .plan input:checked + .plan-body {
  border-color: var(--gold);
  background: linear-gradient(#7a3530, var(--wine2));
  color: #fbefe4;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .06), 0 3px 10px rgba(79, 31, 29, .22);
}
.kind input:checked + .kind-body svg { color: #e9cf9e; }
.kind input:focus-visible + .kind-body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Картки тарифів */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-body { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 14px 4px 11px; border: 1px solid #cdbd9f; border-radius: 8px; background: var(--sheet); line-height: 1.25; text-align: center; }
.plan input:focus-visible + .plan-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-name { font-size: 15px; }
.plan .price { margin: 2px 0 2px; font: 600 28px/1.1 var(--display); font-variant-numeric: lining-nums; white-space: nowrap; }
.plan small, .plan .old { color: var(--muted); font-size: 13px; line-height: 1.25; }
.plan input:checked + .plan-body small, .plan input:checked + .plan-body .old { color: #e2c9ba; }
/* Сургучна печатка із сердечком над вибраним тарифом. */
.seal {
  display: none;
  position: absolute;
  top: -12px;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z' fill='%23f2dcb8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan input:checked + .plan-body .seal { display: block; }

.gift { margin: 12px 0 0; }
.gift-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 6px 12px; border: 1px dashed #9c8766; border-radius: 8px; background: transparent; color: var(--ink); font-size: 16px; }
.gift-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.gift-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.gift-plans { padding-top: 14px; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.plans:has(> .plan[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.plan { color: inherit; text-decoration: none; }
a.plan:hover .plan-body, a.plan:focus-visible .plan-body { border-color: var(--gold); box-shadow: 0 3px 10px rgba(79, 31, 29, .15); }
.gift-note { margin-top: 8px; text-align: center; font-size: 14px; }
.gift-summary { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.gift-summary strong { display: block; font-weight: 600; }
.desc { margin: 24px 0 12px; font-size: 17px; line-height: 1.55; }
.desc strong { font-weight: 700; }
.trust { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.trust li { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--accent); }

/* Як це працює */
/* Кроки — кружечки з іконками, з’єднані тонкою золотою лінією. */
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 22px; top: 24px; bottom: 40px; width: 1px; background: var(--gold); opacity: .7; }
.steps li { position: relative; display: grid; grid-template-columns: 62px 1fr; align-items: start; margin-bottom: 22px; }
.step-ico { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; background: var(--sheet); box-shadow: 0 0 0 5px var(--band); }
.step-ico svg { width: 22px; height: 22px; color: var(--accent); }
.steps strong { display: block; color: var(--accent); font: italic 600 23px/1.25 var(--display); }

/* Питання: компактний список під описом, як у меню магазину. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq { margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 8px 0; list-style: none; font: 600 19px/1.3 var(--display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.site-foot { padding: 36px 24px 40px; background: var(--accent); color: #fbf3ea; font-size: 15px; line-height: 1.5; }
.site-foot > * { max-width: 592px; margin-left: auto; margin-right: auto; }
.foot-brand { margin-bottom: 4px; font: italic 400 26px var(--display); }
.foot-tagline { margin-bottom: 18px; opacity: .9; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.site-foot nav a { display: block; padding: 6px 0; }
.site-foot a:hover { color: #fff; }
.foot-contacts { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(251, 243, 234, .3); font-size: 13px; opacity: .9; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }

/* Юридичні сторінки */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
.legal h1 { margin-bottom: 4px; font-size: clamp(32px, 6vw, 44px); }
.legal-sub { margin: 0 0 8px; color: var(--accent); font: italic 400 21px/1.3 var(--display); }
.legal-meta { margin-bottom: 28px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 32px 0 10px; font-size: 25px; line-height: 1.25; }
.legal p { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.legal a { color: var(--accent); }
.consent { margin: 4px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent a { color: var(--accent); }

/* Замовлення */
.order { max-width: 600px; margin: 0 auto; padding: 24px 24px 80px; }
.order h1 { font-size: clamp(38px, 7vw, 52px); margin-bottom: 24px; }
.part { margin: 0; padding: 32px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.part legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; color: var(--accent); font: 600 28px/1.2 var(--display); }
.part legend + * { clear: both; }
.small-note { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 4px; font-size: 16px; }
.field .opt { display: inline; color: var(--muted); }
.field .must { display: inline; color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9bca6;
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.choice { display: flex; gap: 12px; align-items: center; margin: 0 -10px; padding: 4px 10px; border-radius: 4px; font-size: 17px; line-height: 1.35; cursor: pointer; }
.choice:has(input:checked) { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }
.choice input { flex: none; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice .price { margin-left: auto; padding-left: 16px; font-size: 18px; white-space: nowrap; }
.choice small { display: block; color: var(--muted); font-size: 14px; }
.part .choice { padding: 8px 10px; }
.field .choice { margin: 0; padding: 8px 0; }
.field .choice:has(input:checked) { background: none; box-shadow: none; }
.field-error { margin: 4px 0 0; color: var(--error); font-size: 15px; }
.field.invalid > span:first-child, .field.invalid .choice { color: var(--error); }
.field.invalid input[type="text"], .field.invalid input[type="email"] {
  border: 2px solid var(--error);
  padding: 9px 11px;
  background: #fbeeea;
}
.field.invalid input[type="checkbox"] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-error { margin: 12px 0 0; color: var(--error); font-size: 16px; }
.paybar { margin-top: 12px; }
.total { margin: 0 0 16px; line-height: 1.3; }
.total strong { display: block; font-weight: 400; font-size: 18px; }
.total small { display: block; color: var(--muted); font-size: 14px; }
.phone-only { display: none; }
button {
  padding: 12px 32px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
/* Кнопка замовлення: округла, бордова, з тонкою золотистою облямівкою. */
.paybar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 30px;
  border: 0;
  border-radius: 26px;
  background: linear-gradient(#7a3530, var(--wine2));
  box-shadow: inset 0 0 0 1px rgba(233, 207, 158, .55);
}
.paybar button svg { width: 18px; height: 18px; }
.paybar button:disabled { opacity: .7; }
.notice { margin-top: 24px; padding: 24px; background: var(--sheet); border: 1px solid var(--line); }

@media (max-width: 720px) {
  section { padding: 48px 0; }
  body { font-size: 17px; line-height: 1.6; }
  .hero { grid-template-columns: 1fr; gap: 2px; padding: 8px 24px 40px; }
  .art { margin: 4px auto 0; }
  .hero h1 { margin: 14px 0 0; font-size: 32px; line-height: 1.08; text-align: center; }
  .hand { text-align: center; }
  .pick legend { justify-content: center; }
  .choice, .part .choice { min-height: 44px; padding: 3px 10px; }
  .chips .choice, .chips .choice:has(input:checked) { padding: 0; }
  .field .choice { padding: 3px 0; }
  .quiet-link { display: inline-block; padding: 10px 0; }
  .site-foot { padding-bottom: 110px; }

  /* Сума й кнопка завжди внизу екрана. */
  .paybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0;
    padding: 10px 16px;
    background: var(--sheet);
    border-top: 1px solid var(--line);
  }
  .keyboard-open .paybar { display: none; }
  .phone-only { display: block; }
  .total { flex: 1 1 0; min-width: 0; margin: 0; }
  .total strong { font-size: 17px; }
  .total small { font-size: 13px; }
  .paybar button { flex: 0 0 auto; min-height: 46px; padding: 10px 22px; }
  .form-error { order: -1; flex: 0 0 100%; margin: 0; font-size: 14px; line-height: 1.35; }
  .order { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.nowrap { white-space: nowrap; }
/* На вузьких телефонах (iPhone SE) «шанувальник» не вміщається в картку. */
@media (max-width: 380px) { .kind-body { font-size: 14.5px; } }
/* Кількість листів над ціною в картці тарифу. */
.plan .count { margin-top: 1px; }
/* Довгий заголовок «На який період замовити листи?» може переноситися; золоті лінії лишаються короткими з боків. */
.pick legend { white-space: normal; text-align: center; }
.pick legend::before, .pick legend::after { min-width: 18px; }
@media (max-width: 380px) { .plan .price { font-size: 23px; } }
/* «Персонаж з книги/фільму» має вміщатися у два рядки на будь-якому телефоні. */
@media (max-width: 400px) { .kind-body { padding-left: 2px; padding-right: 2px; } }
@media (max-width: 380px) { .kind-body { font-size: 13.5px; } .pick legend { font-size: 20px; } }
@media (max-width: 340px) { .kind-body { font-size: 12.5px; } }
.wrap > h2::before, .wrap > h2::after { min-width: 18px; }
@media (max-width: 380px) { .wrap > h2 { font-size: 25px; } }
@media (max-width: 380px) { .wrap > h2 { gap: 6px; font-size: 23px; } .wrap > h2::before, .wrap > h2::after { min-width: 8px; } }
/* Золота лінія лише між кружечками: не тягнеться нижче останнього кроку. */
.steps::before { content: none; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: -22px; width: 1px; background: var(--gold); opacity: .7; }

/* Кнопка «Подарувати листи» на головній: велика, бордова, щоб кидалася в очі. */
.gift { margin: 18px 0 0; }
.gift-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 24px;
  border-radius: 32px;
  background: linear-gradient(#7d3732, var(--wine2));
  box-shadow: inset 0 0 0 1.5px rgba(214, 178, 120, .9), inset 0 0 0 3px rgba(79, 31, 29, .6), 0 5px 14px rgba(79, 31, 29, .25);
  color: #fbefe4;
  font: 500 23px/1.2 var(--display);
  text-decoration: none;
}
.gift-cta:hover, .gift-cta:focus-visible { color: #fff; filter: brightness(1.08); }
.gift-cta .gift-ico { flex: none; width: 28px; height: 28px; color: #f2dcb8; }
.gift-cta .gift-arrow { flex: none; width: 22px; height: 22px; margin-left: 4px; }
.gift-cta-note { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.gift-cta-note svg { flex: none; width: 22px; height: 22px; color: var(--accent); }

/* Сторінка «Подарункові набори» */
.giftpage { position: relative; max-width: 480px; margin: 0 auto; padding: 28px 20px 170px; overflow: hidden; text-align: center; }
.gp-icon { display: block; width: 64px; height: 64px; margin: 0 auto 6px; color: var(--accent); }
.giftpage h1 { margin: 0; font-size: clamp(34px, 9vw, 42px); font-weight: 500; }
.gp-sub { margin: 4px 0 22px; color: var(--muted); font-size: 17px; }
.gp-plans { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gp-plan { position: relative; display: block; cursor: pointer; text-align: left; }
.gp-plan input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gp-body { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 0 16px; min-height: 92px; padding: 14px 18px 14px 22px; border: 1px solid #ddcdb2; border-radius: 16px; background: var(--sheet); box-shadow: 0 2px 8px rgba(79, 31, 29, .06); }
.gp-left { padding-right: 16px; border-right: 1px solid #d6c4a6; }
.gp-left b { display: block; font: 600 25px/1.2 var(--display); }
.gp-left small { color: var(--muted); font-size: 15px; }
.gp-price { font: 600 30px/1 var(--display); font-variant-numeric: lining-nums; white-space: nowrap; }
.gp-check { width: 28px; height: 28px; border: 1.5px solid #cdbd9f; border-radius: 50%; }
.gp-plan input:checked + .gp-body { border-color: var(--gold); background: linear-gradient(#7a3530, var(--wine2)); color: #fbefe4; box-shadow: inset 0 0 0 1px rgba(233, 207, 158, .5), 0 6px 16px rgba(79, 31, 29, .25); }
.gp-plan input:checked + .gp-body small { color: #e2c9ba; }
.gp-plan input:checked + .gp-body .gp-left { border-right-color: rgba(233, 207, 158, .5); }
.gp-plan input:checked + .gp-body .gp-check { border: 0; background: #e3c48e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='%234f1f1d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.gp-plan input:focus-visible + .gp-body { outline: 2px solid var(--accent); outline-offset: 3px; }
.gp-story { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.gp-story strong { color: var(--ink); font-weight: 600; }
.gp-story a { color: var(--accent); }
.gp-note { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; padding: 18px 20px; border-radius: 16px; background: #efe3cf; text-align: left; }
.gp-note svg { flex: none; width: 40px; height: 40px; color: var(--accent); }
.gp-note p { margin: 0; font-size: 15.5px; line-height: 1.45; }
.gp-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; margin-top: 22px; padding: 12px 24px; border: 0; border-radius: 32px; background: linear-gradient(#7d3732, var(--wine2)); box-shadow: inset 0 0 0 1px rgba(233, 207, 158, .55), 0 5px 14px rgba(79, 31, 29, .25); color: #fff; font: 500 24px/1.2 var(--display); }
.gp-btn svg { width: 22px; height: 22px; }
.gp-terms { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.gp-deco { position: absolute; right: -10px; bottom: 0; width: 250px; height: auto; pointer-events: none; }
@media (max-width: 380px) {
  .gift-cta { font-size: 21px; gap: 10px; padding: 10px 18px; }
  .gp-body { gap: 0 10px; padding: 12px 12px 12px 16px; }
  .gp-left { padding-right: 10px; }
  .gp-left b { font-size: 22px; }
  .gp-price { font-size: 26px; }
}
/* На сторінці подарунка немає нижньої панелі з сумою, тож підвалу не потрібен запас знизу. */
body:has(.giftpage) .site-foot { padding-bottom: 40px; }
@media (max-width: 380px) { .giftpage h1 { font-size: 31px; } .gp-btn { gap: 8px; padding: 10px 16px; font-size: 21px; } .gp-terms { font-size: 13px; } }

/* Головний екран: зверху заголовок і рукописний підпис, під ними конверт.
   На комп’ютері конверт ліворуч (стоїть на місці), заголовок і вибір праворуч. */
.hero { grid-template-areas: "art head" "art box"; row-gap: 0; }
.hero-head { grid-area: head; }
.buybox { grid-area: box; }
.hero .art { grid-area: art; align-self: start; max-width: 440px; aspect-ratio: 360 / 240; overflow: visible; border-radius: 0; background: none; }
.hero .art::after { content: none; }
@media (max-width: 720px) {
  .hero { grid-template-areas: "head" "art" "box"; }
  .hero h1 { margin-top: 10px; }
  .hero .art { max-width: 400px; margin: 4px auto 0; }
}
/* На комп’ютері головна кнопка «Замовити» стоїть першою й на всю ширину, «Подарувати листи» — під нею. */
@media (min-width: 721px) {
  #choose { display: flex; flex-direction: column; }
  #choose .gift { order: 2; }
  #choose .paybar button { width: 100%; min-height: 58px; font-size: 20px; }
}
.hero .art { aspect-ratio: 360 / 222; }
@media (max-width: 380px) { .hand { font-size: 19px; } }
@media (max-width: 340px) { .hand { font-size: 16.5px; } }
/* Картинка «Що всередині конверта?» — квадратна, з власною рамкою. */
.hero .art-photo { aspect-ratio: 1 / 1; max-width: 420px; }
.art-photo img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(79, 31, 29, .12); }
@media (max-width: 720px) { .hero .art-photo { margin-top: 12px; } }
/* Комп’ютер (широкий екран): головна картинка більша — дві рівні колонки. Телефон не змінюється. */
@media (min-width: 1024px) {
  .hero { max-width: 1200px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .art-photo { max-width: 560px; }
}
.faq details ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.faq details li { margin-bottom: 4px; }

/* Слайдер у верхньому блоці: дві квадратні картинки, гортаються пальцем; під ними дві крапочки. */
.slider { aspect-ratio: auto !important; }
.slides { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; box-shadow: 0 6px 18px rgba(79, 31, 29, .12); -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slider .slide img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; box-shadow: none; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.dots button { display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; }
.dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d6c4a6; transition: background .3s, transform .3s; }
.dots button[aria-current="true"]::after { background: var(--accent); transform: scale(1.15); }

/* Останній блок «А що, як історія почнеться з листа?» — по центру, з кнопкою. */
.story { text-align: center; }
.story-hand { margin: 4px 0 26px; color: var(--accent); font: 25px/1.35 var(--hand); }
.story-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 32px; border-radius: 30px; background: linear-gradient(#7d3732, var(--wine2)); box-shadow: inset 0 0 0 1px rgba(233, 207, 158, .55), 0 5px 14px rgba(79, 31, 29, .22); color: #fbefe4; font: 500 21px/1.2 var(--display); text-decoration: none; }
.story-cta:hover, .story-cta:focus-visible { color: #fff; filter: brightness(1.08); }
.story-cta svg { width: 20px; height: 20px; }
@media (max-width: 380px) { .story-hand { font-size: 21px; } }

/* Картинка над текстом останнього блоку. */
.story-img { display: block; width: 100%; height: auto; margin: 0 0 28px; border-radius: 10px; box-shadow: 0 8px 22px rgba(79, 31, 29, .18); }

/* Соцмережі внизу: білі значки, як у прикладі */
.foot-social { display: flex; gap: 22px; margin-top: 18px; }
.foot-social a { display: inline-flex; width: 30px; height: 30px; color: #fbf3ea; opacity: .92; transition: opacity .2s, transform .2s; }
.foot-social a:hover { opacity: 1; transform: translateY(-2px); }
.foot-social a[hidden] { display: none; }
.foot-social svg { width: 100%; height: 100%; }


/* Комп’ютер: «Замовити» завширшки як один тариф і стоїть під тим тарифом, який обрала людина. Телефон не змінюється. */
@media (min-width: 721px) {
  #choose .paybar button {
    display: flex;
    width: calc((100% - 16px) / 3);
    min-height: 52px;
    padding: 10px 12px;
    font-size: 19px;
    transition: margin-left .35s ease;
  }
  #choose:has(input[name="plan"][value="6"]:checked) .paybar button { margin-left: calc((100% - 16px) / 3 + 8px); }
  #choose:has(input[name="plan"][value="12"]:checked) .paybar button { margin-left: calc((100% - 16px) / 3 * 2 + 16px); }
}
@media (min-width: 721px) and (prefers-reduced-motion: reduce) { #choose .paybar button { transition: none; } }

/* Довший заголовок на головній — трохи менший шрифт, щоб не займав пів екрана. */
.hero h1 { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.12; }
@media (max-width: 720px) { .hero h1 { font-size: 27px; } }
@media (max-width: 380px) { .hero h1 { font-size: 24px; } }

/* Заголовок головної у два яруси: «Паперові листи» крупно, решта — менша, курсивом, з бордовими акцентами. */
.hero h1 { line-height: 1.1; }
.hero h1 .h1-main { display: block; font-size: 34px; font-weight: 500; letter-spacing: .01em; }
.hero h1 .h1-sub { display: block; margin-top: 6px; color: #4a3a36; font-size: 20px; font-style: italic; font-weight: 400; line-height: 1.3; }
.hero h1 .h1-sub em { color: var(--accent); font-weight: 600; }
.hero .hand { margin-top: 10px; }
@media (min-width: 721px) {
  .hero h1 .h1-main { font-size: 46px; }
  .hero h1 .h1-sub { margin-top: 8px; font-size: 24px; }
}
@media (max-width: 380px) {
  .hero h1 .h1-main { font-size: 30px; }
  .hero h1 .h1-sub { font-size: 18px; }
}
.hero h1 .h1-sub em { white-space: nowrap; }

/* Телефон: компактніші «Як це працює» і «Запитання» — менше прокручування, текст так само читабельний. */
@media (max-width: 720px) {
  section { padding: 40px 0; }
  h2, .wrap > h2 { margin-bottom: 18px; font-size: 28px; }
  .steps li { grid-template-columns: 52px 1fr; margin-bottom: 14px; font-size: 15.5px; line-height: 1.45; }
  .step-ico { width: 40px; height: 40px; box-shadow: 0 0 0 4px var(--band); }
  .step-ico svg { width: 19px; height: 19px; }
  .steps strong { margin-bottom: 1px; font-size: 20px; line-height: 1.2; }
  .steps li:not(:last-child)::after { left: 19.5px; top: 40px; bottom: -14px; }
  .faq summary { min-height: 44px; padding: 7px 0; font-size: 17px; line-height: 1.25; }
  .faq details p, .faq details ul { margin-bottom: 12px; font-size: 14.5px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .steps li { font-size: 15px; }
  .steps strong { font-size: 19px; }
  .faq summary { font-size: 16px; }
}

/* Заголовок «Часті запитання» — у тому ж стилі, що й «Оберіть свою історію». */
.faq-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 6px; color: var(--accent); font: italic 600 23px/1.2 var(--display); text-align: center; }
.faq-title::before, .faq-title::after { content: ""; flex: 1; min-width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.faq-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.faq-title i { color: var(--gold); font-size: .45em; font-style: normal; }
/* Телефон: «На який період замовити листи?» в один рядок. */
@media (max-width: 720px) {
  .pick legend { font-size: 21px; gap: 8px; }
  .pick legend > span { white-space: nowrap; }
  .pick legend::before, .pick legend::after { min-width: 12px; }
  .faq-title { font-size: 21px; gap: 8px; margin-top: 22px; }
}
@media (max-width: 380px) { .pick legend, .faq-title { font-size: 19px; } }
@media (max-width: 340px) { .pick legend, .faq-title { font-size: 17.5px; gap: 6px; } .pick legend::before, .pick legend::after { min-width: 8px; } }

/* Питання в «Частих запитаннях» — рукописним шрифтом, щоб відділялися від тексту вище. Відповіді — звичайним. */
.faq summary { font-family: var(--hand); font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: .01em; color: #3a2a27; }
.faq details[open] summary { color: var(--accent); }
@media (max-width: 720px) { .faq summary { font-size: 19.5px; } }
@media (max-width: 380px) { .faq summary { font-size: 18px; } }
.faq summary { letter-spacing: -.01em; word-spacing: -.12em; }
@media (max-width: 720px) { .faq summary { font-size: 19px; } }
@media (max-width: 380px) { .faq summary { font-size: 17px; } }
@media (max-width: 340px) { .faq summary { font-size: 16.5px; } }


/* Телефон і комп’ютер: «Подарувати листи» — менша і в іншому стилі, ніж тарифи: золотиста кнопка з бордовим текстом. */
@media all {
  .gift { margin-top: 16px; }
  .gift-cta {
    min-height: 46px;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 26px;
    background: linear-gradient(#f6e7c6, #e6cb98);
    box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .9), inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 10px rgba(79, 31, 29, .14);
    color: var(--wine2);
    font-size: 20px;
    font-weight: 600;
  }
  .gift-cta:hover, .gift-cta:focus-visible { color: var(--wine2); filter: brightness(1.03); }
  .gift-cta .gift-ico { width: 22px; height: 22px; color: var(--accent); }
  .gift-cta .gift-arrow { width: 18px; height: 18px; }
  .gift-cta-note { margin-top: 8px; font-size: 14px; }
  .gift-cta-note svg { width: 18px; height: 18px; }
}
@media (max-width: 380px) { .gift-cta { font-size: 18.5px; padding: 8px 14px; } }

/* Телефон: «Подарувати листи» як загорнутий подарунок — пакувальний папір у дрібні сердечка, бордова стрічка і бантик. */
@media all {
  .gift { margin-top: 22px; }
  .gift-cta {
    position: relative;
    min-height: 50px;
    padding: 8px 18px 8px 58px;
    border-radius: 12px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M6 8.2c-.9-1.6-3.3-1-3 .8.2 1.2 1.6 2 3 3.1 1.4-1.1 2.8-1.9 3-3.1.3-1.8-2.1-2.4-3-.8Z' fill='%23b08d57' fill-opacity='.28'/%3E%3Ccircle cx='19.5' cy='20' r='1.1' fill='%23b08d57' fill-opacity='.3'/%3E%3C/svg%3E") 0 0 / 26px 26px,
      linear-gradient(#f7e9cb, #e8cf9f);
    box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .9), 0 4px 12px rgba(79, 31, 29, .16);
  }
  /* Вертикальна стрічка */
  .gift-cta::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26px;
    width: 14px;
    background: linear-gradient(90deg, #5e2421, #8a3c36 50%, #5e2421);
    box-shadow: -1px 0 0 rgba(233, 207, 158, .9), 1px 0 0 rgba(233, 207, 158, .9);
  }
  /* Бантик зверху на стрічці */
  .gift-cta::after {
    content: "";
    position: absolute;
    top: -15px;
    left: 13px;
    width: 40px;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cpath d='M20 13C14 3 3 2 4 9c.7 4.6 8 5.6 16 4Z' fill='%237a3530' stroke='%23e9cf9e' stroke-width='.8'/%3E%3Cpath d='M20 13c6-10 17-11 16-4-.7 4.6-8 5.6-16 4Z' fill='%237a3530' stroke='%23e9cf9e' stroke-width='.8'/%3E%3Cpath d='M18 14l-5 10 3-.6 2 2.2 2-10.6Zm4 0 5 10-3-.6-2 2.2-2-10.6Z' fill='%235e2421' stroke='%23e9cf9e' stroke-width='.6'/%3E%3Cellipse cx='20' cy='13' rx='3.4' ry='3' fill='%23652a26' stroke='%23e9cf9e' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 1px 1px rgba(79, 31, 29, .25));
  }
  .gift-cta .gift-ico { display: none; }
  .gift-cta-note svg { display: none; }
  .gift-cta-note { margin-top: 10px; }
}
@media all { .gift-cta::after { top: -19px; left: 9px; width: 48px; height: 31px; } }
@media all { .gift-cta-note { text-align: center; } }


/* Телефон: гарніший бантик і візерунок з конвертиків із сердечком на «Подарувати листи». */
@media all {
  .gift-cta {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='34'%3E%3Cg transform='translate(4 4)'%3E%3Crect x='0.4' y='0.4' width='10' height='7' rx='1' fill='%23fff8ea' fill-opacity='.3' stroke='%23b08d57' stroke-opacity='.35' stroke-width='.7'/%3E%3Cpath d='M.8.8l4.6 3.6L10 .8' fill='none' stroke='%23b08d57' stroke-opacity='.35' stroke-width='.7' stroke-linejoin='round'/%3E%3Cpath d='M5.4 6.1C4.2 5.3 3.7 4.8 3.8 4.2c.1-.6 1-.8 1.6-.2.6-.6 1.5-.4 1.6.2.1.6-.4 1.1-1.6 1.9Z' fill='%238a3c36' fill-opacity='.35'/%3E%3C/g%3E%3Cg transform='translate(28 21)'%3E%3Crect x='0.4' y='0.4' width='10' height='7' rx='1' fill='%23fff8ea' fill-opacity='.3' stroke='%23b08d57' stroke-opacity='.35' stroke-width='.7'/%3E%3Cpath d='M.8.8l4.6 3.6L10 .8' fill='none' stroke='%23b08d57' stroke-opacity='.35' stroke-width='.7' stroke-linejoin='round'/%3E%3Cpath d='M5.4 6.1C4.2 5.3 3.7 4.8 3.8 4.2c.1-.6 1-.8 1.6-.2.6-.6 1.5-.4 1.6.2.1.6-.4 1.1-1.6 1.9Z' fill='%238a3c36' fill-opacity='.35'/%3E%3C/g%3E%3C/svg%3E") 8px 0 / 48px 34px,
      linear-gradient(#f7e9cb, #e8cf9f);
  }
  .gift-cta::after {
    top: -28px;
    left: 1px;
    width: 64px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E %3Cdefs%3E %3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23a24c44'/%3E%3Cstop offset='.55' stop-color='%237a312c'/%3E%3Cstop offset='1' stop-color='%23561f1c'/%3E%3C/linearGradient%3E %3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236e2b27'/%3E%3Cstop offset='1' stop-color='%234a1b19'/%3E%3C/linearGradient%3E %3C/defs%3E %3Cpath d='M30.5 21 20 42l5-1.2 1.4 5L34 22.5Z' fill='url(%23b)' stroke='%23e9cf9e' stroke-width='.8' stroke-linejoin='round'/%3E %3Cpath d='M33.5 21 44 42l-5-1.2-1.4 5L30 22.5Z' fill='url(%23b)' stroke='%23e9cf9e' stroke-width='.8' stroke-linejoin='round'/%3E %3Cpath d='M32 19C26 7 13 .5 6.5 4.5 1 8 3.5 19.5 13 22.5c6.5 2 13.5-.2 19-3.5Z' fill='url(%23a)' stroke='%23e9cf9e' stroke-width='.9' stroke-linejoin='round'/%3E %3Cpath d='M32 19c6-12 19-18.5 25.5-14.5C63 8 60.5 19.5 51 22.5c-6.5 2-13.5-.2-19-3.5Z' fill='url(%23a)' stroke='%23e9cf9e' stroke-width='.9' stroke-linejoin='round'/%3E %3Cpath d='M31 18.6C25 12 16 9.5 12.5 12c2 5 10 8 18.5 6.6Z' fill='%233f1715' opacity='.5'/%3E %3Cpath d='M33 18.6c6-6.6 15-9.1 18.5-6.6-2 5-10 8-18.5 6.6Z' fill='%233f1715' opacity='.5'/%3E %3Cpath d='M8.5 7c3.5-2.5 10-1 15.5 4' fill='none' stroke='%23f6dfb6' stroke-width='1.1' stroke-linecap='round' opacity='.75'/%3E %3Cpath d='M55.5 7c-3.5-2.5-10-1-15.5 4' fill='none' stroke='%23f6dfb6' stroke-width='1.1' stroke-linecap='round' opacity='.75'/%3E %3Crect x='27.6' y='14' width='8.8' height='10.5' rx='3.4' fill='url(%23a)' stroke='%23e9cf9e' stroke-width='.9'/%3E %3Cpath d='M29.6 16.4c1.4-.7 3.4-.7 4.8 0' fill='none' stroke='%23f6dfb6' stroke-width='.8' stroke-linecap='round' opacity='.8'/%3E %3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 2px 2px rgba(79, 31, 29, .28));
  }
}
@media all { .gift-cta { text-shadow: 0 0 6px #f6e6c4, 0 0 2px #f6e6c4; } .gift-cta .gift-arrow { filter: drop-shadow(0 0 3px #f6e6c4); } }
/* Повертаємо сердечка на обгортці; бантик нижче — вушка лише трохи виходять за край кнопки. */
@media all {
  .gift-cta {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M6 8.2c-.9-1.6-3.3-1-3 .8.2 1.2 1.6 2 3 3.1 1.4-1.1 2.8-1.9 3-3.1.3-1.8-2.1-2.4-3-.8Z' fill='%23b08d57' fill-opacity='.28'/%3E%3Ccircle cx='19.5' cy='20' r='1.1' fill='%23b08d57' fill-opacity='.3'/%3E%3C/svg%3E") 0 0 / 26px 26px,
      linear-gradient(#f7e9cb, #e8cf9f);
  }
  .gift-cta::after { top: -11px; }
}

/* Комп’ютер: «Замовити» під тарифом — нижча й компактніша. */
@media (min-width: 721px) {
  #choose .paybar button { min-height: 40px; padding: 6px 12px; font-size: 17px; }
  #choose .paybar button svg { width: 16px; height: 16px; }
  .gift { margin-top: 26px; }
}
@media (min-width: 721px) { .gift-cta { font-size: 21px; } }

/* «Подарувати листи» яскравіша: насичене золото, тепле сяйво і легкий відблиск, що пробігає по кнопці. */
.gift-cta {
  overflow: visible;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M6 8.2c-.9-1.6-3.3-1-3 .8.2 1.2 1.6 2 3 3.1 1.4-1.1 2.8-1.9 3-3.1.3-1.8-2.1-2.4-3-.8Z' fill='%23fff7e3' fill-opacity='.55'/%3E%3Ccircle cx='19.5' cy='20' r='1.1' fill='%23fff7e3' fill-opacity='.55'/%3E%3C/svg%3E") 0 5px / 26px 26px,
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 250, 235, .75) 50%, rgba(255, 255, 255, 0) 60%) 110% 0 / 250% 100% no-repeat,
    linear-gradient(#fbe2a6, #e9b865 55%, #dca552);
  box-shadow: inset 0 0 0 1px #b07a2c, inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 14px rgba(214, 160, 70, .45), 0 2px 4px rgba(79, 31, 29, .18);
  color: #4a1715;
  text-shadow: 0 1px 0 rgba(255, 244, 214, .7);
  animation: gift-shine 4.5s ease-in-out 1.5s infinite;
}
.gift-cta .gift-arrow { filter: none; }
@keyframes gift-shine {
  0%, 65% { background-position: 0 5px, 110% 0, 0 0; }
  100% { background-position: 0 5px, -10% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .gift-cta { animation: none; } }

/* Напис на «Подарувати листи» виразніший: темніший, жирніший, трохи більший, з чітким світлим «тисненням». */
.gift-cta { color: #3b100e; font-weight: 700; font-size: 22px; letter-spacing: .015em; text-shadow: 0 1px 0 rgba(255, 243, 212, .85); }
.gift-cta .gift-arrow { width: 20px; height: 20px; stroke-width: 2.2; }
@media (min-width: 721px) { .gift-cta { font-size: 23px; } }
@media (max-width: 380px) { .gift-cta { font-size: 20px; } }

/* Обраний тариф: замість сердечка — маленький значок зі стоячими конвертами (1 / 6 / 12): стоять рівно на горизонтальній поверхні, ряд іде вглиб, їх легко порахувати. */
.seal { top: -14px; width: auto; height: 28px; margin-left: 0; padding: 0; transform: translateX(-50%); border-radius: 14px; background: var(--accent) none center / auto no-repeat; box-shadow: 0 2px 5px rgba(79, 31, 29, .25); }
.plan:has(input[value="1"]) .seal { width: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.6 -.6 13.20 9.70'%3E%3Cg transform='translate(0.00 0.00)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3Cpath d='M.4.4 6.0 4.93 11.6.4' fill='none' stroke='%239c7440' stroke-width='.55' stroke-linejoin='round'/%3E%3Ccircle cx='6.0' cy='4.93' r='1.45' fill='%237a3530'/%3E%3C/g%3E%3C/svg%3E"); background-size: 14.8px 10.9px; }
.plan:has(input[value="6"]) .seal { width: 56px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.6 -.6 36.20 15.20'%3E%3Cg transform='translate(23.00 0.00)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(18.40 1.10)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(13.80 2.20)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(9.20 3.30)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(4.60 4.40)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(0.00 5.50)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3Cpath d='M.4.4 6.0 4.93 11.6.4' fill='none' stroke='%239c7440' stroke-width='.55' stroke-linejoin='round'/%3E%3Ccircle cx='6.0' cy='4.93' r='1.45' fill='%237a3530'/%3E%3C/g%3E%3C/svg%3E"); background-size: 40.5px 17.0px; }
.plan:has(input[value="12"]) .seal { width: 81px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.6 -.6 58.30 18.50'%3E%3Cg transform='translate(45.10 0.00)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(41.00 0.80)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(36.90 1.60)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(32.80 2.40)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(28.70 3.20)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(24.60 4.00)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(20.50 4.80)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(16.40 5.60)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(12.30 6.40)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(8.20 7.20)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(4.10 8.00)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3C/g%3E%3Cg transform='translate(0.00 8.80)'%3E%3Crect x='0' y='0' width='12' height='8.5' rx='.6' fill='%23fbf3e3' stroke='%239c7440' stroke-width='.55'/%3E%3Cpath d='M.4.4 6.0 4.93 11.6.4' fill='none' stroke='%239c7440' stroke-width='.55' stroke-linejoin='round'/%3E%3Ccircle cx='6.0' cy='4.93' r='1.45' fill='%237a3530'/%3E%3C/g%3E%3C/svg%3E"); background-size: 65.3px 20.7px; }

/* Нижній блок — компактний: назва й соцмережі в рядок, посилання в один-два рядки, пошта. */
.site-foot { padding: 22px 24px 24px; font-size: 14px; line-height: 1.4; }
.site-foot > * { max-width: 1000px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-brand { margin: 0; font-size: 22px; line-height: 1.2; }
.foot-row .foot-social { margin: 0; gap: 16px; }
.foot-social a { width: 24px; height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.site-foot .foot-links a { display: inline; padding: 2px 0; opacity: .92; }
.foot-contacts { margin-top: 12px; padding-top: 10px; font-size: 13px; }
@media (max-width: 720px) {
  .site-foot { padding: 20px 20px 96px; }
  .foot-links { gap: 2px 16px; font-size: 13.5px; }
  body:has(.giftpage) .site-foot { padding-bottom: 24px; }
}

/* Питання в «Частих запитаннях» — замість рукописного шрифту елегантний курсив (читається краще, але все одно відрізняється від тексту вище). */
.faq summary { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: 0; word-spacing: 0; color: #3a2a27; }
.faq details[open] summary { color: var(--accent); }
@media (max-width: 720px) { .faq summary { font-size: 19.5px; } }
@media (max-width: 380px) { .faq summary { font-size: 18px; } }
@media (max-width: 340px) { .faq summary { font-size: 17.5px; } }

/* Кнопка «Обрати свою історію» — менша, світла з золотистою рамкою і бордовим написом. */
.story-cta { gap: 8px; min-height: 42px; padding: 7px 22px; border-radius: 22px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 10px rgba(79, 31, 29, .1); color: var(--accent); font-size: 18px; font-weight: 600; }
.story-cta:hover, .story-cta:focus-visible { color: var(--wine2); background: #f6ead6; filter: none; }
.story-cta .story-arrow { width: 17px; height: 17px; transition: transform .2s; }
.story-cta:hover .story-arrow { transform: translateX(3px); }

/* Опис історії під картками — плавно виїжджає й ховається. */
.kind-about { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s ease, opacity .3s ease; }
.kind-about.open { grid-template-rows: 1fr; opacity: 1; }
.kind-about-clip { min-height: 0; overflow: hidden; }
.kind-about-card { position: relative; margin: 12px 0 2px; padding: 10px 16px; border: 1px solid #d9c49c; border-radius: 10px; background: var(--sheet); }
.kind-about-card::before { content: ""; position: absolute; top: -6px; left: var(--arrow, 16.7%); width: 10px; height: 10px; margin-left: -5px; border-top: 1px solid #d9c49c; border-left: 1px solid #d9c49c; background: var(--sheet); transform: rotate(45deg); transition: left .3s ease; }
.kind-about-card p { margin: 0; color: #4a3a36; font: italic 500 17px/1.35 var(--display); text-align: center; }
.kind-about-card p[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .kind-about, .kind-about-card::before { transition: none; } }
@media (max-width: 380px) { .kind-about-card p { font-size: 16px; } .kind-about-card { padding: 9px 12px; } }

/* Маленька стрілочка на картках історій: натяк, що картка розгортає опис. Коли опис відкритий — стрілочка вгору. */
.kind-body::after { content: ""; display: block; width: 6px; height: 6px; margin: 5px auto 0; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-2px) rotate(45deg); transition: transform .3s ease; }
.kind input:checked + .kind-body::after { border-color: #e9cf9e; }
.kind.about-open .kind-body::after { transform: translateY(1px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .kind-body::after { transition: none; } }

/* «Подарувати листи» без сердечок: лише золото й відблиск (зліва направо). */
.gift-cta {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 250, 235, .75) 50%, rgba(255, 255, 255, 0) 60%) 110% 0 / 250% 100% no-repeat,
    linear-gradient(#fbe2a6, #e9b865 55%, #dca552);
  animation-name: gift-shine-plain;
}
@keyframes gift-shine-plain {
  0%, 65% { background-position: 110% 0, 0 0; }
  100% { background-position: -10% 0, 0 0; }
}

/* Шрифти — три ролі, без зайвого різноманіття:
   1) Cormorant Garamond — заголовки, назви карток, ціни, кнопки, запитання;
   2) Source Sans 3 — увесь звичайний текст (легко читати, не сперечається із заголовками);
   3) Marck Script — лише два рукописні акценти (підпис угорі й «Цього разу головна героїня — Ви»). */
:root { --text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif; }
.paybar button, .story-cta, .gp-btn, .gift-cta, button[type="submit"] { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.paybar button { font-size: 20px; }
.plan-name { font: 600 18px/1.2 var(--display); }
.plan small, .plan .old { font-size: 12.5px; }

/* Блок «А що, як історія почнеться з листа?» — лише дві родини шрифтів: курсив заголовків і простий текст. */
.story > p:not(.story-hand) { color: var(--muted); font-size: 17px; line-height: 1.55; }
.story-hand { margin: 8px 0 24px; color: var(--accent); font: italic 500 23px/1.3 var(--display); letter-spacing: .01em; }
@media (max-width: 380px) { .story-hand { font-size: 20px; } }

/* ===== Єдиний стиль шрифтів (2026-11-20) =====
   Лише два шрифти:
   • Cormorant Garamond (рівний, жирний) — заголовки розділів, назва сторінки, ціни, логотип;
   • Source Sans 3 — усе інше. Виділення робимо жирністю (600), а не іншим шрифтом чи курсивом. */
.pick legend, .wrap > h2, .faq-title, .part legend { font-family: var(--display); font-style: normal; font-weight: 600; }
.steps strong { margin-bottom: 2px; color: var(--accent); font: 600 17px/1.3 var(--text); }
.hand { color: var(--accent); font: 400 17px/1.4 var(--text); letter-spacing: .02em; }
.hero h1 .h1-sub { font-family: var(--text); font-style: normal; font-weight: 400; font-size: 18px; line-height: 1.4; }
.hero h1 .h1-sub em { font-style: normal; font-weight: 600; }
.faq summary { font: 600 17px/1.35 var(--text); letter-spacing: 0; word-spacing: 0; color: var(--ink); }
.kind-body { font: 600 15px/1.2 var(--text); }
.plan-name { font: 600 16px/1.2 var(--text); }
.kind-about-card p { font: 400 15.5px/1.45 var(--text); }
.story-hand { margin: 6px 0 22px; color: var(--accent); font: 600 18px/1.4 var(--text); }
.legal-sub { font: 400 18px/1.4 var(--text); }
.gp-left b { font: 600 19px/1.2 var(--text); }
.paybar button, .story-cta, .gp-btn, .gift-cta, button[type="submit"] { font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.paybar button { font-size: 17px; }
.gift-cta { font-size: 18px; }
.story-cta { font-size: 16px; }
.gp-btn { font-size: 19px; }
.menu-links a { font-weight: 600; }
@media (min-width: 721px) {
  .hero h1 .h1-sub { font-size: 21px; }
  .gift-cta { font-size: 19px; }
  #choose .paybar button { font-size: 16px; }
}
@media (max-width: 380px) {
  .hero h1 .h1-sub { font-size: 16.5px; }
  .kind-body { font-size: 13.5px; }
  .plan-name { font-size: 15px; }
  .faq summary { font-size: 16px; }
  .gift-cta { font-size: 17px; }
}

/* Верх головної — як було: підзаголовок курсивом шрифту заголовків, підпис рукописним. */
.hero h1 .h1-sub { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.3; }
.hero h1 .h1-sub em { font-style: italic; font-weight: 600; }
.hero .hand { color: var(--accent); font: 22px/1.3 var(--hand); letter-spacing: 0; }
@media (min-width: 721px) { .hero h1 .h1-sub { font-size: 24px; } }
@media (max-width: 380px) { .hero h1 .h1-sub { font-size: 18px; } .hero .hand { font-size: 19px; } }
@media (max-width: 340px) { .hero .hand { font-size: 16.5px; } }
/* Підзаголовок угорі — знову простим шрифтом (жирні акценти), підпис лишається рукописним. */
.hero h1 .h1-sub { font-family: var(--text); font-style: normal; font-weight: 400; font-size: 18px; line-height: 1.4; }
.hero h1 .h1-sub em { font-style: normal; font-weight: 600; }
@media (min-width: 721px) { .hero h1 .h1-sub { font-size: 21px; } }
@media (max-width: 380px) { .hero h1 .h1-sub { font-size: 16.5px; } }
#choose .gift { margin-bottom: 10px; }

/* Сторінка замовлення: «Змінити вибір» — кнопка, схожа на посилання; картки історій без стрілочок (там немає опису). */
.link-btn { padding: 4px 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--wine2); }
.part .kind-body::after { display: none; }
.part .kinds { margin-top: 4px; }
#plan-part .plans { padding-top: 14px; }
