


* {
	margin: 0;
	padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


:root {
    --main-dark: #1a1a1a;
    --accent: #c5a059; /* Золотисто-бронзовый оттенок (ассоциация с декором) */
    --gray-light: #f4f4f4;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --bg-dark: #121212; /* Почти черный, как на фоне лого */
    --gold-logo: #c5a059; /* Золотой оттенок для элементов */
    --gold-glow: #ff7e1a; /* Огненный оттенок для ховеров */
    --text-light: #f4f4f4;
}

.header-rp {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: fixed; /* Липкая шапка */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Настройки логотипа */
.header-logo {
    flex: 0 0 100px; /* Фиксированная ширина контейнера лого */
    display: flex;
    justify-content: center;
}

.logo-img {
    max-height: 80px; /* Высота шапки зависит от высоты лого */
    width: auto;
    display: block;
}

/* Меню */
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    color: var(--gold-logo);
}

/* Контакты */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.main-phone {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-logo);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-phone:hover {
    color: var(--gold-glow);
}

.messenger-links {
    display: flex;
    gap: 25px;
}

.msg-icon {
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.msg-icon:hover {
    transform: scale(1.1);
}

.viber { color: #7360f2; }
.telegram { color: #0088cc; }

.menu-toggle {
    display: none; /* Скрыто на десктопе */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--gold-logo);
    transition: 0.3s;
}

/* --- МОБИЛЬНОЕ МЕНЮ (Менее 992px) --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex; /* Показываем бургер */
        z-index: 1001;
    }

    .header-nav {
    	display: block;
        position: fixed;
        top: 0;
        right: -100%; /* Прячем меню за экран справа */
        width: 70%;
        height: 100vh;
        background-color: var(--bg-dark);
        padding-top: 100px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .header-nav.active {
        right: 0; /* Выезжает при клике */
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px !important;
    }

    .header-nav a {
        font-size: 1.5rem;
    }

    .desktop-only {
        display: none; /* Прячем телефон из шапки, чтобы не теснил логотип */
    }
    
    /* Анимация бургера в крестик */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

section {
    scroll-margin-top: 90px; /* Высота твоей шапки + небольшой запас */
}

.hero {
    position: relative;
    padding:  0; 
    color: #fff;
    min-height: 80vh;
}

.hero-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 160px 0 100px; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
    url('../img/hero-bg.jpg') no-repeat 80% center / cover;
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start;
}

.hero .container {
    margin-left: 10%; /* Сдвигаем сам контейнер от края экрана */
    margin-right: 0;  /* Убираем авто-отступ справа, который центрировал блок */
    max-width: 650px; /* Ограничиваем ширину, чтобы текст не лез на лампу */
}

.hero-content {
    text-align: left;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 200px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Адаптивный размер шрифта */
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
}



.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background-color: #ffcc00; /* Яркий акцентный цвет */
    color: #000;
}

.btn-primary:hover {
    background-color: #e6b800;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    
    .hero-wrapper {
        padding: 180px 20px 80px;
        justify-content: center; 
        background-position: 65% center;
    }

    .hero .container {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding: 0 15px;

    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        /* Уменьшаем шрифт, чтобы он аккуратно смотрелся на телефоне */
        font-size: 1.85rem; /* Размер для iPhone XR */
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px; /* Увеличиваем отступ до кнопок */
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        max-width: 280px;
        width: 100%;
    }
}

/* Стили модального окна */
.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    /* Центрируем содержимое */
    display: none; /* Переключается на 'flex' через JS */
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-dialog {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.modal-content {
    background-color: #fff;
    padding: 40px 25px 30px;
    border-radius: 20px;
    position: relative;
    
    /* ГИБКАЯ ШИРИНА: 95% экрана, но не больше 400px */
    width: 100%;
    max-width: 400px; 
    
    /* Учитываем отступы ВНУТРИ ширины */
    box-sizing: border-box;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Стили формы */
#tgForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#tgForm input, 
#tgForm textarea {
    width: 100%;
    max-width: 100%; /* Запрещаем распирать родителя */
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* Чтобы iOS не зумил при фокусе */
}

#tgForm input[name="phone"] {
    font-family: 'Courier New', Courier, monospace; /* Моноширинный шрифт для цифр выглядит четче */
    letter-spacing: 1px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
}


/*==============================================*/


.services {
    background-color: var(--gray-light); /* Светло-серый фон секции */
    padding: 80px 0;
    color: var(--main-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff; /* Белоснежные карточки */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box svg {
    stroke: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .icon-box svg {
    stroke: var(--gold-glow);
    filter: drop-shadow(0 0 3px rgba(255, 126, 26, 0.3));
}

.service-header {
    margin-bottom: 25px;
}

.service-header h3 {
    font-size: 1.5rem;
    color: var(--main-dark); /* Темный заголовок для читаемости */
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.sub-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sub-item:last-child {
    border-bottom: none;
}

.sub-title {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--accent);
    text-transform: uppercase;
}

.sub-item p {
    font-size: 0.9rem;
    color: #555; /* Темно-серый текст описания */
    line-height: 1.5;
}

/* Акцент на "Под ключ" в светлом стиле */
.sub-item.featured {
    background: rgba(197, 160, 89, 0.05); /* Очень легкий золотистый фон */
    margin: 10px -15px;
    padding: 20px 15px;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.sub-item.featured .sub-title {
    color: #b38b45; /* Чуть более насыщенный золотой для контраста на белом */
}

.sub-services-list {
    flex-grow: 1; /* Этот блок растягивается, заполняя пустоты */
}

.service-btn {
    margin-top: auto;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--main-dark); /* Темная кнопка в светлой секции */
    color: var(--main-dark);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%
}

.service-btn:hover {
    background: var(--main-dark);
    color: #fff;
    border-color: var(--main-dark);
}

/* Адаптив 992px */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}



/*=======================================*/

/* --- СЕКЦИЯ ПОРТФОЛИО --- */
.portfolio {
    padding: 120px 0;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.portfolio-flex {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.portfolio-item {
    flex: 0 0 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

.portfolio-content {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 12px; /* Добавил скругление для мягкости */
    cursor: pointer;
}

.portfolio-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-category {
    font-size: 12px;
    color: var(--accent, #c5a059);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.portfolio-name {
    font-size: 20px;
    color: #fff;
    font-weight: 300;
    margin: 0;
}

/* --- МОДАЛЬНОЕ ОКНО И СЛАЙДЕР --- */
.modal-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    width: 95%;
    max-width: 400px; /* По умолчанию для формы */
    transition: max-width 0.4s ease;
}

/* Расширение для слайдера через класс (более надежно, чем :has) */
.modal-content.wide {
    max-width: 1000px;
}

.slider-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#slider-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.slider-btn {
    background: none;
    border: none;
    font-size: 35px;
    color: #1a1a1a;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    padding: 10px;
}

.slider-btn:hover {
    color: var(--accent, #c5a059);
    transform: scale(1.2);
}

.slider-counter {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    text-align: center;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .portfolio-item { flex: 0 0 50%; }
}

@media (max-width: 768px) {
    .portfolio { padding: 60px 0; }
    .slider-navigation { gap: 20px; }
    .slider-btn { font-size: 28px; }
}

@media (max-width: 600px) {
    .portfolio-item { flex: 0 0 100%; }
    .portfolio-overlay { padding: 20px; }
}


/*==========================================*/

.cta-compare {
    padding: 120px 0;
    background-color: #1a1a1a;
    color: #fff;
    position: relative;
}

.compare-header {
    text-align: left;
    margin-bottom: 60px;
}

.cta-label {
    color: var(--accent, #c5a059);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.cta-main-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
}

.compare-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.compare-column {
    flex: 1;
    padding: 45px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Выделяем правую колонку как основную */
.compare-column.positive {
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%);
}

.column-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    color: #777;
}

.positive .column-title {
    color: var(--accent, #c5a059);
}

.compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 300;
}

/* Иконки статуса */
.negative li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #555;
    font-size: 14px;
}

.positive li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent, #c5a059);
    font-weight: 900;
}

.positive li strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.compare-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-info p {
    font-size: 13px;
    opacity: 0.4;
    line-height: 1.6;
    margin: 0;
}

/* Адаптив */
@media (max-width: 992px) {
    .compare-grid { flex-direction: column; }
    .compare-footer { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
    }
    .compare-column { padding: 30px; }
}


/*======================================*/

.pricing {
    padding: 140px 0;
    background-color: #fff;
}

.pricing-content {
    max-width: 1000px; /* Ограничиваем ширину для лучшей читаемости */
    margin: 0 auto 80px;
}

.price-group {
    margin-bottom: 70px; /* Расстояние между категориями */
}

.group-title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 26px; /* Крупный заголовок категории */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.group-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent, #c5a059);
}

.price-rows {
    display: flex;
    flex-direction: column;
    gap: 28px; /* Расстояние между строками */
}

.price-row {
    display: flex;
    align-items: baseline;
    font-size: 18px; /* Крупный основной шрифт на десктопе */
    color: #333;
}

.dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 15px;
    opacity: 0.5;
}

.val {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 20px;
}

.price-row.featured {
    color: var(--accent, #c5a059);
}

.price-row.featured .val {
    color: var(--accent, #c5a059);
}

/* Нижний блок */
.pricing-footer {
    text-align: center;
}

.pricing-note {
    margin-top: 25px;
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .pricing { padding: 80px 0; }
    .group-title { font-size: 20px; margin-bottom: 30px; }
    .price-row { font-size: 16px; flex-wrap: wrap; }
    .dots { display: none; }
    .val { width: 100%; margin-top: 5px; font-size: 18px; }
    .pricing-footer .btn { width: 100%; }
}

.contacts .messenger-links {
    margin-top: 20px;
}


.footer-rp {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.1); /* Тонкая золотистая линия сверху */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column {
    flex: 1 1 250px;
}

/* Логотип в футере чуть меньше хедера */
.footer-logo {
    display: block;
    margin-bottom: 25px;
    max-width: 120px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(244, 244, 244, 0.6);
    margin: 0;
}

.footer-title {
    color: var(--gold-logo);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Ссылки */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(244, 244, 244, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-logo);
    padding-left: 5px;
}

/* Контакты */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-address {
    font-size: 14px;
    color: rgba(244, 244, 244, 0.6);
}

/* Нижняя панель */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.policy {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy:hover {
    color: var(--gold-logo);
}

/* Адаптив */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .legal-wrap {
        justify-content: center;
        text-align: center;
    }
}

.contacts {
    background-color: var(--gray-light);
    padding: 120px 0;
}

.contacts-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contacts-info {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent, #c5a059);
    margin-bottom: 15px;
}

.info-item p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.bank-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px !important;
    color: #888 !important;
}

.bank-details p {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Карта */
.map-container {
    flex: 1;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}
iframe {
    border: 0;
}

/* Адаптив */
@media (max-width: 1024px) {
    .contacts-flex {
        flex-direction: column;
    }
    .contacts-info {
        flex: 1 1 100%;
        width: 100%;
    }
    .map-container {
        width: 100%;
        height: 350px;
    }
}