/* ОБНУЛЕНИЕ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #09212b;
    --text-white: #ffffff;
    --accent: #38bdf8;
    --font-main: 'Manrope', sans-serif;

    /* Добавили переменную высоты шапки, чтобы всё было четко */
    --header-height: 90px;
}

html,
body {
    overflow-x: hidden;
    /* Запрещаем горизонтальный скролл */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER (ИЗМЕНЕНИЯ) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    /* Жесткая высота */
    z-index: 999;

    background: rgba(5, 5, 5, 0.85);
    /* Чуть темнее для читаемости */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* Flexbox для выравнивания внутри шапки */
    display: flex;
    align-items: center;
    transition: 0.3s;
}

header .container {
    height: 100%;
    width: 100%;
    /* Добавил ширину */
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    /* Чуть меньше, чтобы были отступы */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Контакты внутри мобильного меню (Скрыты на ПК) */
.mobile-menu-contacts {
    display: none;
}

/* КОНТАКТЫ СПРАВА (ПК) */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.email {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-decoration: none;
}


/* КНОПКА ГАМБУРГЕР (Скрыта на ПК) */
.burger-btn {
    display: none;
    /* По умолчанию нет */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* --- HERO SECTION (ФОН) --- */
.hero {
    /* Минимальная высота - 100% экрана. Если контента больше - растянется. */
    min-height: 100vh;
    width: 100%;
    position: relative;

    background-image: url('assets/main_door_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    /* Flexbox для центрирования контента */
    display: flex;
    align-items: center;
    /* Вертикально по центру */

    /* ВАЖНО: Добавляем отступ сверху равный высоте шапки + воздух */
    padding-top: var(--header-height);
    box-sizing: border-box;
    /* Чтобы паддинг не увеличивал высоту */
}

/* Затемнение (Overlay), чтобы текст читался (на будущее) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Градиент от черного сверху (чтобы меню читалось) к прозрачному */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    width: 100%;
    z-index: 2;
    /* Убрали height: 100%, так как родитель flex */
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ ХЕДЕРА --- */
@media (max-width: 900px) {

    /* Показываем гамбургер */
    .burger-btn {
        display: flex;
    }

    /* Скрываем обычные контакты, чтобы не мешали */
    .header-contacts {
        display: none;
    }

    /* ПРЕВРАЩАЕМ МЕНЮ В ШТОРКУ */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        /* Начинается сразу под шапкой */
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        /* На всю высоту экрана */
        background-color: #0b1116;
        /* Темный фон */
        flex-direction: column;
        /* Ссылки в столбик */
        align-items: center;
        justify-content: center;
        /* По центру экрана */
        gap: 40px;
        padding-bottom: 50px;

        /* Анимация выезда */
        transform: translateX(100%);
        /* Сдвинуто вправо за экран */
        transition: 0.3s ease-in-out;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Когда меню открыто */
    .nav-links.active {
        transform: translateX(0);
        /* Возвращаем на экран */
    }

    /* Ссылки внутри мобильного меню (делаем крупнее) */
    .nav-links a {
        font-size: 1.5rem;
        text-transform: uppercase;
        font-weight: 700;
    }

    /* Показываем телефон внутри меню */
    .mobile-menu-contacts {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        text-align: center;
    }

    .mobile-phone {
        color: var(--accent);
        font-size: 1.5rem;
        font-weight: 800;
        text-decoration: none;
    }

    /* Анимация крестика из гамбургера */
    .burger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}


/* --- HERO CONTENT STYLES--- */

.hero-text-block {
    max-width: 600px;
    color: white;
    padding-top: 60px;
}

/* ЗАГОЛОВОК */
.hero-text-block h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Акцент (Просто цвет, БЕЗ СВЕЧЕНИЯ) */
.neon-text {
    color: var(--accent);
    /* Голубой */
    text-shadow: none;
    /* Убрали свечение */
}

/* ФИШКИ */
.hero-features {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feat-icon {
    /* font-size и color убрали, они не нужны для PNG */
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    /* Чтобы кружок не сплющивало */
}

/* Настройка размера самой PNG иконки внутри кружка */
.feat-icon img {
    width: 75px;
    /* Оптимальный размер для контейнера 50px */
    height: auto;
    display: block;
}

.feat-item span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
}

/* КНОПКА (ПЛОСКАЯ) */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-glow {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: none;
    /* УБРАЛИ СВЕЧЕНИЯ */
    transition: 0.2s;
}

.btn-glow:hover {
    background: white;
    color: var(--bg-dark);
    /* Легкая тень вниз, а не свечение */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Убираем свечение в меню при наведении (если оно там было) */
.nav-links a:hover {
    color: var(--accent);
    text-shadow: none;
}

/* МОБИЛКА */
@media (max-width: 768px) {
    .hero-text-block h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text-block {
        /* Делаем подложку чуть прозрачнее */
        background: rgba(9, 33, 43, 0.75);
        padding: 20px;
        border-radius: 12px;
        margin-top: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero {
        /* Обрезаем фон слева на 30% */
        background-position: 70% center;
    }

    .btn-glow {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

/* --- СЕКЦИЯ ПРОБЛЕМ (AUTO-FIT SCREEN) --- */
.section-problems {
    background-color: #0b1116;
    /* Черный фон */
    /* ЖЕСТКАЯ ФИКСАЦИЯ ВЫСОТЫ */
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Запрещаем скролл на ПК */

    padding-top: var(--header-height);
    /* Отступ под шапку */
    padding-bottom: 20px;
    /* Небольшой отступ снизу */
    padding-left: 0;
    padding-right: 0;

    display: flex;
    flex-direction: column;
}

.section-problems .container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ЗАГОЛОВОК (Занимает столько места, сколько нужно) */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    /* Небольшой отступ до сетки */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    flex-shrink: 0;
    /* Запрещаем сжимать заголовок */
}

.header-left {
    flex: 1;
}

.header-right {
    flex: 1;
    text-align: right;
}

.section-header-row h2 {
    font-size: 2rem;
    /* Оптимальный размер */
    text-transform: uppercase;
    color: white;
    margin: 0;
    line-height: 1;
}

.section-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
    max-width: 450px;
    margin-left: auto;
}

/* --- СЕТКА (Занимает ВСЁ оставшееся место) --- */
.prob-grid-unified {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 колонки */
    grid-template-rows: repeat(2, 1fr);
    /* 2 ряда равной высоты */
    gap: 15px;

    /* МАГИЯ: Растягиваем сетку на остаток экрана */
    flex-grow: 1;
    /* Важно: min-height: 0 позволяет Grid сжиматься, если экран маленький */
    min-height: 0;
}

/* КАРТОЧКА */
.prob-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    transition: 0.3s;

    /* Карточка тоже резиновая внутри */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Чтобы картинка не вылезала */
}

.prob-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* ОБЕРТКА КАРТИНКИ (Самая важная часть) */
.img-wrap {
    /* Картинка занимает ВСЁ свободное место в карточке */
    flex-grow: 1;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    min-height: 0;
    /* Разрешаем сжиматься */
}

.img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Обрезаем лишнее, но заполняем */
}

/* ТЕКСТ В КАРТОЧКЕ (Фиксированный, всегда внизу) */
.prob-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
    flex-shrink: 0;
    /* Не сжимать текст */
}

.prob-card p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    margin: 0;
    flex-shrink: 0;
    /* Не сжимать текст */
}

/* КНОПКА (8-й слот) */
.action-card-slot {
    height: 100%;
    width: 100%;
}

.btn-outline-box {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-outline-box span {
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.arrow-icon {
    font-size: 24px;
    color: var(--accent);
    transition: 0.3s;
}

.btn-outline-box:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

.btn-outline-box:hover .arrow-icon {
    transform: translateX(5px);
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (Тут скролл разрешаем) --- */
@media (max-width: 900px) {
    .section-problems {
        height: auto;
        /* На планшете/телефоне высота авто */
        overflow: visible;
        padding-bottom: 50px;
        padding-top: var(--header-height);
    }

    .prob-grid-unified {
        display: flex;
        /* Просто список или 2 колонки */
        flex-wrap: wrap;
        gap: 15px;
    }

    .prob-card,
    .action-card-slot {
        width: 48%;
        /* 2 в ряд */
        height: auto;
    }

    .prob-card .img-wrap {
        flex-grow: 0;
        height: 150px;
    }

    .prob-card .img-wrap img {
        position: static;
        object-fit: contain;
        object-position: center;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-row h2 {
        font-size: 1.5rem;
    }

    .header-right {
        text-align: left;
    }
}

@media (max-width: 600px) {

    .prob-card,
    .action-card-slot {
        width: 100%;
        height: auto;
    }

    .prob-card .img-wrap {
        height: 160px;
    }

    /* 1 в ряд */
}



/* --- СЕКЦИЯ УСЛУГ (PREMIUM CARD) --- */
.section-services {
    background-color: #09212b;
    padding: 80px 0;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* СЕТКА: 3 КОЛОНКИ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* КАРТОЧКА */
.service-card {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

/* ФОН */
.srv-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: brightness(0.7);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-card:hover .srv-bg {
    transform: scale(1.1);
    filter: brightness(1);
}

/* ТЕМНЫЙ ОВЕРЛЕЙ (Теперь занимает больше места снизу) */
.srv-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 40%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 50%;
    /* Чтобы градиент был плавным */
}

/* ТЕКСТ (Заголовок + Цена) */
.srv-text-content {
    margin-bottom: 15px;
}

.srv-text-content h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    color: white;
    font-weight: 800;
}

.price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* НИЖНЯЯ СТРОКА (Время + Кнопка) */
.srv-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* КНОПКА ПОДРОБНЕЕ */
.btn-more {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 0.85rem;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.arrow {
    transition: 0.3s;
}

/* Ховер эффекты для кнопки */
.service-card:hover .btn-more {
    color: var(--accent);
}

.service-card:hover .arrow {
    transform: translateX(5px);
}

/* ЦЕНТРАЛЬНАЯ КНОПКА */
.services-action {
    text-align: center;
}

/* АДАПТАЦИЯ */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 280px;
    }

    .services-header h2 {
        font-size: 1.8rem;
    }

    .section-services {
        padding: 50px 0;
    }
}



/* --- СЕКЦИЯ О МАСТЕРЕ --- */
.section-about {
    background-color: #0b1116;
    /* Чуть темнее, чтобы отделить от услуг */
    padding: 80px 0;
    color: white;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* СЕТКА ПРИНЦИПОВ */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.principle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: 0.3s;
}

.principle-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* Крупная цифра */
.p-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    /* Еле заметная */
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.principle-card:hover .p-number {
    color: var(--accent);
    opacity: 0.2;
}

.principle-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: white;
    margin-bottom: 15px;
    position: relative;
    /* Чтобы быть над цифрой */
    z-index: 1;
}

.principle-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* БЛОК-АКЦЕНТ (МАТЕРИАЛЫ) */
.about-highlight {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1) 0%, rgba(9, 33, 43, 0.5) 100%);
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-text {
    font-size: 1rem;
    color: white;
    line-height: 1.5;
}

.highlight-text strong {
    color: var(--accent);
    text-transform: uppercase;
}

/* --- ГОРИЗОНТАЛЬНАЯ ЛЕНТА СКРИНШОТОВ --- */
.reviews-section h3 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    /* Горизонтальная прокрутка */
    gap: 20px;
    padding-bottom: 20px;
    /* Место для скроллбара */
    /* Скрываем скроллбар в Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #0b1116;
}

/* Кастомизация скроллбара (Webkit) */
.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #0b1116;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.scroll-item {
    flex: 0 0 auto;
    /* Не сжимать картинки */
    height: 400px;
    /* ФИКСИРОВАННАЯ ВЫСОТА СКРИНШОТА */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.scroll-item:hover {
    border-color: var(--accent);
}

.scroll-item img {
    height: 100%;
    width: auto;
    /* Ширина подстроится под высоту */
    display: block;
}

.scroll-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* АДАПТАЦИЯ */
@media (max-width: 900px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }

    .scroll-item {
        height: 300px;
        /* На мобилке скрины поменьше */
    }

    .about-header h2 {
        font-size: 1.8rem;
    }

    .section-about {
        padding: 50px 0;
    }

    .about-highlight {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }

    .reviews-section h3 {
        font-size: 1.3rem;
    }
}



/* --- СЕКЦИЯ КОНТАКТОВ (ИСПРАВЛЕННАЯ) --- */
.section-contacts-screen {
    background-color: #0b1116;
    min-height: 100vh;
    /* На весь экран */
    display: flex;
    align-items: center;
    /* Центрируем по вертикали */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0;
    position: relative;
}

/* ГЛАВНАЯ РАЗМЕТКА (Которой не хватало) */
.fullscreen-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
    /* Отступ между левой и правой частью */
}

/* ЛЕВАЯ ЧАСТЬ */
.cons-left {
    flex: 1;
    /* Занимает свободное место */
}

.cons-left h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    color: white;
}

.cons-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* Крупный телефон */
.contact-highlight {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.big-phone {
    font-size: 2.5rem;
    /* Очень крупно */
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1.2;
}

.big-phone:hover {
    color: var(--accent);
}

.email-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.email-link:hover {
    color: white;
    border-color: white;
}

/* ПОДПИСЬ НАД ИКОНКАМИ */
.socials-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

/* РЯД ИКОНОК */
.icons-row {
    display: flex;
    gap: 15px;
    /* Отступ между кнопками */
    flex-wrap: wrap;
    margin-top: 15px;
}

/* КНОПКА-ОБЕРТКА (Строгий квадрат) */
.icon-btn {
    display: block;
    /* Важно для размеров */
    width: 60px;
    /* ЖЕСТКАЯ ШИРИНА */
    height: 60px;
    /* ЖЕСТКАЯ ВЫСОТА */
    border-radius: 12px;
    /* Скругление углов кнопки */
    overflow: hidden;
    /* Всё, что больше квадрата — обрезаем */
    transition: 0.3s;


    /* Центрируем картинку внутри квадрата */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* КАРТИНКА ВНУТРИ (Принудительно вписываем) */
.icon-btn img {
    width: 100%;
    height: 100%;
    /* cover = заполнить весь квадрат (может обрезаться край)
       contain = вместить целиком (могут быть пустые поля)
       Выбери, что больше нравится. Обычно для иконок лучше cover, если они квадратные.
    */
    object-fit: cover;
    display: block;
}

/* ЭФФЕКТЫ */
.icon-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
    /* Легкое свечение */
}

/* ЦВЕТА (Используем сокращения) */
/* WhatsApp */
.icon-btn.wa {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.icon-btn.wa:hover {
    background: #25D366;
    color: white;
}

/* Telegram */
.icon-btn.tg {
    color: #2AABEE;
    border-color: rgba(42, 171, 238, 0.3);
}

.icon-btn.tg:hover {
    background: #2AABEE;
    color: white;
}

/* VK */
.icon-btn.vk {
    color: #0077FF;
    border-color: rgba(0, 119, 255, 0.3);
}

.icon-btn.vk:hover {
    background: #0077FF;
    color: white;
}

/* Avito */
.icon-btn.avito {
    color: #df334e;
    border-color: rgba(223, 51, 78, 0.3);
}

.icon-btn.avito:hover {
    background: #df334e;
    color: white;
}

/* MAX */
.icon-btn.max {
    color: orange;
    border-color: rgba(255, 165, 0, 0.3);
}

.icon-btn.max:hover {
    background: orange;
    color: black;
}


/* ПРАВАЯ ЧАСТЬ: КАРТОЧКА ЗАЯВКИ */
.cons-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Прижимаем вправо */
}

.action-card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
}

.action-card-dark h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: white;
}

.action-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Мини-шаги */
.mini-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.ms-item {
    font-size: 0.85rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ms-item span {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
}

.btn-full-width {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 20px;
    font-size: 1.1rem;
}

.policy-text {
    margin-top: 15px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ СЕКЦИИ КОНТАКТОВ === */
@media (max-width: 900px) {
    .fullscreen-layout {
        flex-direction: column;
        /* В столбик */
        gap: 40px;
        align-items: stretch;
    }

    .section-contacts-screen {
        min-height: auto;
        padding: 50px 0;
    }

    .cons-left h2 {
        font-size: 2rem;
    }

    .big-phone {
        font-size: 1.6rem;
        word-break: break-all;
    }

    .cons-right {
        justify-content: center;
    }

    .action-card-dark {
        max-width: 100%;
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .cons-left h2 {
        font-size: 1.6rem;
    }

    .big-phone {
        font-size: 1.3rem;
    }

    .cons-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .icons-row {
        gap: 10px;
    }

    .icon-btn {
        width: 50px;
        height: 50px;
    }

    .action-card-dark h3 {
        font-size: 1.3rem;
    }
}




/* НИЗ (Копирайт) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* МИНИ-ФУТЕР */
.site-footer-mini {
    background-color: #0b1116;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .footer-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.policy-link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: underline;
}

.policy-link:hover {
    color: white;
}

/* АДАПТАЦИЯ */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        /* 2 колонки */
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        /* 1 колонка */
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    /* Убираем сдвиг, на телефоне он не нужен */

    .footer-contacts-list li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}


/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Темный фон */
    backdrop-filter: blur(5px);
    /* Размытие сайта сзади */
    z-index: 10000;
    /* Поверх всего (даже хедера) */

    display: flex;
    justify-content: center;
    align-items: center;

    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}

/* Состояние "Открыто" */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: #0b1116;
    border: 1px solid rgba(56, 189, 248, 0.3);
    /* Голубая обводка */
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s;
}

/* Анимация всплывания */
.modal-overlay.active .modal-window {
    transform: translateY(0);
}

/* КРЕСТИК ЗАКРЫТИЯ */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* ТЕКСТ В ОКНЕ */
.modal-window h3 {
    text-align: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.modal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* ПОЛЯ ВВОДА */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.modal-form input:focus {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

/* КНОПКА В ФОРМЕ */
.modal-btn {
    width: 100%;
    margin-top: 10px;
}

/* ПОЛИТИКА */
.form-policy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 10px;
    line-height: 1.3;
}

.form-policy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}


/* --- МОДАЛЬНОЕ ОКНО УСЛУГИ --- */
.service-modal-window {
    background: #0b1116;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    /* Чуть шире обычного */
    position: relative;
    transform: translateY(20px);
    transition: 0.3s;
    overflow: hidden;
    /* Чтобы картинка не вылезала */
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .service-modal-window {
    transform: translateY(0);
}

/* Картинка шапка */
.modal-img-header {
    width: 100%;
    height: 200px;
    position: relative;
}

.modal-img-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Затемнение сверху картинки (чтобы крестик было видно) */
.modal-img-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

/* Контент внутри */
.service-modal-content {
    padding: 30px;
    text-align: left;
}

.service-modal-content h3 {
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.service-modal-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* btn-more hover (основное объявление выше, в секции услуг) */
.btn-more:hover {
    color: var(--accent);
}