/* pozyka-ua — «Орбіта»: cobalt hero band, white cards, orbit-ring motif (see DESIGN.md).
   Every colour is a token below; data-URI icons repeat token hex values because var() can't
   reach inside them. --cta is used by CTAs only. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-800.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #1c4fd8;
  --brand-deep: #13379c;
  --tint: #e9f0ff;
  --tint-2: #cddbff;
  --sky: #f5f8ff;
  --surface: #ffffff;
  --line: #dce4f6;
  --field: #7b88ad;
  --ink: #0f1b3d;
  --muted: #4a5677;
  --night: #0c1736;
  --on-night: #c3cdea;
  --cta: #ffc21a;
  --cta-hover: #ffb300;
  --cta-edge: #e0a400;
  --cta-ink: #0f1b3d;
  --error: #c62828;
  --shadow: 0 18px 40px rgba(12, 23, 54, 0.22);
  --shadow-soft: 0 6px 18px rgba(28, 79, 216, 0.08);
  --r-card: 20px;
  --r-input: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}

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

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

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

/* Narrow text blocks keep the page's left edge. */
.narrow > * {
  max-width: 792px;
}

/* Top bar — part of the cobalt band */

.bar {
  color: var(--surface);
  background: var(--brand);
}

.bar__in {
  display: flex;
  align-items: center;
  height: 56px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
}

/* Hero: the whole first screen is the band; the form card sits in it. */

.hero {
  position: relative;
  padding: 4px 0 28px;
  color: var(--surface);
  background: var(--brand);
  border-radius: 0 0 32px 32px;
}

.hero::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23cddbff' stroke-opacity='.2' stroke-width='2'%3E%3Ccircle cx='260' cy='260' r='250'/%3E%3Ccircle cx='260' cy='260' r='180'/%3E%3Ccircle cx='260' cy='260' r='110'/%3E%3C/g%3E%3Ccircle cx='437' cy='131' r='9' fill='%23cddbff' fill-opacity='.45'/%3E%3C/svg%3E") right -210px top -190px / 520px 520px no-repeat;
  content: "";
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px;
  grid-template-areas:
    "copy visual"
    "form form"
    "ticks ticks"
    "note note";
  gap: 14px 12px;
  align-items: center;
}

.hero__copy {
  grid-area: copy;
}

.hero h1 {
  margin: 4px 0 6px;
  font-size: 28px;
  line-height: 1.12;
}

.hero__sub {
  margin: 0;
  color: var(--tint);
  font-size: 15.5px;
  line-height: 1.4;
}

.hero__visual {
  grid-area: visual;
  align-self: start;
  width: 96px;
  height: auto;
  margin-top: 2px;
}

.hero__ticks {
  grid-area: ticks;
  margin-top: 6px;
}

.hero__note {
  grid-area: note;
  margin: 0;
  color: var(--tint-2);
  font-size: 13px;
  line-height: 1.45;
}

/* Cards and the form. At 360px: 16px gutter + 12px padding leaves 304px for Turnstile. */

.card {
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.form,
.success {
  grid-area: form;
  padding: 16px 12px 14px;
  scroll-margin-top: 12px;
}

.success {
  padding: 24px;
}

.success p {
  margin: 0;
}

.amount {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.amount__label {
  font-size: 16px;
  font-weight: 700;
}

.amount__value {
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.range {
  --fill: 10.5%;
  display: block;
  width: 100%;
  height: 32px;
  margin: 2px 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range:focus-visible {
  outline-offset: 0;
}

.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--brand) var(--fill), var(--line) var(--fill));
}

.range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(12, 23, 54, 0.25);
  -webkit-appearance: none;
  appearance: none;
}

.range::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.range::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--brand);
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
}

.range__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.field {
  margin-top: 10px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--field);
  border-radius: var(--r-input);
  font: inherit;
  font-size: 18px;
}

.input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(28, 79, 216, 0.2);
}

.input.is-invalid {
  border-color: var(--error);
}

.field-error {
  display: block;
  margin-top: 4px;
  color: var(--error);
  font-size: 14px;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.hint {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}

.hint svg {
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--brand);
}

.consent input.is-invalid {
  outline: 2px solid var(--error);
  outline-offset: 1px;
}

/* CTA — the only place the yellow appears. */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  color: var(--cta-ink);
  background: var(--cta);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 var(--cta-edge);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cta:hover {
  background: var(--cta-hover);
}

.cta:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form .cta {
  width: 100%;
  margin-top: 14px;
}

.reassure {
  margin: 8px 0 0;
  color: var(--brand-deep);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.form-message {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 14px;
  text-align: center;
}

.form-message:empty {
  display: none;
}

.turnstile {
  margin-top: 10px;
}

.turnstile:empty {
  margin: 0;
}

.turnstile-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* Lists */

.ticks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  padding-left: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231c4fd8'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 2px / 20px 20px no-repeat;
  line-height: 1.45;
}

.ticks--on-band li {
  color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23cddbff'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%2313379c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dashes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashes li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}

.dashes li::before {
  position: absolute;
  top: 11px;
  left: 4px;
  width: 12px;
  height: 2px;
  background: var(--field);
  border-radius: 1px;
  content: "";
}

/* Sections */

.section {
  padding: 40px 0;
}

.section p {
  margin: 0 0 12px;
}

.compare,
#cost {
  background: var(--surface);
}

.how {
  padding-top: 44px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}

.step img {
  display: block;
}

.step__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  color: var(--brand-deep);
  background: var(--tint);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section__cta {
  margin: 24px 0 0 !important;
  text-align: center;
}

.cta--inline {
  display: inline-flex;
  min-width: 280px;
}

.compare__grid {
  display: grid;
  gap: 12px;
}

.compare__col {
  padding: 18px 16px;
  border-radius: var(--r-card);
}

.compare__col h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.compare__col--self {
  color: var(--muted);
  background: var(--sky);
}

.compare__col--us {
  background: var(--tint);
  box-shadow: inset 0 0 0 2px var(--tint-2);
}

.who {
  display: grid;
  gap: 16px;
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
}

.who__visual {
  justify-self: center;
  width: 100%;
  max-width: 260px;
  height: auto;
}

.who h2 {
  margin-bottom: 8px;
}

.notice {
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  background: var(--tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
}

.rights {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: right;
}

.rights li {
  position: relative;
  min-height: 30px;
  padding-left: 44px;
  counter-increment: right;
}

.rights li::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 30px;
  height: 30px;
  color: var(--brand-deep);
  background: var(--tint);
  border-radius: 50%;
  font: 800 15px/30px var(--font-head);
  text-align: center;
  content: counter(right);
}

.warn {
  position: relative;
  margin: 22px 0 0 !important;
  padding: 14px 16px 14px 52px;
  background: var(--sky);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--tint-2);
  font-weight: 700;
}

.warn::before {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 26px;
  height: 26px;
  color: var(--surface);
  background: var(--brand);
  border-radius: 50%;
  font: 800 16px/26px var(--font-head);
  text-align: center;
  content: "!";
}

/* FAQ */

.faq details {
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231c4fd8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  border-radius: 50%;
  content: "";
}

.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%231c4fd8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

/* Closing CTA band */

.final {
  position: relative;
  padding: 44px 0 52px;
  background: var(--tint);
}

.final::before {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%231c4fd8' stroke-opacity='.1' stroke-width='2'%3E%3Ccircle cx='260' cy='260' r='250'/%3E%3Ccircle cx='260' cy='260' r='180'/%3E%3Ccircle cx='260' cy='260' r='110'/%3E%3C/g%3E%3C/svg%3E") left -260px center / 520px 520px no-repeat;
  content: "";
  pointer-events: none;
}

.final__in {
  position: relative;
  text-align: center;
}

.final h2 {
  margin-bottom: 8px;
}

.final p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* Footer */

.footer {
  padding: 36px 0 40px;
  color: var(--on-night);
  background: var(--night);
  font-size: 13.5px;
  line-height: 1.55;
}

.footer p {
  max-width: 80ch;
  margin: 0 0 10px;
}

.footer a {
  color: var(--surface);
}

.brand--footer {
  margin-bottom: 14px !important;
  color: var(--surface);
  font-size: 17px;
}

/* Sticky CTA (mobile, only while the form is off-screen) */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -6px 20px rgba(12, 23, 54, 0.12);
}

.sticky-cta .cta {
  width: 100%;
}

.sticky-cta[hidden] {
  display: none;
}

body.has-sticky {
  padding-bottom: 78px;
}

/* Thanks page */

.thanks {
  padding: 20px 0 8px;
}

.thanks__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.thanks__head img {
  flex: none;
  width: 56px;
  height: 56px;
}

.thanks h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.thanks p {
  margin: 0 0 10px;
  color: var(--muted);
}

.thanks .tip {
  padding: 10px 12px;
  color: var(--ink);
  background: var(--tint);
  border-radius: 12px;
  font-size: 14.5px;
}

.offers-section {
  padding: 6px 0 32px;
}

.offers {
  display: grid;
  gap: 12px;
}

.offers:empty {
  min-height: 260px;
  background: linear-gradient(90deg, var(--tint) 25%, var(--surface) 50%, var(--tint) 75%);
  background-size: 200% 100%;
  border-radius: var(--r-card);
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.offers-empty {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
}

.offers:empty + .offers-empty {
  display: block;
  opacity: 0;
  animation: reveal 0s 6s forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offers:empty {
    animation: none;
  }
}

.offer {
  display: block;
  padding: 16px;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.offer:hover {
  box-shadow: 0 0 0 2px var(--tint-2), var(--shadow-soft);
}

.offer__head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.offer__logo {
  width: auto;
  height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.offer__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.offer__bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.offer__bar {
  padding: 8px 10px;
  background: var(--sky);
  border-radius: 10px;
}

.offer__bar dt {
  color: var(--muted);
  font-size: 12.5px;
}

.offer__bar dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.offer .cta {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
}

.before {
  background: var(--surface);
}

/* Privacy page */

.doc {
  padding: 24px 0 40px;
  background: var(--surface);
}

.doc h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.doc h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.doc p,
.doc li {
  max-width: 72ch;
}

.doc ul {
  padding-left: 20px;
}

/* Desktop */

@media (min-width: 960px) {
  h2 {
    font-size: 32px;
  }

  .hero {
    padding: 28px 0 56px;
    border-radius: 0 0 48px 48px;
  }

  .hero::before {
    background-position: right -120px top -150px;
    background-size: 640px 640px;
  }

  .hero__grid {
    grid-template-columns: 240px 1fr 420px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "copy copy form"
      "visual ticks form"
      "note note form";
    gap: 22px 40px;
    align-items: start;
  }

  .hero h1 {
    font-size: 52px;
    line-height: 1.06;
  }

  .hero__sub {
    max-width: 30ch;
    font-size: 20px;
  }

  .hero__visual {
    width: 240px;
  }

  .hero__ticks {
    align-self: center;
    font-size: 17px;
  }

  .hero__note {
    max-width: 62ch;
  }

  .form,
  .success {
    padding: 26px 24px 20px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .step {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .step img {
    width: 88px;
    height: 88px;
  }

  .compare__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .compare__col {
    padding: 28px;
  }

  .who {
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
  }

  .who__visual {
    max-width: 320px;
  }

  .final {
    padding: 64px 0 72px;
  }

  .sticky-cta {
    display: none !important;
  }

  body.has-sticky {
    padding-bottom: 0;
  }

  .thanks {
    padding: 36px 0 12px;
  }

  .thanks h1 {
    font-size: 36px;
  }

  .thanks__head img {
    width: 72px;
    height: 72px;
  }

  .offers {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
