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

@font-face {
    font-family: 'Bispo Original';
    src: url('../fonts/BispoOriginal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Чтобы текст был виден сразу, пока шрифт грузится */
}

html, body {
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
    width: 100%;
    position: relative;
}

.mobile-sidebar,
.burger {
    display: none;
}

/* --- Стили для гамбургера (по умолчанию скрыт на ПК) --- */
.burger {
    display: none; /* Скрываем на компьютере */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.burger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #e4e4e4;
    border-radius: 2px;
    transition: 0.3s;
}


header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: fixed;
    background-color: rgb(64, 33, 52);
    top: 0;
    height: 70px;
    width: 100%;
    z-index: 100;
    padding: auto 0;
}

header nav ul li a {
    color: #e4e4e4;
    font-family: 'Segoe UI Light', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    font-size: 30px;
}

header nav ul li a:hover {
    text-decoration: underline;
}

header nav ul a.nav_maroon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%); /* Точное центрирование */
    margin: 0;
    font-size: 40px;
    color: #e4e4e4;
    text-decoration: none;
}

header nav ul .appointment {
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%); /* Точное центрирование */
    padding: 0 20px;
}

header nav ul .appointment:hover {
    background-color: #ff006f;
}

header nav ul .appointment a {
    font-size: 25px;
    color: #e4e4e4c4;
    text-decoration: none;
}

.appointment-circle {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    background-color: #ff006f;
    border-radius: 50%;
    height: 9vh;
    width: 9vh;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.appointment-circle a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-size: 20px;
    text-align: center;
}

body {
    background: linear-gradient(to bottom, #370a25, #370a25, #370a25);
}

#services-page {
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 75%;
    padding: 90px auto;
    margin: 90px auto;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#services-page h1 {
    color: #e4e4e4;
    font-size: 50px;
    padding-left: 2%;
    padding-top: 27px;
    padding-bottom: 60px;
}

.service-category {
    width: 75%;
    margin: 0 auto;
    padding-bottom: 10px;
}

.service-category h2 {
    color: #e4e4e4;
    font-size: 40px;
    text-align: center;
}

.service-table {
    overflow: hidden;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 300px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.service-table th {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e4;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-family: 'Segoe UI Light', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    font-size: 23px;
}

.service-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #b1adad;
    padding: 15px 20px;
    text-align: center;
    font-family: 'Segoe UI Light', sans-serif;
    font-size: 23px;
    padding: 15px 0;
}

.accordion-item {
    width: 75%;
    padding: 90px auto;
    margin: 0 auto 120px auto;
}



button.accordion-header {
    border: none;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    border-radius: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e4;
    font-size: 35px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}
button.accordion-header:first-child {
    margin-top: 110px;
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    visibility: hidden; 
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    margin-top: 20px;
}

.accordion-item.active .accordion-body {
    max-height: 800px;
    visibility: visible; 
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    border-radius: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: #b1adad;
    font-size: 35px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 1;
}

.accordion-header span {
    position: absolute;
    transition: transform 0.3s;
    display:inline-block;
    right: 20px;
}
.accordion-item.active .accordion-header span {
    transform: rotate(90deg); /* Плюсик становится крестиком */
}

footer {
    background-color: rgb(64, 33, 52);
    height: 200px;
    width: 100%;
}

footer p {
    color: #b1adad;
    font-size: 50px;
    text-align: center;
    padding-top: 60px;
}

footer .developer-contact {
    text-align: center;
    color: #b1adad;
    font-size: 15px;
    padding-top: 1%;
}

footer .developer-contact a {
    color: #b1adad;
    text-decoration: underline;
}

/* =========================================
   АДАПТИВ ДЛЯ ТЕЛЕФОНОВ (СТРАНИЦЫ УСЛУГ И FAQ)
   ========================================= */
@media (max-width: 480px) {

    /* --- 1. СБРОС, ЧТОБЫ САЙТ НЕ ЕЗДИЛ В СТОРОНЫ --- */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* --- 2. НАВИГАЦИЯ (Бургер) --- */
    header nav {
        display: none !important; /* Прячем обычное меню */
    }

    .burger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        position: fixed;
        top: 20px;       
        right: 20px;       
        z-index: 1000;
        cursor: pointer;
    }

    .burger span {
        width: 25px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
    }

    /* Выезжающее меню */
    .mobile-sidebar {
        display: flex !important;
        position: fixed;
        flex-direction: column;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background-color: rgb(64, 33, 52);
        z-index: 2000;
        padding: 60px 20px 20px 20px;
        transform: translateX(-100%); /* Спрятан */
        transition: transform 0.4s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .mobile-sidebar.active {
        transform: translateX(0); /* Выезжает */
    }

    .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
    }

    .mobile-sidebar .nav_maroon {
        font-size: 30px;
        color: #fff;
        margin-bottom: 30px;
        text-align: center;
        text-decoration: none;
    }

    .mobile-sidebar ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-sidebar ul li a {
        color: #e4e4e4;
        font-size: 18px;
        text-decoration: none;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-sidebar .appointment {
        margin-top: 20px;
        text-align: center;
    }

    .mobile-sidebar .appointment a {
        background: rgba(255, 255, 255, 0.1);
        padding: 12px 20px;
        border-radius: 20px;
        color: #fff;
        display: inline-block;
    }

    /* --- 3. СТРАНИЦА УСЛУГ --- */
    #services-page {
        width: 95%;
        padding: 20px;
        margin: 60px auto 40px auto; /* Отступ сверху, чтобы не наезжало на бургер */
    }

    #services-page h1 {
        font-size: 30px;
        padding: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .service-category {
        width: 100%;
        padding-bottom: 30px;
    }

    .service-category h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    /* Таблица услуг на телефоне */
    .service-table {
        display: block; /* Превращаем таблицу в блочный элемент для скролла */
        overflow-x: auto; /* Появляется горизонтальный скролл внутри таблицы */
        white-space: nowrap; /* Текст не переносится на новую строку */
        height: auto; /* Убираем жесткую высоту 300px */
        padding: 0;
        border-radius: 10px;
    }

    .service-table th, 
    .service-table td {
        font-size: 14px; /* Уменьшаем шрифт */
        padding: 10px;
    }

    /* --- 4. СТРАНИЦА ЧАСТЫХ ВОПРОСОВ (АККОРДЕОН) --- */
    .accordion-item {
        width: 95%;
        margin: 60px auto 20px auto; /* Убираем огромный отступ 120px */
        padding: 0;
    }

    .accordion-item#last {
        margin-bottom: 40%;
    }

    button.accordion-header {
        font-size: 16px; /* Уменьшаем шрифт с 35px */
        padding: 15px 40px 15px 15px; /* Место справа под стрелку */
        text-align: left; /* Текст читаем слева */
        margin-bottom: 0;
        border-radius: 10px;
        position: relative;
    }

    /* Стрелка в аккордеоне */
    .accordion-header span {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }

    .accordion-item.active .accordion-header span {
        transform: translateY(-50%) rotate(90deg);
    }

    .accordion-item.active .accordion-body {
        max-height: 1000px; /* Чтобы влезли длинные ответы */
        font-size: 14px; /* Уменьшаем шрифт ответа */
        padding: 15px;
        text-align: left;
        margin-top: 5px;
        border-radius: 10px;
    }

    /* --- 5. ФУТЕР --- */
    footer {
        height: auto;
        padding: 20px 10px;
    }

    footer p {
        font-size: 14px;
        padding-top: 0;
    }

    footer .developer-contact {
        font-size: 12px;
        padding-top: 10px;
    }
}

@media (min-width: 481px) and (max-width: 1084px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* --- 1. НАВИГАЦИЯ (Бургер) --- */
    header nav {
        display: none !important; 
    }

    .burger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        position: fixed;
        top: 20px;       
        right: 20px;       
        z-index: 100;
        cursor: pointer;
        padding: 10px;
    }

    .burger span {
        width: 35px;
        height: 5px;
        background-color: #fff;
        border-radius: 2px;
    }

    /* Выезжающее меню */
    .mobile-sidebar {
        display: flex !important;
        position: fixed;
        flex-direction: column;
        top: 0;
        left: 0;
        width: 300px; /* Чуть шире для планшета */
        height: 100vh;
        background-color: rgb(65, 10, 27);
        z-index: 2000;
        padding: 60px 20px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

    .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
    }

    .mobile-sidebar .nav_maroon {
        font-size: 36px;
        color: #fff;
        margin-bottom: 30px;
        text-align: center;
        text-decoration: none;
    }

    .mobile-sidebar ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-sidebar ul li a {
        color: #e4e4e4;
        font-size: 22px; /* Шрифт меню больше */
        text-decoration: none;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-sidebar .appointment {
        margin-top: 20px;
        text-align: center;
    }

    .mobile-sidebar .appointment a {
        background: rgba(255, 255, 255, 0.1);
        padding: 12px 20px;
        border-radius: 20px;
        color: #fff;
        display: inline-block;
        font-size: 20px;
    }

    /* --- 2. СТРАНИЦА УСЛУГ --- */
    #services-page {
        width: 90%; /* Шире, чем на телефоне (было 95%, но с большими отступами) */
        padding: 30px;
        margin: 80px auto 40px auto; 
    }

    #services-page h1 {
        font-size: 42px; /* Крупный заголовок */
        padding: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .service-category {
        width: 100%;
        padding-bottom: 40px;
    }

    .service-category h2 {
        font-size: 30px; /* Крупнее разделы */
        margin-bottom: 20px;
    }

    /* ТАБЛИЦА УСЛУГ НА ПЛАНШЕТЕ */
    .service-table {
        display: table; /* Возвращаем нормальный вид таблицы (не блочный скролл) */
        width: 100%;
        height: auto;
        padding: 0;
        border-radius: 15px;
        background: rgba(0, 0, 0, 0.1);
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .service-table th, 
    .service-table td {
        font-size: 20px; /* Крупный шрифт в таблице */
        padding: 20px 15px; /* Много воздуха внутри ячеек */
        white-space: normal; /* Текст переносится, если не влезает */
    }

    .service-table th {
        font-size: 22px;
        padding: 25px 15px;
    }

    /* --- 3. СТРАНИЦА ЧАСТЫХ ВОПРОСОВ (АККОРДЕОН) --- */
    .accordion-item {
        width: 85%; /* Шире для планшета */
        margin: 0 auto 30px auto; 
        padding-top: 80px;
    }

    .accordion-item#last {
        margin-bottom: 100px; /* Фиксированный отступ, не проценты */
    }

    button.accordion-header {
        font-size: 24px; /* Крупный шрифт вопроса */
        padding: 25px 50px 25px 25px; /* Много места, справа под стрелку */
        text-align: left; 
        margin-bottom: 0;
        border-radius: 15px;
        position: relative;
    }

    /* Стрелка в аккордеоне */
    .accordion-header span {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
    }

    .accordion-item.active .accordion-header span {
        transform: translateY(-50%) rotate(90deg);
    }

    .accordion-item.active .accordion-body {
        max-height: 2000px; /* Чтобы влезли длинные ответы */
        font-size: 20px; /* Крупный текст ответа */
        line-height: 1.6; /* Межстрочный интервал для читаемости */
        padding: 25px;
        text-align: left;
        margin-top: 10px;
        border-radius: 15px;
    }

    /* --- 4. ФУТЕР --- */
    footer {
        height: auto;
        padding: 30px 10px;
    }

    footer p {
        font-size: 20px;
        padding-top: 0;
    }

    footer .developer-contact {
        font-size: 16px;
        padding-top: 10px;
    }
}