/* Кольори й шрифти — тут. Ті самі, що в юридичних сторінках (css/legal.css). */
:root {
  --paper: #FBF7EC;
  --tint: #F3ECD9;
  --ink: #13223A;
  --ink-soft: #33415A;
  --muted: #6E6756;
  --gold: #B4892F;
  --gold-dark: #8C6A22;
  --accent: #8A2B12;
  --rule: #D8CDB4;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 19px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 16px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
strong { color: var(--ink); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }

.brand, .eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
}

/* Кнопки */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  border-bottom: 3px solid var(--gold);
  transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: #0A1628; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--big { font-size: 21px; padding: 19px 34px; }
.btn--light { background: var(--gold); color: var(--ink); border-bottom-color: #E8D49E; }
.btn--light:hover, .btn--light:focus-visible { background: #C99B3A; }
.assure { font-size: 16px; color: var(--muted); margin-top: 12px; }
.assure--light { color: #C8CED9; }

/* Верхня смуга */
.topbar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.topbar__buy { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; border-bottom: 2px solid var(--gold); }

/* Перший екран */
.hero { padding: 48px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; margin-top: 10px; }
.hero__answer { font-size: 30px; color: var(--gold-dark); font-style: italic; margin-bottom: 20px; line-height: 1.25; }
.lead { font-size: 20px; margin-bottom: 26px; }
.hero__cover img { border-radius: 4px; box-shadow: 0 2px 4px rgba(19,34,58,.12), 0 18px 40px rgba(19,34,58,.22); max-width: 380px; margin: 0 auto; }

/* Порівняння */
.bars { list-style: none; padding: 0; margin: 26px 0 18px; }
.bars li { display: grid; grid-template-columns: 210px 1fr 72px; gap: 14px; align-items: center; padding: 7px 0; font-size: 17px; }
.bars__label { color: var(--ink); }
.bars__track { height: 14px; background: rgba(19,34,58,.07); border-radius: 7px; overflow: hidden; }
.bars__fill { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: 7px; }
.bars__val { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars__us .bars__fill { background: var(--accent); }
.bars__us { border-bottom: 1px solid var(--rule); padding-bottom: 12px !important; margin-bottom: 6px; }
.bars__best .bars__label, .bars__best .bars__val { color: var(--gold-dark); }
.source { font-size: 15px; color: var(--muted); }
.saving { font-size: 22px; color: var(--ink); margin: 6px 0 14px; }
.saving strong { color: var(--gold-dark); }

/* Автор */
.author { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: start; }
.author__photo { width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 10px 24px rgba(19,34,58,.18); }
.author .eyebrow { margin-bottom: 6px; }
.author .note { margin-top: 18px; }

/* Чесні відповіді */
.facts { padding: 0; list-style: none; margin: 22px 0 0; }
.facts li { padding: 14px 0 14px 22px; border-top: 1px solid var(--rule); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

/* Що всередині */
.parts { padding-left: 26px; margin: 20px 0 28px; }
.parts li { margin-bottom: 10px; }
.parts span { font-weight: 700; color: var(--ink); }
.included { background: var(--paper); border-left: 4px solid var(--gold); padding: 20px 24px; margin-bottom: 30px; }
.included p:last-child { margin-bottom: 0; }

.note { font-size: 17px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 24px; }

/* FAQ */
details { border-top: 1px solid var(--rule); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 32px 14px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 26px; color: var(--gold-dark); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-bottom: 16px; }

/* Фінал */
.final { background: var(--ink); color: #DCE1EA; padding: 64px 0; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #DCE1EA; }
.final__inner .btn { margin-top: 10px; }

/* Футер */
.footer { padding: 36px 0 110px; font-size: 16px; color: var(--muted); }
.disclaimer { font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }

/* Липка кнопка: тільки телефон */
.stickybuy { display: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__cover { order: -1; }
  .hero__cover img { max-width: 210px; }
  .hero h1 { font-size: 34px; }
  .hero__answer { font-size: 25px; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .container { padding: 0 18px; }
  .section, .final { padding: 44px 0; }
  .hero { padding: 22px 0 36px; }
  .hero__grid { gap: 20px; }
  .hero__cover img { max-width: 150px; }
  .hero h1 { font-size: 28px; }
  .hero__answer { font-size: 22px; margin-bottom: 18px; }
  /* На телефоні кнопка йде одразу під заголовком, пояснення — під нею */
  .hero__text { display: flex; flex-direction: column; }
  .hero__text .lead { order: 5; margin: 22px 0 0; }
  .lead { font-size: 18px; }
  h2 { font-size: 27px; }
  .btn, .btn--big { display: block; text-align: center; }
  .topbar__buy { display: none; }
  .bars li { grid-template-columns: 1fr 64px; gap: 4px 10px; padding: 6px 0; font-size: 16px; }
  .bars__label { grid-column: 1; }
  .bars__val { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .bars__track { grid-column: 1; height: 10px; }
  .author { grid-template-columns: 1fr; gap: 18px; }
  .author__photo { width: 120px; height: 120px; }
  .saving { font-size: 20px; }
  .stickybuy {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,247,236,.96); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform .25s;
  }
  .stickybuy.is-on { transform: none; }
  .stickybuy .btn { padding: 13px 20px; font-size: 18px; }
}
