
:root {
    --bg:        #2b2b2b;
    --bg-dark:   #222222;
    --bg-card:   #383838;
    --bg-modal:  #333333;
    --line:      rgba(255, 255, 255, 0.09);
    --text:      #f0eeea;
    --text-dim:  #a9a7a3;
    --accent:    #e2637a;
    --accent-2:  #52b9c9;
    --gold:      #c9a35c;
    --radius:    14px;
    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== btn ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.btn--accent {
    background: var(--accent-2);
    color: #10282c;
    box-shadow: 0 6px 24px rgba(82, 185, 201, 0.25);
}

.btn--accent:hover {
    background: #6fcbd9;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(82, 185, 201, 0.4);
}

.btn--small { padding: 9px 22px; font-size: 12px; }

.btn--review {
    background: linear-gradient(135deg, #ea7d91, var(--accent) 60%, #b8455c);
    color: #fff;
    box-shadow: 0 6px 24px rgba(226, 99, 122, 0.3);
}

.btn--review:hover {
    background: linear-gradient(135deg, #ef8fa1, #e2637a 60%, #c14f66);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(226, 99, 122, 0.45);
}

/* ===== section-head ===== */
.section-head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head__title {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.section-head__text {
    color: var(--text-dim);
    font-size: 15px;
}

/* ===== header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 5vw;
    background: rgba(34, 34, 34, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.header--scrolled {
    background: rgba(34, 34, 34, 0.95);
    padding: 11px 5vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--line);
}

.header__phone {
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-2);
    white-space: nowrap;
}

/* ===== logo ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo__img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.logo:hover .logo__img { transform: rotate(-8deg) scale(1.06); }

.logo__accent { color: var(--gold); font-style: italic; }

/* ===== nav ===== */
.nav { display: flex; gap: 30px; }

.nav__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

/* ===== burger ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger__line {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger--open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open .burger__line:nth-child(2) { opacity: 0; }
.burger--open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
    padding: 84px 0 76px;
}

.hero__photo {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 74svh;
    overflow: hidden;
    z-index: 0;
}

.hero__photo-bg {
    position: absolute;
    inset: 0;
    /* затемнение → hero.jpg → фолбэк Pexels → градиент */
    background:
        linear-gradient(to bottom, rgba(18, 16, 20, 0.4) 0%, rgba(22, 19, 23, 0.42) 45%, rgba(26, 23, 27, 0.78) 80%, var(--bg-dark) 100%),
        url('../Images/hero.jpg') center / cover no-repeat,
        url('https://images.pexels.com/photos/9146366/pexels-photo-9146366.jpeg?auto=compress&cs=tinysrgb&w=1800') center 58% / cover no-repeat,
        radial-gradient(ellipse 90% 80% at 30% 20%, #3d4a42, transparent 65%),
        linear-gradient(150deg, #35312b, #1d1c20);
    animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
    from { transform: scale(1)    translate(0, 0); }
    to   { transform: scale(1.08) translate(-1.5%, 1.5%); }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero__logo-ring {
    width: 132px; height: 132px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 210deg, var(--gold), var(--accent), var(--accent-2), var(--gold));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: fade-up 0.8s ease both;
}

.hero__logo {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.hero__title {
    font-family: var(--font-head);
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    animation: fade-up 0.8s 0.1s ease both;
}

.hero__title-loc {
    display: block;
    margin-top: 4px;
    font-family: 'Marck Script', cursive;
    font-size: 0.62em;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #ffffff;
}

.hero__title-loc-accent {
    font-style: normal;
    background: linear-gradient(120deg, #e3c78f, var(--gold), #9a7433);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 14px rgba(201, 163, 92, 0.25);
}

.hero__title-accent {
    font-style: italic;
    background: linear-gradient(120deg, #e3c78f, var(--gold), #9a7433);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    margin: 20px auto 30px;
    max-width: 520px;
    color: var(--text-dim);
    font-size: 16px;
    animation: fade-up 0.8s 0.25s ease both;
}

.hero .btn { animation: fade-up 0.8s 0.4s ease both; }

.hero__address {
    margin-top: 32px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    opacity: 0.8;
    animation: fade-up 0.8s 0.55s ease both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== scroll-down (индикатор прокрутки внизу героя) ===== */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-down:hover { opacity: 1; transform: translateX(-50%) translateY(3px); }

.scroll-down__mouse {
    position: relative;
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 13px;
}

.scroll-down__dot {
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(201, 163, 92, 0.7);
    animation: scroll-dot 1.8s cubic-bezier(0.25, 0.5, 0.35, 1) infinite;
}

@keyframes scroll-dot {
    0%   { opacity: 0; transform: translateY(0); }
    25%  { opacity: 1; }
    70%  { opacity: 1; transform: translateY(14px); }
    100% { opacity: 0; transform: translateY(16px); }
}

.scroll-down__chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-down__chevrons span {
    width: 8px; height: 8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: scroll-chevron 1.8s ease-in-out infinite;
}

.scroll-down__chevrons span:nth-child(2) { animation-delay: 0.25s; }

@keyframes scroll-chevron {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-down__dot,
    .scroll-down__chevrons span { animation: none; }
}

/* ===== promo / promo-card ===== */
.promo {
    background:
        radial-gradient(45% 40% at 88% 6%, rgba(226, 99, 122, 0.07), transparent 70%),
        radial-gradient(40% 35% at 10% 95%, rgba(201, 163, 92, 0.05), transparent 70%),
        var(--bg);
    padding: 72px 24px;
}

.promo__layout {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 332px 1fr;
    gap: 20px;
}

/* левая видео-галерея: тянется по высоте ряда, видео cover без полей */
.promo__gallery {
    grid-column: 1;
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #14100c;
    cursor: pointer;
}

/* правая сетка карточек-акций (2 плашки в ряд), тянется по высоте галереи */
.promo__cards {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 18px;
}

.promo__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* индикатор загрузки видео */
.promo__loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14100c;
    transition: opacity 0.4s ease;
}

.promo__loader--hidden {
    opacity: 0;
    pointer-events: none;
}

.promo__spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(201, 163, 92, 0.25);
    border-top-color: var(--gold);
    animation: promo-spin 0.9s linear infinite;
}

@keyframes promo-spin {
    to { transform: rotate(360deg); }
}

/* плашка-подсказка вкл/выкл звука (клик обрабатывает вся галерея) */
.promo__sound {
    position: absolute;
    left: 50%; bottom: 14px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 100px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    animation: promo-sound-pulse 1.8s ease-in-out infinite;
}

.promo__sound-icon { font-size: 15px; }

.promo__sound--on { animation: none; opacity: 0.82; }

@keyframes promo-sound-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 99, 122, 0.5); }
    50%      { box-shadow: 0 0 0 7px rgba(226, 99, 122, 0); }
}

.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 24px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease,
                border-color 0.35s ease, opacity 0.7s ease;
}

.promo-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(226, 99, 122, 0.4);
}

.promo-card__icon {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #ea7d91, var(--accent) 55%, #b8455c);
    box-shadow: 0 10px 28px rgba(226, 99, 122, 0.35);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.promo-card:hover .promo-card__icon { transform: scale(1.1) rotate(-6deg); }

.promo-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-card__text {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.promo-card__link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.25s ease;
}

.promo-card:hover .promo-card__link { color: #f08ea1; }

/* ===== feed / card ===== */
.feed {
    background:
        radial-gradient(45% 38% at 8% 6%, rgba(82, 185, 201, 0.06), transparent 70%),
        radial-gradient(45% 40% at 95% 90%, rgba(226, 99, 122, 0.05), transparent 70%),
        var(--bg-dark);
    padding: 72px 24px 88px;
}

.feed__grid {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--line);
    outline: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease,
                border-color 0.35s ease, opacity 0.7s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    border-color: rgba(226, 99, 122, 0.45);
}

.card--wide { grid-column: span 2; aspect-ratio: auto; min-height: 250px; }

.card__bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.card:hover .card__bg { transform: scale(1.06); }

/* Фон каждого окошка: затемнение → фото → градиент-фолбэк, если фото нет */
.card__bg--promo {
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.1), rgba(25, 25, 25, 0.35)),
        url('../Images/cards/promo.jpg') center 40% / cover no-repeat,
        linear-gradient(135deg, #3a2c31, #262226);
}

.card__bg--prices {
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.1), rgba(25, 25, 25, 0.35)),
        url('../Images/cards/prices.jpg') center / cover no-repeat,
        linear-gradient(160deg, #37312a, #26242a);
}

.card__bg--cert {
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.1), rgba(25, 25, 25, 0.35)),
        url('../Images/cards/certificates.jpg') center / cover no-repeat,
        linear-gradient(200deg, #342b33, #252228);
}

.card__bg--subs {
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.1), rgba(25, 25, 25, 0.35)),
        url('../Images/cards/subscriptions.jpg') center 30% / cover no-repeat,
        linear-gradient(140deg, #293434, #232629);
}

.card__bg--reviews {
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.15), rgba(25, 25, 25, 0.45)),
        url('../Images/cards/reviews.jpg') center 12% / cover no-repeat,
        linear-gradient(170deg, #322d33, #252328);
}

.card__bg--master {
    background:
        linear-gradient(to bottom, rgba(25, 25, 25, 0.05), rgba(25, 25, 25, 0.35)),
        url('../Images/specialist/2_spec.PNG') center 25% / cover no-repeat,
        linear-gradient(150deg, #32302d, #242322);
}

/* плитка «Контакты» — статичная карта студии; держим светлой, читаемой */
.card__bg--contacts {
    background:
        url('../Images/cards/contacts.jpg') center / cover no-repeat,
        linear-gradient(150deg, #2b3238, #232528);
}

.card__tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    padding: 7px 15px;
    border-radius: 100px;
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.card__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 48px 20px 18px;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.85), transparent);
}

.card--wide .card__body { padding-top: 72px; }

.card__title {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.25;
}

.card__text {
    margin-top: 5px;
    font-size: 13.5px;
    color: var(--text-dim);
}

.card__hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 25, 25, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card__hover,
.card:focus-visible .card__hover { opacity: 1; }

.card__hover-cta {
    padding: 11px 26px;
    border: 1.5px solid var(--accent-2);
    border-radius: 100px;
    background: rgba(82, 185, 201, 0.15);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(6px);
    transition: transform 0.3s ease, background 0.25s ease;
}

.card:hover .card__hover-cta,
.card:focus-visible .card__hover-cta {
    transform: translateY(0);
    background: rgba(82, 185, 201, 0.28);
}

/* ===== testimonials / testimonial ===== */
.testimonials {
    background:
        radial-gradient(50% 42% at 90% 8%, rgba(82, 185, 201, 0.06), transparent 70%),
        radial-gradient(45% 40% at 5% 95%, rgba(201, 163, 92, 0.05), transparent 70%),
        var(--bg);
    padding: 72px 24px 88px;
}

.testimonials__grid {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease,
                opacity 0.7s ease;
}

.testimonial:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
}

.testimonial__text {
    flex: 1;
    font-size: 14.5px;
    color: var(--text-dim);
    font-style: italic;
}

.testimonial__person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial__avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}

.testimonial__name { font-weight: 700; font-size: 15px; }

.testimonial__stars { color: var(--gold); font-size: 12.5px; letter-spacing: 2px; }

.testimonials__cta { text-align: center; margin-top: 44px; }

/* ===== footer ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--line);
    padding: 64px 24px 0;
}

.footer__grid {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
}

.footer__heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer__text {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 10px;
}

.footer__logo {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__logo-accent { color: var(--gold); font-style: italic; }

.footer__phone {
    display: inline-block;
    margin: 4px 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-2);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.footer__phone:hover { color: #7ed3e0; }

.footer__link {
    color: var(--accent-2);
    font-weight: 700;
    transition: color 0.25s ease;
}

.footer__link:hover { color: #7ed3e0; }

.footer__qr {
    width: 150px;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer__qr:hover { transform: scale(1.05); }

.footer__qr-link { display: inline-block; line-height: 0; }

.footer__bottom {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-dim);
    opacity: 0.7;
    text-align: center;
}

/* ===== modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.modal--open { visibility: visible; opacity: 1; }

/* окно записи должно открываться поверх модалки-поста */
.modal--booking { z-index: 300; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 12, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__window {
    position: relative;
    display: flex;
    width: min(920px, 100%);
    max-height: min(640px, 90svh);
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(226, 99, 122, 0.08), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(82, 185, 201, 0.06), transparent 60%),
        var(--bg-modal);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal--open .modal__window { transform: translateY(0) scale(1); }

.modal__close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 5;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(25, 25, 25, 0.6);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.modal__close:hover { background: rgba(226, 99, 122, 0.35); transform: rotate(90deg); }

.modal__visual {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    position: relative;
    overflow: hidden;
}

.modal__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 60%);
}

.modal__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.modal__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.modal__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.modal__user { font-weight: 700; font-size: 15px; }

.modal__place { font-size: 12.5px; color: var(--text-dim); }

.modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    font-size: 15px;
    color: var(--text-dim);
}

.modal__body::-webkit-scrollbar { width: 6px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.modal__body h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.25;
}

.modal__body p { margin-bottom: 12px; }

/* вступительные/итоговые абзацы модалок выравниваем по ширине */
.modal__body > p {
    text-align: justify;
    hyphens: auto;
}

.modal__body strong { color: var(--accent); }

.modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
}

.modal__actions-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== price-list (контент модалки, генерируется из js) ===== */
.price-list { width: 100%; }

.price-list__row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    padding: 11px 8px;
    border: none;
    border-bottom: 1px dashed var(--line);
    border-radius: 6px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.price-list__row:last-child { border-bottom: none; }

.price-list__row:hover,
.price-list__row:focus-visible {
    background: rgba(82, 185, 201, 0.1);
    outline: none;
}

.price-list__name { color: var(--text); font-weight: 500; }

.price-list__time { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }

.price-list__dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.price-list__value { font-weight: 700; color: var(--accent-2); white-space: nowrap; }

/* ===== offer (контент модалки, генерируется из js) ===== */
.offer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

/* кликабельная акция → открывает запись */
.offer--book {
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.offer--book:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 99, 122, 0.45);
    background: rgba(226, 99, 122, 0.07);
}

.offer--book:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.offer__percent {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    flex-shrink: 0;
    min-width: 76px;
}

.offer__title { color: var(--text); font-size: 15px; margin-bottom: 4px; }

.offer__text { margin: 0; font-size: 14px; }

/* чтобы блок мог сжаться, а ценовая строка листалась */
.offer > div:last-child { min-width: 0; }

/* сертификаты и абонементы: длительность + цены-плашки, переносятся без скролла */
.cert-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 8px;
}

.cert-row__dur {
    flex-shrink: 0;
    min-width: 46px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.cert-chip {
    padding: 4px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
    white-space: nowrap;
}

.cert-chip__old {
    font-weight: 500;
    font-size: 11.5px;
    color: var(--text-dim);
}

/* кликабельная плашка абонемента — открывает запись */
.cert-chip--book {
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cert-chip--book:hover,
.cert-chip--book:focus-visible {
    border-color: var(--accent-2);
    background: rgba(82, 185, 201, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.book-hint {
    font-size: 13px;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 16px;
}

/* сертификаты в столбик: подпись длительности + кликабельные варианты */
.cert-dur {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin: 12px 0 6px;
}

.cert-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 13px;
    margin-bottom: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cert-opt:hover,
.cert-opt:focus-visible {
    border-color: var(--accent-2);
    background: rgba(82, 185, 201, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.cert-opt__name { font-weight: 500; }

.cert-opt__price {
    font-weight: 700;
    color: var(--accent-2);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ===== review (контент модалки, генерируется из js) ===== */
.review {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.review__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review__avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.review__name { font-weight: 600; color: var(--text); font-size: 14px; }

.review__stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }

.review__text { margin: 0; font-size: 14px; }

/* ===== карта в левой панели модалки «Контакты» ===== */
.modal__visual iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    /* карта светлая — приглушаем под тёмную тему, ховер возвращает */
    filter: grayscale(0.3) brightness(0.9);
    transition: filter 0.3s ease;
}

.modal__visual:hover iframe { filter: none; }

/* у карты не нужен декоративный блик поверх */
.modal__window--visual .modal__visual::after { display: none; }

.modal__window--visual .modal__visual {
    padding: 0;
    background: none;
}

/* ===== gallery (фото мастера в левой панели окна «О мастере») ===== */
.gallery {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    background: #1a1a1a;
}

.gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    animation: gallery-fade 0.4s ease;
}

/* видео-отзыв: cover без полос, фикс. область — окно не прыгает */
.gallery--video { background: #000; }

.gallery__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@keyframes gallery-fade {
    from { opacity: 0.35; }
    to   { opacity: 1; }
}

.gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.gallery__arrow:hover {
    background: rgba(226, 99, 122, 0.65);
    transform: translateY(-50%) scale(1.1);
}

.gallery__arrow--prev { left: 10px; }
.gallery__arrow--next { right: 10px; }

.gallery__dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.gallery__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.25s ease, transform 0.25s ease;
}

.gallery__dot--on {
    background: #fff;
    transform: scale(1.3);
}

/* ===== booking ===== */
.booking {
    position: relative;
    width: min(460px, 100%);
    max-height: 92svh;
    overflow-y: auto;
    background:
        radial-gradient(90% 55% at 100% 0%, rgba(82, 185, 201, 0.1), transparent 60%),
        var(--bg-modal);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px 26px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.modal--open .booking { transform: translateY(0) scale(1); }

.booking__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    padding-right: 40px;
}

.booking__subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 20px;
}

.booking__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    pointer-events: none;
}

.booking__label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.booking__input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.booking__input::placeholder { color: rgba(255, 255, 255, 0.25); }

.booking__input:focus {
    outline: none;
    border-color: var(--accent-2);
    background: rgba(255, 255, 255, 0.08);
}

.booking__input--invalid { border-color: var(--accent); }

.booking__input--area { resize: vertical; min-height: 70px; }

.booking__submit {
    width: 100%;
    margin-top: 6px;
}

.booking__submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.booking__status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.booking__status--ok  { color: #7fd6a2; }
.booking__status--err { color: var(--accent); }

/* ===== review-form (окно отзыва — розово-золотая тема, звёздный рейтинг) ===== */
.modal--review { z-index: 300; }

.review-form {
    position: relative;
    width: min(420px, 100%);
    max-height: 92svh;
    overflow-y: auto;
    background: var(--bg-modal);
    border: 1px solid rgba(226, 99, 122, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.modal--open .review-form { transform: translateY(0) scale(1); }

.review-form__head {
    text-align: center;
    padding: 22px 26px 16px;
    background: radial-gradient(circle at 50% 0%, rgba(226, 99, 122, 0.22), transparent 70%);
    border-bottom: 1px solid var(--line);
}

.review-form__badge {
    width: 46px; height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #ea7d91, var(--accent) 60%, #b8455c);
    box-shadow: 0 8px 22px rgba(226, 99, 122, 0.4);
}

.review-form__title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 5px;
}

.review-form__subtitle {
    color: var(--text-dim);
    font-size: 13px;
}

.review-form__form { padding: 18px 26px 22px; }

.review-form__rate {
    text-align: center;
    margin-bottom: 15px;
}

.review-form__rate-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.stars {
    display: inline-flex;
    gap: 7px;
}

.stars__item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.16);
    transition: color 0.15s ease, transform 0.15s ease;
}

.stars__item:hover { transform: scale(1.15); }

.stars__item--on {
    color: var(--gold);
    text-shadow: 0 2px 12px rgba(201, 163, 92, 0.5);
}

.stars--invalid .stars__item { color: rgba(226, 99, 122, 0.5); }

.review-form__label {
    display: block;
    margin-bottom: 11px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.review-form__input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.review-form__input::placeholder { color: rgba(255, 255, 255, 0.25); }

.review-form__input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.review-form__input--invalid { border-color: var(--accent); }

.review-form__input--area { resize: vertical; min-height: 60px; }

.review-form__submit {
    width: 100%;
    margin-top: 4px;
}

.review-form__submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.review-form__status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.review-form__status--ok  { color: #7fd6a2; }
.review-form__status--err { color: var(--accent); }

/* ===== reveal (появление при скролле) ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* до появления гасим свой transition, чтобы не перебивал reveal */
.promo-card.reveal:not(.reveal--visible),
.card.reveal:not(.reveal--visible),
.testimonial.reveal:not(.reveal--visible) { transition: none; }

/* ===== адаптив ===== */
@media (max-width: 900px) {
    .testimonials__grid { grid-template-columns: 1fr; max-width: 480px; }

    .promo__layout {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    /* на мобиле вертикальное видео показываем целиком (в полный рост), без обрезки */
    .promo__gallery {
        grid-column: 1;
        grid-row: auto;
        min-height: 0;
        aspect-ratio: 9 / 16;
        max-height: 78vh;
    }

    .promo__video { object-fit: contain; }

    .promo__cards {
        grid-column: 1;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 14px;
    }
}

@media (max-width: 860px) {
    /* у обычных постов левый визуал декоративный — прячем; у карты оставляем */
    .modal__visual { display: none; }

    .modal__window--visual { flex-direction: column; }

    .modal__window--visual .modal__visual {
        display: block;
        flex: none;
        width: 100%;
        height: 260px;
    }

    .modal__window--visual .modal__content { min-height: 0; }

    /* у мастера вертикальные фото — окно повыше */
    .modal__window--gallery .modal__visual { height: 400px; }
}

@media (max-width: 760px) {
    .nav {
        position: fixed;
        top: 0; right: 0;
        height: 100svh;
        width: min(300px, 80vw);
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        padding: 40px;
        background: rgba(28, 28, 28, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
    }

    .nav--open { transform: translateX(0); }

    .nav__link { font-size: 17px; }

    .header__phone { display: none; }

    .burger { display: flex; z-index: 110; }

    .feed__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .card--wide { grid-column: span 2; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }

    .footer__col--qr .footer__qr { margin: 0 auto 12px; }
}

@media (max-width: 480px) {
    .feed__grid { grid-template-columns: 1fr; }

    .card--wide { grid-column: span 1; }

    .card { aspect-ratio: 4 / 3; }

    .modal { padding: 12px; }

    .modal__window { max-height: 92svh; }

    /* процент — над вариантами, чтобы кнопки были во всю ширину и не переносились */
    .offer { padding: 14px; gap: 6px; flex-direction: column; }
    .offer__percent { min-width: 0; font-size: 22px; }
    .offer__text { font-size: 13px; }
    .cert-opt { font-size: 13px; padding: 9px 11px; gap: 8px; }
    .cert-opt__name { white-space: nowrap; }
    .cert-chip__old { font-size: 11px; }
}

/* ===== consent (согласие на обработку персональных данных) ===== */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 2px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
    cursor: pointer;
}

.consent__box {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--accent-2);
    cursor: pointer;
}

.consent__link {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent__link:hover { color: #6fcbd9; }

.consent--invalid { color: var(--accent); }
.consent--invalid .consent__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.review-form__form .consent__box { accent-color: var(--accent); }
.review-form__form .consent__link { color: var(--gold); }

/* ===== legal (privacy.html) ===== */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal__back {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.legal__back:hover { color: #6fcbd9; }

.legal__title {
    font-family: var(--font-head);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 600;
    line-height: 1.15;
}

.legal__meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.legal__lead {
    margin-top: 26px;
    padding: 18px 22px;
    border-left: 3px solid var(--accent-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(82, 185, 201, 0.07);
    font-size: 15px;
}

.legal__h2 {
    margin-top: 38px;
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.legal__text { margin-bottom: 12px; color: var(--text-dim); }

.legal__text strong,
.legal__list strong { color: var(--text); font-weight: 600; }

.legal__list {
    margin: 0 0 14px;
    padding-left: 4px;
    color: var(--text-dim);
}

.legal__list li {
    position: relative;
    margin-bottom: 7px;
    padding-left: 20px;
}

.legal__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.legal__link {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal__link:hover { color: #6fcbd9; }

.legal__cta { margin-top: 44px; }

@media (max-width: 600px) {
    .legal { padding: 96px 18px 60px; }
    .legal__lead { padding: 14px 16px; font-size: 14px; }
    .legal__h2 { font-size: 21px; margin-top: 30px; }
}

/* ===== faq ===== */
.faq {
    background:
        radial-gradient(48% 44% at 8% 10%, rgba(226, 99, 122, 0.055), transparent 70%),
        radial-gradient(45% 40% at 95% 90%, rgba(82, 185, 201, 0.05), transparent 70%),
        var(--bg-dark);
    padding: 72px 24px 88px;
}

.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 22px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.faq__item:hover { border-color: rgba(82, 185, 201, 0.3); }

.faq__item[open] {
    background: #3d3d3d;
    border-color: rgba(82, 185, 201, 0.28);
}

.faq__q {
    position: relative;
    display: block;
    padding: 18px 34px 18px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: var(--accent-2);
    transition: transform 0.25s ease;
}

.faq__item[open] .faq__q::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq__q:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq__a {
    padding: 0 0 20px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .faq { padding: 56px 18px 66px; }
    .faq__item { padding: 0 16px; }
    .faq__q { font-size: 15px; padding: 15px 30px 15px 0; }
    .faq__a { font-size: 14px; padding-bottom: 16px; }
}

/* подвал без колонок (служебные страницы) */
.footer--slim { padding-top: 0; }
.footer--slim .footer__bottom { border-top: none; padding: 26px 0; }
