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

/* ===== Кольорові змінні (тема: LIGHT, пресет J) ===== */
:root {
  --rat-paper: #F6EFE3;
  --rat-paper-deep: #EBE0CB;
  --rat-card: #FFFAF0;
  --rat-ink: #1A1A2A;
  --rat-ink-soft: #4A4036;
  --rat-burgundy: #6B2737;
  --rat-burgundy-hover: #4F1B28;
  --rat-bronze: #A67C3D;
  --rat-olive: #4F5E2E;
  --rat-line: #8A6E45;
  --rat-strip: #2B1B1F;
  --rat-strip-ink: #F6EFE3;
  --rat-gradient: linear-gradient(120deg, #6B2737 0%, #7A3B2E 50%, #A67C3D 100%);
  --rat-shadow: 4px 4px 0 var(--rat-bronze);
  --rat-radius: 3px;
  --rat-section-pad: 10dvh;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--rat-paper);
  color: var(--rat-ink);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rat-burgundy); }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--rat-ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rat-bronze); outline-offset: 3px; }
[hidden] { display: none !important; }

.rat-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--rat-burgundy);
  color: var(--rat-paper);
  padding: 8px 14px;
}
.rat-skip:focus { left: 12px; top: 12px; }

.rat-center { text-align: center; }
.rat-narrow { max-width: 62ch; margin-left: auto; margin-right: auto; }
.rat-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rat-olive);
  font-weight: 700;
  margin-bottom: 12px;
}
.rat-lede { font-size: 1.12rem; color: var(--rat-ink-soft); max-width: 60ch; }
.rat-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ===== Header ===== */
.rat-masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rat-paper);
  border-bottom: 1px solid var(--rat-line);
}
.rat-masthead::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--rat-line);
  opacity: 0.5;
  pointer-events: none;
}
.rat-masthead-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rat-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--rat-gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .rat-progress {
    animation: rat-progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes rat-progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rat-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rat-burgundy);
}
.rat-brand-mark { width: 40px; height: 40px; color: var(--rat-burgundy); flex: none; }
.rat-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--rat-ink);
}
.rat-nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rat-burger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 2px double var(--rat-burgundy);
  border-radius: var(--rat-radius);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rat-burgundy);
  background: transparent;
}
.rat-nav-check:focus-visible + .rat-burger { outline: 3px solid var(--rat-bronze); outline-offset: 3px; }
.rat-links {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--rat-line);
}
.rat-links a {
  display: block;
  padding: 10px 4px;
  color: var(--rat-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rat-links a:hover { color: var(--rat-burgundy); }
.rat-nav-check:checked ~ .rat-links { display: flex; }

@media (min-width: 860px) {
  .rat-burger { display: none; }
  .rat-links {
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    border-top: 0;
    padding-top: 0;
    gap: 28px;
  }
  .rat-links a { padding: 6px 0; border-bottom: 1px solid transparent; }
  .rat-links a:hover { border-bottom-color: var(--rat-burgundy); }
}

/* ===== Кнопки (статичні, hover без зсуву) ===== */
.rat-pill {
  display: inline-block;
  padding: 14px 30px;
  border: 3px double var(--rat-burgundy);
  border-radius: 999px;
  background: var(--rat-burgundy);
  color: var(--rat-paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.rat-pill:hover {
  background: var(--rat-burgundy-hover);
  box-shadow: 0 0 0 4px rgba(107, 39, 55, 0.15);
  transform: scale(1.03);
}
.rat-pill--ghost { background: transparent; color: var(--rat-burgundy); }
.rat-pill--ghost:hover { background: var(--rat-burgundy); color: var(--rat-paper); }
.rat-pill--sm { padding: 10px 18px; font-size: 0.8rem; }

/* ===== Hero ===== */
.rat-opening {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding: calc(var(--rat-section-pad) * 1.4) 20px;
}
.rat-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(246, 239, 227, 0.9), rgba(246, 239, 227, 0.84)), url("img/bg.webp");
  background-size: cover;
  background-position: center;
  filter: sepia(20%) brightness(0.9);
}
.rat-opening--about::before {
  background-image: linear-gradient(rgba(246, 239, 227, 0.9), rgba(246, 239, 227, 0.84)), url("img/bg3.webp");
}
.rat-opening-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}
.rat-opening-copy { max-width: 720px; }
.rat-seal-deco {
  position: absolute;
  z-index: 0;
  right: 3%;
  top: 6%;
  width: clamp(120px, 22vw, 220px);
  height: auto;
  color: var(--rat-burgundy);
  opacity: 0.35;
  pointer-events: none;
}

/* ===== Секції ===== */
.rat-band { padding: var(--rat-section-pad) 20px; position: relative; }
.rat-band--alt { background: var(--rat-paper-deep); }
.rat-band-inner { max-width: 1200px; margin: 0 auto; }
.rat-split { display: grid; gap: 40px; align-items: center; }
.rat-copy-block p:last-child { margin-bottom: 0; }
.rat-faq-wrap { max-width: 860px; }
.rat-booking-head {
  padding: var(--rat-section-pad) 20px 4dvh;
  text-align: center;
  background: var(--rat-paper);
}
.rat-booking-head h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.rat-booking-head .rat-eyebrow { margin-top: 0; }
@media (min-width: 860px) {
  .rat-split { grid-template-columns: 1fr 1fr; }
  .rat-split > :nth-child(2) { order: 0; }
}

.rat-ornament {
  display: block;
  width: min(360px, 80%);
  height: 24px;
  margin: 0 auto 24px;
  color: var(--rat-bronze);
}
@supports (animation-timeline: view()) {
  .rat-ornament path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: rat-draw linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@keyframes rat-draw { to { stroke-dashoffset: 0; } }

/* ===== Рамки та зображення ===== */
.rat-frame {
  position: relative;
  margin: 0;
  padding: 12px;
  background: var(--rat-card);
  border: 1px solid var(--rat-line);
  box-shadow: var(--rat-shadow);
}
.rat-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rat-line);
  pointer-events: none;
}
.rat-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.rat-frame figcaption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rat-ink-soft);
  margin-top: 8px;
}
@supports (animation-timeline: view()) {
  .rat-clip {
    animation: rat-unveil linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
}
@keyframes rat-unveil {
  from { clip-path: inset(-30px -30px 100% -30px); }
  to { clip-path: inset(-30px -30px -30px -30px); }
}

.rat-thanks-figure { max-width: 640px; margin: 28px auto; }
.rat-thanks-figure img { aspect-ratio: 16 / 10; }

/* ===== Марковані списки ===== */
.rat-bullets { list-style: none; padding: 0; margin: 0 0 1.2em; }
.rat-bullets li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.rat-bullets li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rat-bronze);
}

/* ===== Картки з печатками ===== */
.rat-seal-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 640px) { .rat-seal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rat-seal-grid { grid-template-columns: repeat(4, 1fr); } }
.rat-seal-item {
  position: relative;
  padding: 28px 22px;
  background: var(--rat-card);
  border: 1px solid var(--rat-line);
  text-align: center;
  box-shadow: 0 6px 18px rgba(74, 50, 30, 0.12);
}
.rat-seal-item::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rat-line);
  pointer-events: none;
}
.rat-seal-item p { color: var(--rat-ink-soft); font-size: 0.97rem; }
.rat-seal-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px double var(--rat-burgundy);
  display: grid;
  place-items: center;
  color: var(--rat-burgundy);
  background: var(--rat-paper);
}
.rat-seal-badge svg { width: 40px; height: 40px; }
.rat-seal-badge--letter {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--rat-burgundy);
}
.rat-dotted {
  border: 0;
  border-top: 2px dotted var(--rat-line);
  width: 60%;
  margin: 12px auto;
}

/* ===== Кроки ===== */
.rat-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 28px;
}
.rat-steps li { position: relative; text-align: center; padding: 0 12px; }
.rat-step-no {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px double var(--rat-burgundy);
  background: var(--rat-burgundy);
  color: var(--rat-paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.rat-steps p { color: var(--rat-ink-soft); font-size: 0.97rem; }
@media (min-width: 860px) {
  .rat-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .rat-steps--four { grid-template-columns: repeat(4, 1fr); }
  .rat-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    border-top: 2px dashed var(--rat-bronze);
    pointer-events: none;
  }
}

/* ===== Цитата ===== */
.rat-pull {
  margin: 36px auto;
  max-width: 760px;
  padding: 8px 0 8px 22px;
  border-left: 3px solid var(--rat-bronze);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rat-burgundy);
}
.rat-pull p { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 8px; }
.rat-pull cite { font-family: var(--font-body); font-size: 0.9rem; font-style: normal; color: var(--rat-ink-soft); }

/* ===== Смуга CTA ===== */
.rat-strip {
  background: var(--rat-strip);
  color: var(--rat-strip-ink);
  padding: var(--rat-section-pad) 20px;
  overflow: clip;
}
.rat-strip h2 { color: var(--rat-strip-ink); }
.rat-strip p { color: #E4D8C2; }
.rat-strip-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  border: 2px double var(--rat-bronze);
}
.rat-strip .rat-pill {
  background: var(--rat-paper);
  color: var(--rat-burgundy);
  border-color: var(--rat-paper);
}
.rat-strip .rat-pill:hover { background: #FFFFFF; color: var(--rat-burgundy-hover); }

/* ===== Форма ===== */
.rat-booking-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  background: var(--rat-card);
  border: 3px double var(--rat-line);
}
.rat-field { display: block; margin-bottom: 22px; }
.rat-field > span { display: block; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.02em; }
.rat-field input,
.rat-field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--rat-line);
  border-radius: 0;
  color: var(--rat-ink);
}
.rat-field input:focus,
.rat-field textarea:focus {
  outline: none;
  border-bottom-color: var(--rat-burgundy);
  box-shadow: 0 2px 0 var(--rat-burgundy);
}
.rat-field textarea { resize: vertical; min-height: 96px; }
.rat-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 24px;
  font-size: 0.95rem;
}
.rat-consent input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: none;
  accent-color: var(--rat-burgundy);
}
.rat-submit { width: auto; }

/* ===== Нумеровані списки з кольоровими значками ===== */
.rat-numbered {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  text-align: left;
}
.rat-numbered li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.96rem;
}
.rat-dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
}
.rat-dot--a { background: var(--rat-burgundy); }
.rat-dot--b { background: var(--rat-olive); }
.rat-dot--c { background: #7A4E1D; }
.rat-dot--d { background: #3E4A6B; }

/* ===== FAQ (відкриті) ===== */
.rat-faq {
  border-bottom: 1px solid var(--rat-line);
  padding: 16px 0;
}
.rat-faq summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--rat-ink);
}
.rat-faq summary::-webkit-details-marker { display: none; }
.rat-faq summary::before { content: "✦ "; color: var(--rat-bronze); }
.rat-faq p { margin: 10px 0 0; color: var(--rat-ink-soft); }

/* ===== Юридичні сторінки та подяка ===== */
.rat-legal {
  padding: var(--rat-section-pad) 20px;
  min-height: 100vh;
  min-height: 100dvh;
}
.rat-legal-inner { max-width: 820px; margin: 0 auto; }
.rat-legal h2 { margin-top: 1.6em; font-size: 1.5rem; }
.rat-legal section[id] { margin-top: 2em; padding-top: 1em; border-top: 1px dashed var(--rat-line); }

.rat-thanks {
  min-height: 70vh;
  min-height: 70dvh;
  display: grid;
  place-items: center;
  padding: var(--rat-section-pad) 20px;
  text-align: center;
}
.rat-thanks-inner { max-width: 720px; margin: 0 auto; }
.rat-thanks-inner .rat-lede { margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.rat-colophon {
  background: var(--rat-strip);
  color: var(--rat-strip-ink);
  padding: 44px 20px 28px;
}
.rat-colophon .rat-brand { color: var(--rat-bronze); }
.rat-colophon .rat-brand-mark { color: var(--rat-bronze); }
.rat-colophon .rat-brand-name { color: var(--rat-paper); }
.rat-colophon a { color: var(--rat-paper); }
.rat-colophon-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.rat-colophon-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.rat-disclaimer {
  font-size: 0.92rem;
  border-top: 1px solid var(--rat-bronze);
  padding-top: 14px;
  margin: 0;
  color: #E4D8C2;
}
.rat-copy { font-size: 0.88rem; color: #E4D8C2; margin: 0; }

/* ===== Cookie-банер ===== */
.rat-cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: var(--rat-paper);
  color: var(--rat-ink);
  border: 2px double var(--rat-burgundy);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(26, 26, 42, 0.25);
}
.rat-cookie-bar p { margin: 0; flex: 1 1 280px; font-size: 0.95rem; }
.rat-cookie-bar a { color: var(--rat-burgundy); }
.rat-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Анімаційний шар: stagger-reveal (JS вмикає лише з класом .js) ===== */
.js .rat-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .rat-stagger.is-in { opacity: 1; transform: none; }

/* ===== Адаптивність ===== */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .rat-brand-name { font-size: 1.05rem; }
  .rat-cookie-bar { padding: 14px; }
}

/* ===== 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 .rat-stagger { opacity: 1; transform: none; }
}