/* ==========================================================================
   Блоки главной страницы.
   Перенесено с артборда «01 Главная - Ритуал полная.dc.html»: сетки,
   отступы, размеры шрифтов и цвета — как в макете.
   ========================================================================== */

/* ------------------------------------------- заголовок секции по макету */
.shead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-bottom: 40px;
}
.shead--top { align-items: flex-start; gap: 40px; margin-bottom: 56px; }
.shead__note {
  font-weight: 300; font-size: 14.5px; line-height: 1.8;
  color: var(--tx-dim-2); max-width: 340px;
}

/* ------------------------------------------------- баннер-призыв в конце */
.banner {
  margin-top: 40px;
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse 70% 90% at 88% 0%, rgba(230, 190, 152, .16), transparent 60%), var(--surface);
  padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.banner__t {
  font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15;
  color: var(--tx-hi); margin-bottom: 12px; text-wrap: pretty;
}
.banner__d { font-weight: 300; font-size: 15px; line-height: 1.75; color: var(--tx-mute); max-width: 520px; }
.banner__acts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* --------------------------------------------------- табы-метки программ */
.ptabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.ptab {
  display: inline-flex; align-items: center;
  font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--bd-30); border-radius: 5px;
  padding: 9px 15px; cursor: pointer; color: var(--tx-mute-2);
  transition: background .18s, color .18s, border-color .18s;
}
.ptab:hover { color: var(--tx-hi); border-color: var(--bd-50); }
.ptab.is-on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }

/* --------------------------------- строка программы: точная сетка макета */
.prow {
  grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, .9fr) 120px 150px 34px;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--bd-22);
}
.prow:last-of-type { border-bottom: none; }
.prows { display: flex; flex-direction: column; border-bottom: 1px solid var(--bd-22); }
.prow__num { font-weight: 500; font-size: 15px; color: var(--acc-lt); }
.prow__name { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.prow__name b {
  font-weight: 700; letter-spacing: -.02em; font-size: 23px; line-height: 1.2; color: var(--tx-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.prow__chips { display: flex; gap: 6px; flex-shrink: 1; min-width: 0; overflow: hidden; }
.prow__desc { font-weight: 300; font-size: 14px; line-height: 1.7; color: var(--tx-dim-2); }
.prow__dur { font-weight: 400; font-size: 19px; color: var(--tx-mute-2); white-space: nowrap; }
.prow__price { font-weight: 600; font-size: 28px; letter-spacing: -.02em; color: var(--tx-hi); white-space: nowrap; text-align: right; }
.prow__go { font-size: 18px; color: var(--acc-lt); text-align: right; }

/* мелкая метка внутри строки */
.chip-sm {
  font-weight: 500; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-mute-2); background: transparent;
  border: 1px solid var(--bd-30); border-radius: 5px;
  padding: 3px 8px; white-space: nowrap; line-height: 1.4;
}

/* ------------------------------------------------- карусель с кнопками */
.carousel { position: relative; }
.crail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.crail::-webkit-scrollbar { display: none; }
.crail > * { scroll-snap-align: start; }
.crail--4 > * { flex: 0 0 calc((100% - 60px) / 4); }
.crail--33 > * { flex: 0 0 calc((100% - 40px) / 3.3); }

/* акции сеткой, когда их три или меньше */
.pgrid { display: grid; gap: 20px; }
.pgrid--1 { grid-template-columns: minmax(0, 420px); }
.pgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

.carr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(230, 190, 152, .4);
  background: var(--surface); color: var(--tx);
  font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
}
.carr:hover { border-color: var(--acc); color: var(--acc-lt); }
.carr--prev { left: -23px; }
.carr--next { right: -23px; }

.cdots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 34px; }
.cdot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(230, 190, 152, .45); background: transparent;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.cdot.is-on { background: var(--acc); border-color: var(--acc); }

/* ------------------------------------------------------- карточка акции */
.pcard2 {
  border-radius: var(--r-xl);
  overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column;
}
.pcard2__img { height: 230px; background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat; }
.pcard2__body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard2__kicker { font-weight: 500; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc-lt); margin-bottom: 14px; }
.pcard2__t { font-weight: 700; letter-spacing: -.02em; font-size: 21px; line-height: 1.2; color: var(--tx-soft); margin-bottom: 10px; text-wrap: pretty; }
.pcard2__d { font-weight: 300; font-size: 13.5px; line-height: 1.6; color: var(--tx-dim-2); margin-bottom: 26px; }
.pcard2__acts { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- рулетка */
.slot {
  border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 20% 0%, rgba(230, 190, 152, .14), transparent 60%), var(--surface);
  padding: 76px 68px;
}
.slot__head { text-align: center; margin-bottom: 44px; }
.slot__reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: 0 auto 32px; }
.slot__reel { display: flex; flex-direction: column; gap: 14px; }

/* окно барабана: кадры вытянутые, 3:4 */
.slot__win {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(230, 190, 152, .12);
}
/* затемнение сверху и снизу — кадр выглядит как в прорези автомата */
.slot__win::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(13,10,8,.55), transparent 22%, transparent 78%, rgba(13,10,8,.55));
}
.slot__strip { display: flex; flex-direction: column; will-change: transform; }
.slot__cell {
  flex: 0 0 100%; height: 100%;
  background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.slot__win.is-spin .slot__strip { filter: blur(5px) brightness(.72); }
.slot__win.is-slow .slot__strip { filter: blur(1.5px) brightness(.9); }
.slot__win.is-hit { animation: slotHit .45s ease; }
@keyframes slotHit {
  0% { box-shadow: inset 0 0 0 1px rgba(230, 190, 152, .12); }
  40% { box-shadow: inset 0 0 0 2px var(--acc), 0 0 30px rgba(230, 190, 152, .45); }
  100% { box-shadow: inset 0 0 0 1px rgba(230, 190, 152, .12); }
}
.slot__cap { font-weight: 400; font-size: 12.5px; letter-spacing: .06em; color: var(--tx-mute-2); min-height: 34px; text-align: center; }
.slot__out { font-weight: 400; font-size: 14.5px; color: var(--acc-lt); min-height: 26px; margin-bottom: 26px; }

/* ------------------------------------------------------- особые случаи */
.occ { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.occ__img { height: 240px; background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat; }
.occ__body { padding: 30px 28px; }
.occ__t { font-weight: 700; letter-spacing: -.02em; font-size: 22px; color: var(--tx-soft); margin-bottom: 12px; }
.occ__d { font-weight: 300; font-size: 14px; line-height: 1.75; color: var(--tx-dim-2); margin-bottom: 22px; }

/* -------------------------------------------------- подарочные номиналы */
.cert-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.certcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cert {
  border-radius: var(--r-xl); background: var(--surface);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 8px;
}
.cert__k { font-weight: 500; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-faint); }
.cert__v { font-weight: 700; letter-spacing: -.02em; font-size: 26px; color: var(--tx-hi); }
.cert__v--sm { font-size: 21px; }
.cert__d { font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--tx-dim-2); }

/* ------------------------------------------------------------ интерьеры */
.intrail { gap: 14px; }
.intrail > * { flex: 0 0 calc((100% - 42px) / 4); height: 400px; }
.int {
  padding: 0; border: none; cursor: pointer; border-radius: 0; overflow: hidden;
  position: relative;
  background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Наведение как в галерее мастера: приближается отдельный слой с кадром. */
.int::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .35s;
}
.int:hover::before, .int:focus-visible::before {
  transform: scale(1.06); filter: brightness(1.06) saturate(1.06);
}

/* ------------------------------------------------------------ Crazy-меню */
/* две колонки по 5 строк, заполняются сверху вниз — как в макете */
.crazy { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 0 56px; }
.crazy__i { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--bd-20); }
.crazy__n { font-weight: 400; font-size: 15px; color: var(--tx); }
.crazy__l { flex: 1; border-bottom: 1px dotted var(--bd-30); }
.crazy__p { font-weight: 500; font-size: 15px; color: var(--acc-lt); white-space: nowrap; }
.crazy__note { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 34px; }

/* ------------------------------------------------------------- отзывы */
.rate { display: flex; gap: 14px; flex-wrap: wrap; flex: 1 1 440px; min-width: 300px; }
.rate__c {
  flex: 1 1 190px; min-width: 180px;
  border-radius: var(--r-xl); background: var(--surface);
  padding: 22px 24px;
}
.rate__n { font-weight: 700; letter-spacing: -.02em; font-size: 28px; color: var(--tx-hi); line-height: 1; }
.rate__s { font-weight: 300; font-size: 13px; color: var(--tx-dim-2); margin-top: 8px; }

.quote {
  border-radius: var(--r-xl); padding: 30px 28px;
  background: var(--surface);
  display: flex; flex-direction: column;
}
.quote__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.quote__stars { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; color: var(--tx); }
.quote__stars i { color: var(--acc-lt); font-size: 12px; line-height: 1; font-style: normal; }
.quote__src { font-weight: 500; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-faint); }
.quote__t { font-weight: 700; letter-spacing: -.02em; font-size: 20px; line-height: 1.25; color: var(--tx-hi); margin-bottom: 12px; text-wrap: pretty; }
.quote__d { font-weight: 300; font-size: 13.5px; line-height: 1.75; color: var(--tx-mute); margin-bottom: 22px; }
.quote__foot {
  margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(230, 190, 152, .18);
}
.quote__who { font-weight: 400; font-size: 13px; color: var(--tx-mute-2); }
.quote__at { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 400; font-size: 12px; color: var(--acc-lt); white-space: nowrap; }
.quote__ava {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background-color: var(--bg); background-position: center; background-size: cover;
  border: 1px solid rgba(230, 190, 152, .4);
}

/* ------------------------------------------ аккордеон в стиле макета */
.acc--plain { gap: 0; }
.acc--plain .acc__it { background: none; border: none; border-top: 1px solid var(--bd-20); border-radius: 0; }
.acc--plain .acc__btn { padding: 24px 0; }
.acc--plain .acc__q { font-weight: 400; font-size: 16.5px; color: var(--tx-soft); }
.acc--plain .acc__ico { border: none; width: auto; height: auto; color: var(--acc-lt); }
.acc--plain .acc__body { padding: 0 0 26px; }
.acc--plain .acc__a { font-weight: 300; font-size: 14.5px; line-height: 1.85; color: var(--tx-mute); max-width: 700px; }

/* -------------------------------------------------------- блок контактов */
.cgrid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.cinfo { display: flex; flex-direction: column; gap: 24px; margin-bottom: 34px; }
.cinfo__k { font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: 8px; }
.cinfo__tel { font-weight: 700; letter-spacing: -.02em; font-size: 28px; color: var(--tx-hi); }
.cinfo__v { font-weight: 300; font-size: 15.5px; line-height: 1.6; color: var(--tx); }
.cinfo__v small { color: var(--tx-dim-2); font-size: 13.5px; }

.cmap { border-radius: var(--r-xl); overflow: hidden; }
.cmap iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(.4) brightness(.8) contrast(1.05); }
.cmap__foot {
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--bd-20);
}

/* --------------------------------------------------- адаптив главной */
@media (max-width: 1440px) {
  .carr--prev { left: 8px; }
  .carr--next { right: 8px; }
}

@media (max-width: 1180px) {
  .prow { grid-template-columns: 56px minmax(0, 1.3fr) 120px 150px 34px; gap: 22px; }
  .prow__desc { display: none; }
}

@media (max-width: 1080px) {
  .cgrid, .cert-grid { grid-template-columns: 1fr; gap: 40px; }
  .slot { padding: 48px 28px; }
  .banner { padding: 36px 28px; }
  .crail--4 > *, .intrail > * { flex: 0 0 calc((100% - 20px) / 2); }
  .crail--33 > * { flex: 0 0 calc((100% - 20px) / 2.2); }
}

@media (max-width: 900px) {
  .crazy { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

@media (max-width: 820px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; padding: 22px 0; }
  .prow__num, .prow__go { display: none; }
  .prow__name { flex-wrap: wrap; }
  .prow__name b { white-space: normal; font-size: 20px; }
  .prow__price { font-size: 22px; }
  .prow__dur { font-size: 15px; }
}

@media (max-width: 560px) {
  /* на узких экранах кнопки баннера перестают быть неразрывными */
  .banner { padding: 28px 20px; }
  .banner__acts { flex-shrink: 1; width: 100%; }
  .banner__acts > * { flex: 1 1 100%; }
}

@media (max-width: 700px) {
  .crail--4 > *, .crail--33 > *, .intrail > * { flex: 0 0 86%; }
  .carr { display: none; }
  .intrail > * { height: 300px; }
  .slot__reels { gap: 12px; }
  .slot { padding: 40px 20px; }
  .certcards { grid-template-columns: 1fr 1fr; }
}
