/* Segment landings: tabs between audiences, colour themes and simplified
   blocks for the women-only and couples-only pages. */

.landing-segments {
  border-top: 1px solid rgba(250, 246, 235, 0.12);
}

.landing-segments__inner {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-block: 10px;
}

.landing-segments a {
  flex: none;
  padding: 8px 16px;
  border: 1px solid rgba(250, 246, 235, 0.28);
  border-radius: 999px;
  color: var(--landing-paper);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-segments a:hover {
  background: rgba(250, 246, 235, 0.12);
}

.landing-segments a[aria-current="page"] {
  background: var(--landing-paper);
  border-color: var(--landing-paper);
  color: var(--landing-forest);
}

@media (max-width: 520px) {
  .landing-segments__inner {
    gap: 4px;
    padding-block: 8px;
  }

  .landing-segments a {
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}

/* Colour themes. The landing palette is driven by --landing-* variables. */
body.landing-v2.landing-theme-women {
  --landing-forest: #4a1019;
  --landing-forest-deep: #3a0b13;
  --landing-leaf: #5e1a25;
  --landing-wine: #a8364a;
  --landing-wine-soft: #e0a3ac;
  --landing-yellow: #e6b26a;
}

body.landing-v2.landing-theme-women .landing-header {
  background: rgba(74, 16, 25, 0.94);
}

body.landing-v2.landing-theme-couples {
  --landing-forest: #14243f;
  --landing-forest-deep: #0e1a30;
  --landing-leaf: #1d3356;
  --landing-wine: #2f5a9a;
  --landing-wine-soft: #9fb6dc;
  --landing-yellow: #e2b65e;
}

body.landing-v2.landing-theme-couples .landing-header {
  background: rgba(20, 36, 63, 0.94);
}

/* "Как это работает": plain 3×2 grid with the button below it. */
@media (min-width: 761px) {
  body.landing-v2.landing-segment-page .landing-process {
    height: auto;
    min-height: 0;
    padding-bottom: 96px;
  }

  body.landing-v2.landing-segment-page .landing-process__list {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    column-gap: 32px;
    row-gap: 48px;
  }

  body.landing-v2.landing-segment-page .landing-process__list article,
  body.landing-v2.landing-segment-page .landing-process__list article:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    min-height: 0;
  }

  body.landing-v2.landing-segment-page .landing-process .landing-button {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    margin: 56px auto 0;
    transform: none;
  }

  body.landing-v2.landing-segment-page .landing-process .landing-button:hover {
    transform: translateY(-4px);
  }
}

/* "Почему стоит попробовать": text cards instead of the photo collage. */
body.landing-v2.landing-segment-page .landing-reasons {
  height: auto;
  min-height: 0;
  padding-bottom: 96px;
}

/* Heading centred like the other sections, with its title visible. */
body.landing-v2.landing-segment-page .landing-reasons .landing-wrap {
  width: min(100% - 160px, 1440px);
  max-width: none;
  margin-inline: auto;
}

body.landing-v2.landing-segment-page .landing-reasons .landing-section-heading {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0 0 56px;
  text-align: center;
  transform: none;
}

body.landing-v2.landing-segment-page .landing-reasons .landing-kicker {
  position: relative;
  inset: auto;
  width: fit-content;
  margin: 0 auto 28px;
  font-size: 30px;
  line-height: 1;
  text-align: center;
  white-space: normal;
  transform: none;
}

body.landing-v2.landing-segment-page .landing-reasons .landing-section-heading h2 {
  display: block;
  position: static;
  max-width: 900px;
  margin: 0 auto;
  font-family: "Piazzolla", serif;
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: var(--landing-paper);
  transform: none;
}

@media (max-width: 760px) {
  body.landing-v2.landing-segment-page .landing-reasons .landing-wrap {
    width: min(100% - 32px, 1440px);
  }

  body.landing-v2.landing-segment-page .landing-reasons .landing-section-heading {
    margin-bottom: 32px;
  }

  body.landing-v2.landing-segment-page .landing-reasons .landing-kicker {
    margin-bottom: 20px;
    font-size: 20px;
  }
}

body.landing-v2.landing-segment-page .landing-reasons__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
  height: auto;
  margin: 0;
}

body.landing-v2.landing-segment-page .landing-reasons article,
body.landing-v2.landing-segment-page .landing-reasons article:nth-child(n) {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 28px 24px 32px;
  border: 1px solid rgba(250, 246, 235, 0.22);
  border-radius: 24px;
  transform: none;
}

body.landing-v2.landing-segment-page .landing-reasons img {
  display: none;
}

body.landing-v2.landing-segment-page .landing-reasons h3,
body.landing-v2.landing-segment-page .landing-reasons p {
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  transform: none;
  text-align: left;
  hyphens: manual;
}

body.landing-v2.landing-segment-page .landing-reasons h3 {
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.15;
}

body.landing-v2.landing-segment-page .landing-reasons p {
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 1199px) {
  body.landing-v2.landing-segment-page .landing-reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.landing-v2.landing-segment-page .landing-reasons__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

/* Few events: keep the static cards centred instead of hugging the left. */
body.landing-v2.landing-segment-page [data-events-static="true"] .landing-events-carousel__track {
  justify-content: center;
}

/* Story block: give the text a readable measure instead of a narrow column. */
@media (min-width: 761px) {
  body.landing-v2.landing-segment-page .landing-question__text {
    width: min(100%, 680px);
    max-width: none;
    margin-inline: auto;
  }

  body.landing-v2.landing-segment-page .landing-question__text p {
    width: auto;
    max-width: none;
    font-size: 18px;
    line-height: 1.5;
  }
}

/* Women page hero uses a photo of two guests; stretch it across the hero. */
body.landing-v2.landing-theme-women .landing-hero__media img {
  width: 100%;
  height: clamp(320px, 42vw, 640px);
  object-fit: cover;
  object-position: center 35%;
}

/* Price block: give the list and the note some air on desktop. */
@media (min-width: 761px) {
  body.landing-v2.landing-segment-page .landing-price li {
    line-height: 1.3;
  }

  body.landing-v2.landing-segment-page .landing-price__note {
    margin-top: 14px;
    line-height: 1.3;
  }
}

/* Tabs: use the full width on tablets so the three pills never leave the container. */
@media (max-width: 760px) {
  .landing-segments .landing-wrap {
    width: min(100% - 24px, 1440px);
  }

  .landing-segments__inner {
    flex-wrap: wrap;
  }
}
