/* ==========================================================================
   V8 — правки: hero-типографика, олива у Мари, пульс-кнопка, отзыв,
   пунктир по центру, компактный оффер, лестница цен 290→4399.
   ========================================================================== */

/* hero: строка «и открой свой персональный» крупнее (+4px) */
.hero-and { font-size: clamp(.85rem, 2.6vw, 1.2rem); }

/* первые три пункта — заметно левее к перфорации; последний (pos4) не трогаем */
.sheet__list .pos1 { transform: translateX(-22%) rotate(-1.6deg); }
.sheet__list .pos2 { transform: translateX(-24%) rotate(1.1deg); }
.sheet__list .pos3 { transform: translateX(-16%) rotate(-.6deg); }

/* штамп — ниже и левее, ближе к тексту на бумаге */
.sheet__stamp { top: clamp(60px, 11vw, 106px); right: clamp(30px, 8vw, 78px); }
@media (max-width: 560px) {
  .sheet__stamp { top: 66px; right: 26px; }
}

/* «поможет тебе собрать путешествие» — рукописный Neucha */
.hero-guide__plain {
  font-family: "Neucha", cursive;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.12;
}

/* ---------- блок Мари ---------- */
.author-secret { color: #8a8330; } /* фирменная олива */

/* пульсирующая «светящаяся» кнопка оплаты */
.btn--glow {
  position: relative;
  text-decoration: none;
  animation: btnGlow 2.2s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,166,35,.55), 0 10px 30px -10px rgba(196,74,12,.6); }
  50% { box-shadow: 0 0 26px 6px rgba(244,166,35,.55), 0 10px 30px -10px rgba(196,74,12,.6); }
}

/* ---------- диари-строка по правому краю ---------- */
.diary-strip__text { text-align: right; }

/* ---------- отзыв: цитата → скриншот → закрытие, колонкой по центру ---------- */
.review-real {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(.7rem, 2vw, 1.1rem);
  max-width: 620px;
  margin-inline: auto;
  background: rgba(28,24,20,.04);
  border: 1px solid rgba(28,24,20,.12);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.review-real__shot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.4);
  max-width: 300px;
}
.review-real__shot img { width: 100%; height: auto; display: block; }
.review-real__quote {
  font-family: "Neucha", cursive;
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--c-dark);
  margin: 0;
}
.review-real__author {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  margin: 0;
}
.review-real__now {
  margin: .4rem 0 0;
  font-size: .92rem;
  opacity: .8;
}
.review-real__now b { color: var(--c-terracotta); }

/* ---------- пунктир «за 30 секунд» строго по центру кругов ---------- */
.steps30 { padding-left: 2.6rem; }
.step30::before { left: -2.6rem; width: 14px; height: 14px; }
.steps30::before { left: 6px; width: 2px; } /* центр круга: 0 + 7px радиуса − 1px полуширины линии */

/* ---------- оффер: компактнее ---------- */
.value-grid { gap: 10px; }
.value-card { padding: 1rem 1.05rem 1.1rem; }
.value-card__ico { margin-bottom: .45rem; }
.value-card__ico img { width: 36px; height: 36px; }
.value-card h3 { font-size: .88rem; margin-bottom: .3em; }
.value-card p { font-size: .82rem; line-height: 1.38; }
@media (min-width: 861px) {
  .value-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- лестница цен (6 ступеней) ---------- */
.price-ladder { flex-wrap: wrap; gap: .4rem; justify-content: center; }
.price-step {
  flex: 0 0 auto;
  min-width: 78px;
  padding: .55rem .6rem;
}
/* все ступени цен — один размер (различаем только цветом/зачёркиванием) */
.price-step { min-width: 84px; padding: .55rem .6rem; }
.price-step__price,
.price-step.is-now .price-step__price,
.price-step.is-past .price-step__price { font-size: .98rem; }
.price-step.is-past .price-step__price {
  text-decoration: line-through;
  opacity: .45;
}
.price-step.is-past { border-color: rgba(241,232,213,.12); }
.price-step__arrow { display: none; }
@media (max-width: 460px) {
  .price-ladder { flex-direction: row; }
}

/* ---------- кнопки: без подчёркивания, акцентный контрастный текст ---------- */
.btn, .nav__cta, .sticky-cta .btn { text-decoration: none; }

/* primary — ярче и жирнее на терракоте */
.btn--primary {
  color: #FFF3E0;
  font-weight: 700;
}

/* nav-CTA — акцентный янтарный текст, выделяется на тёмном hero */
.nav__cta {
  color: var(--c-amber);
  font-weight: 700;
  border-color: rgba(244,166,35,.55);
}
.nav__cta:hover { color: #FFF3E0; }

/* ---------- hero-список: левее, ближе к перфорации листа ---------- */
.sheet__list { transform: translateX(-8%); }
@media (max-width: 560px) {
  .sheet__list {
    transform: translateX(-6%);
    padding-left: clamp(1.4rem, 8%, 2.4rem);
  }
}

/* ---------- оффер: на телефоне по 2 карточки в ряд, иконки мельче ---------- */
@media (max-width: 520px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .value-card { padding: .85rem .8rem 1rem; }
  .value-card__ico img { width: 30px; height: 30px; }
  .value-card h3 { font-size: .82rem; }
  .value-card p { font-size: .76rem; line-height: 1.34; }
}

/* «Мари на связи» + «Личный проводник в кармане» — узкие завершающие плашки на всю ширину */
@media (max-width: 860px) {
  .value-card--wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1rem;
  }
  .value-card--wide .value-card__ico { margin: 0; flex: 0 0 auto; }
  .value-card--wide h3 { margin: 0; flex: 0 1 auto; max-width: 40%; }
  .value-card--wide p { flex: 1 1 auto; margin: 0; }
}
@media (max-width: 420px) {
  .value-card--wide h3 { max-width: 34%; font-size: .92rem; }
}

/* ---------- офер-карточка с таймером: фирменная слива ---------- */
.offer-card {
  background-color: var(--c-plum);
  background-image: var(--paper-plum);
  background-size: 900px;
  color: var(--c-cream);
  border-color: rgba(241,232,213,.2);
}

/* ==========================================================================
   V8.1 — галерея: компактная карусель + лайтбокс по клику
   ========================================================================== */

/* было: 4-колоночный grid на всю ширину секции — растягивал блок.
   стало: горизонтальная лента с прокруткой и снапом, компактная высота. */
.gallery-carousel { position: relative; }

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(148px, 22vw, 208px);
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(241,232,213,.05);
  border: 1px solid rgba(241,232,213,.12);
  cursor: pointer;
}
.gallery__item:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 2px; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  filter: saturate(1.05) contrast(1.03);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }

/* стрелки листания по бокам ленты */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--c-terracotta);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.55);
  transition: background .25s, opacity .25s, transform .25s var(--ease);
}
.gallery-arrow:hover { background: var(--c-amber); transform: translateY(-50%) scale(1.06); }
.gallery-arrow.is-disabled { opacity: .3; pointer-events: none; }
.gallery-arrow--prev { left: -8px; }
.gallery-arrow--next { right: -8px; }
@media (max-width: 720px) {
  .gallery-arrow { width: 32px; height: 32px; }
  .gallery-arrow--prev { left: -4px; }
  .gallery-arrow--next { right: -4px; }
  .gallery__item { width: clamp(128px, 34vw, 168px); }
}

/* лайтбокс: полноэкранный просмотр фото по клику */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,24,20,.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease);
  padding: clamp(1rem, 5vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
body.lightbox-open { overflow: hidden; }

.lightbox__figure { max-width: min(92vw, 880px); margin: 0; text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.65);
}

.lightbox__close {
  position: absolute;
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(241,232,213,.3);
  background: rgba(241,232,213,.08);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .25s;
}
.lightbox__close:hover { background: rgba(241,232,213,.18); }
.lightbox__close span { position: relative; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); display: block; }
.lightbox__close span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--c-terracotta);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .25s;
}
.lightbox__nav:hover { background: var(--c-amber); }
.lightbox__nav--prev { left: clamp(6px, 3vw, 22px); }
.lightbox__nav--next { right: clamp(6px, 3vw, 22px); }
@media (max-width: 560px) {
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__close { width: 36px; height: 36px; }
}
