/* ===== Перехід між сторінками ===== */
@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; } }

/* ===== Токени теми (vintage / light) ===== */
:root {
  --sight-paper: #F5EBD7;
  --sight-surface: #FBF6EA;
  --sight-ink: #1E1B16;
  --sight-muted: #5A4D3C;
  --sight-rust: #6B3A1E;
  --sight-rust-hover: #4E2912;
  --sight-leaf: #3F5E2A;
  --sight-plum: #6A2C4F;
  --sight-ochre: #7D5300;
  --sight-gold: #E2BE7A;
  --sight-line: #B9A27A;
  --sight-gradient: linear-gradient(135deg, #6B3A1E 0%, #3F5E2A 100%);
  --sight-shadow: 4px 4px 0 var(--sight-leaf);
  --sight-radius: 3px;
  --sight-section-pad: 10dvh;
  --font-display: 'Playfair Display', Georgia, 'Nirmala UI', 'Mangal', serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', 'Nirmala UI', 'Mangal', sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sight-paper);
  color: var(--sight-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--sight-rust);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-transform: none;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--sight-rust); text-underline-offset: 4px; }
a:hover { color: var(--sight-rust-hover); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sight-leaf); outline-offset: 3px; }
.sight-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  padding: 8px 14px;
  background: var(--sight-ink);
  color: var(--sight-surface);
}
.sight-skip:focus { left: 8px; }
.sight-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.sight-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sight-narrow { max-width: 820px; }
.sight-section { position: relative; padding-block: var(--sight-section-pad); }
.sight-tint { background: var(--sight-surface); border-block: 1px solid var(--sight-line); }
.sight-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.2em; }
.sight-ornament { color: var(--sight-leaf); letter-spacing: 0.5em; font-size: 0.95rem; margin-bottom: 0.4em; }
.sight-center-title { text-align: center; }

/* ===== Header ===== */
.sight-header {
  position: relative;
  z-index: 20;
  background: var(--sight-surface);
  border-bottom: 1px solid var(--sight-line);
}
.sight-header::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  border-bottom: 1px dotted var(--sight-line);
  pointer-events: none;
}
.sight-header-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sight-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sight-rust);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}
.sight-brand:hover { color: var(--sight-rust-hover); }
.sight-logo { width: 44px; height: 44px; flex-shrink: 0; color: var(--sight-rust); }
.sight-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid var(--sight-line);
  border-radius: var(--sight-radius);
  background: transparent;
}
.sight-burger span { display: block; height: 2px; width: 100%; background: var(--sight-rust); }
.sight-menu-check:focus-visible + .sight-burger { outline: 3px solid var(--sight-leaf); outline-offset: 3px; }
.sight-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  background: var(--sight-surface);
  border-bottom: 1px solid var(--sight-line);
}
.sight-menu-check:checked ~ .sight-nav { display: flex; }
.sight-nav a {
  padding: 12px 0;
  color: var(--sight-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--sight-line);
}
.sight-nav a:hover { color: var(--sight-rust); }
.sight-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: var(--sight-leaf);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .sight-progress { animation: sight-read linear both; animation-timeline: scroll(root); }
}
@keyframes sight-read { to { transform: scaleX(1); } }

@media (min-width: 860px) {
  .sight-burger { display: none; }
  .sight-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 26px;
    padding: 0;
    background: none;
    border: 0;
  }
  .sight-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
  .sight-nav a:hover { border-bottom-color: var(--sight-rust); }
}

/* ===== Hero ===== */
.sight-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: calc(var(--sight-section-pad) * 0.8) var(--sight-section-pad);
}
.sight-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("img/bg.webp") center / cover no-repeat;
  filter: sepia(20%) brightness(0.9);
  pointer-events: none;
}
.sight-hero-seal {
  position: absolute;
  top: -30px;
  right: -30px;
  width: min(340px, 80vw);
  height: auto;
  color: var(--sight-rust);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.sight-hero-inner { position: relative; z-index: 1; }
.sight-hero-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  background: var(--sight-surface);
  border: 4px double var(--sight-rust);
  box-shadow: 6px 6px 0 var(--sight-leaf);
}
.sight-kicker {
  margin-bottom: 12px;
  color: var(--sight-leaf);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sight-hero-title { margin-bottom: 0.4em; }
.sight-hero-title .sight-line { display: block; }
.sight-lead { max-width: 60ch; font-size: 1.15rem; color: var(--sight-muted); }
.sight-lead-center { margin-inline: auto; text-align: center; }
.sight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 24px;
}
.sight-quiet { color: var(--sight-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }

/* ===== Buttons (pill, double border) ===== */
.sight-pill {
  display: inline-block;
  padding: 14px 34px;
  border: 3px double var(--sight-rust);
  border-radius: 999px;
  background: var(--sight-rust);
  color: var(--sight-surface);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.sight-pill:hover {
  background: var(--sight-rust-hover);
  color: var(--sight-surface);
  box-shadow: 0 0 0 4px rgba(107, 58, 30, 0.18);
}
.sight-pill-light { background: var(--sight-surface); color: var(--sight-rust); border-color: var(--sight-surface); }
.sight-pill-light:hover { background: var(--sight-paper); color: var(--sight-rust-hover); }

/* ===== Ornamental typography & content ===== */
.sight-split { display: grid; gap: 44px; align-items: center; }
.sight-copy-block h2 { margin-bottom: 0.3em; }
.sight-dotted { width: 60%; margin: 14px 0 22px; border: 0; border-top: 2px dotted var(--sight-line); }
.sight-ornate { list-style: none; margin: 1.2em 0 0; padding: 0; }
.sight-ornate li { position: relative; margin-bottom: 0.8em; padding-left: 1.8em; }
.sight-ornate li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--sight-leaf); }
.sight-float-frame {
  margin: 0;
  padding: 12px;
  background: var(--sight-surface);
  border: 1px solid var(--sight-line);
  box-shadow: 0 20px 36px -20px rgba(30, 27, 22, 0.55);
  transform: rotate(-0.8deg);
}
.sight-float-frame img { width: 100%; height: auto; }
.sight-float-frame figcaption {
  margin-top: 10px;
  color: var(--sight-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}
.sight-frame {
  margin: 0 auto;
  padding: 10px;
  background: var(--sight-surface);
  border: 3px double var(--sight-rust);
  box-shadow: var(--sight-shadow);
}
.sight-frame img { width: 100%; height: auto; }
.sight-frame-narrow { width: 100%; max-width: 560px; }
@media (min-width: 900px) {
  .sight-split { grid-template-columns: 1.1fr 0.9fr; }
  .sight-frame-narrow { width: 55%; max-width: none; }
}

/* ===== Seal cards ===== */
.sight-seal-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .sight-seal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .sight-seal-grid { grid-template-columns: repeat(3, 1fr); }
  .sight-grid-four { grid-template-columns: repeat(4, 1fr); }
}
.sight-seal-card {
  position: relative;
  padding: 34px 24px 28px;
  text-align: center;
  background: var(--sight-surface);
  border: 1px solid var(--sight-line);
  box-shadow: var(--sight-shadow);
}
.sight-seal-card p { margin: 0; color: var(--sight-muted); font-size: 0.98rem; }
.sight-seal-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border: 2px solid var(--sight-rust);
  border-radius: 50%;
  background: var(--sight-paper);
  color: var(--sight-rust);
}
.sight-seal-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--sight-rust);
  border-radius: 50%;
}
.sight-seal-badge::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed var(--sight-line);
  border-radius: 50%;
}
.sight-seal-badge svg { position: relative; width: 36px; height: 36px; }
.sight-seal-initial {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--sight-rust);
}

/* ===== Info cards (reserve) ===== */
.sight-info-card {
  padding: 28px 24px;
  text-align: left;
  background: var(--sight-surface);
  border: 1px solid var(--sight-line);
  box-shadow: var(--sight-shadow);
}
.sight-info-card .sight-seal-badge { width: 64px; height: 64px; margin: 0 0 16px; }
.sight-info-card .sight-seal-badge svg { width: 30px; height: 30px; }
.sight-numlist { list-style: none; margin: 16px 0 0; padding: 0; }
.sight-numlist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sight-dot {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sight-leaf);
  color: var(--sight-surface);
  font-size: 0.9rem;
  font-weight: 700;
}
.sight-numlist li:nth-child(2) .sight-dot { background: var(--sight-rust); }
.sight-numlist li:nth-child(3) .sight-dot { background: var(--sight-plum); }
.sight-numlist li:nth-child(4) .sight-dot { background: var(--sight-ochre); }

/* ===== Steps ===== */
.sight-steps { display: grid; gap: 34px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .sight-steps { grid-template-columns: repeat(3, 1fr); } }
.sight-steps li { position: relative; padding: 0 12px; text-align: center; }
.sight-steps li::after {
  content: "";
  display: none;
  position: absolute;
  top: 30px;
  left: calc(50% + 36px);
  right: calc(-50% + 2px);
  border-top: 2px dashed var(--sight-leaf);
}
@media (min-width: 760px) {
  .sight-steps li::after { display: block; }
  .sight-steps li:last-child::after { display: none; }
}
.sight-step-num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border: 3px double var(--sight-rust);
  border-radius: 50%;
  background: var(--sight-surface);
  color: var(--sight-rust);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}
.sight-steps p { color: var(--sight-muted); }

/* ===== CTA strip ===== */
.sight-cta-strip { padding-block: var(--sight-section-pad); background: var(--sight-gradient); color: var(--sight-surface); }
.sight-cta-strip h2 { color: var(--sight-surface); }
.sight-cta-box {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
  border: 2px double var(--sight-surface);
}
.sight-cta-box p { color: var(--sight-surface); }

/* ===== Pull quote ===== */
.sight-quote-wrap { padding-block: calc(var(--sight-section-pad) * 0.7); }
.sight-pullquote {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px;
  border-block: 1px solid var(--sight-line);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--sight-rust);
}
.sight-pullquote p { margin: 0; }

/* ===== Reserve page ===== */
.sight-page-head { padding-block: calc(var(--sight-section-pad) * 0.9) 2dvh; text-align: center; }
.sight-page-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.sight-form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  background: var(--sight-surface);
  border: 4px double var(--sight-rust);
}
.sight-field { margin-bottom: 22px; }
.sight-field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--sight-ink); }
.sight-field input,
.sight-field textarea {
  width: 100%;
  padding: 10px 2px;
  font: inherit;
  color: var(--sight-ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--sight-rust);
  border-radius: 0;
  resize: vertical;
}
.sight-field input:focus,
.sight-field textarea:focus {
  border-bottom-color: var(--sight-leaf);
  background: rgba(63, 94, 42, 0.06);
}
.sight-consent { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 26px; }
.sight-consent input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 5px; accent-color: var(--sight-leaf); }
.sight-consent label { color: var(--sight-ink); }
.sight-form-card .sight-pill { display: block; width: 100%; text-align: center; }

/* ===== FAQ ===== */
.sight-faq { counter-reset: faq-n; }
.sight-faq-item {
  counter-increment: faq-n;
  padding: 20px 0;
  border-top: 1px dotted var(--sight-line);
}
.sight-faq-item:last-child { border-bottom: 1px dotted var(--sight-line); }
.sight-faq-item h3::before { content: counter(faq-n) ". "; color: var(--sight-leaf); }
.sight-faq-item p { margin: 0; color: var(--sight-muted); }

/* ===== Thank page ===== */
.sight-thanks { min-height: 72dvh; display: grid; align-items: center; padding-block: var(--sight-section-pad); }
.sight-thanks-inner { display: grid; gap: 40px; align-items: center; }
.sight-thanks-copy p { color: var(--sight-muted); }
.sight-thanks-copy h1 { margin-top: 0.2em; }
@media (min-width: 900px) {
  .sight-thanks-inner { grid-template-columns: 1fr 1fr; }
  .sight-thanks .sight-frame-narrow { width: 100%; max-width: none; }
}

/* ===== Legal pages ===== */
.sight-legal-page { min-height: 100vh; }
.sight-legal { max-width: 820px; margin: 0 auto; padding: calc(var(--sight-section-pad) * 0.9) 20px; }
.sight-legal h1 { margin-bottom: 0.6em; }
.sight-legal h2 { margin-top: 1.6em; font-size: 1.5rem; }
.sight-legal-part { scroll-margin-top: 24px; }

/* ===== Footer ===== */
.sight-footer { padding-block: 44px 22px; background: var(--sight-ink); color: var(--sight-surface); }
.sight-footer-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 760px) { .sight-footer-grid { grid-template-columns: 1fr auto; } }
.sight-footer .sight-brand { color: var(--sight-gold); }
.sight-footer .sight-brand:hover { color: var(--sight-surface); }
.sight-footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.sight-footer-links a { color: var(--sight-paper); text-decoration: underline; text-underline-offset: 4px; }
.sight-footer-links a:hover { color: var(--sight-gold); }
.sight-disclaimer { max-width: 60ch; margin: 22px 0 0; font-style: italic; color: var(--sight-surface); }
.sight-copyright {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px dotted rgba(245, 235, 215, 0.35);
  text-align: center;
  font-size: 0.92rem;
  color: var(--sight-paper);
}

/* ===== Cookie banner ===== */
.sight-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  background: var(--sight-ink);
  color: var(--sight-surface);
  border-top: 3px double var(--sight-gold);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.sight-cookie[hidden] { display: none; }
.sight-cookie p { max-width: 70ch; margin: 0; font-size: 0.97rem; }
.sight-cookie a { color: var(--sight-gold); }
.sight-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sight-cookie-actions button {
  padding: 10px 20px;
  border: 2px solid var(--sight-gold);
  border-radius: var(--sight-radius);
  background: var(--sight-gold);
  color: var(--sight-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.sight-cookie-actions #decline-cookie { background: transparent; color: var(--sight-surface); }
.sight-cookie-actions button:hover {
  background: var(--sight-paper);
  border-color: var(--sight-paper);
  color: var(--sight-ink);
}

/* ===== Анімаційний шар: reveal тексту, clip-reveal зображень, stagger (JS) ===== */
@supports (animation-timeline: view()) {
  .sight-line { animation: sight-line-up 0.7s ease both; }
  .sight-line:nth-child(2) { animation-delay: 0.14s; }
  .sight-frame img {
    animation: sight-clip-open linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@keyframes sight-line-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes sight-clip-open {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.js .sight-rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .sight-rise.is-in { opacity: 1; transform: none; }

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