*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Палитра */
  --color-text:        #1F2E22;
  --color-accent:      #4A6B47;
  --color-cream:       #F5F0E5;
  --color-sky:         #B8D4E3;
  --color-sage:        #C5D2BA;
  --color-white:       #FFFFFF;
  --color-card-shadow: rgba(31, 46, 34, 0.08);

  /* Типографика */
  --font-display: 'Playfair Display', Georgia, serif;
  --fs-hero:    clamp(2.5rem, 7vw, 5rem);
  --fs-h1:      clamp(2rem, 5vw, 3.5rem);
  --fs-h2:      clamp(1.5rem, 3.5vw, 2.25rem);
  --fs-body:    clamp(1rem, 1.4vw, 1.125rem);
  --fs-small:   0.9rem;

  /* Отступы */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Радиусы */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-pill: 9999px;

  /* Layout */
  --max-width:  1100px;
}

body {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Капсула-заголовок (повторяющийся мотив из PDF) */
.section-title {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-pill);
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* Выделение ключевых слов в тексте */
.accent { color: var(--color-accent); font-weight: 700; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text);
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.3) 100%);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.hero__title { font-size: var(--fs-hero); font-weight: 700; line-height: 1.05; }
.hero__subtitle {
  font-size: var(--fs-h2);
  font-style: italic;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.hero__tag {
  font-size: calc(var(--fs-body) * 1.15);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-top: var(--space-sm);
  margin-bottom: calc(var(--space-md) * -0.7);
}
.hero__dates {
  font-size: var(--fs-body);
  font-weight: 500;
}
.hero__handle {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.hero__handle img { width: 1.1em; height: 1.1em; }

/* === Кнопка (используется и в других блоках) === */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-text);
  color: var(--color-cream);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--color-card-shadow);
}

/* === About === */
.about {
  position: relative;
  padding: var(--space-sm) 0 var(--space-xl);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.about > .container { width: 100%; }
.about__bg { position: absolute; inset: 0; z-index: -2; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.about__card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 12px 40px var(--color-card-shadow);
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.about__card > p { text-align: left; }
.about__card .section-title {
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  font-size: calc(var(--fs-h2) * 0.85);
  margin-bottom: var(--space-xs);
}
.about__note-text {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(31, 46, 34, 0.15);
  font-size: var(--fs-small);
  font-style: italic;
}

/* === Checklist === */
.checklist {
  position: relative;
  padding: var(--space-sm) 0 var(--space-xl);
  background: var(--color-sage);
  overflow: hidden;
}
.checklist__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.checklist__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.checklist > .container { position: relative; z-index: 1; max-width: 1100px; }
.checklist .section-title {
  display: block;
  margin: 0 auto var(--space-lg);
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  font-size: calc(var(--fs-h2) * 0.85);
}
/* Carousel */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: var(--space-sm) 0;
  flex: 1;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .polaroid {
  flex: 0 0 calc((100% - var(--space-md) * 3) / 4);
  scroll-snap-align: start;
  max-width: none;
}
@media (max-width: 900px) {
  .carousel__track > .polaroid {
    flex: 0 0 calc((100% - var(--space-md)) / 2);
  }
}
@media (max-width: 600px) {
  .carousel__track > .polaroid {
    flex: 0 0 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}
.carousel__btn {
  background: var(--color-cream);
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0 0 4px 0;
}
.carousel__btn:hover {
  background: var(--color-text);
  color: var(--color-cream);
}
.polaroid {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  padding-top: calc(var(--space-md) + 4px);
  box-shadow: 0 8px 24px var(--color-card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  max-width: 260px;
  width: 100%;
}
.polaroid__wave {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 22px;
  background: var(--color-sky);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.polaroid p {
  font-size: var(--fs-small);
  line-height: 1.4;
}

/* === Program === */
.program {
  position: relative;
  padding: var(--space-sm) 0 var(--space-xl);
  overflow: hidden;
}
.program__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.program__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.program > .container { position: relative; z-index: 1; max-width: 1100px; }
.program .section-title {
  display: block;
  margin: 0 auto var(--space-xs);
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  font-size: calc(var(--fs-h2) * 0.85);
}
.program__note {
  text-align: center;
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
  opacity: 0.85;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.day-circle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs);
  text-align: center;
  transition: transform 0.2s ease;
}
.day-circle:hover { transform: translateY(-3px); }
.day-circle__img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-cream);
  box-shadow: 0 6px 18px var(--color-card-shadow);
  display: block;
}
.day-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.day-circle strong {
  font-size: var(--fs-body);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.day-circle__label {
  font-size: var(--fs-small);
  max-width: 160px;
}
.day-circle[aria-expanded="true"] .day-circle__img {
  border-color: var(--color-accent);
}
.day-detail {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  box-shadow: 0 8px 24px var(--color-card-shadow);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  min-height: 260px;
}
.day-detail h3 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-accent);
}
.day-detail ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.day-detail li {
  padding-left: var(--space-sm);
  position: relative;
  line-height: 1.5;
}
.day-detail li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Program carousel item sizing (uses shared .carousel, .carousel__btn, .carousel__track classes) */
.program .carousel { margin-bottom: 0; }
.program .carousel__track { padding-top: 0; padding-bottom: 0; }
.carousel__track > .day-circle {
  flex: 0 0 calc((100% - var(--space-md) * 3) / 4);
  scroll-snap-align: start;
  max-width: none;
}
@media (max-width: 900px) {
  .carousel__track > .day-circle {
    flex: 0 0 calc((100% - var(--space-md) * 2) / 3);
  }
}
@media (max-width: 600px) {
  .carousel__track > .day-circle {
    flex: 0 0 100%;
  }
  .day-circle__img { width: 130px; height: 130px; border-width: 3px; }
  .program .carousel { gap: var(--space-xs); }
}

/* === Stay === */
.stay {
  padding: var(--space-sm) 0 var(--space-xl);
  background: var(--color-cream);
}
.stay .section-title {
  display: block;
  margin: 0 auto var(--space-lg);
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  font-size: calc(var(--fs-h2) * 0.85);
}
.stay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .stay__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
.stay__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Stay single-photo carousel */
.stay-carousel {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  height: 100%;
  min-height: 280px;
}
.stay-carousel__viewport {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--color-card-shadow);
  height: 100%;
  min-width: 0;
}
.stay-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}
.stay-carousel__track::-webkit-scrollbar { display: none; }
.stay-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}
.stay-slide picture, .stay-slide img {
  width: 100%;
  height: 100%;
  display: block;
}
.stay-slide img { object-fit: cover; }
.stay-carousel__btn {
  background: var(--color-cream);
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0 3px 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.stay-carousel__btn:hover {
  background: var(--color-text);
  color: var(--color-cream);
}
@media (max-width: 800px) {
  .stay-carousel { min-height: 240px; }
  .stay-carousel__viewport { aspect-ratio: 4 / 3; height: auto; }
}

/* === Hosts === */
.hosts {
  position: relative;
  padding: var(--space-sm) 0 var(--space-xl);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hosts__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hosts__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hosts > .container { position: relative; z-index: 1; max-width: 1100px; width: 100%; }
.hosts .section-title {
  display: block;
  margin: 0 auto var(--space-xs);
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  font-size: calc(var(--fs-h2) * 0.85);
}
.hosts__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin: 0 auto var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--fs-body);
  font-weight: 500;
  width: fit-content;
}
.hosts__handle img { width: 1.1em; height: 1.1em; }
.hosts__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 800px) {
  .hosts__cards { grid-template-columns: 1fr; }
}
.host-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-sm);
  align-items: start;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: 0 8px 24px var(--color-card-shadow);
}
.host-card__photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px var(--color-card-shadow);
}
.host-card__photo img[src*="hosts-sasha"] { object-position: center top; }
.host-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.host-card__text h3 {
  font-size: calc(var(--fs-h2) * 0.85);
  font-weight: 700;
  color: var(--color-accent);
}
.host-card__text p {
  font-size: var(--fs-small);
  line-height: 1.4;
}
@media (max-width: 480px) {
  .host-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .host-card__photo img { margin: 0 auto; }
}

/* === FAQ === */
.faq {
  position: relative;
  padding: var(--space-sm) 0 var(--space-xl);
  overflow: hidden;
}
.faq__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.faq__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.faq > .container { position: relative; z-index: 1; max-width: 900px; }
.faq .section-title {
  display: block;
  margin: 0 auto var(--space-md);
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  font-size: calc(var(--fs-h2) * 0.85);
}
.faq-item {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  box-shadow: 0 4px 12px var(--color-card-shadow);
}
.faq-item summary {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 18px;
  height: 18px;
  background: url('assets/icons/chevron-down.svg') no-repeat center / contain;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item > p,
.faq-item > ul {
  margin-top: var(--space-sm);
}
.faq-item p + p { margin-top: var(--space-xs); }
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.faq-list li {
  position: relative;
  padding-left: 1.75rem;
}
.faq-list--yes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 1.1rem;
  height: 1.1rem;
  background: url('assets/icons/check.svg') no-repeat center / contain;
}
.faq-list--no li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 1.1rem;
  height: 1.1rem;
  background: url('assets/icons/cross.svg') no-repeat center / contain;
}
.faq-note {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(31, 46, 34, 0.15);
  font-size: var(--fs-small);
}

/* === CTA === */
.cta {
  position: relative;
  padding: var(--space-xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-cream);
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(31,46,34,0.35), rgba(31,46,34,0.7));
}
.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.cta__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  margin-bottom: calc(var(--space-md) * -0.85);
}
.cta__sub {
  font-size: var(--fs-body);
  max-width: 620px;
}
.btn--large {
  font-size: calc(var(--fs-body) * 1.25);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-cream);
}
.cta__handle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 500;
}
.cta__handle svg { width: 1.1em; height: 1.1em; }
.cta__handle img { width: 1.1em; height: 1.1em; }

/* === Footer === */
.footer {
  padding: var(--space-md);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text);
  opacity: 0.7;
}

/* === Sticky CTA (mobile only) === */
.sticky-cta {
  display: none;
  position: fixed;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-cream);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sticky-cta--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
@media (max-width: 800px) {
  .sticky-cta { display: inline-block; }
  .footer { padding-bottom: calc(var(--space-md) * 2.5); }
}

/* === Cookie banner === */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-text);
  color: var(--color-cream);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--fs-small);
}
.cookie-banner p { margin: 0; }
.cookie-banner__btn {
  background: var(--color-cream);
  color: var(--color-text);
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.cookie-banner__btn:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
