:root {
    --color-bg: #0d0d0d;
    --color-surface: #141414;
    --color-accent-red: #8b0000;
    --color-accent-crimson: #ba000d;
    --color-text-main: #ffffff;
    --color-text-muted: #a1a1a1;
    --color-gold: #d4af37;
    --font-heading: 'Playfair Display', 'Cinzel', 'Times New Roman', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --font-logo: 'Russo One', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: pan-y;
}

html {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html.page-reviews {
    overflow: auto;
    height: auto;
    overscroll-behavior: auto;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* =========================================================
   Страница отзывов: разрешаем прокрутку на десктопе
   ========================================================= */
html.page-reviews,
body.page-reviews {
    overflow: auto;
    height: auto;
    min-height: 100%;
    overscroll-behavior: auto;
}

/* =========================================================
   Контейнер слайдов
   ========================================================= */
.slides-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
    touch-action: pan-y;
}

.slides-viewport > section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0s linear 0.55s;
    z-index: 1;
    pointer-events: none;
}

.slides-viewport > section.active-slide {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0s linear 0s;
    z-index: 2;
    pointer-events: auto;
}

/* Индикаторы слайдов справа */
.slides-dots {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
    pointer-events: auto;
}

.slides-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slides-dots button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slides-dots button.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

@media (max-width: 768px) {
    .slides-dots {
        right: 8px;
        gap: 8px;
    }
    .slides-dots button {
        width: 7px;
        height: 7px;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-text-main);
    text-transform: uppercase;
    line-height: 1;
}

.logo span {
    color: var(--color-accent-crimson);
}

.header-slogan {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    text-transform: lowercase;
    margin-top: 3px;
    line-height: 1;
}

.btn-booking {
    background: linear-gradient(135deg, var(--color-accent-red), var(--color-accent-crimson));
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(186, 0, 13, 0.3);
    display: inline-block;
    text-align: center;
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 0, 13, 0.5);
    background: var(--color-accent-crimson);
}

/* Sections Base Structure */
section {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 20px;
    text-align: center;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin-bottom: 20px;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Background Metamorphosis Engine */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    transform: scale(1.18);
    filter: blur(10px) brightness(0.5);
    transition: opacity 1.3s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1.5s cubic-bezier(0.25, 1, 0.5, 1),
                filter 1.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-bg, .contacts-bg { background-image: url('images/interior.jpg'); }
.specials-bg, .team-bg { background-image: url('images/client_corner.jpg'); }
.hair-bg { background-image: url('images/models.jpg'); }
.nails-bg { background-image: url('images/manicure.jpg'); }
.services-bg { background-image: url('images/service.jpg'); }

@media (max-aspect-ratio: 1/1) {
    .hero-bg, .contacts-bg { background-image: url('images/interior_vert.jpg'); }
    .specials-bg, .team-bg { background-image: url('images/client_corner_vert.jpg'); }
    .hair-bg { background-image: url('images/models_vert.jpg'); }
    .nails-bg { background-image: url('images/manicure_vert.jpg'); }
    .services-bg { background-image: url('images/service_vert.jpg'); }
}

section.active-slide .section-bg {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px) brightness(1);
}

.hero-overlay,
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.6) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 1;
}

/* Slide Content Wrapper */
.slide-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center center;
    transition: transform 0.25s ease-out;
}

.hero-content {
    transform-origin: center center;
}

/* Плавное появление элементов
   Задержка 0.75s — среднее между 0.4s (было) и 1.1s (много).
   Сама анимация (0.8s + cubic-bezier) не изменена. */
.animatable-section .section-title,
.animatable-section .section-subtitle {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.animatable-section.animate-in .section-title,
.animatable-section.animate-in .section-subtitle {
    opacity: 1;
}

.animatable-section .portfolio-tabs,
.animatable-section .carousel-container,
.animatable-section .carousel-view-all,
.animatable-section .team-container,
.animatable-section .card,
.animatable-section .service-category,
.animatable-section .contact-card {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.animatable-section.animate-in .portfolio-tabs,
.animatable-section.animate-in .carousel-container,
.animatable-section.animate-in .carousel-view-all,
.animatable-section.animate-in .team-container,
.animatable-section.animate-in .card,
.animatable-section.animate-in .service-category,
.animatable-section.animate-in .contact-card {
    opacity: 1;
}

/* Slide 1 Hero — Glass Plate */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    transition: background 0.8s ease, border-color 0.8s ease,
                backdrop-filter 0.8s ease, box-shadow 0.8s ease;
}

.hero-content.animate-glass {
    background: rgba(20, 20, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-text-block {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.animate-text .hero-text-block {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-family: var(--font-logo);
    font-size: 3.2rem;
    letter-spacing: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.05rem;
    color: #eee;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-contacts {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--color-gold);
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-contacts a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* Slide 2 Specials Grid */
.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.card {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease,
                transform 0.3s ease,
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-red), transparent);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(186, 0, 13, 0.4);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contacts Section */
.contacts-section {
    padding-bottom: 70px;
}

.contact-card {
    max-width: 750px;
    width: 100%;
    padding: 35px 30px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.contact-address-block {
    font-size: 1.05rem;
    color: #eee;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-address-block a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-group-title {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Соцсети */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-link.telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.5);
}

.social-link.vk:hover {
    background: #0077FF;
    border-color: #0077FF;
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.5);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #FCAF45);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.5);
}

.social-link.pinterest:hover {
    background: #E60023;
    border-color: #E60023;
    box-shadow: 0 6px 18px rgba(230, 0, 35, 0.5);
}

/* Кнопка «Позвонить» */
.btn-call {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    margin-top: 10px;
    padding: 10px 22px;
    font-weight: 600;
    letter-spacing: 1px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.btn-call i {
    font-size: 0.9rem;
}

.btn-call:hover {
    background: linear-gradient(135deg, #66bb6a, #388e3c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(76, 175, 80, 0.55);
}

/* Золотые кнопки */
.btn-reviews,
.btn-gold,
.btn-view-all {
    background: linear-gradient(135deg, #e8c65a, #b8901f);
    color: #0d0d0d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

.btn-reviews i,
.btn-gold i,
.btn-view-all i {
    font-size: 0.9rem;
}

.btn-reviews:hover,
.btn-gold:hover,
.btn-view-all:hover {
    background: linear-gradient(135deg, #f2d170, #d4af37);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(212, 175, 55, 0.65);
}

/* Кнопка «Посмотреть все» под каруселями */
.carousel-view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.carousel-view-all .btn-view-all {
    padding: 10px 28px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.8rem;
}

.reviews-link-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.reviews-link-block .btn-booking {
    padding: 11px 26px;
    font-size: 0.82rem;
}

/* Мессенджеры */
.messenger-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.messenger-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.35rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.messenger-link img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
}

.messenger-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.messenger-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.messenger-link.telegram:hover {
    background: #229ed9;
    border-color: #229ed9;
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.5);
}

.messenger-link.max:hover {
    background: linear-gradient(135deg, #2b7cff, #7b3fe4);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(123, 63, 228, 0.5);
}

/* Группа кнопок онлайн-записи */
.booking-buttons-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    width: 100%;
}

.booking-buttons-group .btn-booking {
    padding: 12px 24px;
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Team Section Layout */
.team-section {
    padding-top: 60px;
    padding-bottom: 10px;
}

.team-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 70px;
    width: 100%;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.team-group {
    display: grid;
    gap: 20px;
}

.team-group.hair {
    grid-template-columns: repeat(2, 1fr);
}

.team-group.nails {
    grid-template-columns: 1fr;
}

.team-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    cursor: pointer;
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: block;
    line-height: 0;
}

.team-card:hover .team-img-wrapper {
    transform: scale(1.03);
    border-color: var(--color-gold);
}

.team-img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* =========================================================
   Master Modal
   ========================================================= */
.master-modal-content {
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: masterModalIn 0.3s ease;
}

@keyframes masterModalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.master-modal-img-wrap {
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1 / 1.15;
    margin: 0 auto 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background: var(--color-surface);
    display: block;
    line-height: 0;
    font-size: 0;
}

/* =========================================================
   ВАЖНО: жёсткий override для фото мастера.
   ID-селектор перебивает любые классовые правила,
   включая .lightbox img ниже по файлу.
   ========================================================= */
#masterModalImg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
}

.master-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 4px;
}

.master-modal-role {
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.master-modal-desc {
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 300;
}

/* Tabs & Carousels */
.portfolio-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.tab-btn {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.carousel-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    touch-action: pan-y;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    min-height: 380px;
}

.carousel-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-surface);
    aspect-ratio: 4/5;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
    line-height: 0;
}

.carousel-item:hover {
    transform: scale(1.03);
    border-color: var(--color-gold);
}

.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.carousel-arrow {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--color-accent-crimson);
    border-color: var(--color-accent-crimson);
}

/* =========================================================
   Lightbox
   ---------------------------------------------------------
   ВАЖНО: селектор теперь ">" — правило применяется только
   к картинке-прямому-ребёнку лайтбокса. Иначе оно задевало
   фото мастера внутри .master-modal (у которого тоже класс
   .lightbox) и навязывало ему object-fit: contain.
   ========================================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox > img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

/* Services */
.all-services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.service-category {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-red), transparent);
}

.service-category h4 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

.service-category ul { list-style: none; }

.service-category li {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Подпись последнего слайда */
.slide-signature {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 3;
    pointer-events: none;
    text-align: center;
}

.slide-signature .signature-logo {
    font-family: 'Russo One', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--color-text-main);
    text-transform: uppercase;
    line-height: 1;
}

.slide-signature .signature-copy {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--color-gold);
    line-height: 1;
    letter-spacing: 0.5px;
}

/* Reviews page */
.reviews-main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 100px 20px 90px;
    overflow: hidden;
    text-align: center;
}

.reviews-bg { background-image: url('images/interior.jpg'); }
@media (max-aspect-ratio: 1/1) {
    .reviews-bg { background-image: url('images/interior_vert.jpg'); }
}

.reviews-main .section-bg {
    opacity: 0.45;
    transform: scale(1);
    filter: blur(0px) brightness(0.55);
}

.reviews-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.reviews-widget-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    padding: 12px 12px 4px;
    margin-top: 20px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.reviews-widget-wrapper iframe {
    display: block;
    width: 100%;
    height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
}

.reviews-widget-link {
    display: block;
    text-align: center;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 8px 16px 4px;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.reviews-widget-link:hover {
    color: var(--color-gold);
}

.reviews-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.reviews-actions .btn-booking {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 280px;
    padding: 11px 22px;
    font-size: 0.82rem;
    height: auto;
}

/* =========================================================
   Portfolio page (страница портфолио парикмахеров)
   ========================================================= */
html.page-portfolio,
body.page-portfolio {
    overflow: auto;
    height: auto;
    min-height: 100%;
    overscroll-behavior: auto;
}

.portfolio-main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 90px;
    text-align: center;
    overflow: hidden;
}

.portfolio-bg { background-image: url('images/portfolio_bg.jpg'); }
@media (max-aspect-ratio: 1/1) {
    .portfolio-bg { background-image: url('images/portfolio_bg_vert.jpg'); }
}

.manic-portfolio-bg { background-image: url('images/manic_portfolio_bg.jpg'); }
@media (max-aspect-ratio: 1/1) {
    .manic-portfolio-bg { background-image: url('images/manic_portfolio_bg_vert.jpg'); }
}

/* Статичный фон: фиксируем к вьюпорту, те же настройки,
   что у активного слайда на главной странице
   (opacity: 1, scale: 1, brightness: 1 — без затемнения). */
.portfolio-main .section-bg {
    position: fixed;
    opacity: 1;
    transform: scale(1);
    filter: blur(0px) brightness(1);
    transition: none;
}

.portfolio-main .section-overlay {
    position: fixed;
    background: radial-gradient(circle, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.6) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.portfolio-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-content .section-title {
    margin-bottom: 10px;
}

.portfolio-content .section-subtitle {
    margin-bottom: 30px;
}

/* Сетка фотографий.
   По умолчанию — 3 в ряд (горизонтальная ориентация).
   В портретной ориентации — 2 в ряд.
   Фото чуть уменьшены, отступы увеличены — карточки
   не растягиваются на всю ширину, а «дышат». */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    gap: 48px 44px;
    width: 100%;
}

@media (max-aspect-ratio: 1/1) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 220px));
        gap: 34px 28px;
    }
}

.portfolio-grid-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-surface);
    aspect-ratio: 4 / 5;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
    line-height: 0;
}

.portfolio-grid-item:hover,
.portfolio-grid-item:focus-visible {
    transform: scale(1.03);
    border-color: var(--color-gold);
    outline: none;
}

.portfolio-grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: var(--color-surface);

    /* Плавное появление — та же кривая, что на главной
       у .animatable-section. Задержка задаётся через
       CSS-переменную --reveal-delay (задаёт JS). */
    opacity: 0;
    transform: translateY(15px) scale(1.05);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) var(--reveal-delay, 0ms),
                transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) var(--reveal-delay, 0ms);
}

.portfolio-grid-item.is-visible img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Мобильная адаптация: если экран очень узкий —
   уменьшаем отступы и закругляем сильнее */
@media (max-width: 480px) {
    .portfolio-main { padding: 80px 12px 70px; }
    .portfolio-grid { gap: 16px 14px; }
    .portfolio-grid-item { border-radius: 10px; }
    .portfolio-content .section-subtitle { margin-bottom: 20px; }
}

/* НИЗКИЕ ЭКРАНЫ */
@media (max-height: 700px) {
    section { padding-top: 60px; padding-bottom: 12px; }
    .section-title { font-size: 1.8rem; margin-bottom: 10px; }
    .section-subtitle { font-size: 0.88rem; margin-bottom: 14px; }
    .carousel-track { min-height: 320px; }
    .carousel-view-all { margin-top: 14px; }
    .contact-card { padding: 25px 22px; gap: 12px; }
    .hero h1 { font-size: 2.6rem; }
    .hero p { font-size: 0.98rem; margin-bottom: 16px; }
    .slide-signature { bottom: 10px; }
    .slide-signature .signature-logo { font-size: 1rem; }
    .slide-signature .signature-copy { font-size: 0.9rem; }
}

@media (max-height: 540px) {
    section { padding-top: 52px; padding-bottom: 6px; }
    .section-title { font-size: 1.4rem; margin-bottom: 6px; letter-spacing: 1px; }
    .section-subtitle { font-size: 0.75rem; margin-bottom: 8px; }
    .carousel-track { min-height: 230px; gap: 10px; }
    .carousel-view-all { margin-top: 8px; }
    .carousel-view-all .btn-view-all { padding: 7px 18px; font-size: 0.72rem; }
    .portfolio-tabs { margin-bottom: 10px; gap: 6px; }
    .tab-btn { padding: 6px 12px; font-size: 0.72rem; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
    .contact-card { padding: 16px 16px; gap: 8px; }
    .contact-address-block { font-size: 0.9rem; }
    .hero h1 { font-size: 2rem; letter-spacing: 3px; }
    .hero-content { padding: 16px 14px; }
    .hero p { font-size: 0.85rem; margin-bottom: 12px; }
    .hero-contacts { font-size: 0.8rem; margin-bottom: 12px; }
    .card { padding: 14px 15px; }
    .card h3 { font-size: 1.05rem; margin-bottom: 6px; }
    .card p { font-size: 0.8rem; line-height: 1.35; }
    .service-category { padding: 14px 16px; }
    .service-category h4 { font-size: 0.98rem; margin-bottom: 8px; }
    .service-category li { font-size: 0.8rem; margin-bottom: 4px; }
    .team-img-wrapper { margin-bottom: 5px; }
    .team-card h3 { font-size: 1rem; }
    .slide-signature { bottom: 4px; }
    .slide-signature .signature-logo { font-size: 0.85rem; letter-spacing: 2px; }
    .slide-signature .signature-copy { font-size: 0.75rem; }
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ (ТОЛЬКО ПОРТРЕТ) */
@media (max-width: 768px) and (max-aspect-ratio: 1/1) {
    section { padding: 70px 15px 15px; }

    .hero h1 { font-size: 2rem; }
    .hero-content { padding: 20px 15px; }
    .hero p { font-size: 0.9rem; margin-bottom: 15px; }
    .hero-contacts { flex-direction: column; gap: 5px; font-size: 0.85rem; }
    .hero-contacts .contact-divider { display: none; }
    .hero-contacts .contact-addr,
    .hero-contacts .contact-phone { display: block; width: 100%; }

    .section-title { font-size: 1.4rem; margin-bottom: 6px; }
    .section-subtitle { font-size: 0.8rem; margin-bottom: 12px; }
    .specials-grid { grid-template-columns: 1fr; gap: 10px; }
    .card { padding: 14px 15px; border-radius: 12px; }
    .card h3 { font-size: 1.05rem; margin-bottom: 5px; }
    .card p { font-size: 0.78rem; line-height: 1.35; }

    .contacts-section { padding-top: 65px; padding-bottom: 55px; }
    .contact-card { padding: 18px 15px; gap: 10px; }
    .contact-group-title { font-size: 0.8rem; }
    .booking-buttons-group { flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
    .booking-buttons-group .btn-booking {
        width: 100%; padding: 10px 14px; font-size: 0.75rem; white-space: normal;
    }

    .team-section { padding-top: 60px; }
    .team-container { flex-direction: column; gap: 12px; align-items: center; }
    .team-group { gap: 8px; }
    .team-group.hair, .team-group.nails { grid-template-columns: repeat(2, 1fr); }
    .team-card { width: 135px; }
    .team-card h3 { font-size: 0.85rem; }

    .master-modal-content { padding: 20px 18px; }
    .master-modal-img-wrap { width: 180px; }
    .master-modal-content h3 { font-size: 1.35rem; }
    .master-modal-role { font-size: 0.82rem; }
    .master-modal-desc { font-size: 0.82rem; }

    .carousel-track { grid-template-columns: 1fr; min-height: 290px; }
    .carousel-item:nth-child(2),
    .carousel-item:nth-child(3) { display: none; }
    .carousel-view-all { margin-top: 14px; }
    .carousel-view-all .btn-view-all { padding: 10px 22px; font-size: 0.78rem; }
    .all-services-list { grid-template-columns: 1fr; gap: 10px; }
    .service-category { padding: 15px; }

    header { padding: 10px 4%; }
    .logo { font-size: 1.2rem; }
    .header-slogan { font-size: 0.6rem; letter-spacing: 1px; }
    .logo-img { height: 32px; }
    .btn-booking { padding: 8px 14px; font-size: 0.75rem; }

    .slide-signature { bottom: 12px; }
    .slide-signature .signature-logo { font-size: 1rem; }
    .slide-signature .signature-copy { font-size: 0.9rem; }

    .btn-call { width: 100%; padding: 10px 14px; font-size: 0.78rem; gap: 6px; }

    .reviews-link-block { width: 100%; }
    .reviews-link-block .btn-booking { width: 100%; padding: 10px 14px; font-size: 0.78rem; }

    .messenger-links { gap: 12px; }
    .messenger-link { width: 46px; height: 46px; font-size: 1.2rem; }
    .messenger-link img { width: 24px; height: 24px; }

    .social-links { gap: 12px; }
    .social-links a { width: 40px; height: 40px; font-size: 1.1rem; }

    .reviews-main { padding: 80px 15px 70px; }
    .reviews-widget-wrapper { padding: 8px 8px 2px; border-radius: 14px; }
    .reviews-widget-wrapper iframe { height: 560px; }
    .reviews-actions { flex-direction: column; gap: 10px; width: 100%; align-items: stretch; }
    .reviews-actions .btn-booking { width: 100%; max-width: none; flex: 0 0 auto; height: auto; }
    .btn-back { padding: 8px 16px; font-size: 0.72rem; }
    .btn-back span { display: none; }
    .btn-back i { font-size: 0.9rem; }
    .reviews-actions .btn-back span { display: inline; }
}

@media (max-height: 600px) {
    .reviews-widget-wrapper iframe { height: 480px; }
    .reviews-main { padding-top: 70px; }
}

/* =========================================================
   12. БУРГЕР-МЕНЮ
   ---------------------------------------------------------
   Кнопка автоматически встраивается в <header> скриптом
   (см. script.js → setupBurgerMenu). Оверлей — отдельный
   <nav class="burger-menu">, тоже создаётся скриптом.
   ========================================================= */

/* Группа кнопок в правой части шапки */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Кнопка-бургер: три белые полоски */
.burger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center center;
}

/* Превращение в «крестик» */
.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Оверлей меню */
.burger-menu {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    pointer-events: none;
}

.burger-menu.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

.burger-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.burger-menu a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
    padding: 4px 12px;
}

.burger-menu a:hover,
.burger-menu a:focus-visible {
    color: var(--color-gold);
    transform: scale(1.05);
    outline: none;
}

@media (max-width: 768px) {
    .burger-menu ul {
        gap: 16px;
    }
    .burger-menu a {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }
}

@media (max-height: 540px) {
    .burger-menu ul {
        gap: 10px;
    }
    .burger-menu a {
        font-size: 1.1rem;
    }
}

/* При открытом меню шапка остаётся выше оверлея,
   чтобы бургер (крестик) был кликабелен */
body.menu-open header {
    z-index: 1600;
    background: rgba(13, 13, 13, 0.96);
    border-bottom-color: transparent;
}

/* Скрываем индикаторы слайдов под меню */
body.menu-open .slides-dots {
    display: none;
}

/* Блокируем прокрутку фона, пока меню открыто */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* =========================================================
   13. СТРАНИЦА «УСЛУГИ И ЦЕНЫ»
   ========================================================= */
html.page-prices,
body.page-prices {
    overflow: auto;
    height: auto;
    min-height: 100%;
    overscroll-behavior: auto;
}

.prices-main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 90px;
    text-align: center;
    overflow: hidden;
}

.prices-bg { background-image: url('images/price.jpg'); }
@media (max-aspect-ratio: 1/1) {
    .prices-bg { background-image: url('images/price_vert.jpg'); }
}

.prices-main .section-bg {
    position: fixed;
    opacity: 1;
    transform: scale(1);
    filter: blur(0px) brightness(1);
    transition: none;
}

.prices-main .section-overlay {
    position: fixed;
    background: radial-gradient(circle, rgba(13, 13, 13, 0.45) 0%, rgba(13, 13, 13, 0.78) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.prices-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prices-content .section-title { margin-bottom: 10px; }
.prices-content .section-subtitle { margin-bottom: 14px; }

.price-validity {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

/* Сетка категорий */
.price-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    text-align: left;
}

.price-category {
    background: rgba(20, 20, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px 24px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.price-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-red), transparent);
}

.price-category.wide { grid-column: 1 / -1; }

.price-category-title {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
}

/* Подзаголовки внутри категории */
.price-subtitle {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin: 18px 0 6px;
    text-align: left;
}
.price-subtitle:first-of-type { margin-top: 0; }

/* Списки цен */
.price-list { list-style: none; }

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-size: 0.87rem;
    color: #ccc;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.price-list li:last-child { border-bottom: none; }

.price-name { flex: 1 1 auto; line-height: 1.35; }

.price-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-top: 2px;
}

.price-value {
    flex: 0 0 auto;
    color: var(--color-gold);
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Таблицы цен */
.price-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 0.83rem;
    font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
    padding: 8px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.price-table th:first-child,
.price-table td:first-child {
    text-align: left;
    white-space: normal;
    min-width: 118px;
    color: #eee;
}

.price-table thead th {
    color: var(--color-gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    vertical-align: bottom;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.price-table tbody tr:last-child td { border-bottom: none; }

.price-table tbody td:not(:first-child) {
    color: var(--color-gold);
    font-weight: 600;
}

.price-disclaimer {
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    font-weight: 300;
    font-style: italic;
    text-align: left;
    margin-top: 12px;
}

/* Двухколоночный блок внутри широкой карточки */
.price-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 44px;
}

/* Кнопки внизу страницы */
.prices-actions {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.prices-actions .btn-booking {
    padding: 11px 26px;
    font-size: 0.82rem;
}

/* --- Адаптация --- */
@media (max-width: 860px) {
    .price-categories { grid-template-columns: 1fr; gap: 18px; }
    .price-split { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) and (max-aspect-ratio: 1/1) {
    .prices-main { padding: 80px 15px 70px; }
    .price-category { padding: 18px 16px 14px; border-radius: 14px; }
    .price-category-title { font-size: 0.92rem; }
    .price-list li { font-size: 0.8rem; gap: 10px; }
    .price-table { font-size: 0.76rem; min-width: 430px; }
    .price-table th,
    .price-table td { padding: 7px 6px; }

    .prices-actions { flex-direction: column; align-items: stretch; }
    .prices-actions .btn-booking { width: 100%; }
    .prices-actions .btn-back span { display: inline; }
}

@media (max-height: 700px) {
    .prices-main { padding-top: 80px; }
}