/* ===== Міжсторінкові переходи ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ===== Теми та змінні ===== */
:root {
  --ration-bg: #0D1117;
  --ration-deep: #080B10;
  --ration-surface: #161C27;
  --ration-accent: #B45309;
  --ration-gold: #F59E0B;
  --ration-gold-hover: #FBBF24;
  --ration-ink: #F3F4F6;
  --ration-muted: #B9C0CC;
  --ration-line: #2A3344;
  --ration-shade: rgba(13, 17, 23, 0.82);
  --ration-glow: rgba(245, 158, 11, 0.18);
  --ration-badge-1: #F59E0B;
  --ration-badge-2: #38BDF8;
  --ration-badge-3: #A3E635;
  --ration-badge-4: #F472B6;
  --ration-gradient: linear-gradient(135deg, #1C1C2E 0%, #0D1117 55%, #2B1B06 100%);
  --ration-radius: 4px;
  --ration-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 12px 24px rgba(0, 0, 0, 0.35);
  --ration-pad: 10dvh;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ration-bg);
  color: var(--ration-ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--ration-gold); }
img { max-width: 100%; height: auto; display: block; }
.rt-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ration-gold); outline-offset: 3px; }

/* ===== Header ===== */
.rt-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ration-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.rt-top-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 5vw;
}
.rt-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.rt-logo-mark { width: 38px; height: 38px; flex: 0 0 38px; }
.rt-links { display: none; }
.rt-links a {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.rt-links a:hover, .rt-links a:focus-visible { border-bottom-color: #fff; }
.rt-links a[aria-current="page"] { border-bottom-color: #fff; }
.rt-burger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.rt-burger i { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; }
.rt-menu-check {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px;
}
.rt-menu-check:focus-visible ~ .rt-burger { outline: 3px solid #fff; outline-offset: 3px; }
.rt-menu-check:checked ~ .rt-links {
  display: flex; flex-direction: column; gap: 14px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ration-accent);
  padding: 12px 5vw 20px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}
.rt-progress {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--ration-gold);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .rt-progress {
    animation: rt-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes rt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Hero ===== */
.rt-hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  background: var(--ration-gradient);
  overflow: clip;
  padding: 12dvh 6vw 10dvh;
}
.rt-numeral {
  position: absolute; right: -2vw; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(9rem, 24vw, 20rem);
  line-height: 1; font-weight: 700;
  opacity: 0.06; color: var(--ration-ink);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.rt-hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.rt-hero-text { position: relative; z-index: 1; }
.rt-hero-visual {
  position: relative; min-height: 240px;
  pointer-events: none;
}
.rt-hero-visual::before {
  content: ""; position: absolute;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ration-accent);
  right: 6%; top: 0;
  pointer-events: none;
}
.rt-hero-visual::after {
  content: ""; position: absolute;
  width: 44%; height: 52%;
  background: var(--ration-gold);
  left: 4%; bottom: 0;
  pointer-events: none;
}
.rt-kicker {
  color: var(--ration-gold); text-transform: uppercase;
  letter-spacing: 0.18em; font-weight: 600; font-size: 0.85rem;
  margin: 0 0 14px;
}
.rt-line {
  display: block;
  animation: rt-rise 0.8s ease both;
}
.rt-line:nth-child(2) { animation-delay: 0.12s; }
@keyframes rt-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.rt-lead {
  font-size: 1.1rem; color: var(--ration-muted); max-width: 52ch;
}
.rt-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px;
}

/* ===== Кнопки (статичні, лише колір при hover) ===== */
.rt-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ration-gold); color: #0D1117;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center;
  padding: 14px 26px; border: 0;
  border-radius: var(--ration-radius); cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.3s ease, color 0.2s ease;
}
.rt-pill:hover, .rt-pill:focus-visible { background: var(--ration-gold-hover); }
.rt-pill:hover { box-shadow: 0 0 0 6px var(--ration-glow); }
.rt-pill-ghost {
  background: transparent; color: var(--ration-ink);
  border: 2px solid var(--ration-line);
}
.rt-pill-ghost:hover, .rt-pill-ghost:focus-visible {
  background: transparent; color: var(--ration-gold);
  border-color: var(--ration-gold);
}

/* ===== Marquee ===== */
.rt-strip {
  overflow: hidden;
  background: var(--ration-accent);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}
.rt-strip-track {
  display: flex; gap: 48px; width: max-content;
  padding: 16px 0; white-space: nowrap;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.2rem; letter-spacing: 0.08em;
  animation: rt-marquee 36s linear infinite;
}
.rt-strip:hover .rt-strip-track { animation-play-state: paused; }
@keyframes rt-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Секції ===== */
.rt-band {
  position: relative;
  padding: var(--ration-pad) 6vw;
  overflow: clip;
}
.rt-band-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.rt-page-hero {
  position: relative; overflow: clip;
  padding: 14dvh 6vw 8dvh;
  background: var(--ration-gradient);
}
.rt-page-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
}
.rt-slant {
  position: relative; overflow: clip;
  padding: calc(var(--ration-pad) * 1.4) 6vw;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  background: var(--ration-surface);
}
.rt-slant-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  pointer-events: none;
}
.rt-slant-shade {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.55));
  pointer-events: none;
}
.rt-glass {
  position: relative; z-index: 1;
  max-width: 760px;
  background: var(--ration-shade);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
}
.rt-finale {
  position: relative; overflow: clip;
  min-height: 60dvh;
  display: flex; align-items: center;
  padding: var(--ration-pad) 6vw;
}
.rt-thank { min-height: 100vh; min-height: 100dvh; padding: 12dvh 6vw; }
.rt-thank-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
}
.rt-figure {
  margin: 0 0 32px;
  border-radius: var(--ration-radius);
  overflow: hidden;
  box-shadow: var(--ration-shadow);
}
.rt-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.rt-split {
  display: grid; gap: 32px; align-items: center;
}
.rt-split .rt-figure img { aspect-ratio: 4 / 5; }

/* ===== Трійка напрямків ===== */
.rt-trio { display: grid; gap: 24px; grid-template-columns: 1fr; }
.rt-trio-item {
  border-top: 3px solid var(--ration-gold);
  padding: 20px 0 0;
}
.rt-trio-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 900;
  color: var(--ration-gold);
  line-height: 1; margin-bottom: 12px;
}
.rt-trio-item p { color: var(--ration-muted); margin: 0; }

/* ===== Шлях (кроки з лінією-connector) ===== */
.rt-path {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 20px;
}
.rt-path::before {
  content: ""; position: absolute;
  top: 30px; left: 16%; right: 16%;
  height: 3px; background: var(--ration-gold);
  z-index: 0;
}
.rt-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.rt-step p { font-size: 0.92rem; color: var(--ration-muted); margin: 0; }
.rt-node {
  width: 60px; height: 60px; flex: 0 0 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  background: var(--ration-gold); color: #0D1117;
  border: 3px solid var(--ration-gold);
}
.rt-node.is-outline { background: var(--ration-bg); color: var(--ration-gold); }
.rt-step h3 { font-size: 1.05rem; }

/* ===== CTA ===== */
.rt-cta-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
  background: var(--ration-surface);
  border: 1px solid var(--ration-line);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--ration-radius);
  box-shadow: var(--ration-shadow);
}
.rt-cta-bar h2 { margin: 0; max-width: 22ch; }
.rt-cta-bar p { margin: 8px 0 0; color: var(--ration-muted); }

/* ===== Картки з іконками ===== */
.rt-ico {
  width: 30px; height: 30px; flex: 0 0 30px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.rt-ico-box {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ration-accent); color: #fff;
  border-radius: var(--ration-radius);
}
.rt-includes { display: grid; gap: 18px; grid-template-columns: 1fr; }
.rt-include {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--ration-surface);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
  padding: 20px;
}
.rt-include h3 { font-size: 1.05rem; margin-bottom: 6px; }
.rt-include p { margin: 0; color: var(--ration-muted); font-size: 0.95rem; }

/* ===== Процес (про нас) ===== */
.rt-process {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 18px;
}
.rt-process li {
  display: flex; gap: 18px; align-items: center;
  background: var(--ration-surface);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
  padding: 20px;
}
.rt-process .rt-node { margin: 0; width: 52px; height: 52px; flex: 0 0 52px; font-size: 1.2rem; }
.rt-process h3 { font-size: 1.05rem; margin-bottom: 4px; }
.rt-process p { margin: 0; color: var(--ration-muted); }

/* ===== Принципи ===== */
.rt-pillars { display: grid; gap: 20px; grid-template-columns: 1fr; }
.rt-pillar {
  background: var(--ration-surface);
  border-left: 4px solid var(--ration-gold);
  border-radius: var(--ration-radius);
  padding: 24px;
}
.rt-pillar h3 { font-size: 1.15rem; }
.rt-pillar p { margin: 0; color: var(--ration-muted); }

/* ===== Reveal (JS stagger) ===== */
.js .rt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .rt-reveal.is-in { opacity: 1; transform: none; }

/* ===== Scroll-driven: плавна поява секцій та clip-reveal зображень ===== */
@supports (animation-timeline: view()) {
  .rt-view {
    animation: rt-fade-view linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  .rt-clip {
    animation: rt-clip-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@keyframes rt-fade-view { from { opacity: 0; } to { opacity: 1; } }
@keyframes rt-clip-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ===== Cookie-банер (статичний) ===== */
.rt-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  background: var(--ration-deep); color: var(--ration-ink);
  border-top: 3px solid var(--ration-gold);
  padding: 18px 5vw;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.rt-cookie p { margin: 0; max-width: 60ch; font-size: 0.95rem; }
.rt-cookie a { color: var(--ration-gold); }
.rt-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Форма та інформаційні картки ===== */
.rt-reserve { display: grid; gap: 40px; }
.rt-form-wrap {
  background: var(--ration-surface);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--ration-shadow);
}
.rt-form-wrap h2 { font-size: 1.8rem; margin-bottom: 20px; }
.rt-form-grid { display: grid; gap: 20px; }
.rt-field { display: flex; flex-direction: column; gap: 8px; }
.rt-field label { font-weight: 600; }
.rt-field input, .rt-field textarea {
  width: 100%;
  background: var(--ration-bg); color: var(--ration-ink);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
  padding: 13px 14px;
  font: inherit;
}
.rt-field input:focus, .rt-field textarea:focus {
  outline: 3px solid var(--ration-gold);
  outline-offset: 1px;
  border-color: var(--ration-gold);
}
.rt-field textarea { min-height: 120px; resize: vertical; }
.rt-consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; color: var(--ration-muted);
}
.rt-consent input {
  width: 20px; height: 20px; flex: 0 0 20px;
  margin-top: 3px; accent-color: var(--ration-gold);
}
.rt-consent a { color: var(--ration-gold); }
.rt-info-col { display: grid; gap: 20px; }
.rt-info-card {
  background: var(--ration-surface);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
  padding: 24px;
}
.rt-info-card h3 {
  font-size: 1.15rem;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 8px;
}
.rt-info-card > p { color: var(--ration-muted); font-size: 0.95rem; margin-bottom: 0; }
.rt-badge-list {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; gap: 10px;
}
.rt-badge-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.rt-badge {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #0D1117;
}
.rt-badge-list li:nth-child(1) .rt-badge { background: var(--ration-badge-1); }
.rt-badge-list li:nth-child(2) .rt-badge { background: var(--ration-badge-2); }
.rt-badge-list li:nth-child(3) .rt-badge { background: var(--ration-badge-3); }
.rt-badge-list li:nth-child(4) .rt-badge { background: var(--ration-badge-4); }

/* ===== FAQ (усі відкриті) ===== */
.rt-faq { display: grid; gap: 14px; margin-top: 8px; }
.rt-faq details {
  background: var(--ration-surface);
  border: 1px solid var(--ration-line);
  border-radius: var(--ration-radius);
  padding: 18px 22px;
}
.rt-faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 1.05rem;
}
.rt-faq summary::-webkit-details-marker { display: none; }
.rt-faq summary::after { content: "−"; float: right; color: var(--ration-gold); }
.rt-faq details p { margin: 12px 0 0; color: var(--ration-muted); }

/* ===== Юридичні сторінки ===== */
.rt-legal {
  min-height: 100vh; min-height: 100dvh;
  padding: 8dvh 6vw 10dvh;
}
.rt-legal-inner { max-width: 860px; margin: 0 auto; }
.rt-legal h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.rt-legal h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 1.8em; }
.rt-legal p { color: var(--ration-muted); }
.rt-legal-meta {
  color: var(--ration-gold); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.rt-cookie-policy { scroll-margin-top: 100px; }

/* ===== Footer ===== */
.rt-foot {
  background: var(--ration-deep);
  color: var(--ration-muted);
  padding: 48px 6vw 32px;
  border-top: 1px solid var(--ration-line);
}
.rt-foot-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 20px; }
.rt-foot .rt-brand { color: var(--ration-ink); }
.rt-foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.rt-foot-links a { color: var(--ration-gold); text-decoration: none; }
.rt-foot-links a:hover { text-decoration: underline; }
.rt-disclaimer {
  margin: 0; font-size: 0.9rem;
  border-left: 3px solid var(--ration-gold);
  padding-left: 12px;
}
.rt-copy { margin: 0; font-size: 0.85rem; }

/* ===== Адаптивність ===== */
@media (min-width: 760px) {
  .rt-pillars { grid-template-columns: repeat(2, 1fr); }
  .rt-includes { grid-template-columns: repeat(2, 1fr); }
  .rt-split { grid-template-columns: 55fr 45fr; gap: 48px; }
}
@media (min-width: 860px) {
  .rt-burger { display: none; }
  .rt-links { display: flex; gap: 28px; align-items: center; }
  .rt-menu-check:checked ~ .rt-links {
    position: static; background: none; padding: 0;
    flex-direction: row; box-shadow: none;
  }
}
@media (min-width: 900px) {
  .rt-hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .rt-hero-visual { min-height: 420px; }
  .rt-trio { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .rt-step p { font-size: 1rem; }
}
@media (min-width: 960px) {
  .rt-reserve { grid-template-columns: 60fr 40fr; align-items: start; gap: 48px; }
}
@media (max-width: 480px) {
  .rt-path::before { left: 14%; right: 14%; }
  .rt-node { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.2rem; }
  .rt-step h3 { font-size: 0.95rem; }
  .rt-step p { font-size: 0.82rem; }
  .rt-cta-bar { flex-direction: column; align-items: flex-start; }
  .rt-cookie { flex-direction: column; align-items: stretch; }
}

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
}
</parameter>
</invoke>