/* Landing на Rotta (SPEC инв. 76). Палитрата е от приложението: оранжевата линия на курса е единственият
   силен акцент, синьото е за действията, зеленото — за доставено. Шрифтът е Golos Text; иконите — шрифт. */
@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/golos.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Rotta Symbols';
  src: url('/fonts/symbols.woff2') format('woff2');
  font-weight: 500;
  font-display: block;
}

:root {
  --paper: #f2f4f6;
  --panel: #ffffff;
  --ink: #13202b;
  --ink-2: #4a5866;
  --line: #d9dfe5;
  --route: #c25400;
  --sky: #1a5fb4;
  --on-sky: #ffffff;
  --done: #1d7a46;
  --band: #13202b;
  --on-band: #eef2f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f161d;
    --panel: #16212b;
    --ink: #e6ecf1;
    --ink-2: #a6b3bf;
    --line: #2a3742;
    --route: #ff8a3d;
    --sky: #7db7ff;
    --on-sky: #0f161d;
    --done: #5cc98a;
    --band: #1b2833;
    --on-band: #eef2f5;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 18px/1.55 'Golos Text',
    system-ui,
    sans-serif;
}
a {
  color: var(--sky);
}
a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--route);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
h3 {
  font-size: 19px;
  font-weight: 700;
}
p {
  margin: 0;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Шапка */
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}
.brand {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 4px solid var(--route);
  line-height: 1;
  padding-bottom: 2px;
}
.top nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.top nav a,
.langs a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 16px;
}
.top nav a:hover,
.langs a[href]:hover {
  color: var(--ink);
}
.langs {
  display: inline-flex;
  gap: 10px;
}
.langs a[aria-current] {
  color: var(--ink);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--on-sky);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--sky);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.light {
  background: var(--on-band);
  color: var(--band);
  border-color: var(--on-band);
}
.btn.ghost.light {
  background: transparent;
  color: var(--on-band);
  border-color: rgba(238, 242, 245, 0.45);
}

/* Hero: линията на курса е зад текста (canvas), телефонът е истинска снимка на приложението. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 150px;
}
#route {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 170px;
  pointer-events: none;
}
.hero-text {
  position: relative;
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 15ch;
}
.lead {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 20px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
}
.trust li {
  padding-left: 18px;
  position: relative;
}
.trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--done);
}
.phone {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: center;
  width: min(100%, 340px);
  border: 10px solid var(--ink);
  border-radius: 46px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(19, 32, 43, 0.55);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
}

section h2 + .sub {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--ink-2);
}
.flow,
.rules,
.pricing,
.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

/* Как работи: истинска последователност — номерата са възлите на линията. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 21px;
  height: 4px;
  border-radius: 2px;
  background: var(--route);
}
.step {
  position: relative;
}
.node {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel);
  border: 4px solid var(--route);
  font-weight: 800;
  margin-bottom: 20px;
}
.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}
.shot {
  display: block;
  margin-top: 20px;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
}

/* Правилата: списък в две колони, без карти. */
.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.rule-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.glyph {
  grid-row: span 2;
  font-family: 'Rotta Symbols';
  font-size: 30px;
  line-height: 1;
  color: var(--route);
}
.rule-list p {
  color: var(--ink-2);
  font-size: 16px;
}

/* Цените — таблица, сумите са от сървъра. */
.prices {
  width: 100%;
  max-width: 760px;
  margin-top: 36px;
  border-collapse: collapse;
}
.prices th,
.prices td {
  padding: 18px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.prices th {
  font-weight: 700;
}
.prices td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.prices td.num strong {
  display: block;
  font-size: 22px;
}
.prices td.num span {
  color: var(--ink-2);
  font-size: 15px;
}
.note {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15px;
}

.faq details {
  max-width: 820px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-of-type {
  margin-top: 32px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary h3 {
  display: inline;
  font-size: 20px;
}
.faq details p {
  margin-top: 10px;
  color: var(--ink-2);
}

.contact {
  background: var(--band);
  color: var(--on-band);
  padding: 72px 24px;
  text-align: left;
}
.contact > * {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}
.contact p {
  margin-top: 14px;
  color: #c4cfd8;
}

.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  color: var(--ink-2);
  font-size: 14px;
}
.foot p + p {
  margin-top: 8px;
}
.credit {
  margin-top: 20px !important;
}

@media (max-width: 960px) {
  .top nav {
    display: none;
  }
  .langs {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
    padding-bottom: 190px;
  }
  .phone {
    width: min(78%, 320px);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    left: 21px;
    right: auto;
    top: 22px;
    bottom: 22px;
    width: 4px;
    height: auto;
  }
  .step {
    padding-left: 64px;
  }
  .node {
    position: absolute;
    left: 0;
    top: 0;
  }
  .rule-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 17px;
  }
  .top {
    gap: 12px;
    padding: 14px 16px;
  }
  .top .btn {
    min-height: 40px;
    padding: 0 14px;
  }
  .hero,
  .flow,
  .rules,
  .pricing,
  .faq {
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact,
  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}
