/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Дочерняя тема для GeneratePress
 Author:       aspekt-molprom
 Template:     generatepress
 Version:      1.0.0
*/

/* Импортируем стили родительской темы */
@import url("../generatepress/style.css");

/* ===== ШАПКА САЙТА ===== */

/* ===== ПОЛНОСТЬЮ УБИРАЕМ СТАНДАРТНУЮ ШАПКУ ===== */
.site-header {
    display: none !important;
}

/* ===== ПОЛНОЭКРАННАЯ ШАПКА ===== */
.custom-header {
    width: 100vw;
    height: 75vh;
    min-height: 400px;
    background-image: url('http://aspekt-molprom.ru/wp-content/uploads/2026/06/шапка.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* ===== ПРОЗРАЧНАЯ АКТИВНАЯ ЗОНА (КНОПКА) ===== */
.cta-button {
    position: absolute;
    left: 5%;
    top: 50%;
    width: 280px;
    height: 70px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0s;
    /* Для отладки раскомментируйте: */
    /* border: 2px solid red; */
}

.cta-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.cta-button:active {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    text-align: center;
}

.modal-body h2 {
    margin-top: 0;
    color: #333;
    font-size: 28px;
}

.modal-body p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .custom-header {
        height: 75vh;
        min-height: 350px;
    }
    
    .cta-button {
        left: 3%;
        top: 48%;
        width: 260px;
        height: 65px;
    }
}

/* Планшеты портретные (481px - 768px) */
@media screen and (max-width: 768px) {
    .custom-header {
        height: 75vh;
        min-height: 300px;
    }
    
    .cta-button {
        left: 50%;
        top: 55%;
        transform: translateX(-50%);
        width: 300px;
        height: 60px;
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}

/* Смартфоны ландшафтные (481px - 640px) */
@media screen and (max-width: 640px) {
    .custom-header {
        height: 75vh;
        min-height: 280px;
    }
    
    .cta-button {
        left: 50%;
        top: 60%;
        transform: translateX(-50%);
        width: 280px;
        height: 55px;
    }
}

/* Смартфоны портретные (до 480px) */
@media screen and (max-width: 480px) {
    .custom-header {
        height: 75vh;
        min-height: 250px;
        background-position: center 30%;
    }
    
    .cta-button {
        left: 50%;
        top: 65%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 280px;
        height: 50px;
    }
    
    .modal-content {
        padding: 25px 15px;
        width: 95%;
    }
    
    .modal-body h2 {
        font-size: 24px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media screen and (max-width: 360px) {
    .custom-header {
        height: 75vh;
        min-height: 220px;
    }
    
    .cta-button {
        width: 95%;
        height: 45px;
    }
}