/* ===== Анімаційний шар: міжсторінкові переходи ===== */
@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; } }

/* ===== Токени теми: ніжна теплa палітра, пресет Retro Vintage ===== */
:root {
  --vis-bg: #FBF6EC;
  --vis-surface: #F3E9D7;
  --vis-paper: #FFFDF8;
  --vis-tone: #8A4B2A;
  --vis-tone-hover: #6B3619;
  --vis-ink: #2B2118;
  --vis-muted: #5A4A3C;
  --vis-gold: #B5842E;
  --vis-gold-deep: #7D5A12;
  --vis-line: #C9B48F;
  --vis-sage: #56623F;
  --vis-slate: #3E5566;
  --vis-gradient: linear-gradient(135deg, #8A4B2A 0%, #B5842E 100%);
  --vis-radius: 4px;
  --vis-radius-pill: 999px;
  --vis-shadow-frame: 4px 4px 0 var(--vis-gold);
  --vis-shadow-card: 0 6px 18px rgba(43, 33, 24, 0.10);
  --vis-section-pad: 10dvh;
  --font-display: 'Playfair Display', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'Lato', 'Noto Sans Devanagari', Arial, sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vis-bg);
  color: var(--vis-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}
main { display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--vis-ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--vis-tone); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--vis-gold);
  outline-offset: 3px;
}

.vis-wrap { max-width: 1200px; margin: 0 auto; }
.vis-center { text-align: center; }
.vis-lead { font-size: 1.12rem; color: var(--vis-muted); max-width: 62ch; }
.vis-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vis-tone);
  font-weight: 700;
  margin: 0 0 12px;
}
.vis-ornament {
  display: block;
  color: var(--vis-gold);
  letter-spacing: 0.5em;
  margin: 12px 0;
  font-size: 0.9rem;
}
.vis-section { position: relative; padding: var(--vis-section-pad) 20px; overflow: clip; }
.vis-section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.vis-section-head p { color: var(--vis-muted); }
.vis-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .vis-split { grid-template-columns: 1fr 1fr; } }

/* ===== Header ===== */
.vis-header {
  position: relative;
  background: var(--vis-paper);
  border-bottom: 1px solid var(--vis-line);
}
.vis-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -5px;
  height: 1px;
  background: var(--vis-line);
  pointer-events: none;
}
.vis-header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vis-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vis-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}
.vis-brand svg { width: 40px; height: 40px; flex: 0 0 auto; }
.vis-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: var(--vis-gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .vis-progress {
    animation: vis-progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes vis-progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vis-menu-state {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.vis-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 9px;
  border: 1px solid var(--vis-line);
  border-radius: var(--vis-radius);
  background: var(--vis-paper);
}
.vis-burger span { display: block; width: 22px; height: 2px; background: var(--vis-ink); }
.vis-menu-state:focus-visible ~ .vis-burger { outline: 3px solid var(--vis-gold); outline-offset: 3px; }
.vis-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--vis-paper);
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--vis-line);
  box-shadow: 0 10px 24px rgba(43, 33, 24, 0.12);
  z-index: 50;
}
.vis-menu-state:checked ~ .vis-nav { display: flex; }
.vis-nav a {
  padding: 12px 4px;
  color: var(--vis-ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dotted var(--vis-line);
}
.vis-nav a[aria-current="page"] { color: var(--vis-tone); }
@media (min-width: 860px) {
  .vis-burger { display: none; }
  .vis-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 26px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    z-index: auto;
  }
  .vis-nav a { border: 0; padding: 6px 0; }
  .vis-nav a[aria-current="page"] { border-bottom: 2px solid var(--vis-gold); }
}

/* ===== Кнопки ===== */
.vis-cta {
  display: inline-block;
  padding: 0.85em 1.9em;
  border-radius: var(--vis-radius-pill);
  border: 2px double var(--vis-tone);
  background: var(--vis-tone);
  color: var(--vis-paper);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.vis-cta:hover { background: var(--vis-tone-hover); border-color: var(--vis-tone-hover); color: var(--vis-paper); transform: scale(1.03); }
.vis-cta:active { transform: scale(0.99); }

/* ===== Hero (index) ===== */
.vis-hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  min-height: 72dvh;
  padding: var(--vis-section-pad) 20px;
  display: flex;
  align-items: center;
}
.vis-hero-bg {
  position: absolute;
  inset: 0;
  background: url(img/bg.webp) center / cover no-repeat;
  filter: sepia(20%) brightness(0.9);
  pointer-events: none;
  z-index: 0;
}
.vis-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 246, 236, 0.95) 0%, rgba(251, 246, 236, 0.72) 55%, rgba(251, 246, 236, 0.35) 100%);
  pointer-events: none;
  z-index: 0;
}
.vis-hero-seal {
  position: absolute;
  right: 3%;
  top: 6%;
  width: clamp(130px, 22vw, 240px);
  height: auto;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
.vis-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.vis-headline .vis-line {
  display: block;
  animation: vis-line-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vis-headline .vis-line:nth-child(2) { animation-delay: 0.12s; }
.vis-headline .vis-line:nth-child(3) { animation-delay: 0.24s; }
@keyframes vis-line-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.vis-hero .vis-lead { margin: 18px 0 28px; }

/* ===== Вузли контенту ===== */
.vis-frame {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--vis-paper);
  border: 1px solid var(--vis-line);
  box-shadow: var(--vis-shadow-frame);
}
.vis-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--vis-gold);
  pointer-events: none;
}
.vis-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@supports (animation-timeline: view()) {
  .vis-figure, .vis-bg3-frame {
    animation: vis-clip-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@keyframes vis-clip-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.vis-content-text h2 { margin-top: 0; }
.vis-orn-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.vis-orn-list li { position: relative; padding-left: 1.8em; margin-bottom: 0.65em; }
.vis-orn-list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--vis-gold); }
.vis-float-frame {
  background: var(--vis-surface);
  border: 2px double var(--vis-line);
  border-radius: var(--vis-radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 12px 28px rgba(43, 33, 24, 0.12);
}
.vis-float-frame h2 { margin-top: 0; }
.vis-content-text aside.vis-float-frame { margin-top: 24px; }
.vis-content-text aside.vis-float-frame p { margin: 0; font-size: 0.95rem; }
.vis-float-section .vis-float-frame { order: 1; }

/* ===== Seal cards ===== */
.vis-seal-grid {
  display: grid;
  gap: 40px 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}
.vis-seal-card {
  position: relative;
  text-align: center;
  padding: 44px 22px 28px;
  background: var(--vis-paper);
  border: 1px solid var(--vis-line);
  border-radius: var(--vis-radius);
  box-shadow: var(--vis-shadow-card);
}
.vis-seal-card::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vis-tone);
  border: 2px double var(--vis-gold);
}
.vis-seal-card::after {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px dashed var(--vis-gold);
  pointer-events: none;
}
.vis-seal-mark {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vis-paper);
  z-index: 1;
}
.vis-seal-mark svg { width: 24px; height: 24px; }
.vis-dots {
  border: 0;
  border-top: 1px dotted var(--vis-line);
  width: 60%;
  margin: 12px auto;
}
.vis-seal-card p { color: var(--vis-muted); margin: 0; }

/* ===== Steps ===== */
.vis-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.vis-step { position: relative; text-align: center; padding: 0 12px; }
.vis-step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vis-paper);
  border: 2px double var(--vis-tone);
  color: var(--vis-tone);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.vis-step p { color: var(--vis-muted); }
@media (min-width: 800px) {
  .vis-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    border-top: 2px dashed var(--vis-gold);
  }
}

/* ===== Strip, CTA ===== */
.vis-cta-strip {
  position: relative;
  overflow: clip;
  background: var(--vis-ink);
  color: var(--vis-bg);
  padding: var(--vis-section-pad) 20px;
  text-align: center;
}
.vis-strip-box {
  border: 2px double var(--vis-gold);
  padding: clamp(28px, 5vw, 56px) 20px;
  border-radius: var(--vis-radius);
}
.vis-cta-strip h2 { color: var(--vis-bg); }
.vis-cta-strip p { color: #E9DCC2; max-width: 60ch; margin-left: auto; margin-right: auto; }
.vis-cta-strip .vis-cta { background: var(--vis-gold); border-color: var(--vis-gold); color: var(--vis-ink); }
.vis-cta-strip .vis-cta:hover { background: #D19C3D; border-color: #D19C3D; color: var(--vis-ink); }

/* ===== About ===== */
.vis-page-hero {
  padding: calc(var(--vis-section-pad) * 0.8) 20px;
  background: var(--vis-surface);
  border-bottom: 1px solid var(--vis-line);
  text-align: center;
}
.vis-page-hero .vis-wrap > * { margin-left: auto; margin-right: auto; }
.vis-page-hero .vis-lead { margin-top: 8px; }
.vis-bg3-frame { width: 55%; margin: 0 auto; }
.vis-bg3-frame img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 899px) { .vis-bg3-frame { width: 100%; } }
.vis-include-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.vis-include-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--vis-paper);
  padding: 20px;
  border: 1px solid var(--vis-line);
  border-radius: var(--vis-radius);
  box-shadow: var(--vis-shadow-card);
}
.vis-include-item p { margin: 0; color: var(--vis-muted); font-size: 0.97rem; }
.vis-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vis-tone);
  color: var(--vis-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vis-icon svg { width: 22px; height: 22px; }
.vis-steps-four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.vis-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 0;
  border-top: 1px solid var(--vis-line);
  border-bottom: 1px solid var(--vis-line);
  color: var(--vis-tone);
}
.vis-quote-section { padding-top: calc(var(--vis-section-pad) * 0.6); padding-bottom: calc(var(--vis-section-pad) * 0.6); }

/* ===== Reserve ===== */
.vis-card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 36px;
}
.vis-info-card {
  background: var(--vis-paper);
  border: 1px solid var(--vis-line);
  border-radius: var(--vis-radius);
  padding: 28px 24px;
  box-shadow: var(--vis-shadow-card);
}
.vis-info-card .vis-icon { margin-bottom: 14px; }
.vis-info-card p { color: var(--vis-muted); }
.vis-num-list { list-style: none; counter-reset: vis-n; padding: 0; margin: 14px 0 0; }
.vis-num-list li {
  counter-increment: vis-n;
  position: relative;
  padding: 2px 0 2px 42px;
  margin-bottom: 12px;
  min-height: 28px;
}
.vis-num-list li::before {
  content: counter(vis-n);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--vis-paper);
  background: var(--vis-sage);
}
.vis-num-list li:nth-child(4n+2)::before { background: var(--vis-tone); }
.vis-num-list li:nth-child(4n+3)::before { background: var(--vis-slate); }
.vis-num-list li:nth-child(4n+4)::before { background: var(--vis-gold-deep); }
.vis-form-section { background: var(--vis-surface); }
.vis-form {
  background: var(--vis-paper);
  border: 2px double var(--vis-line);
  border-radius: var(--vis-radius);
  padding: clamp(22px, 4vw, 40px);
  max-width: 680px;
  margin: 28px auto 0;
}
.vis-field { display: block; margin-bottom: 22px; }
.vis-field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.vis-field input,
.vis-field textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--vis-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--vis-ink);
  border-radius: 0;
  padding: 10px 4px;
}
.vis-field textarea { min-height: 110px; resize: vertical; }
.vis-check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 26px; }
.vis-check input { width: 20px; height: 20px; margin-top: 5px; flex: 0 0 auto; accent-color: var(--vis-tone); }
.vis-check span { font-size: 0.97rem; }
.vis-submit { cursor: pointer; }
.vis-faq { background: var(--vis-bg); }
.vis-faq-wrap { max-width: 820px; }
.vis-faq details { border-bottom: 1px solid var(--vis-line); padding: 16px 0; }
.vis-faq details:first-of-type { border-top: 1px solid var(--vis-line); margin-top: 24px; }
.vis-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
}
.vis-faq summary::before { content: "❧ "; color: var(--vis-gold); }
.vis-faq details p { margin: 10px 0 0; color: var(--vis-muted); }

/* ===== Thank ===== */
.vis-thanks {
  min-height: 70dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--vis-section-pad) 20px;
}
.vis-thanks-inner { max-width: 720px; width: 100%; }
.vis-thanks-figure { max-width: 520px; margin: 0 auto 28px; }
.vis-thanks-inner .vis-lead { margin: 0 auto 26px; }

/* ===== Legal ===== */
.vis-legal-main { min-height: 100vh; }
.vis-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--vis-section-pad) 20px;
}
.vis-legal h2 { margin-top: 1.6em; }
.vis-cookie-section { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--vis-line); }

/* ===== Footer ===== */
.vis-footer {
  background: var(--vis-ink);
  color: #F3EAD8;
  padding: 44px 20px 28px;
  border-top: 3px double var(--vis-gold);
}
.vis-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 760px) { .vis-footer-inner { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.vis-footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--vis-bg);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.vis-footer a { color: #EAD9B3; }
.vis-disclaimer {
  font-size: 0.92rem;
  color: #E9DCC2;
  border-left: 2px solid var(--vis-gold);
  padding-left: 12px;
  margin: 0 0 14px;
}
.vis-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 14px; }
.vis-copy { font-size: 0.9rem; color: #D9C9A8; margin: 0; }

/* ===== Cookie banner ===== */
.vis-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--vis-ink);
  color: var(--vis-bg);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.2);
}
.vis-cookie[hidden] { display: none; }
.vis-cookie p { margin: 0; font-size: 0.95rem; flex: 1 1 260px; }
.vis-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vis-cookie-btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.55em 1.2em;
  border-radius: var(--vis-radius-pill);
  border: 1px solid var(--vis-gold);
  background: transparent;
  color: var(--vis-bg);
}
.vis-cookie-accept { background: var(--vis-gold); color: var(--vis-ink); }
.vis-cookie-btn:hover { background: #D19C3D; color: var(--vis-ink); border-color: #D19C3D; }

/* ===== Scroll/visibility-driven reveal (JS-клас .js) ===== */
.js .vis-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--vis-delay, 0ms);
}
.js .vis-stagger.is-in { opacity: 1; transform: none; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
  .js .vis-stagger { opacity: 1; transform: none; }
}

/* ===== Compact screens ===== */
@media (max-width: 380px) {
  body { font-size: 1rem; }
  .vis-brand { font-size: 0.95rem; }
  .vis-brand svg { width: 34px; height: 34px; }
  .vis-hero-seal { opacity: 0.4; }
}