/* === БАЗОВЫЕ СТИЛИ === */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* === ШАПКА === */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 22px;
}

.logo span {
    color: #ff4b6a;
}

.nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

/* === APPLE STYLE — МЕНЮ В 2 РЯДА ПО ЦЕНТРУ === */

/* Убираем горизонтальный скролл */
body {
    overflow-x: hidden;
}

/* Контейнер шапки */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Логотип — фиксированная зона */
.logo {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Кнопка справа — фиксированная зона */
/* === APPLE GLASS BUTTON В ШАПКЕ === */
#openModal {
    position: relative;
    overflow: hidden;

    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 28px;
    min-width: 250px;
    margin-right: -80px;

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.25);

    color: #fff;
    cursor: pointer;
    transition: 0.35s ease;
    white-space: nowrap;
}

#openModal::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 140%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.55),
        transparent
    );
    transform: skewX(-20deg);
    animation: glassShineHeader 5s infinite;
}

@keyframes glassShineHeader {
    0% { left: -150%; }
    70% { left: 150%; }
    100% { left: 150%; }
}

#openModal:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.35);
}

/* МЕНЮ — центрируем и разрешаем 2 строки */
.header .nav {
    flex: 1 1 auto;          /* меню занимает центр */
    min-width: 0;            /* позволяет сжиматься */
    display: flex;
    flex-wrap: wrap;         /* ← разрешаем 2 строки */
    justify-content: center; /* ← центрируем обе строки */
    gap: 10px 14px;          /* вертикальный и горизонтальный отступ */
    padding: 0 10px;
}

/* Кнопки меню — Apple‑капсулы */
.header .nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f2f2f2;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;          /* кнопки не сжимаются */
}

/* Наведение */
.header .nav a:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* Активная вкладка */
.header .nav a.active {
    background: #ff4b6a;
    color: #fff;
}

/* Адаптив */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .nav {
        order: 2;
        flex-wrap: wrap;
    }

    #openModal {
        order: 3;
    }
}

/* === КНОПКИ === */
.btn-primary {
    background: #ff4b6a;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #ff3555;
}

.btn-outline {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ff4b6a;
    color: #ff4b6a;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #ff4b6a;
    color: #fff;
}
/* === HERO С ФОНОВЫМ ИЗОБРАЖЕНИЕМ === */
.hero {
    width: 100%;
    height: 480px;
    padding: 60px 0;
    text-align: center;

    /* Фоновое изображение */
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* затемнение */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* контент поверх фона */
.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

/* Заголовок */
.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

/* Подзаголовок */
.hero p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

/* === СЕКЦИИ === */
.categories {
    padding: 50px 0;
}

/* === СЕТКА КАРТОЧЕК === */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* === КАРТОЧКИ === */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: 0.2s;
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.service-card-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* === КАРТОЧКА КЛИКАБЕЛЬНАЯ === */
.clickable-card {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* === МОДАЛКИ === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    width: auto;
    max-width: 350px;
}

/* === ПОЛНОЭКРАННОЕ ОКНО УСЛУГ — ВСЕГДА ШИРОКОЕ === */
.modal-content.fullscreen {
    width: 90% !important;
    max-width: 900px !important;
    padding: 30px;
    border-radius: 16px;
    max-height: 90vh;
    overflow-y: auto;
}

/* === form-big НЕ ДОЛЖЕН ПЕРЕБИВАТЬ fullscreen === */
.modal-content.form-big {
    width: 90%;
    max-width: 550px;
    padding: 40px 35px;
    border-radius: 18px;
    animation: fadeIn .25s ease;
}

/* === КРАСИВЫЕ ПОЛЯ ВВОДА === */
.input,
.modal-content.form-big input[type="text"],
.modal-content.form-big input[type="tel"],
.modal-content.form-big input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 18px;
    transition: border .2s;
}

.input:focus,
.modal-content.form-big input:focus {
    border-color: #ff4b6a;
    outline: none;
}
/* === КРУПНЫЙ КРЕСТИК === */
.close-service {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

/* === ИЗОБРАЖЕНИЕ В МОДАЛКЕ === */
.service-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* === ФОРМАТ 16:9 ДЛЯ ИЗОБРАЖЕНИЯ В МОДАЛКЕ === */
.modal-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 auto 20px;
    border-radius: 12px;
    background: #fff;
}

.modal-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-height: 80vh;
}

/* === ТЕКСТ В МОДАЛКЕ === */
#serviceTitle {
    font-size: 28px;
    margin-bottom: 10px;
}

#serviceDescription {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
}
/* === БОЛЬШИЕ КРАСИВЫЕ МОДАЛКИ === */
.modal-content.form-big {
    width: 90%;
    max-width: 550px;
    padding: 40px 35px;
    border-radius: 18px;
    animation: fadeIn .25s ease;

    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);

    border: 4px solid #f4dfa7;
    box-shadow: 0 0 35px rgba(244, 223, 167, 0.45);
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    text-align: center;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

/* === ПОЛЯ ВВОДА === */
.modal-content.form-big input[type="text"],
.modal-content.form-big input[type="tel"],
.modal-content.form-big input[type="number"],
.modal-content.form-big input[type="date"],
.modal-content.form-big input[type="time"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 18px;
    background: white;
    transition: border .2s, box-shadow .2s;
    appearance: none;
}

.modal-content.form-big input:focus {
    border-color: #f4dfa7;
    box-shadow: 0 0 8px rgba(244, 223, 167, 0.6);
    outline: none;
}

/* === SELECT === */
.modal-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 18px;
    background: white;
    transition: border .2s, box-shadow .2s;
}

.modal-select:focus {
    border-color: #f4dfa7;
    box-shadow: 0 0 8px rgba(244, 223, 167, 0.6);
    outline: none;
}

/* === TEXTAREA === */
.modal-textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 18px;
    resize: none;
    background: white;
    box-sizing: border-box;
    transition: border .2s, box-shadow .2s;
}

.modal-textarea:focus {
    border-color: #f4dfa7;
    box-shadow: 0 0 8px rgba(244, 223, 167, 0.6);
    outline: none;
}

/* === ПОЛЕ "ДРУГОЕ" === */
.modal-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 18px;
    background: white;
    transition: border .2s, box-shadow .2s;
}

.modal-input:focus {
    border-color: #f4dfa7;
    box-shadow: 0 0 8px rgba(244, 223, 167, 0.6);
    outline: none;
}

/* === ДВЕ КОЛОНКИ (РАЗДЕЛЕНЫ) === */
.form-row.separated {
    display: flex;
    gap: 20px;
}

.form-row.separated > div {
    flex: 0 0 48%;
}

/* === ИКОНКИ ДАТЫ И ВРЕМЕНИ === */
.date-input,
.time-input {
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 45px !important;
}

.date-input {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f4dfa7" height="22" width="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10h5v5H7z"/><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"/></svg>');
}

.time-input {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f4dfa7" height="22" width="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 1a11 11 0 1 0 11 11A11.013 11.013 0 0 0 12 1zm1 11.59V7h-2v6h.01L13 15l1.41-1.41z"/></svg>');
}

/* === КНОПКА === */
.form-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 10px;
}

/* === АНИМАЦИЯ === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === АДАПТИВ === */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.service-tile {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    display: block;
    height: 260px;
}

.tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
}

.service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Контейнер миниатюр */
.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* Миниатюры */
.thumbs img.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

/* Наведение */
.thumbs img.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}					

/* Активная миниатюра */
.thumbs img.thumb.active {
    opacity: 1;
    border: 2px solid #ff4081;
}

/* Логотип с картинкой */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    white-space: nowrap;
}

/* Логотип по высоте всей шапки */
.logo-img {
    height: 170px;        /* ← высота шапки примерно 50px */
    width: auto;         /* сохраняем пропорции */
    object-fit: contain;
}

.logo {
    margin-left: -45px; /* можно менять на -10, -20, -30 */
}

/* === HERO С ФОНОВЫМ ИЗОБРАЖЕНИЕМ === */
.hero {
    width: 100%;
    height: 480px;
    padding: 60px 0;
    text-align: center;

    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* затемнение */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* контент поверх фона */
.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff !important;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff !important;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff !important;
}

.hero .btn-primary:hover {
    background: #ff2f52 !important;
    transform: translateY(-2px);
}
/* === APPLE GLASS BUTTON — стекло + внутреннее свечение + 3D === */
.hero .btn-primary {
    position: relative;
    overflow: hidden;

    /* Размер — больше */
    padding: 20px 48px;
    margin-top: 80px;

    /* Настоящий стеклянный эффект */
    background: rgba(100, 100, 100, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    /* 3D‑объём */
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 32px;
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.25), /* внутреннее свечение */
        0 8px 28px rgba(0, 0, 0, 0.35);           /* внешний объём */

    /* Текст */
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4px;

    cursor: pointer;
    transition: 0.35s ease;
}

/* Мягкий премиальный блик */
.hero .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 140%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.55),
        transparent
    );
    transform: skewX(-20deg);
    animation: glassShine 5s infinite;
}

@keyframes glassShine {
    0% { left: -150%; }
    70% { left: 150%; }
    100% { left: 150%; }
}

/* Наведение — больше объёма, больше света */
.hero .btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.35),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

/* === УСТРАНЕНИЕ ГОРИЗОНТАЛЬНОЙ ПРОКРУТКИ === */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    * {
        box-sizing: border-box;
    }
}

/* === КОМПАКТНЫЙ МОБИЛЬНЫЙ HEADER === */
@media (max-width: 768px) {

    header {
        padding: 6px 0;
        background: #fff;
        text-align: center;
    }

    /* Логотип */
    header img,
    .logo img {
        max-width: 400px;
        height: 200px;
        display: block;
        margin: 0 auto 6px;
    }

    /* Навигация */
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        background: #f3f3f3;
        border-radius: 12px;
        width: 100%;
    }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ HERO === */
@media (max-width: 768px) {

    .hero {
        height: auto;
        padding: 70px 0 90px;
        text-align: center;
        background-position: center;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 12px;
        padding: 0 20px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.35;
        margin-bottom: 28px;
        padding: 0 20px;
    }

    .hero .btn-primary {
        padding: 18px 40px;
        font-size: 18px;
        border-radius: 28px;
        margin-top: 25px;
        width: auto;
    }
}

/* === ГЛОБАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 768px) {

    .container {
        width: 100%;
        padding: 0 18px;
    }

    h1, h2, h3 {
        text-align: center;
    }

    p {
        font-size: 16px;
        line-height: 1.4;
    }

    section {
        padding: 40px 0;
    }
}

/* === АДАПТАЦИЯ СЕТКИ И КАРТОЧЕК === */
@media (max-width: 768px) {

    /* Сетка — одна колонка */
    .grid,
    .animated-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }

    /* Карточка */
    .card,
    .service-card,
    .clickable-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
    }

    /* Изображение */
    .card img,
    .card-img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Кнопки внутри карточки */
    .service-card-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .service-card-buttons button {
        width: 100%;
    }
}

/* === АДАПТАЦИЯ МЕНЮ === */
@media (max-width: 768px) {

    nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    nav a {
        font-size: 18px;
    }
}

/* === АНИМАЦИИ ПРИ ПРОКРУТКЕ === */

/* Исходное состояние */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Появление */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}
.fade-in.visible {
    opacity: 1;
}

/* Scale-in */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger — задержка появления */
.stagger:nth-child(1) { transition-delay: 0.1s; }
.stagger:nth-child(2) { transition-delay: 0.2s; }
.stagger:nth-child(3) { transition-delay: 0.3s; }
.stagger:nth-child(4) { transition-delay: 0.4s; }
.stagger:nth-child(5) { transition-delay: 0.5s; }

/* Параллакс для hero */
.hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* === ФИРМЕННЫЙ ФОН ШАПКИ === */
.header {
    background-image: url("../images/header-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Чтобы контент не прилипал к краям */
.header-inner {
    position: relative;
    z-index: 2;
}

/* Лёгкая затемняющая подложка (если нужно усилить читаемость) */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15); /* можно убрать или усилить */
    z-index: 1;
}

.scroll-arrow {
    width: 48px;
    height: 48px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(-45deg);
    margin: 20px auto 0;
    animation: arrowBounce 1.4s infinite ease-in-out;
    opacity: 0.9;
}

@keyframes arrowBounce {
    0% { transform: translateY(0) rotate(-45deg); opacity: 0.9; }
    50% { transform: translateY(8px) rotate(-45deg); opacity: 0.5; }
    100% { transform: translateY(0) rotate(-45deg); opacity: 0.9; }
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    border: 2px solid #eee;
    transition: .2s;
}

.filter-btn:hover {
    background: #ff4da6;
    color: #fff;
    border-color: #ff4da6;
    transform: translateY(-3px);
}

/* === APPLE GLASS BUTTONS ДЛЯ КАТЕГОРИЙ НА ГЛАВНОЙ === */
.category-glass {
    position: relative;
    overflow: hidden;

    display: inline-block;
    padding: 18px 36px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 32px;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.25),
        0 8px 28px rgba(0, 0, 0, 0.35);

    color: #333;
    cursor: pointer;
    transition: 0.35s ease;
    white-space: nowrap;
}

/* Блик */
.category-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 140%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.55),
        transparent
    );
    transform: skewX(-20deg);
    animation: glassShineCats 5s infinite;
}

@keyframes glassShineCats {
    0% { left: -150%; }
    70% { left: 150%; }
    100% { left: 150%; }
}

/* Наведение */
.category-glass:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.35),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.after-hero-bg {
    background: linear-gradient(
        to bottom,
        #f9efd6 0%,   /* светлее */
        #f5e3bd 40%, /* мягкий тёплый оттенок */
        #f9efd6 100% /* светлый золотистый */
    );
    padding: 80px 0;
}
.category-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* === НОВЫЕ КАРТОЧКИ С ТЕКСТОМ И КНОПКОЙ НА ИЗОБРАЖЕНИИ === */
.anim-card {
    position: relative;
    display: block;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.anim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* Фото */
.anim-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Затемнение */
.anim-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

/* Контент поверх фото */
.anim-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;   /* ← центр по вертикали */
    align-items: center;       /* ← центр по горизонтали */
    text-align: center;        /* ← выравнивание текста */

    padding: 20px;
    gap: 12px;

    background: rgba(0,0,0,0.45); /* ← равномерное затемнение */
    color: #fff;
}

.anim-card-overlay h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
}

.anim-card-overlay p {
    margin: 0 0 14px;
    font-size: 16px;
    opacity: 0.9;
}

/* === КНОПКА APPLE GLASS НА КАРТОЧКЕ === */
.glass-btn {
    position: relative;
    overflow: hidden;

    padding: 12px 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.25);

    color: #fff;
    cursor: pointer;
    transition: 0.35s ease;
    width: fit-content;
}

.glass-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {

    /* Вся шапка — строго по центру */
    .header-inner {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px;
        width: 100%;
        text-align: center;
    }

    /* Логотип по центру */
    .logo {
        margin-left: 0 !important;
    }

    /* Меню строго по центру */
    .header .nav {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        text-align: center;
        gap: 10px 14px;
    }

    .header .nav a {
        margin: 0 !important;
        text-align: center !important;
    }

    /* Кнопка "Заказать праздник" строго по центру */
    #openModal {
        margin-right: 0 !important;
        align-self: center !important;
    }
}

/* === КОНТРАСТНОЕ AMBER GLASS ДЛЯ КНОПКИ "ЗАКАЗАТЬ ПРАЗДНИК" === */
#openModal {
    background: rgba(255, 140, 0, 0.35) !important; /* янтарное стекло */
    border: 1px solid rgba(255, 200, 120, 0.55) !important; /* золотистая рамка */

    /* НОВЫЙ ТЕКСТ — максимально читаемый, тёплый */
    color: #4a2a00 !important;

    box-shadow:
        inset 0 0 18px rgba(255, 200, 120, 0.35),
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 14px rgba(255, 200, 120, 0.55) !important;
}

/* ЕЩЁ БОЛЕЕ НАСЫЩЕННЫЙ ХОВЕР */
#openModal:hover {
    background: rgba(255, 140, 0, 0.80) !important; /* почти неоновый amber */
    box-shadow:
        inset 0 0 30px rgba(255, 200, 120, 0.65),
        0 14px 40px rgba(0, 0, 0, 0.50),
        0 0 24px rgba(255, 200, 120, 0.95) !important;
}

/* === ТЁПЛОЕ GOLDEN GLASS ДЛЯ КНОПОК НАВИГАЦИИ === */
.header .nav a {
    background: rgba(255, 220, 160, 0.28) !important; /* тёплое золотистое стекло */
    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    /* читаемый графитовый текст */
    color: #3a2f1f !important;

    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.18),
        0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* ЕЩЁ БОЛЕЕ НАСЫЩЕННЫЙ ХОВЕР ДЛЯ НАВИГАЦИИ */
.header .nav a:hover {
    background: rgba(255, 220, 160, 0.65) !important; /* заметно ярче */
    color: #2a2216 !important;
}

/* АКТИВНАЯ ВКЛАДКА — МАКСИМАЛЬНО ВЫДЕЛЕНА */
.header .nav a.active {
    background: rgba(255, 220, 160, 0.90) !important; /* почти плотный золотистый */
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #1a140d !important; /* самый контрастный текст */
}

/* === Плавающая кнопка === */
.contact-float-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.75);
    border: 1px solid rgba(255, 200, 120, 0.7);
    color: #3a1f00;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    transition: 0.25s;
    z-index: 9999;
}

.contact-float-btn:hover {
    background: rgba(255, 140, 0, 0.95);
}

/* === Модальное окно === */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.contact-modal {
    background: rgba(255, 220, 160, 0.35);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 16px;
    padding: 22px;
    width: 300px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    text-align: center;
}

.contact-modal h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #f4dfa7;
}

/* Иконки */
.contact-icons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: rgba(255, 220, 160, 0.45);
    border: 1px solid rgba(255,255,255,0.55);
    color: #3a2f1f;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 58px;
    cursor: pointer;
    transition: 0.25s;
    margin: 6px;
}

.contact-icon:hover {
    background: rgba(255, 220, 160, 0.75);
}

/*логотипы мессенджеров*/
.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.float-icon {
    width: 90%;
    height: 70%;
    object-fit: contain;
    pointer-events: none; /* чтобы клик проходил по кнопке */
    margin-top: 7px;
}

/* === УНИКАЛЬНЫЕ ФОНЫ ДЛЯ КАЖДОЙ СТРАНИЦЫ === */

.hero-animators {
    background-image: url("../images/hero-animators.jpg") !important;
}

.hero-decor {
    background-image: url("../images/hero-decor.jpg") !important;
}

.hero-masters {
    background-image: url("../images/hero-masters.jpg") !important;
}

.hero-quests {
    background-image: url("../images/hero-quests.jpg") !important;
}

.hero-services {
    background-image: url("../images/hero-services.jpg") !important;
}

.hero-shows {
    background-image: url("../images/hero-shows.jpg") !important;
}

.hero-adults {
    background-image: url("../images/hero-adults.jpg") !important;
}

.hero-kids1 {
    background-image: url("../images/hero-kids1.jpg") !important;
}

.hero-kids2 {
    background-image: url("../images/hero-kids2.jpg") !important;
}

.hero-kids3 {
    background-image: url("../images/hero-kids3.jpg") !important;
}

/*дизайн модалки плавающей кнопки*/
.contact-helper-area {
    width: 100%;
    height: auto; /* Автоматическая высота */
    min-height: 110px; /* Минимальная высота, как у тебя */
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    resize: none;
    font-size: 14px;
    line-height: 1.4;
    background: #fafafa;
    margin-bottom: 10px;

    box-sizing: border-box;

    /* Убираем вертикальный скролл */
    overflow-y: hidden;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: #ff6f61;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #ff5a4a;
}

.copy-confirm {
    display: none;
    text-align: center;
    color: #28a745;
    font-size: 14px;
    margin-bottom: 10px;
}
/* Заголовок модального окна с логотипами*/
.contact-modal h3 {
    font-size: 20px;      /* Было меньше — теперь крупнее */
    font-weight: 600;     /* Чуть жирнее, но не слишком */
    margin-bottom: 12px;
    text-align: center;
}

/* Текст "Чтобы мы быстрее..." */
.contact-helper-text {
    font-weight: 600;     /* Делаем жирным */
    font-size: 15px;      /* Чуть крупнее */
    margin-bottom: 8px;
    text-align: left;
    color: #F4DFA7
}

/* === ГАРАНТИРОВАННО СТАВИМ ДАТУ И ВРЕМЯ В ОДНУ СТРОКУ === */
.date-time-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px !important;
    width: 100%;
    flex-wrap: nowrap !important; /* запрещаем перенос */
}

.date-time-row .date-col,
.date-time-row .time-col {
    flex: 0 0 48% !important; /* одинаковая ширина */
    max-width: 48% !important;
}

/* чтобы поля не растягивались */
.date-time-row input[type="date"],
.date-time-row input[type="time"] {
    width: 100% !important;
    box-sizing: border-box;
}

/* === БЛОК О КОМПАНИИ — ПРЕМИАЛЬНЫЙ ЧЁРНЫЙ БЛОК === */

.about-company-section {
    width: 100%;
    padding: 30px 10px;
    background: transparent; /* фон страницы остаётся как есть */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Чёрный премиальный блок */
.about-company-glass {
    max-width: 900px;
    padding: 30px 10px;

    background: #000; /* плотный чёрный */
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(0,0,0,0.55);

    text-align: center;
    animation: fadeUp 0.8s ease forwards;
}

/* Заголовок */
.about-company-glass h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #f4dfa7; /* премиальный золотистый */
}

/* Текст */
.about-company-glass p {
    font-size: 17px;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 15px;
}

/* Анимация появления */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === БЛОК ОТЗЫВОВ — ПРЕМИАЛЬНОЕ ЧЁРНОЕ ОКНО === */

.reviews-section-black {
    width: 100%;
    padding: 30px 10px;
    background: transparent; /* фон страницы остаётся как есть */
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-glass {
    max-width: 1000px;
    width: 100%;
    padding: 30px 10px;

    background: #000; /* плотный чёрный блок */
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);

    text-align: center;
    animation: fadeUp 0.8s ease forwards;
}

.reviews-glass h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #f4dfa7; /* премиальный золотистый */
}

/* Сетка отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reviews-grid img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: 0.3s;
    cursor: pointer;
}

.reviews-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Кнопка */
.reviews-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #f4dfa7;
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.reviews-btn:hover {
    background: #fff;
    color: #000;
}

/* Анимация */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === БЛОК ПАРТНЁРОВ — ПРЕМИАЛЬНОЕ ЧЁРНОЕ ОКНО === */

.partners-section-black {
    width: 100%;
    padding: 80px 20px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-glass {
    max-width: 1100px;
    width: 100%;
    padding: 40px 30px;

    background: #000;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);

    text-align: center;
    animation: fadeUp 0.8s ease forwards;
}

.partners-glass h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #f4dfa7;
}

/* Фиксированная сетка 3 столбца × 2 строки */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 столбца */
    grid-template-rows: repeat(2, auto);   /* 2 строки */
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    width: 100%;
    max-width: 230px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: 0.3s;
}

.partner-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.partner-item img {
    width: 100%;
    max-height: 110px;
    object-fit: contain;
    filter: brightness(0.95);
}

/* Анимация */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .partner-item img {
        max-height: 130px;
    }
}

/* === SEO‑кнопка (подчёркнутый текст, маленький) === */
.seo-toggle {
    cursor: pointer;
    font-size: 14px;
    color: #f4dfa7;
    text-decoration: underline;
    text-align: center;
    margin: 40px 0 10px 0;
    transition: 0.3s;
}

.seo-toggle:hover {
    color: #fff;
}

/* === SEO‑контейнер === */

/* До клика — полностью скрыт */
#seo-container {
    display: none;
}

/* После клика — появляется как полноценный блок */
#seo-container.open {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 60px 20px;
}

/* Чёрный блок */
.seo-glass {
    max-width: 1000px;
    width: 100%;
    padding: 40px 30px;

    background: #000;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);

    text-align: center;
    animation: fadeUp 0.8s ease forwards;
}

/* Скрытый текст */
#seo-text {
    display: none;
}

#seo-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 15px;
}

/* Анимация */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}