:root {
    --primary-color: #d4af37; /* Золотой из вашего стиля */
    --bg-color: #121212;
    --text-color: #f4f4f4;
    --section-bg: #1e1e1e;
    --transition: all 0.3s ease;
}

* { margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

/* Включаем плавную прокрутку для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Добавляем отступ сверху для каждой секции, 
   равный высоте вашей шапки (примерно 80px).
   Это нужно, чтобы заголовок секции не прятался под меню.
*/
section[id] {
    scroll-margin-top: 60px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* Навигация */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #333;
    transition: 0.5s ease-in-out;
}

.header_small {
  padding: 0 50px;
}

/* --- Стили Бургера --- */
.hamburger {
    display: none; /* Скрыт на ПК */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2500;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* --- Мобильная навигационная панель --- */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Спрятано справа */
    width: 100%;
    height: 100%;
    background: #1B1613;
    z-index: 2400;
    transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-panel.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 20px 0;
}

.mobile-menu-links li a {
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition: 0.3s;
}

.mobile-menu-links li a:hover {
    color: var(--primary-color);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px; 
}

nav ul { 
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 12px;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Кнопки */
.btn {
    padding: 9px 30px;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    border: 1px solid var(--primary-color); 
    transition: var(--transition);
    font-size: 14px;
    margin: 10px 5px;
}

.btn-href {
    padding: 8px 30px;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    border: 1px solid var(--primary-color); 
    transition: var(--transition);
    font-size: 14px;
    margin: 10px 5px;
}

.btn-outline{
    background: transparent;
    color: var(--primary-color);
}

.btn:hover, .btn-href:hover {
    background: #ebd07a;
    border-color: #ebd07a;
    transform: translateY(-2px);
    color: #000;
}

/* Hero секция */
.hero {
    height: 100vh; display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7),
              rgba(0,0,0,0.7)),
                url('../images/_sistem/home_bg.jpg') center/cover;
    padding: 0 20px;
}
.hero h1 {
    font-size: clamp(32px, 8vw, 60px);
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Секции */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.section-title-mb {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Обо мне */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #ccc;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    padding: 0 4px;
    transition: transform 0.2s, color 0.2s;
    transform: scale(1);
}

.social-links a i {
    display: inline!important;
    color: #696868; /* Цвет иконок */
    font-size: 1.4rem;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Фирменные цвета при наведении */
.social-links a:hover .fa-facebook { color: #1877F2; }
.social-links a:hover .fa-instagram { color: #E4405F; }
.social-links a:hover .fa-tiktok { color: #69C9D0; }
.social-links a:hover .fa-whatsapp { color: #25D366; }
.social-links a:hover .fa-telegram-plane { color: #0088cc; }


.contact-card {
    background: var(--section-bg);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
}

.contact-card i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card a { color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Слайдер (из прошлого шага) */
.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
}

.slide {
    min-width: calc(33.333% - 15px);
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Price */
.price-title-side{
    display: flex;
    padding: 8px 10px;
    border-bottom: 1px dotted #ebd07a;
    font-size: .8rem;
    color: var(--primary-color);
}

.price-item-side{
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px dotted #ebd07a;
    transition: var(--transition);
    font-size: .8rem;
}

.price-item-side:hover {
    background: var(--section-bg);
    transition: .50ms;
}

.price-item-side span{
    display: block;
}

/* Кнопка Наверх */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #1B1613;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    opacity: 0; /* Изначально невидима */
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #fff;
    transform: translateY(-5px);
}

.scroll-top-btn i {
    font-size: 20px;
}

/* Боковая панель (Дипломы) */
.side-panel {
    position: fixed; top: 0; left: -400px; width: 350px; height: 100%;
    background: #1a1a1a; z-index: 2100; transition: 0.4s; padding: 60px 30px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5); border-right: 2px solid var(--primary-color);
}

.side-panel.active {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 2050;
}

/* Стили для секции отзывов */
#reviews {
    background: #161616; /* Чуть темнее основной секции для контраста */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--section-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--primary-color);
}

.stars {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.review-card p {
    font-style: italic;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-author {
    color: var(--primary-color);
    font-weight: bold;
    text-align: right;
    font-size: 14px;
}

/* Сетка для отзывов в модальном окне */
/* Контейнер для отзывов в модалке — теперь это список сверху вниз */
.full-reviews-list {
    display: flex;
    flex-direction: column; /* Выстраиваем элементы в колонку */
    gap: 20px;              /* Расстояние между отзывами */
    max-width: 800px;       /* Ограничим ширину для удобства чтения текста */
    margin: 0 auto;         /* Центрируем список в окне */
}

/* Стили отдельной карточки отзыва в списке */
.modal-review {
    width: 100%;
    background: #252525;    /* Чуть светлее фона модалки для выделения */
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color); /* Золотая полоска слева */
    box-sizing: border-box;
}

.modal-review span {
    color: var(--primary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.modal-review p {
    font-style: italic;
    color: #eee;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-bottom: 0; /* Убираем лишние отступы из базовых стилей p */
}

.modal-review b {
    display: block;
    text-align: right;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Стили модального окна --- */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Почти черный фон */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px); /* Размытие заднего фона */
}

.modal-content {
    background-color: #1B1613; /* Темный фон из вашего style.css */
    padding: 40px;
    border-radius: 10px;
    max-width: 1100px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #D5A354; /* Золотая рамка */
}

/* Кнопка закрытия */
.close-modal {
    text-align: right;
    width: 100%;
}

.close-modal-nav {
    text-align: right;
    width: 80%;
}

.close-icon {
    display: inline-block;
    line-height: 1;
}

.fa-xmark {
    color: #D5A354;
    font-size: 24px;
    font-weight: 200;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform: rotate(0);
}

.fa-xmark:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Сетка фотографий */
.full-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.full-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    transition: 0.3s;
    border: 1px solid #222;
}

.full-gallery img:hover {
    transform: scale(1.02);
    border-color: #D5A354;
}

/* Базовый класс для всех панелей */
.side-panel {
    position: fixed;
    top: 0;
    width: 380px;
    height: 100%;
    background: #1a1a1a;
    z-index: 2100;
    transition: 0.4s ease-in-out;
    padding: 60px 40px;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* Специально для ПРАЙСА (справа) */
.side-panel-right {
    left: auto !important; /* Отменяем левое позиционирование */
    right: -400px;         /* Прячем за правую границу экрана */
    border-right: none;
    border-left: 3px solid var(--primary-color); /* Золотая полоска слева у панели */
}

/* Активное состояние для ПРАЙСА */
.side-panel-right.active {
    right: 0 !important;   /* Выезжает справа */
}

/* Для сравнения: ДИПЛОМЫ (слева) */
.side-panel-left {
    left: -400px;
    right: auto;
    border-right: 3px solid var(--primary-color);
}

.side-panel-left.active {
    left: 0;
}

/* Блок с призывом и фоном */
.cta-parallax {
    position: relative;
    max-width: 100%;
    min-height: 450px;
    padding: 0;
    /* Замените ссылку ниже на реальное фото, например images/gallery/sl1.jpg */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7),
                    rgba(0, 0, 0, 0.7)),
                      url('../images/_sistem/prv_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Эффект параллакса */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.cta-slogan {
    color: var(--primary-color) !important;
    font-size: clamp(28px, 5vw, 38px) !important;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.cta-subtext {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 35px;
    font-weight: 300;
}

.cta-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Стили FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #1e1e1e;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 17px;
    color: #fff;
    transition: 0.3s;
}

.faq-question:hover {
    background: #252525;
    color: var(--primary-color);
}

.faq-question i {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.4s;
}

/* Ответ (скрыт по умолчанию) */
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    background: #1a1a1a;
}

.faq-answer p {
    padding: 20px 0;
    color: #ccc;
    font-size: 15px;
    margin-bottom: 0;
}

/* Активное состояние */
.faq-item.active {
    border-color: var(--primary-color);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Достаточно для текста */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Coockie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Скрыт по умолчанию */
    left: 0;
    width: 100%;
    background: #1b1613;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    z-index: 9999;
    border-top: 2px solid var(--primary-color);
    transition: bottom 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}
.cookie-banner.show { bottom: 0; }
.cookie-banner a { color: var(--primary-color); text-decoration: underline; }
.cookie-banner button {
    background: var(--primary-color);
    border: none;
    padding: 8px 20px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .cta-parallax {
        background-attachment: scroll; /* На мобильных параллакс лучше отключать для плавности */
        min-height: 400px;
    }
    .cta-subtext {
        font-size: 1rem;
    }
}

/* Адаптация для мобильных: чуть меньше и ближе к краю */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Мобильная адаптация */
@media (max-width: 450px) {
    .about-img{
        display: none;
    }
    .section-title {
        font-size: 26px;
    }
    .section-title-mb {
        font-size: 26px;
    }
    .slide {
        height: 240px;
        min-width: calc(100% - 11px);
    }
    .header_small {
        padding: 5px 25px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 400px) {
    .side-panel {
        width: 100%;
    }
    .side-panel-right {
        right: -100%;
    }
    .about-img{
        display: none;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .full-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .full-gallery img {
        height: 180px;
    }
    .desktop-nav {
        display: none; /* Прячем обычное меню */
    }
    .hamburger {
        display: flex; /* Показываем бургер */
    }
    header {
        padding: 15px 25px;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    nav {
        display: none;
    }
    .slide {
        min-width: calc(100% - 11px);
        height: 300px;
    }

    .scroll-top-btn:hover {
        background-color: var(--primary-color);
    }
}
