/* --- Fonts --- */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spectral-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spectral-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Custom properties --- */
:root {
  --ink: #0E1B22;
  --sea: #12303A;
  --limestone: #E9E2D4;
  --dawn: #E8A87C;
  --haze: #8FA8AD;
  --path: #C9B896;
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max-w: 68ch;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.06rem, 0.95rem + 0.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--limestone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dawn); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 2px; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(to bottom, rgba(14,27,34,0.8) 0%, transparent 100%);
  pointer-events: none;
}

.lang-switch {
  pointer-events: auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lang-switch a {
  color: var(--haze);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: color 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--limestone);
}

.lang-switch .sep {
  color: var(--haze);
  opacity: 0.4;
  margin: 0 0.15rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: -20% 0 0 0;
  z-index: -2;
  height: 120%;
  background: linear-gradient(165deg, var(--sea) 0%, var(--ink) 60%, #0a1419 100%);
  will-change: transform;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--ink) 0%, rgba(14,27,34,0.4) 50%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw + 1rem, 4rem);
  line-height: 1.15;
  color: var(--limestone);
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem);
  color: var(--haze);
  margin-bottom: 2rem;
}

/* --- CTA Button --- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--dawn);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.06rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,168,124,0.25);
}

.cta:focus-visible {
  outline: 2px solid var(--limestone);
  outline-offset: 3px;
}

.cta svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* --- Trail SVG --- */
.trail-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.trail-line {
  fill: none;
  stroke: var(--path);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
  opacity: 0.3;
}

.trail-star {
  fill: var(--path);
  opacity: 0.9;
}

/* --- Section styling --- */
.section--alt {
  background: var(--sea);
}

section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem);
  color: var(--limestone);
  margin-bottom: 1.5rem;
}

section p {
  margin-bottom: 1.25rem;
  max-width: var(--max-w);
}

section p:last-child {
  margin-bottom: 0;
}

.text-secondary {
  color: var(--haze);
}

/* --- Image placeholders --- */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sea) 0%, var(--ink) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--haze);
  font-size: 0.875rem;
  opacity: 0.5;
  margin: 1.5rem 0;
}

.img-placeholder--portrait {
  aspect-ratio: 3/4;
  max-width: 320px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* --- Not-for-you section --- */
.not-for-you {
  border-left: 3px solid var(--dawn);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.not-for-you p {
  color: var(--haze);
}

/* --- Format card --- */
.format-card {
  background: var(--sea);
  border-radius: 10px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.section--alt .format-card {
  background: var(--ink);
}

.format-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.format-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.format-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.format-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--dawn);
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dawn);
  margin-bottom: 0.5rem;
}

.price-early {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--limestone);
  margin-bottom: 1rem;
}

/* --- Guide block --- */
.guide {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.guide__photo {
  width: 200px;
  flex-shrink: 0;
}

.guide__photo .img-placeholder {
  aspect-ratio: 3/4;
  margin: 0;
  border-radius: 10px;
}

.guide__text p {
  color: var(--haze);
}

.guide__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--limestone);
  margin-bottom: 0.5rem;
}

/* --- FAQ --- */
.faq-list {
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid rgba(143,168,173,0.15);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid rgba(143,168,173,0.15);
}

.faq-q {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.06rem;
  color: var(--limestone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--dawn);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 0.75rem;
}

.faq-a p {
  color: var(--haze);
  font-size: 0.95rem;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 5rem 0;
}

.final-cta h2 {
  margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(143,168,173,0.1);
  text-align: center;
  font-size: 0.875rem;
  color: var(--haze);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--haze);
}

.footer-copy {
  opacity: 0.5;
}

/* --- Messenger popup --- */
.msg-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14,27,34,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.msg-overlay.open {
  opacity: 1;
  visibility: visible;
}

.msg-popup {
  position: fixed;
  z-index: 201;
  background: var(--sea);
  border: 1px solid rgba(143,168,173,0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.msg-popup.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.msg-popup a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  color: var(--limestone);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

.msg-popup a:hover {
  background: rgba(143,168,173,0.1);
  opacity: 1;
}

.msg-popup a:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: -2px;
}

.msg-popup svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .msg-popup {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    width: 100%;
  }
  .msg-popup.open {
    transform: translateY(0);
  }
  .msg-popup a {
    padding: 1rem 1.5rem;
    font-size: 1.06rem;
  }
}

/* --- Sticky mobile CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: rgba(14,27,34,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(143,168,173,0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .cta {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .trail-line {
    stroke-dashoffset: 0 !important;
  }
  .faq-a {
    transition: none;
  }
}

/* --- Responsive --- */
@media (min-width: 640px) {
  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 2rem;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .sticky-cta {
    display: none !important;
  }
}

@media (min-width: 960px) {
  section {
    padding: 6rem 0;
  }

  .container {
    padding: 0 2.5rem;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Mobile: show sticky CTA */
@media (max-width: 639px) {
  .sticky-cta {
    display: block;
  }

  main {
    padding-bottom: 4rem;
  }
}
