/* Surprise Guru — фирменный стиль
   Палитра со скрина: белый фон, розовый акцент #FF296A */

:root {
    --pink: #FF296A;
    --pink-dark: #E31355;
    --pink-soft: #FFF0F5;
    --ink: #14121A;
    --ink-60: #5C5866;
    --ink-40: #8B8795;
    --line: #ECEAF0;
    --bg: #FFFFFF;
    --bg-soft: #F7F6F9;
    --r-lg: 28px;
    --r-md: 20px;
    --r-sm: 14px;
    --shadow: 0 18px 50px -24px rgba(20, 18, 26, .28);
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* якорные секции не прячутся под липкой шапкой */
[id] { scroll-margin-top: 84px; }

/* страница не едет вбок ни при каких условиях */
/* overflow-x на html/body делает их контейнером для position:fixed
   (таббар отрывается от низа) — поэтому только ограничиваем ширину */
html, body { max-width: 100%; }
body > * { max-width: 100%; }
.wrap, .section, .card, .comp, .addon, .bundle { min-width: 0; }

body {
    margin: 0;
    font-family: 'Commissioner', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* браузер рисует свою серую кнопку — сбрасываем сразу для всех */
button {
    font: inherit; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background: none; border: 0; margin: 0; color: inherit;
}

h1, h2, h3, h4 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0;
}

h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */

.header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top);
}

.header__row {
    display: flex; align-items: center; gap: 14px;
    height: 68px;
}

.logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800; font-size: 21px; letter-spacing: -.04em;
    color: var(--pink); white-space: nowrap;
}
.logo span { color: var(--ink); }

/* выбор города */
.city { position: relative; flex: 0 0 auto; }
.city__btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 40px; padding: 0 12px;
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    font-size: 14px; color: var(--ink); max-width: 140px;
}
.city__btn svg { width: 16px; height: 16px; color: var(--pink); flex: 0 0 auto; }
.city__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city__chev { color: var(--ink-40) !important; width: 14px !important; height: 14px !important; transition: transform .18s; }
.city.is-open .city__chev { transform: rotate(180deg); }
.city__drop {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
    min-width: 208px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow);
}
.city.is-open .city__drop { display: block; }
.city__title { font-size: 12px; color: var(--ink-40); margin: 2px 6px 8px; }
.city__drop a {
    display: block; padding: 10px 10px; border-radius: var(--r-sm);
    font-size: 14.5px; color: var(--ink);
}
.city__drop a:hover { background: var(--bg-soft); }
.city__drop a.is-active { color: var(--pink); font-weight: 600; background: var(--pink-soft); }

/* шапка-лендинг: логотип · телефон по центру · город. Меню не выводим */
.nav, .burger, .mobile-menu { display: none !important; }

.header__side { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.header__phone {
    display: none; flex: 1; text-align: center;
    font-weight: 700; font-size: 17px; white-space: nowrap;
    letter-spacing: -.01em; transition: color .18s;
}
.header__phone:hover { color: var(--pink); }

@media (max-width: 759px) {
    .header__row { flex-wrap: nowrap; height: 60px; }

    /* телефон в узкую шапку не влезает — он есть в подвале и в контактах */
    .header__phone { display: none; }
    .city__btn { height: 36px; padding: 0 12px; font-size: 14px; max-width: 160px; }
    .logo { font-size: 20px; }
}

.mobile-menu {
    display: none; border-top: 1px solid var(--line);
    background: #fff; padding: 12px 0 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
    display: block; padding: 13px 4px; font-size: 17px;
    border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px;
    border-radius: 999px; border: 0;
    font-weight: 600; font-size: 15px;
    background: var(--pink); color: #fff;
    transition: transform .16s ease, background .16s ease, box-shadow .16s;
    box-shadow: 0 10px 26px -12px rgba(255, 41, 106, .9);
}
.btn:hover { background: var(--pink-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--bg-soft); border-color: #DCD8E4; }

.btn--white { background: #fff; color: var(--pink); box-shadow: none; }
.btn--white:hover { background: #fff; opacity: .9; }

.btn--wide { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 26px 0 8px; }

.hero__card {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, #FF296A 0%, #FF5C8D 52%, #FF8FB0 100%);
    color: #fff;
    padding: 34px 22px 30px;
    box-shadow: var(--shadow);
}
.hero__card::after {
    content: ''; position: absolute; right: -90px; top: -90px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .13);
}
.hero__card::before {
    content: ''; position: absolute; left: -60px; bottom: -120px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.hero__inner { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__text { font-size: clamp(1rem, 2.2vw, 1.15rem); opacity: .94; margin-bottom: 22px; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; position: relative; z-index: 2; }
.hero__stat b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; line-height: 1; }
.hero__stat span { font-size: 13px; opacity: .85; }

/* ---------- Category pills (как на скрине) ---------- */

.pills {
    display: flex; gap: 14px; overflow-x: auto; padding: 22px 18px 6px;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    margin: 0 auto; max-width: var(--max);
}
.pills::-webkit-scrollbar { display: none; }

.pill { flex: 0 0 auto; width: 78px; text-align: center; scroll-snap-align: start; }
.pill__img {
    width: 72px; height: 72px; border-radius: 50%;
    padding: 3px; border: 2px solid var(--pink);
    margin: 0 auto 7px; background: #fff;
}
.pill__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pill span { font-size: 12.5px; line-height: 1.25; color: var(--ink-60); display: block; }
.pill:hover span { color: var(--pink); }

/* ---------- Sections ---------- */

.section { padding: 30px 0; }
.section__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 14px; margin-bottom: 16px;
}
.section__head a { font-size: 14px; color: var(--pink); font-weight: 600; white-space: nowrap; }
.section__sub { color: var(--ink-60); margin: -6px 0 18px; max-width: 60ch; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.grid > * { min-width: 0; }

.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* фото ещё не загрузили — мягкая заглушка вместо чужого кадра */
img.is-placeholder, img[src$="placeholder.svg"] { object-fit: contain; background: var(--pink-soft); }

/* ---------- Листалка фото в карточке ---------- */

.slider { position: absolute; inset: 0; overflow: hidden; }
.slider__track {
    display: flex; height: 100%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img {
    flex: 0 0 100%; width: 100%; height: 100%;
    object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always;
}

/* точки */
.slider__dots {
    position: absolute; left: 0; right: 0; bottom: 9px;
    display: flex; justify-content: center; align-items: center; gap: 5px;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.slider__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.55);
    box-shadow: 0 1px 3px rgba(20,18,26,.35);
    transition: background .2s, transform .2s;
}
.slider__dot.is-on { background: #fff; transform: scale(1.25); }
/* когда фото много — крайние точки уменьшаются, как в приложениях */
.slider__dot.is-edge { transform: scale(.6); opacity: .75; }
.slider__dot.is-hidden { display: none; }

/* стрелки — только на устройствах с мышью */
.slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.92); color: var(--ink);
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px -2px rgba(20,18,26,.35);
    opacity: 0; transition: opacity .18s ease, background .18s ease;
    z-index: 2;
}
.slider__arrow svg { width: 17px; height: 17px; }
.slider__arrow--prev { left: 9px; }
.slider__arrow--next { right: 9px; }
.slider__arrow[hidden] { display: none !important; }

@media (hover: hover) and (pointer: fine) {
    .slider__arrow { display: flex; }
    .card:hover .slider__arrow { opacity: 1; }
    .slider__arrow:hover { background: #fff; }
}

.badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--pink); color: #fff;
    font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.badge--dark { background: rgba(20, 18, 26, .72); backdrop-filter: blur(4px); }
.badge--right { left: auto; right: 12px; }

.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 12px; color: var(--pink); font-weight: 600; margin-bottom: 5px; }
.card__title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 7px; }
.card__excerpt { font-size: 13.5px; color: var(--ink-60); margin-bottom: 12px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--ink-40); margin-bottom: 12px; }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta svg { width: 14px; height: 14px; }
.card__price { margin-top: auto; display: flex; align-items: baseline; gap: 9px; }
.card__price b { font-family: 'Bricolage Grotesque', sans-serif; color: var(--pink); font-size: 19px; }
.card__price s { color: var(--ink-40); font-size: 13px; }

/* карточка-категория с фото на весь блок */
.tile {
    position: relative; border-radius: var(--r-md); overflow: hidden;
    aspect-ratio: 1 / 1; display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.06); }
.tile__label {
    position: absolute; inset: auto 0 0 0; padding: 34px 14px 14px;
    background: linear-gradient(transparent, rgba(14, 12, 18, .82));
    color: #fff;
}
.tile__label b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; display: block; letter-spacing: -.02em; }
.tile__label span { font-size: 12px; opacity: .82; }

/* ---------- Переключатель «кому» у заголовка ---------- */

.section__head--whom { align-items: center; gap: 12px; flex-wrap: wrap; }

.whom-switch {
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 999px; padding: 3px;
}

/* это <button> — сбрасываем системный вид, иначе браузер рисует серую кнопку */
.whom-switch__item,
.section__head .whom-switch__item {
    appearance: none; -webkit-appearance: none;
    border: 0; background: none; margin: 0; box-shadow: none;
    font: inherit; cursor: pointer;
    padding: 7px 15px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--ink-60);
    white-space: nowrap; transition: background .16s ease, color .16s ease;
}
.whom-switch__item:hover,
.section__head .whom-switch__item:hover { color: var(--ink); background: none; }

.whom-switch__item.is-on,
.section__head .whom-switch__item.is-on {
    background: #fff; color: var(--pink);
    box-shadow: 0 2px 8px -3px rgba(20,18,26,.28);
}
.whom-switch__item:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }

@media (max-width: 560px) {
    .whom-switch { width: 100%; justify-content: space-between; }
    .whom-switch__item,
    .section__head .whom-switch__item { flex: 1; text-align: center; padding: 7px 8px; font-size: 13px; }
}

/* ---------- Promo блоки ---------- */

.promo {
    border-radius: var(--r-lg); padding: 26px 22px;
    background: var(--pink); color: #fff; position: relative; overflow: hidden;
}
.promo::after {
    content: ''; position: absolute; right: -50px; bottom: -80px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}
.promo h2, .promo h3 { color: #fff; margin-bottom: 8px; }
.promo p { opacity: .92; margin-bottom: 18px; max-width: 46ch; }
.promo > * { position: relative; z-index: 2; }

.promo--soft { background: var(--pink-soft); color: var(--ink); }
.promo--soft::after { background: rgba(255, 41, 106, .08); }
.promo--soft h2, .promo--soft h3 { color: var(--ink); }
.promo--soft p { color: var(--ink-60); }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; }
.step {
    background: var(--bg-soft); border-radius: var(--r-md);
    padding: 20px 18px; position: relative;
}
.step b {
    font-family: 'Bricolage Grotesque', sans-serif; display: block;
    font-size: 15px; margin-bottom: 6px;
}
.step p { font-size: 14px; color: var(--ink-60); margin: 0; }
.step__num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; font-weight: 700; color: var(--pink);
    display: block; margin-bottom: 10px;
}

/* ---------- Reviews ---------- */

.review {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 20px 18px;
    display: flex; flex-direction: column; gap: 10px;
}
.review__stars { color: var(--pink); display: flex; gap: 2px; }
.review__stars svg { width: 15px; height: 15px; fill: currentColor; }
.review p { font-size: 14.5px; color: var(--ink-60); margin: 0; }
.review__author { font-weight: 600; font-size: 14px; }
.review__author span { color: var(--ink-40); font-weight: 400; }

/* ---------- Форма ---------- */

.form { display: grid; gap: 11px; }
.form__row { display: grid; gap: 11px; grid-template-columns: 1fr; }
.field label { display: block; font-size: 13px; color: var(--ink-60); margin-bottom: 5px; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; font: inherit; color: var(--ink);
    transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 41, 106, .13);
}
.form__note { font-size: 12px; color: var(--ink-40); margin: 0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert {
    background: var(--pink-soft); border: 1px solid rgba(255, 41, 106, .25);
    border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; color: var(--pink-dark);
}

/* ---------- Detail page ---------- */

.detail { display: grid; gap: 22px; grid-template-columns: 1fr; }
.detail__gallery { display: grid; gap: 10px; }
.detail__main { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.detail__main img { width: 100%; height: 100%; object-fit: cover; }

/* галерея события: свайп + счётчик «2 / 23» */
.gallery { position: relative; }
.gallery__track {
    display: flex; height: 100%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img {
    flex: 0 0 100%; width: 100%; height: 100%;
    object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always;
}
.gallery__count {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    background: rgba(20,18,26,.62); color: #fff;
    font-size: 13px; padding: 5px 11px; border-radius: 999px;
    backdrop-filter: blur(6px); pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.gallery__count b { font-weight: 700; }

/* затемнение снизу — чтобы точки и счётчик читались на светлых фото */
.gallery::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 84px;
    background: linear-gradient(to top, rgba(20,18,26,.42), rgba(20,18,26,0));
    pointer-events: none; z-index: 1;
}

/* точки поверх фото — вместо ленты миниатюр */
.gallery__dots {
    position: absolute; left: 0; right: 0; bottom: 14px;
    display: flex; justify-content: center; align-items: center; gap: 6px;
    pointer-events: none; z-index: 2;
}
.gallery__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.6);
    box-shadow: 0 1px 4px rgba(20,18,26,.45);
    transition: background .2s, transform .2s, opacity .2s;
}
.gallery__dot.is-on { background: #fff; transform: scale(1.3); }
.gallery__dot.is-edge { transform: scale(.62); opacity: .8; }
.gallery__dot.is-hidden { display: none; }
.gallery__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.94); color: var(--ink);
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 3px 14px -3px rgba(20,18,26,.4); z-index: 2;
}
.gallery__arrow svg { width: 19px; height: 19px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__arrow[hidden] { display: none !important; }

@media (hover: hover) and (pointer: fine) {
    .gallery__arrow { display: flex; }
    .gallery__arrow:hover { background: #fff; }
}



.specs { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.specs div { background: #fff; padding: 13px 15px; display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.specs dt, .specs span:first-child { color: var(--ink-60); }
.specs span:last-child { font-weight: 600; text-align: right; }

.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.includes li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.includes svg { width: 19px; height: 19px; color: var(--pink); flex: 0 0 auto; margin-top: 1px; }

.order-box {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 20px 18px; background: #fff; box-shadow: var(--shadow);
}
.order-box__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.order-box__price b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; color: var(--pink); letter-spacing: -.03em; }
.order-box__price s { color: var(--ink-40); }

/* ---------- Breadcrumbs ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: 13px; color: var(--ink-40); padding: 16px 0 4px; }
.crumbs a:hover { color: var(--pink); }

/* ---------- Article ---------- */

.article { font-size: 16.5px; line-height: 1.7; }
.article h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 28px 0 10px; }
.article p { color: var(--ink-60); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 18px; background: #fff;
}
.faq summary {
    cursor: pointer; font-weight: 600; font-size: 15.5px;
    list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--ink-60); font-size: 14.5px; }

/* ---------- Footer ---------- */

.footer {
    margin-top: 40px; background: var(--ink); color: #fff;
    padding: 34px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.footer__grid h4 { font-size: 14px; margin-bottom: 12px; }
.footer__links { display: grid; gap: 9px; font-size: 14px; }
.footer__bottom {
    margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px; color: rgba(255, 255, 255, .5);
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------- Pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; padding: 0; list-style: none; }
.pagination li span, .pagination li a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
}
.pagination .active span { background: var(--pink); border-color: var(--pink); color: #fff; }
.pagination .disabled span { opacity: .4; }

/* ---------- Filters ---------- */

.chips {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    max-width: 100%; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--line); font-size: 14px; background: #fff; color: var(--ink-60);
}
.chip.is-active { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 10px; align-items: center;
}
.sticky-cta .btn { flex: 1; }
.sticky-cta__price {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    color: var(--pink); font-size: 18px; line-height: 1.15;
    display: flex; flex-direction: column;
}
.sticky-cta__price s {
    font-family: 'Commissioner', sans-serif; font-weight: 400;
    color: var(--ink-40); font-size: 12.5px;
}
body.has-sticky { padding-bottom: 96px; }
body.has-sticky .sticky-cta { box-shadow: 0 -8px 24px -18px rgba(20,18,26,.5); }

/* ---------- Desktop ---------- */

@media (min-width: 760px) {
    .wrap { padding: 0 28px; }
    /* на десктопе шапка строго в одну строку: логотип · меню · телефон · город */
    .header__row { flex-wrap: nowrap; height: 68px; padding-top: 0; }
    .nav {
        display: flex; order: 0; width: auto; flex: 1;
        border-top: 0; margin: 0; padding: 0; overflow: visible;
    }
    .nav::after { content: none; }
    .header__phone { display: block; }
    .city__btn { max-width: none; }
    .hero { padding: 34px 0 10px; }
    .hero__card { padding: 56px 48px 50px; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--auto { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
    .section { padding: 44px 0; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .form__row { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .promo { padding: 40px 38px; }
    .pills { padding: 26px 28px 8px; }
    .pill { width: 96px; }
    .pill__img { width: 88px; height: 88px; }
    .pill span { font-size: 13.5px; }
    .sticky-cta { display: none; }
    body.has-sticky { padding-bottom: 0; }
}

@media (min-width: 1000px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .detail { grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
    .detail__sticky { position: sticky; top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Фильтры подбора ---------- */

.filters { margin-bottom: 20px; }
.filters > * + * { margin-top: 12px; }
.filters__row { display: grid; gap: 7px; }
.filters__label {
    font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-40); font-weight: 600;
}

/* строка фильтров: кому / бюджет / сортировка — всегда в один ряд */
.filters__bar { display: flex; gap: 7px; flex-wrap: nowrap; }

/* ---------- Свой выпадающий список ---------- */

.drop { position: relative; flex: 1 1 0; min-width: 0; }

.drop__btn {
    width: 100%; display: flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    padding: 9px 10px 9px 13px; text-align: left; min-width: 0; min-height: 42px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.drop__btn:hover { border-color: var(--ink-40); }
.drop__text { flex: 1; min-width: 0; }
.drop__label { display: none; }   /* значение самодостаточное, подпись не нужна */
.drop__label-short { display: none; }
.drop__value {
    display: block; font-size: 14px; font-weight: 600; color: var(--ink);
    line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drop__value--dual .drop__value-full { display: none; }
.drop__value--dual .drop__value-short { display: inline; }
.drop__arrow {
    width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-40);
    transition: transform .2s ease, color .16s ease;
}

/* активный фильтр */
.drop.is-set .drop__btn { border-color: var(--pink); background: var(--pink-soft); }
.drop.is-set .drop__value, .drop.is-set .drop__arrow { color: var(--pink); }

/* открытое состояние */
.drop.is-open .drop__btn { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,41,106,.13); }
.drop.is-open .drop__arrow { transform: rotate(180deg); color: var(--pink); }

.drop__menu {
    position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 44px -16px rgba(20,18,26,.32);
    padding: 5px; display: grid; gap: 1px;
    max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
    animation: dropIn .16s ease;
}
.drop__menu[hidden] { display: none; }

/* меню, вынесенное из ленты фильтров (иначе обрезается прокруткой) */
.drop__menu--float {
    position: absolute; z-index: 60;
    max-height: 60vh;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: none; }
}

.drop__item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--ink);
    white-space: nowrap; transition: background .13s ease, color .13s ease;
}
.drop__item svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0; color: var(--pink); }
.drop__item:hover { background: var(--bg-soft); }
.drop__item.is-on { color: var(--pink); font-weight: 600; background: var(--pink-soft); }
.drop__item.is-on svg { opacity: 1; }

/* открытый список не должен перекрываться соседними карточками */
/* z-index тут создавал контекст наложения и прятал выпадающие меню под карточки */
/* relative на родителе обрезал липкость панели — контекст не нужен */
.filters { position: static; }

@media (max-width: 620px) {
    .filters > * + * { margin-top: 12px; }

    /* на телефоне — одна строка чипов: только значение, без подписи сверху */
    .filters__bar {
        display: flex; flex-wrap: nowrap; gap: 6px;
        overflow-x: auto; overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; -ms-overflow-style: none;
        margin: 0 -18px; padding: 2px 18px;
    }
    .filters__bar::-webkit-scrollbar { display: none; }

    .drop { flex: 0 0 auto; min-width: 0; }

    .drop__btn {
        padding: 8px 10px 8px 13px; border-radius: 999px; gap: 5px;
        min-height: 38px;
    }
    .drop__value { font-size: 13.5px; font-weight: 600; }
    .drop__arrow { width: 15px; height: 15px; }
    .drop__item { font-size: 13.5px; padding: 8px 10px; }

    /* меню не должно уезжать за край экрана */
    .drop__menu { min-width: 190px; }
    .filters__bar > .drop:last-child .drop__menu { left: auto; right: 0; }
}

@media (min-width: 760px) {
    .drop { max-width: 210px; }
}

.empty {
    border: 1px dashed var(--line); border-radius: var(--r-lg);
    padding: 32px 22px; text-align: center; background: var(--bg-soft);
}
.empty b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--ink-60); font-size: 14.5px; max-width: 44ch; margin: 0 auto 18px; }

/* ---------- CTA ---------- */

.cta-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.cta-form { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px; }

@media (min-width: 900px) {
    .cta-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

/* продающий блок с кнопкой вместо длинной формы */
.cta-box {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg); background: var(--pink-soft);
    padding: 30px 22px;
}
.cta-box::after {
    content: ''; position: absolute; right: -70px; bottom: -90px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255,41,106,.09);
}
.cta-box__main { position: relative; z-index: 1; max-width: 640px; }

.cta-box__badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border-radius: 999px; padding: 6px 13px;
    font-size: 13px; font-weight: 600; color: var(--pink);
    margin-bottom: 14px;
}
.cta-box__dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
    animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
}

.cta-box h2 { font-size: clamp(1.5rem, 4.4vw, 2.3rem); margin-bottom: 10px; }
.cta-box p { color: var(--ink-60); font-size: 15px; max-width: 52ch; margin-bottom: 16px; }

.cta-box__list {
    list-style: none; padding: 0; margin: 0 0 22px;
    display: grid; gap: 8px;
}
.cta-box__list li {
    position: relative; padding-left: 24px;
    font-size: 14.5px; color: var(--ink);
}
.cta-box__list li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 14px; height: 8px; border-left: 2.4px solid var(--pink);
    border-bottom: 2.4px solid var(--pink); transform: rotate(-45deg);
    border-radius: 1px;
}

.cta-box__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 16.5px; }

/* обещание перезвонить — рядом с кнопкой, там где решение принимается */
.cta-box__callback {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 600; color: var(--ink-60);
}
.cta-box__note { font-size: 13px; color: var(--ink-40); margin: 16px 0 0; }
.cta-box__note a { font-weight: 700; color: var(--ink); }
.cta-box__note a:hover { color: var(--pink); }

@media (min-width: 760px) {
    .cta-box { padding: 44px 40px; }
    .cta-box__list { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 26px; }
}

/* ---------- Быстрая заявка (модалка) ---------- */

.lead-modal {
    position: fixed; inset: 0; z-index: 95;
    display: flex; align-items: flex-end; justify-content: center;
}
.lead-modal[hidden] { display: none; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,26,.55); }
.lead-modal__panel {
    position: relative; z-index: 2; background: #fff;
    width: 100%; max-height: 92vh; overflow-y: auto;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
    animation: leadIn .22s ease;
}
@keyframes leadIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
.lead-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink-40);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.lead-modal__close:hover { border-color: var(--pink); color: var(--pink); }
.lead-modal h3 {
    font-size: clamp(1.3rem, 4vw, 1.7rem); margin-bottom: 8px;
}
.lead-modal__text { color: var(--ink-60); font-size: 14.5px; margin-bottom: 18px; }

@media (min-width: 620px) {
    .lead-modal { align-items: center; padding: 24px; }
    .lead-modal__panel { max-width: 460px; border-radius: var(--r-lg); padding: 30px 28px; }
}

/* ---------- Сторис-фильтр по поводам ---------- */

.stories {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 8px;
    max-width: 100%;
    scrollbar-width: none; -ms-overflow-style: none;
}
.stories::-webkit-scrollbar { display: none; }

.story {
    flex: 0 0 auto; width: 92px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    scroll-snap-align: start; text-align: center;
}

.story__ring {
    width: 76px; height: 76px; border-radius: 50%;
    padding: 3px; background: #fff;
    border: 2px solid var(--line);
    display: block; position: relative;
    transition: border-color .18s ease, transform .18s ease;
}
.story__ring img {
    width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover; display: block;
}

.story__all {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
}
.story__all svg { width: 30px; height: 30px; }

.story__title {
    font-size: 12.5px; line-height: 1.25; color: var(--ink-60);
    overflow-wrap: normal; word-break: keep-all; hyphens: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.story:hover .story__ring { border-color: var(--pink); transform: translateY(-2px); }
.story:hover .story__title { color: var(--ink); }

.story.is-active .story__ring {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 41, 106, .16);
}
.story.is-active .story__title { color: var(--pink); font-weight: 600; }

@media (min-width: 760px) {
    .stories { gap: 18px; }
    .story { width: 108px; }
    .story__ring { width: 90px; height: 90px; }
    .story__title { font-size: 13.5px; }
}

/* ---------- Пошаговое оформление ---------- */

.steps-bar {
    display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 18px;
    overflow-x: auto; scrollbar-width: none;
}
.steps-bar::-webkit-scrollbar { display: none; }
.steps-bar li {
    display: flex; align-items: center; gap: 7px;
    flex: 0 0 auto; font-size: 13px; color: var(--ink-40);
    padding: 7px 13px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
/* пройденный шаг — ссылка назад */
.steps-bar li > a {
    display: flex; align-items: center; gap: 7px;
    margin: -7px -13px -7px -7px; padding: 7px 13px 7px 7px; border-radius: 999px;
}
.steps-bar .is-done:hover { border-color: var(--pink); color: var(--pink); }
.steps-bar li span {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg-soft); color: var(--ink-40);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.steps-bar .is-done { color: var(--ink); border-color: var(--line); }
.steps-bar .is-done span { background: var(--pink-soft); color: var(--pink); }
.steps-bar .is-current { color: #fff; background: var(--pink); border-color: var(--pink); font-weight: 600; }
.steps-bar .is-current span { background: rgba(255,255,255,.25); color: #fff; }

/* карточка дополнения */
.addon {
    position: relative; display: flex; flex-direction: column;
    scroll-margin-top: 90px;
    border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; background: #fff; cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.addon:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.addon__toggle {
    display: flex; flex-direction: column; text-align: left;
    background: none; border: 0; padding: 0; width: 100%; cursor: pointer; color: inherit;
}

.addon__media { position: relative; aspect-ratio: 3/2; background: var(--bg-soft); display: block; }
.addon__media img { width: 100%; height: 100%; object-fit: cover; }

.addon__body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.addon__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -.02em; margin-bottom: 5px; }
.addon__text { font-size: 13px; color: var(--ink-60); margin-bottom: 12px; }
.addon__foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 0 14px 14px; flex-wrap: wrap;
}
.addon__foot b { font-family: 'Bricolage Grotesque', sans-serif; color: var(--pink); font-size: 17px; }

/* подпись про минимальный заказ (например, флешмоб от 4 человек) */
.addon__min {
    display: block; font-size: 11.5px; color: var(--ink-40);
    padding: 0 14px 12px; margin-top: -6px;
}
#available-list .addon__min { padding: 0 11px 11px; }

/* счётчик количества */
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty__btn {
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
    background: #fff; font-size: 19px; line-height: 1; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
}
.qty__btn:hover { border-color: var(--pink); color: var(--pink); }
.qty__value { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty__unit { font-size: 12px; color: var(--ink-40); margin-left: 2px; }

.addon__mark {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(255,255,255,.85); color: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: background .16s, color .16s, transform .16s;
}
.addon__mark svg { width: 16px; height: 16px; }

.addon.is-on { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,41,106,.14); }
.addon.is-on .addon__mark { background: var(--pink); border-color: var(--pink); color: #fff; transform: scale(1.05); }
.addon__toggle:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; border-radius: var(--r-md); }

/* ---------- Конструктор события: две колонки ---------- */

.builder { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }
.builder__main { min-width: 0; }
.builder__side { min-width: 0; }

/* на мобиле смету показывает липкая нижняя панель */
@media (max-width: 999px) {
    .builder__side { display: none; }
}

@media (min-width: 1000px) {
    .builder {
        grid-template-columns: minmax(0, 1fr) 372px;
        gap: 32px;
        padding-bottom: 40px;
    }
    .builder__sticky { position: sticky; top: 92px; padding-top: 34px; }
}

@media (min-width: 1140px) {
    .builder { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
}

/* итоговая панель */
.order-summary {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 20px 18px; background: #fff; box-shadow: var(--shadow);
}
.order-summary__head {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 18px; letter-spacing: -.02em;
    padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--line);
}
/* длинный состав не выталкивает кнопку за экран */
.builder__sticky .order-summary__rows {
    max-height: min(44vh, 400px); overflow-y: auto;
    scrollbar-width: thin; overscroll-behavior: contain;
    padding-right: 4px; margin-right: -4px;
}

/* шапка сметы: событие с фото — как на шаге оформления */
.order-line--sum { padding-bottom: 14px; margin-bottom: 14px; }
.order-line--sum img { width: 66px; height: 50px; border-radius: 12px; }
.order-line--sum b { font-size: 14.5px; }
.order-line--sum .order-line__price { font-size: 14px; color: var(--ink-40); font-weight: 600; }

/* пока боковой сметы нет — держим нижнюю панель с итогом */
@media (min-width: 760px) and (max-width: 999px) {
    body.builder-page .sticky-cta { display: flex; }
    body.builder-page.has-sticky { padding-bottom: 96px; }
}
@media (min-width: 1000px) {
    body.builder-page .sticky-cta { display: none; }
    body.builder-page.has-sticky { padding-bottom: 0; }
}
.order-summary__rows { display: grid; gap: 9px; margin-bottom: 12px; }
.order-summary__rows > div:not(.picked) { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.order-summary__rows > .picked { display: grid; gap: 9px; }
.order-summary__rows span { color: var(--ink-60); }
.order-summary__total {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    padding-top: 13px; border-top: 1px solid var(--line); margin-bottom: 16px;
}
.order-summary__total span { color: var(--ink-60); font-size: 14.5px; }
.order-summary__total b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; color: var(--pink); letter-spacing: -.03em; }

/* страница оформления */
.checkout { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 6px; }
.checkout__order, .checkout__form {
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px; background: #fff;
}
.order-line { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-line img { width: 72px; height: 54px; border-radius: var(--r-sm); object-fit: cover; flex: 0 0 auto; }
.order-line div { flex: 1; min-width: 0; }
.order-line b { display: block; font-size: 15px; line-height: 1.25; }
.order-line span { font-size: 12.5px; color: var(--ink-40); }
.order-line__price { font-weight: 600; white-space: nowrap; }

.order-addons { display: grid; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-addons__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.order-addons__row span { color: var(--ink-60); }

.order-change { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--pink); font-weight: 600; }

@media (min-width: 900px) {
    .checkout { grid-template-columns: 1fr 1fr; align-items: start; }
    .order-summary { max-width: 460px; margin-left: auto; }
}

.quick-form summary {
    cursor: pointer; font-size: 14px; color: var(--ink-60);
    list-style: none; padding: 10px 0; border-top: 1px solid var(--line);
}
.quick-form summary::-webkit-details-marker { display: none; }
.quick-form summary::before { content: '+ '; color: var(--pink); font-weight: 700; }
.quick-form[open] summary::before { content: '− '; }


/* ---------- Готовые наборы ---------- */

.bundles {
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
    .bundles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
}
.bundle {
    position: relative; display: flex; flex-direction: column; text-align: left;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: #fff; padding: 0; overflow: hidden; cursor: pointer; color: inherit;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.bundle:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bundle__level {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--ink-40); margin-bottom: 7px;
}
.bundle.is-on .bundle__level { color: var(--pink); }
.bundle__body { padding: 15px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.bundle__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; }
.bundle__text {
    font-size: 13px; color: var(--ink-60); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bundle__price { margin-top: auto; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: var(--pink); font-size: 17px; }
.bundle__mark {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(255,255,255,.85); color: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: background .16s, color .16s;
}
.bundle__mark svg { width: 16px; height: 16px; }
.bundle.is-on { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,41,106,.14); }
.bundle.is-on .bundle__mark { background: var(--pink); border-color: var(--pink); color: #fff; }
.bundle--clean { background: var(--bg-soft); }

/* список выбранного в итоге */
.picked { display: grid; gap: 8px; }
.picked > div {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; font-size: 14px;
}
.picked span { color: var(--ink-60); min-width: 0; }
.picked b { white-space: nowrap; flex: 0 0 auto; }

/* ---------- Состав события ---------- */

.composition { display: grid; gap: 10px; }
.comp {
    display: flex; gap: 12px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: #fff; padding: 12px; flex-wrap: wrap;
}
.comp__media { width: 78px; height: 58px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; background: var(--bg-soft); }
.comp__media img { width: 100%; height: 100%; object-fit: cover; }
.comp__body { flex: 1; min-width: 140px; }
.comp__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.comp__note { font-size: 12.5px; color: var(--ink-40); margin-top: 3px; }
.comp__side { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.comp__price { margin-left: auto; }
.comp__price { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; color: var(--ink-40); white-space: nowrap; }
.comp__price.is-extra { color: var(--pink); font-size: 16px; }

@media (max-width: 520px) {
    .comp { padding: 11px; gap: 10px; }
    .comp__media { width: 62px; height: 50px; }
    .comp__body { min-width: 0; flex: 1 1 100px; }
    .comp__side { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
    .comp__price { font-size: 15px; }
}

/* кнопка убрать позицию из состава */
.comp__remove {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff;
    color: var(--ink-40); font-size: 14px; line-height: 1;
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.comp__remove:hover { border-color: var(--pink); color: var(--pink); }

/* карточка «добавить» */
.addon--add { cursor: pointer; text-align: left; }
.addon--add .addon__mark {
    background: var(--pink); border-color: var(--pink); color: #fff;
    font-size: 19px; font-weight: 700; line-height: 1;
}
.addon--add:hover { border-color: var(--pink); }
.addon--add .addon__foot { padding: 0; margin-top: auto; }

/* ---------- Горизонтальная лента карточек ---------- */

.rail {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2px 1px 8px;
    max-width: 100%;
    scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 auto; width: 208px; }
/* последняя карточка не липнет к краю */
.rail::after { content: ''; flex: 0 0 2px; }

/* компактная карточка */
.card--sm .card__media { aspect-ratio: 3 / 2; }
.card--sm .card__body { padding: 11px 12px 13px; }
.card--sm .card__cat { font-size: 11px; margin-bottom: 4px; }
.card--sm .card__title { font-size: 14.5px; line-height: 1.25; margin-bottom: 6px; }
.card--sm .card__meta { font-size: 11.5px; gap: 7px; margin-bottom: 9px; }
.card--sm .card__price b { font-size: 16px; }
.card--sm .card__price s { font-size: 12px; }
.card--sm .badge { font-size: 11px; padding: 4px 9px; top: 9px; left: 9px; }

@media (min-width: 760px) {
    .rail { gap: 14px; }
    .rail > .card { width: 230px; }
}


/* ---------- Сетка «добавить к событию» ---------- */

#available-list {
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#available-list .addon__media { aspect-ratio: 1 / 1; }
#available-list .addon__body { padding: 10px 11px 12px; }
#available-list .addon__title { font-size: 14px; line-height: 1.25; margin-bottom: 4px; }
#available-list .addon__text {
    font-size: 12px; margin-bottom: 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#available-list .addon__foot b { font-size: 14.5px; }
#available-list .addon__mark { width: 26px; height: 26px; top: 8px; right: 8px; }
#available-list .badge { font-size: 10.5px; padding: 3px 8px; top: 8px; left: 8px; }

@media (min-width: 600px) {
    #available-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
}

/* ---------- Окно с подробностями ---------- */

.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(20,18,26,.5); }

.sheet__panel {
    position: relative; z-index: 2;
    background: #fff; width: 100%; max-height: 88vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 -12px 40px -20px rgba(20,18,26,.5);
    animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.sheet__close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.92); color: var(--ink);
    font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px -6px rgba(20,18,26,.4);
}

.sheet__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.sheet__gallery {
    display: flex; gap: 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sheet__gallery::-webkit-scrollbar { display: none; }
.sheet__gallery img {
    flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2;
    object-fit: cover; scroll-snap-align: center;
}

.sheet__body { padding: 18px 18px 8px; }
.sheet__title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 21px; letter-spacing: -.02em; margin-bottom: 6px; }
.sheet__price { color: var(--pink); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.sheet__text { color: var(--ink-60); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.sheet__sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-40); font-weight: 600; margin-bottom: 10px; }
.sheet__body .includes li { font-size: 14px; }

.sheet__foot {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: #fff;
}

/* значок «i» в строке состава */
.comp__info {
    width: 19px; height: 19px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff;
    color: var(--ink-40); font-size: 11px; font-weight: 700; font-style: italic;
    line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    vertical-align: middle; margin-left: 5px; padding: 0;
    transition: border-color .16s, color .16s;
}

/* вся карточка состава открывает детали */
.comp--info { cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.comp--info:hover { border-color: var(--pink); }
.comp--info:hover .comp__info { border-color: var(--pink); color: var(--pink); }
.comp--info:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* кнопки внутри карточки не должны её "открывать" визуально */
.comp .qty__btn, .comp__remove { position: relative; z-index: 1; }
.qty__btn:disabled { opacity: .38; cursor: default; border-color: var(--line); color: var(--ink-40); }

/* ссылка «подробнее» в карточке */
.addon__more {
    font-size: 12px; color: var(--ink-40); text-decoration: underline;
    text-underline-offset: 2px; cursor: pointer; white-space: nowrap;
}
.addon__more:hover { color: var(--pink); }
#available-list .addon__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

@media (min-width: 700px) {
    .sheet { align-items: center; padding: 24px; }
    .sheet__panel { max-width: 560px; border-radius: var(--r-lg); max-height: 84vh; }
}

/* ---------- Лента «как это будет выглядеть» ---------- */

.preview__head {
    display: flex; align-items: baseline; gap: 10px;
    flex-wrap: wrap; margin-bottom: 10px;
}
.preview__head b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; letter-spacing: -.02em; }
.preview__head span { font-size: 12.5px; color: var(--ink-40); }

.preview {
    display: flex; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2px 1px 8px; max-width: 100%;
    scrollbar-width: none; -ms-overflow-style: none;
}
.preview::-webkit-scrollbar { display: none; }
.preview::after { content: ''; flex: 0 0 2px; }

.shot {
    flex: 0 0 auto; width: 140px; margin: 0;
    border-radius: var(--r-sm); overflow: hidden;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
    transition: border-color .16s, transform .16s;
}
.shot:hover { border-color: var(--pink); transform: translateY(-2px); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.shot figcaption {
    font-size: 12px; color: var(--ink-60); padding: 7px 9px 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (min-width: 760px) {
    .shot { width: 160px; }
}

/* ---------- Кнопка-фильтр «Дата» ---------- */

.drop--btn { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
/* кнопка-фильтр без выпадающего меню (Фильтры, Дата) */
.drop--btn .drop__value { font-size: 14px; }
.drop--btn .drop__btn { pointer-events: none; }
.drop--btn.is-set .drop__btn { border-color: var(--pink); background: var(--pink-soft); }
.drop--btn.is-set .drop__value, .drop--btn.is-set .drop__arrow { color: var(--pink); }
.drop__arrow--cal { width: 17px; height: 17px; }

/* ---------- Календарь ---------- */

.cal-modal {
    position: fixed; inset: 0; z-index: 96;
    display: flex; align-items: flex-end; justify-content: center;
}
.cal-modal[hidden] { display: none; }
.cal-modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,26,.55); }
.cal-modal__panel {
    position: relative; z-index: 2; background: #fff; width: 100%;
    max-height: 92vh; overflow-y: auto;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    animation: leadIn .22s ease;
}
.cal-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink-40);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.cal-modal__close:hover { border-color: var(--pink); color: var(--pink); }
.cal-modal h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-bottom: 6px; }
.cal-modal__text { color: var(--ink-60); font-size: 14px; margin-bottom: 18px; }

.cal__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.cal__head b {
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px;
    letter-spacing: -.02em;
}
.cal__nav {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
}
.cal__nav svg { width: 17px; height: 17px; }
.cal__nav:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.cal__nav:disabled { opacity: .35; cursor: default; }

.cal__week {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; margin-bottom: 6px;
}
.cal__week span {
    text-align: center; font-size: 11.5px; font-weight: 600;
    color: var(--ink-40); text-transform: uppercase; letter-spacing: .04em;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__day {
    aspect-ratio: 1 / 1; border: 0; background: none; border-radius: 11px;
    font-size: 14.5px; color: var(--ink); font-variant-numeric: tabular-nums;
    display: flex; align-items: center; justify-content: center;
    transition: background .14s ease, color .14s ease;
}
/* выбранный день при наведении остаётся розовым, а не серым */
.cal__day:hover:not(:disabled):not(.is-on) { background: var(--bg-soft); }
.cal__day:disabled { color: var(--ink-40); opacity: .35; cursor: default; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; }

/* свободный день — лёгкая зелёная точка снизу */
.cal__day.is-free { position: relative; }
.cal__day.is-free::after {
    content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: #35B87A;
}

/* занятый день — перечёркнут, выбрать нельзя */
.cal__day.is-busy {
    color: var(--ink-40); opacity: 1; background: var(--bg-soft);
    position: relative; text-decoration: none;
}
.cal__day.is-busy::after {
    content: ''; position: absolute; left: 22%; right: 22%; top: 50%;
    height: 1.5px; background: var(--ink-40); opacity: .55;
    transform: rotate(-14deg);
}

.cal__day.is-on,
.cal__day.is-on:hover {
    background: var(--pink); color: #fff; font-weight: 700;
    box-shadow: none;
}
.cal__day.is-on::after { background: #fff; opacity: .9; }

/* подпись под календарём */
.cal__legend {
    display: flex; gap: 16px; margin-top: 14px;
    font-size: 12.5px; color: var(--ink-40);
}
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__chip {
    width: 16px; height: 16px; border-radius: 5px; display: inline-block;
    position: relative; flex: 0 0 auto;
}
.cal__chip--free { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.cal__chip--free::after {
    content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 4px; height: 4px; border-radius: 50%; background: #35B87A;
}
.cal__chip--busy { background: var(--bg-soft); }
.cal__chip--busy::after {
    content: ''; position: absolute; left: 18%; right: 18%; top: 50%;
    height: 1.5px; background: var(--ink-40); opacity: .55; transform: rotate(-14deg);
}

.cal-modal__quick { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 4px; }
.cal-modal__foot {
    display: flex; gap: 10px; align-items: center; margin-top: 18px;
    padding-top: 16px; border-top: 1px solid var(--line);
}
.cal-modal__foot .btn { flex: 1; }

@media (min-width: 620px) {
    .cal-modal { align-items: center; padding: 24px; }
    .cal-modal__panel { max-width: 420px; border-radius: var(--r-lg); padding: 28px 26px; }
}

/* кнопка выбора даты в форме */
.date-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 52px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; font-size: 15px; color: var(--ink-40); text-align: left;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.date-btn svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--ink-40); }
.date-btn:hover { border-color: var(--ink-40); }
.date-btn.is-set { border-color: var(--pink); background: var(--pink-soft); color: var(--ink); font-weight: 600; }
.date-btn.is-set svg { color: var(--pink); }
.field__hint { display: block; font-size: 12.5px; color: var(--ink-40); margin-top: 6px; }

/* позиция состава, входящая в цену — в смете справа */
.picked__in { color: var(--ink-40); font-weight: 600; font-size: 13px; }

/* ---------- Доступные даты на странице события ---------- */

.dates { display: grid; gap: 8mm; grid-template-columns: 1fr; margin-top: 18px; }
.dates__month[hidden] { display: none; }
.dates__title {
    display: block; font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px; letter-spacing: -.02em; margin-bottom: 12px;
}
.dates__title span { color: var(--ink-40); font-weight: 400; font-size: 15px; }

/* стрелки листания месяцев */
.dates__nav { display: flex; gap: 8px; }
.dates__arrow {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
}
.dates__arrow svg { width: 18px; height: 18px; }
.dates__arrow:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.dates__arrow:disabled { opacity: .35; cursor: default; }

.dates__week {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px;
}
.dates__week span {
    text-align: center; font-size: 11.5px; color: var(--ink-40);
}
.dates__week .is-weekend { color: var(--pink); }

.dates__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dates__day {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; border-radius: 12px;
    font-size: 15px; font-variant-numeric: tabular-nums;
}

.dates__day.is-free {
    background: var(--bg-soft); color: var(--ink); font-weight: 600;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.dates__day.is-free:hover {
    background: var(--pink); color: #fff; transform: translateY(-1px);
}

.dates__day.is-busy {
    background: var(--bg-soft); color: var(--ink-40); position: relative;
}
.dates__day.is-busy::after {
    content: ''; position: absolute; left: 24%; right: 24%; top: 50%;
    height: 1.5px; background: var(--ink-40); opacity: .6; transform: rotate(-14deg);
}

.dates__day.is-past { color: var(--ink-40); opacity: .3; }

.dates__legend {
    display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
    margin-top: 16px; font-size: 13px; color: var(--ink-40);
}
.dates__legend > span { display: inline-flex; align-items: center; gap: 7px; }
.dates__chip {
    width: 17px; height: 17px; border-radius: 6px; display: inline-block;
    position: relative; flex: 0 0 auto; background: var(--bg-soft);
}
.dates__chip--busy::after {
    content: ''; position: absolute; left: 18%; right: 18%; top: 50%;
    height: 1.5px; background: var(--ink-40); opacity: .6; transform: rotate(-14deg);
}
.dates__price { margin-left: auto; color: var(--ink-60); font-weight: 600; }

.dates__note { margin-top: 12px; font-size: 13.5px; color: var(--ink-40); }
.dates__note a { color: var(--pink); font-weight: 600; }

@media (min-width: 760px) {
    .dates { grid-template-columns: 1fr 1fr; gap: 34px; }
    .dates__day { font-size: 15.5px; }
}

/* строка с датой в блоке «Ваш заказ» */
.order-date {
    display: flex; align-items: center; gap: 9px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}
.order-date svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--pink); }
.order-date__value { font-weight: 600; color: var(--ink); }
.order-date__empty { color: var(--ink-40); }
.order-date__change {
    margin-left: auto; font-size: 13px; color: var(--pink); font-weight: 600;
}
.order-date__change:hover { text-decoration: underline; }

/* воздух между шагами конструктора */
@media (max-width: 759px) {
    .builder__main > div + div > .section { padding-top: 32px !important; }
}

/* элементы, которые не нужны на телефоне (их роль играет липкая нижняя панель) */
@media (max-width: 759px) {
    .hide-mobile { display: none !important; }
}

/* ---------- Добавленный доп: карточка остаётся в списке ---------- */

.addon.is-added {
    border-color: var(--pink);
    box-shadow: 0 0 0 2px rgba(255,41,106,.16);
}
.addon.is-added .addon__media::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,41,106,.16);
}
.addon.is-added .addon__mark {
    background: var(--pink); border-color: #fff; color: #fff;
}
.addon.is-added .addon__mark svg { width: 14px; height: 14px; }

.badge--added {
    background: var(--pink); color: #fff;
    display: inline-flex; align-items: center; gap: 5px;
}

/* ссылка «убрать» вместо подписи про минимум */
.addon__undo {
    display: block; padding: 0 14px 12px; margin-top: -4px;
    font-size: 12px; color: var(--pink); font-weight: 600;
}
.addon__undo:hover { text-decoration: underline; }
#available-list .addon__undo { padding: 0 11px 11px; }

/* добавленная карточка не «подпрыгивает» при наведении */
.addon.is-added:hover { transform: none; }

/* ---------- Страница для организаторов ---------- */

.money-flow { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
.money-flow__step {
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 22px 20px; position: relative;
}
.money-flow__num {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--pink-soft); color: var(--pink);
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px;
    margin-bottom: 12px;
}
.money-flow__step h3 { font-size: 16.5px; margin-bottom: 7px; }
.money-flow__step p { color: var(--ink-60); font-size: 14px; margin: 0; }

/* делёж денег */
.split-money {
    margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px 20px; background: var(--bg-soft);
}
.split-money__bar {
    display: flex; height: 52px; border-radius: 14px; overflow: hidden;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
}
.split-money__ours, .split-money__yours {
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff;
}
.split-money__ours { background: var(--pink); }
.split-money__yours { background: var(--ink); }

.split-money__legend {
    display: grid; gap: 8px; margin-top: 14px;
    font-size: 13.5px; color: var(--ink-60);
}
.split-money__legend span { display: flex; align-items: center; gap: 9px; }
.split-money__dot { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 auto; }
.split-money__dot--ours { background: var(--pink); }
.split-money__dot--yours { background: var(--ink); }
.split-money__note {
    margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: 13.5px; color: var(--ink-60);
}

.feature {
    border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 18px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--ink-60); font-size: 14px; margin: 0; }

.steps-list { display: grid; gap: 4px; margin-top: 18px; }

/* вопросы-ответы */
.faq { display: grid; gap: 8px; }
.faq__item {
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 18px; background: #fff;
}
.faq__item summary {
    cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: ''; flex: 0 0 auto; width: 9px; height: 9px;
    border-right: 2px solid var(--ink-40); border-bottom: 2px solid var(--ink-40);
    transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item[open] summary { color: var(--pink); }
.faq__item p { margin: 12px 0 0; color: var(--ink-60); font-size: 14.5px; }

.final__phone {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 17px; color: #fff; white-space: nowrap;
}
/* белая кнопка на тёмном блоке */
.final .btn--white,
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 10px 26px -14px rgba(0,0,0,.6); }
.final .btn--white:hover,
.btn--white:hover { background: #fff; color: var(--pink); transform: translateY(-2px); }

/* шапка страницы для организаторов — текст читаемый на розовом */
.hero__card .cta-box__badge { background: rgba(255,255,255,.92); color: var(--pink); }
.hero__card .hero__text { color: #fff; opacity: .94; }
.hero__card .cta-box__callback { color: rgba(255,255,255,.92); }
.hero__card .cta-box__dot { background: #fff; }

@media (min-width: 760px) {
    .money-flow { grid-template-columns: repeat(3, 1fr); }
    .split-money { padding: 30px 28px; }
    .split-money__legend { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ---------- Кнопка «Фильтры» и шторка ---------- */

.fbtn .drop__btn { position: relative; }
.fbtn__count {
    position: absolute; top: -5px; right: -5px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--pink); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.fbtn.is-set .drop__btn { border-color: var(--pink); background: var(--pink-soft); }
.fbtn.is-set .drop__value, .fbtn.is-set .drop__arrow { color: var(--pink); }

.fsheet {
    position: fixed; inset: 0; z-index: 98;   /* выше нижней навигации */
    display: flex; align-items: flex-end; justify-content: center;
}
.fsheet[hidden] { display: none; }
.fsheet__backdrop { position: absolute; inset: 0; background: rgba(20,18,26,.55); }
.fsheet__panel {
    position: relative; z-index: 2; background: #fff; width: 100%;
    max-height: 88vh; display: flex; flex-direction: column;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: leadIn .22s ease;
}
.fsheet__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.fsheet__head b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; letter-spacing: -.02em; }
.fsheet__close {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink-40);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.fsheet__body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.fsheet__group + .fsheet__group { margin-top: 20px; }
.fsheet__label {
    display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-40); font-weight: 700; margin-bottom: 9px;
}
.fsheet__foot {
    display: flex; gap: 10px;
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: #fff;
}
.fsheet__foot .btn { flex: 1; }

@media (min-width: 620px) {
    .fsheet { align-items: center; padding: 24px; }
    .fsheet__panel { max-width: 460px; border-radius: var(--r-lg); }
}

/* ---------- Липкая панель фильтров ---------- */

/* липнет только строка фильтров, кружки поводов уезжают вверх */
.filters__bar {
    position: sticky; top: 60px; z-index: 30;
    background: #fff;
    margin-left: -18px; margin-right: -18px;
    padding: 10px 18px;
    box-shadow: 0 1px 0 var(--line);
}

@media (min-width: 760px) {
    .filters__bar {
        top: 68px;
        margin-left: -28px; margin-right: -28px;
        padding-left: 28px; padding-right: 28px;
    }
}

/* на телефоне меню в ленте обрезалось — чипы открывают шторку */
@media (max-width: 620px) {
    /* сортировку в ленту не выводим — она есть в шторке */
    .filters__bar > .drop[data-drop]:last-of-type { display: none; }
}

/* ---------- Нижняя навигация ---------- */

.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: none; align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px -18px rgba(20,18,26,.5);
}
/* когда пунктов мало — не растягиваем на всю ширину, держим по центру */
.tabbar--few { justify-content: center; gap: 12px; }
.tabbar--few .tabbar__item { flex: 0 0 auto; min-width: 92px; }

.tabbar__item {
    flex: 1; min-width: 0; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 4px 8px;
    font-size: 10.5px; color: var(--ink-40); font-weight: 500;
}
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item.is-on { color: var(--pink); }
.tabbar__item.is-on svg { stroke-width: 2.2; }
.tabbar__count {
    position: absolute; top: 5px; left: 50%; margin-left: 4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--pink); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

@media (max-width: 759px) {
    .tabbar { display: flex; }
    body { padding-bottom: 62px; }
    body.has-sticky { padding-bottom: 152px; }       /* панель цены + таббар */
    .sticky-cta { bottom: 62px; }
}

/* сердечко на карточке */
.fav {
    position: absolute; top: 9px; right: 9px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink); border: 0;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.fav svg { width: 18px; height: 18px; }
.fav:hover { transform: scale(1.06); }
.fav.is-on { color: var(--pink); }
.fav.is-on svg { fill: var(--pink); }

/* ---------- Мои заказы ---------- */

.my-head {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 6px; font-size: 14px;
}
.my-head__change {
    border: 0; background: none; padding: 0;
    color: var(--pink); font-weight: 600; font-size: 14px; cursor: pointer;
}
.my-head__change:hover { text-decoration: underline; }

.my-list { display: grid; gap: 12px; margin-top: 18px; }
.my-card {
    display: flex; gap: 14px; align-items: stretch;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: #fff; padding: 12px; overflow: hidden;
}
.my-card__media {
    width: 92px; flex: 0 0 auto; border-radius: var(--r-sm);
    overflow: hidden; background: var(--bg-soft);
}
.my-card__media img { width: 100%; height: 100%; object-fit: cover; }
.my-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.my-card__top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 5px;
}
.my-card__top b { font-size: 15.5px; line-height: 1.25; }
.my-card__meta { font-size: 12.5px; color: var(--ink-40); margin-bottom: 8px; }
.my-card__addons { font-size: 12.5px; color: var(--ink-60); margin-bottom: 10px; }
.my-card__foot {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-top: auto; font-size: 13.5px;
}
.my-card__foot b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; }
.my-card__foot a { color: var(--pink); font-weight: 600; }

@media (min-width: 620px) {
    .my-card { padding: 14px; gap: 16px; }
    .my-card__media { width: 132px; }
}

/* тёмный блок-призыв в конце лендингов */
.final {
    background: var(--ink); color: #fff;
    border-radius: var(--r-lg); padding: 34px 24px;
    position: relative; overflow: hidden;
}
.final::after {
    content: ''; position: absolute; right: -70px; bottom: -90px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255,41,106,.22);
}
.final > * { position: relative; z-index: 1; }
.final h2 { color: #fff; font-size: clamp(1.5rem,4vw,2.1rem); margin-bottom: 10px; }
.final p { color: rgba(255,255,255,.72); max-width: 54ch; margin: 0; }

@media (min-width: 760px) {
    .final { padding: 46px 40px; }
}

/* сердечко на большой галерее события */
.fav--lg { top: 14px; right: 14px; width: 42px; height: 42px; }
.fav--lg svg { width: 22px; height: 22px; }

/* кнопка «назад» поверх фото — только на телефоне */
.gallery__back {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    color: var(--ink); box-shadow: 0 2px 10px -3px rgba(20,18,26,.4);
}
.gallery__back svg { width: 21px; height: 21px; }
.gallery__back:active { transform: scale(.94); }

@media (max-width: 759px) {
    .gallery__back { display: flex; }
}

/* ---------- Аккаунт клиента ---------- */

.acc-head {
    display: flex; align-items: center; gap: 13px;
    padding: 20px 0 18px; border-bottom: 1px solid var(--line);
}
.acc-head__ava {
    width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
    background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700;
    text-transform: uppercase;
}
.acc-head b { display: block; font-size: 17px; line-height: 1.2; }
.acc-head span { font-size: 13.5px; color: var(--ink-40); }
.acc-head__out {
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 8px 15px; font-size: 13.5px; color: var(--ink-60);
}
.acc-head__out:hover { border-color: var(--pink); color: var(--pink); }

.acc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.acc-nav__item {
    position: relative;
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 15px; font-size: 14.5px; font-weight: 600;
}
.acc-nav__item svg { width: 22px; height: 22px; color: var(--pink); }
.acc-nav__item:hover { border-color: var(--pink); }
.acc-nav__count {
    position: absolute; top: 12px; right: 13px;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--pink); color: #fff;
    font-size: 11.5px; line-height: 20px; text-align: center;
}

.tabbar__ava {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.tabbar__item.is-on .tabbar__ava { background: var(--pink); color: #fff; }

/* ---------- Сообщения ---------- */

.chat-list { display: grid; gap: 8px; margin-top: 18px; }
.chat-row {
    position: relative;
    display: flex; gap: 13px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px; background: #fff;
}
.chat-row:hover { border-color: var(--pink); }
.chat-row__media {
    width: 54px; height: 54px; flex: 0 0 auto;
    border-radius: 14px; overflow: hidden; background: var(--bg-soft);
}
.chat-row__media img { width: 100%; height: 100%; object-fit: cover; }
.chat-row__body { flex: 1; min-width: 0; }
.chat-row__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.chat-row__top b {
    font-size: 15px; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-row__time { font-size: 12px; color: var(--ink-40); flex: 0 0 auto; }
.chat-row__last {
    font-size: 13.5px; color: var(--ink-60);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-row__count {
    flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 7px;
    border-radius: 999px; background: var(--pink); color: #fff;
    font-size: 12px; line-height: 22px; text-align: center;
}

/* ---------- Переписка ---------- */

.chat-back { display: inline-block; margin: 16px 0 12px; font-size: 14px; color: var(--pink); font-weight: 600; }

.chat-head {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.chat-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.chat-head b { display: block; font-size: 15.5px; line-height: 1.25; }
.chat-head span { font-size: 12.5px; color: var(--ink-40); }

.chat-box {
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px 0; min-height: 40vh; max-height: 58vh; overflow-y: auto;
}
.chat-empty { text-align: center; color: var(--ink-40); padding: 40px 20px; margin: auto; }
.chat-empty b { display: block; color: var(--ink); margin-bottom: 6px; }
.chat-empty p { font-size: 14px; margin: 0; }

.msg { max-width: 76%; align-self: flex-start; }
.msg--my { align-self: flex-end; }
.msg__who { display: block; font-size: 12px; color: var(--ink-40); margin-bottom: 4px; padding-left: 4px; }
.msg__body {
    background: var(--bg-soft); border-radius: 16px 16px 16px 4px;
    padding: 11px 14px; font-size: 14.5px; line-height: 1.45;
    white-space: pre-wrap; word-break: break-word;
}
.msg--my .msg__body { background: var(--pink); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg__time { display: block; font-size: 11px; color: var(--ink-40); margin-top: 4px; padding: 0 4px; }
.msg--my .msg__time { text-align: right; }

.chat-form {
    display: flex; gap: 8px; align-items: flex-end;
    padding-top: 14px; border-top: 1px solid var(--line);
}
.chat-form textarea {
    flex: 1; resize: none; min-height: 48px; max-height: 140px;
    border: 1px solid var(--line); border-radius: 22px;
    padding: 13px 16px; font: inherit; font-size: 15px;
}
.chat-form textarea:focus { outline: none; border-color: var(--pink); }
.chat-form button {
    width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%;
    background: var(--pink); color: #fff; border: 0;
    display: flex; align-items: center; justify-content: center;
}
.chat-form button svg { width: 20px; height: 20px; }
.chat-form button:hover { background: var(--pink-dark); }

@media (min-width: 620px) {
    .acc-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Пустые состояния личных разделов ---------- */

.blank {
    text-align: center; padding: 46px 22px 40px;
    max-width: 420px; margin: 10px auto 0;
}
.blank__icon {
    width: 82px; height: 82px; margin: 0 auto 20px;
    border-radius: 50%; background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
}
.blank__icon svg { width: 38px; height: 38px; }
.blank b {
    display: block; font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px;
}
.blank p { color: var(--ink-60); font-size: 14.5px; line-height: 1.5; margin: 0 auto 22px; }

/* пока шторка открыта, отступ под нижнюю навигацию не нужен:
   он поджимал панель, и кнопка «Показать» уезжала за экран */
body.sheet-open { padding-bottom: 0 !important; }
body.sheet-open .tabbar { display: none; }

/* поводы в шторке фильтров — кружки с фото */
/* лента с прокруткой, как под фильтрами на странице */
.fcats {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    margin: 0 -20px; padding: 2px 20px 4px;
}
.fcats::-webkit-scrollbar { display: none; }
.fcats::after { content: ''; flex: 0 0 4px; }

.fcat {
    flex: 0 0 auto; width: 74px;
    text-align: center; font-size: 11.5px; line-height: 1.25; color: var(--ink-60);
}
.fcat__ring {
    display: block; width: 100%; aspect-ratio: 1; margin-bottom: 7px;
    flex: 0 0 auto;
    border-radius: 50%; overflow: hidden; background: var(--bg-soft);
    box-shadow: 0 0 0 2px #fff, 0 0 0 2px var(--line);
    transition: box-shadow .16s ease;
}
.fcat__ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcat__all {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--pink-soft); color: var(--pink);
}
.fcat__all svg { width: 40%; height: 40%; }
.fcat.is-on { color: var(--pink); font-weight: 600; }
.fcat.is-on .fcat__ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink); }

@media (min-width: 420px) {
    .fcat { width: 80px; font-size: 12px; }
}

/* ---------- Меню пользователя в шапке ---------- */

.umenu { position: relative; flex: 0 0 auto; display: none; }
.umenu__btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .16s ease;
}
.umenu__btn svg { width: 20px; height: 20px; }
.umenu__btn:hover { border-color: var(--pink); color: var(--pink); }
.umenu.is-open .umenu__btn { border-color: var(--pink); color: var(--pink); }

.umenu__ava {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px;
    text-transform: uppercase;
}

.umenu__drop {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
    min-width: 224px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow);
}
.umenu.is-open .umenu__drop { display: block; }

.umenu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.umenu__head b { display: block; font-size: 15px; }
.umenu__head span { font-size: 12.5px; color: var(--ink-40); }

.umenu__drop a {
    display: block; padding: 10px 10px; border-radius: var(--r-sm);
    font-size: 14.5px; color: var(--ink);
}
.umenu__drop a:hover { background: var(--bg-soft); }
.umenu__login { color: var(--pink) !important; font-weight: 600; }
.umenu__sep { height: 1px; background: var(--line); margin: 6px 0; }
.umenu__out {
    width: 100%; text-align: left; padding: 10px; border-radius: var(--r-sm);
    font-size: 14.5px; color: var(--ink-60); background: none; border: 0;
}
.umenu__out:hover { background: var(--bg-soft); color: var(--pink); }

/* на телефоне вместо меню — нижняя навигация */
@media (min-width: 760px) {
    .umenu { display: block; }
}

/* ---------- Вход ---------- */

.auth {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff; padding: 30px 22px 26px;
    margin-top: 18px; text-align: center;
    box-shadow: var(--shadow);
}
.auth__icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
}
.auth__icon svg { width: 30px; height: 30px; }
.auth h1 { font-size: clamp(1.5rem, 4.6vw, 1.9rem); margin-bottom: 8px; }
.auth__sub { color: var(--ink-60); font-size: 14.5px; margin-bottom: 22px; }
.auth__sub b { color: var(--ink); white-space: nowrap; }

/* поля внутри карточки — по левому краю */
.auth .form { text-align: left; }
.auth .form__note { text-align: center; }

/* код — крупно и по центру */
.auth #code {
    text-align: center; font-size: 22px; letter-spacing: .3em;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    padding-left: 10px;
}

.auth__perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.auth__perks li { display: flex; gap: 12px; align-items: flex-start; }
.auth__perks svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--pink); margin-top: 2px; }
.auth__perks span { font-size: 13.5px; color: var(--ink-60); line-height: 1.4; }
.auth__perks b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }

@media (min-width: 620px) {
    .auth { padding: 36px 32px 30px; }
}

/* кнопка «назад» вместо крошек на телефоне */
.back-link {
    display: none; align-items: center; gap: 5px;
    margin: 12px 0 4px; font-size: 15px; font-weight: 600; color: var(--ink);
}
.back-link svg { width: 19px; height: 19px; }
.back-link:hover { color: var(--pink); }

@media (max-width: 759px) {
    .crumbs { display: none; }

    /* внутри события нижняя навигация мешает — там своя панель с ценой */
    body.no-tabbar .tabbar { display: none; }
    body.no-tabbar.has-sticky { padding-bottom: 96px; }
    body.no-tabbar .sticky-cta { bottom: 0; }
}

/* ссылка на весь каталог — под карточками, по центру */
.more-link { display: flex; justify-content: center; margin-top: 22px; }
.more-link a {
    font-size: 15px; font-weight: 600; color: var(--pink);
    padding: 8px 4px;
}
.more-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* отзывы на главной — горизонтальная лента */
.reviews-rail {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    /* лента шире контейнера, поэтому свои отступы по краям */
    margin: 0 -18px; padding: 2px 18px 8px;
    scroll-padding-left: 18px;
}
.reviews-rail::-webkit-scrollbar { display: none; }
/* последняя карточка не липнет к краю */
.reviews-rail::after { content: ''; flex: 0 0 14px; }
.reviews-rail .review {
    flex: 0 0 auto; width: 280px;
}

@media (min-width: 760px) {
    .reviews-rail { margin: 0 -28px; padding: 2px 28px 8px; scroll-padding-left: 28px; gap: 16px; }
    .reviews-rail .review { width: 330px; }
}

/* ---------- Страница события: мобильная подача ---------- */

.ev-top { padding-top: 16px; }
.ev-top h1 {
    font-size: clamp(1.5rem, 5.4vw, 2.2rem);
    line-height: 1.12; margin-bottom: 10px;
}
.ev-top__lead { color: var(--ink-60); font-size: 15px; margin-bottom: 14px; }

.ev-top__price {
    display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.ev-top__price b {
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px;
    color: var(--pink); letter-spacing: -.03em;
}
.ev-top__price s { color: var(--ink-40); font-size: 16px; }
.ev-top__price span { color: var(--ink-40); font-size: 13.5px; }

.ev-top__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-top__facts span {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-soft); border-radius: 999px;
    padding: 7px 13px; font-size: 13px; color: var(--ink-60);
}
.ev-top__facts svg { width: 15px; height: 15px; color: var(--pink); flex: 0 0 auto; }

@media (max-width: 759px) {
    /* фото во всю ширину экрана, как в приложениях */
    .detail__gallery { margin: 0 -18px; }
    .detail__main { border-radius: 0; aspect-ratio: 4 / 3.4; }

    /* цену не дублируем — она в липкой панели внизу */
    .ev-top__price { display: none; }
    .ev-top { padding-top: 18px; padding-bottom: 6px; }

    /* факты не должны заезжать под липкую панель с ценой */
    .ev-top__facts { margin-bottom: 4px; }
}

/* на десктопе шапка события не дублирует правую колонку */
@media (min-width: 760px) {
    .ev-top { padding-top: 0; margin-bottom: 4px; }
    .ev-top__price { display: none; }
}

/* на телефоне цена и характеристики уже показаны в шапке события */
@media (max-width: 759px) {
    .detail__sticky .order-box__price,
    .detail__sticky .specs { display: none; }
    .detail__sticky .order-box > p:first-of-type { display: none; }
}

/* временная подсказка с кодом входа (пока нет SMS) */
.code-hint {
    background: var(--pink-soft); border-radius: var(--r-sm);
    padding: 12px 14px; margin-bottom: 16px;
    font-size: 13.5px; color: var(--ink-60); text-align: center;
}
.code-hint b {
    display: block; margin-top: 4px;
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px;
    letter-spacing: .12em; color: var(--pink);
}

/* ---------- Типографика: иерархия заголовков ---------- */

/* Внутри карточки события h1 — название, h2 — разделы.
   Раньше они были почти одного размера и спорили за внимание. */
.detail h2,
#dates h2 {
    font-size: clamp(1.15rem, 3.4vw, 1.45rem);
    letter-spacing: -.02em;
}

.ev-top h1 {
    font-size: clamp(1.45rem, 5vw, 2rem);
    letter-spacing: -.03em;
}

/* текст разделов — читаемая длина строки и ровный ритм */
.detail p,
.detail li { font-size: 15px; line-height: 1.6; }
.detail > div > .section > p { max-width: 62ch; }

/* «Похожие сценарии» — тоже раздел, не заголовок страницы */
.section__head h2 { font-size: clamp(1.25rem, 3.6vw, 1.7rem); }

@media (max-width: 759px) {
    /* на телефоне разница между названием и разделами должна быть заметной */
    .ev-top h1 { font-size: 1.45rem; line-height: 1.15; }
    .detail h2, #dates h2, .section__head h2 { font-size: 1.15rem; }

    .ev-top__lead { font-size: 14.5px; }
    .detail p, .detail li { font-size: 14.5px; }
}

/* фильтр дополнений по тематикам */
.gfilter {
    display: flex; gap: 7px; flex-wrap: nowrap;
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    margin: 0 0 16px; padding-bottom: 2px;
}
.gfilter::-webkit-scrollbar { display: none; }
.gfilter .chip { flex: 0 0 auto; }

.empty-note {
    text-align: center; color: var(--ink-40); font-size: 14px;
    padding: 28px 16px; margin: 0;
}
