/* ===== Кольори і базові налаштування ===== */
:root {
  --bg: #F6F8F7;        /* фон */
  --text: #1C2427;      /* основний текст */
  --muted: #4A5559;     /* другорядний текст */
  --green: #1F6F5C;     /* кнопки */
  --green-dark: #17594A;
  --yellow: #F2C230;    /* акцент, зрідка */
  --line: #D6DDDA;      /* лінії, рамки */
  --white: #FFFFFF;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 19px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 800; margin-bottom: 1em; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: .25em; }
p  { margin: 0 0 1em; }

a { color: var(--green); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted { color: var(--muted); }

.todo {
  background: #FFF3C4;
  border: 2px dashed #C9A21E;
  padding: 8px 12px;
  font-weight: 600;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
}
.btn:hover { background: var(--green-dark); }
.btn:focus-visible, .msg:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.btn--small { padding: 10px 16px; font-size: 17px; }
.btn--big   { padding: 18px 28px; font-size: 21px; width: 100%; min-height: 60px; }

/* ===== Шапка ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--green); }

/* ===== Перший екран ===== */
.hero { padding: 32px 0 48px; }
.hero__inner { display: grid; gap: 36px; }
.hero__lead { font-size: 20px; color: var(--muted); }
.hero__since { font-weight: 600; }
.hero__promise {
  display: block;
  width: fit-content;
  font-weight: 600;
  padding: 6px 12px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  margin-bottom: 20px;
}
.hero__note { margin-top: 12px; font-size: 17px; color: var(--muted); text-align: center; }
.hero__note strong { color: var(--text); }

/* ===== Талон ===== */
.ticket {
  position: relative;
  background: var(--white);
  border: 2px solid var(--text);
  border-radius: 14px;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 18px;
}
/* напівкруглі вирізи з боків, як у квитка */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 22px;
  height: 22px;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 50%;
}
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after  { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket__head {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 18px 24px;
  border-bottom: 2px dashed var(--line);
}
.ticket__body { padding: 16px 24px 4px; }
.ticket__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ticket__row:last-child { border-bottom: 0; }
.ticket__label { color: var(--muted); }
.ticket__value { font-family: var(--font-head); font-weight: 700; font-size: 21px; }
.ticket__stamp {
  display: inline-block;
  margin: 12px 24px 0;
  padding: 6px 14px;
  border: 3px solid var(--green);
  color: var(--green);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  transform: rotate(-4deg);
}
.ticket__example {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== Секції ===== */
.section { padding: 48px 0; scroll-margin-top: 64px; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Чим допомагаємо: список з лініями, без карток з тінями */
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  padding: 18px 0 18px 20px;
  border-left: 4px solid var(--green);
  margin-bottom: 16px;
}
.services p { margin: 0; color: var(--muted); }

/* Як це працює: номери з лінією між ними */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 28px 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.steps p { margin: 0; color: var(--muted); }

/* Так виглядає результат */
.results { display: grid; gap: 40px; }
.result { margin: 0; }
.result figcaption { margin-top: 14px; }
.result figcaption .muted { display: block; font-size: 16px; margin-top: 4px; }
.result__shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

/* Списки з галочками (Оплата, Довіра) */
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.pay__note { color: var(--muted); }
.cards { display: flex; gap: 10px; margin-top: 10px; }
.card-logo { width: 64px; height: 40px; display: block; }
.info {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 14px 16px;
}

/* ===== FAQ ===== */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  padding: 18px 44px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 8px; }

/* ===== Контакти ===== */
.section--contact { background: var(--text); color: var(--white); }
.section--contact .contact__lead { color: #C9D2CF; }
.messengers { display: grid; gap: 14px; margin: 24px 0; }
.msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  min-height: 60px;
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
}
.msg__icon { width: 30px; height: 30px; flex: none; }
.msg--tg    { background: #1A7FB5; }
.msg--viber { background: #6A50D3; }
.msg--wa    { background: #11804A; }
.msg:hover  { filter: brightness(1.1); }
.phone a { color: var(--yellow); font-weight: 600; white-space: nowrap; }

/* ===== Футер ===== */
.footer { padding: 32px 0; font-size: 17px; color: var(--muted); }
.footer__name { font-family: var(--font-head); font-weight: 800; color: var(--text); margin-bottom: .4em; }

.footer__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Сторінка політики конфіденційності ===== */
.doc { max-width: 760px; }
.doc h2 { margin: 1.6em 0 .5em; }
.doc h3 { margin-top: 1.2em; }
.doc ul { padding-left: 24px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }

/* ===== Банер згоди на cookies ===== */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--white);
  border-top: 2px solid var(--text);
  padding: 16px 0;
}
.consent p { font-size: 17px; margin-bottom: 12px; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* обидві кнопки однакового розміру: закон не дозволяє ховати «Ні» */
.consent__btn {
  min-height: 52px;
  border: 2px solid var(--green);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}
.consent__yes { background: var(--green); color: var(--white); }
.consent__no  { background: var(--white); color: var(--green); }
.consent__btn:focus-visible, .footer__link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ===== Комп'ютер ===== */
@media (min-width: 800px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .hero { padding: 64px 0 80px; }
  .hero__inner { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 56px; }
  .btn--big { width: auto; }
  .hero__note { text-align: left; }
  .services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .section { padding: 72px 0; }
  .pay, .faq, #dovira .checks { max-width: 760px; }
  .messengers { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
  .results { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .consent .wrap { display: flex; align-items: center; gap: 32px; }
  .consent p { margin: 0; }
  .consent__btns { flex: none; width: 380px; }
}
