/* Rutio – web
   Tokens z brand balíka Rutio (navy, lime, Geist). WCAG 2.2 AA. */

:root {
  --navy: #0E1B2C;
  --navy-deep: #0B1624;
  --navy-2: #16263A;
  --line: #2A3B52;
  --line-strong-dark: #64788F;
  --line-strong: #748297;
  --lime: #C6F432;
  --white: #FFFFFF;
  --surface-alt: #F3F5F8;
  --ink: #0E1B2C;
  --ink-body: #2A3B52;
  --ink-muted: #4A5A70;
  --on-dark-body: #C9D3E0;
  --on-dark-muted: #A9B6C8;
  --font: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.5;
  overflow-x: clip;
}
img, svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* ---------- Focus & skip ---------- */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--navy); }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--lime); color: var(--navy); font-weight: 600;
  padding: 12px 20px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.lime { color: var(--lime); }
.stroke-white, .stroke-lime { fill: none; stroke-width: 12; stroke-linecap: round; }
.stroke-white { stroke: var(--white); }
.stroke-lime { stroke: var(--lime); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted);
}
.eyebrow--dark { color: var(--ink-muted); }
.h-xl { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.h-lg { font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.lead-dark { font-size: 18px; line-height: 1.55; color: var(--ink-body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 26px; border-radius: 14px;
  font-weight: 600; font-size: 18px; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: var(--radius-sm); }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--ghost { border: 2px solid var(--line-strong-dark); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: flex-end; gap: 1px; color: var(--white); text-decoration: none; padding: 8px 0 10px; min-height: 44px; }
.logo__text { font-size: 30px; font-weight: 700; letter-spacing: -.05em; line-height: .8; }
.logo__o { width: 21px; height: 25px; margin-bottom: -1px; }
.logo__o path { stroke-width: 13; }
.logo--sm .logo__text { font-size: 24px; }
.logo--sm .logo__o { width: 17px; height: 20px; }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 10; }
.nav__inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav__links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px;
  text-decoration: none; color: var(--white);
}
.nav__links a:not(.btn):hover { color: var(--lime); }
.nav__links li:last-child { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  min-height: max(640px, calc(100svh - 80px));
  padding: 40px 32px 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; text-align: center;
}
.hero__mark { display: flex; align-items: flex-end; gap: 6px; will-change: transform; }
.hero__mark span { font-size: clamp(110px, 17vw, 240px); font-weight: 700; letter-spacing: -.06em; line-height: .78; }
.hero__mark svg { width: clamp(76px, 11.6vw, 164px); height: auto; margin-bottom: -.6%; }
.hero__title { font-size: clamp(34px, 4.4vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; max-width: 18em; }
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.w { display: inline-block; }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--on-dark-body); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--on-dark-muted); text-decoration: none; padding: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Rutina ---------- */
.rutina {
  min-height: 100svh; padding: 72px 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; background: var(--navy-deep);
}
.rutina__head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rutina__stage { width: 100%; max-width: 1100px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.chips { flex: 1 1 340px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 12px 16px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line); font-size: 16px; will-change: transform; }
.core {
  flex: none; width: 168px; height: 168px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.core svg { width: 64px; height: 70px; }
.core svg path { stroke-width: 11; }
.core__count { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.rutina__note { font-size: 17px; line-height: 1.5; color: var(--on-dark-body); text-align: center; max-width: 36em; }

/* ---------- Services (horizontal) ---------- */
.services { padding: 96px 0; display: flex; flex-direction: column; gap: 40px; }
.services__head { width: 100%; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.services__head .h-xl { max-width: 12em; }
.services__wrap { overflow-x: auto; padding: 0 32px 16px; scrollbar-color: var(--line) transparent; }
.services__track { display: flex; gap: 24px; width: max-content; }
.card {
  width: min(520px, 82vw); min-height: 420px;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.card__num { font-family: var(--mono); font-size: 15px; color: var(--lime); }
.card h3 { font-size: 40px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 14px; }
.card p { font-size: 18px; line-height: 1.55; color: var(--on-dark-body); }
.card--lime { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.card--lime .card__num, .card--lime p { color: var(--navy); }

/* ---------- Light sections ---------- */
.light { background: var(--white); color: var(--ink); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 32px; }

/* ---------- Cases (tabs) ---------- */
.cases { padding: 96px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--line-strong); background: var(--white); color: var(--ink);
  font: 600 16px var(--font); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.compare { display: flex; flex-wrap: wrap; gap: 20px; }
.compare__col { flex: 1 1 380px; min-width: 0; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.compare__col--before { background: var(--surface-alt); }
.compare__col--after { background: var(--navy); color: var(--white); }
.compare__col--after .eyebrow { color: var(--lime); }
.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; line-height: 1.45; color: var(--ink-body); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--ink-muted); min-width: 22px; }
.steps--check li { color: var(--white); }
.steps--check li::before {
  content: ""; flex: none; width: 16px; height: 16px; transform: translateY(2px);
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 L6.5 12 L13 4.5' fill='none' stroke='%23C6F432' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.compare__note { margin-top: auto; font-size: 15px; line-height: 1.5; color: var(--on-dark-body); }

/* ---------- Calculator ---------- */
.calc { background: var(--surface-alt); padding: 96px 0; }
.calc__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.calc__form { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.calc__form .lead-dark { margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; }
.field output { font-family: var(--mono); white-space: nowrap; }
input[type="range"] { width: 100%; height: 28px; accent-color: var(--navy); cursor: pointer; }
.calc__result {
  flex: 1 1 400px; min-width: 0; background: var(--navy); color: var(--white);
  border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 24px;
}
.calc__label { font-size: 15px; color: var(--on-dark-muted); }
.calc__big { margin-top: 4px; font-family: var(--mono); font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.calc__fte { margin-top: 4px; font-size: 22px; font-weight: 600; }
.calc__foot { margin-top: auto; font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }

/* ---------- Statement ---------- */
.statement { padding: 120px 0; background: var(--navy-deep); }
.statement__text { max-width: 1100px; font-size: clamp(32px, 4.4vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }

/* ---------- CTA ---------- */
.cta { background: var(--lime); color: var(--navy); }
.cta__inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta__text { flex: 1 1 560px; display: flex; flex-direction: column; gap: 16px; }
.h-cta { font-size: clamp(40px, 5.4vw, 80px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.cta__text p { font-size: 19px; line-height: 1.5; max-width: 32em; }
.cta__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta__phone { font-family: var(--mono); font-size: 16px; font-weight: 600; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Footer ---------- */
.footer { color: var(--on-dark-body); }
.footer__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 14px; }

/* ---------- JS enhanced states ---------- */
.js-anim .rutina__done { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 24px 20px 72px; }
  .nav__links li:not(:last-child) { display: none; }
  .rutina { padding: 48px 20px; gap: 24px; }
  .rutina__stage { gap: 16px; }
  .chips { gap: 6px; }
  .chip { padding: 8px 12px; font-size: 14px; }
  .core { width: 120px; height: 120px; }
  .core svg { width: 44px; height: 48px; }
  .core__count { font-size: 16px; }
  .card { padding: 28px; min-height: 340px; }
  .card h3 { font-size: 32px; }
  .compare__col, .calc__result { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
