/* Основные сбросы и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
section {
    padding: 80px 0;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, #2c5530, #4a7856);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

/* Полупрозрачная шапка (Header) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5530;
}
.logo a strong {
    font-weight: 700;
}
.nav-list {
    display: flex;
    gap: 30px;
}
.nav-list a {
    font-weight: 500;
    color: #444;
    padding: 8px 0;
    position: relative;
}
.nav-list a:hover {
    color: #2c5530;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5530;
    transition: width 0.3s ease;
}
.nav-list a:hover::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c5530;
    cursor: pointer;
}

/* Герой-секция с видео */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Форма-калькулятор */
.calculator-section {
    background: #f9f9f9;
}
.calculator-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}
.form-step {
    margin-bottom: 30px;
}
.form-step label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.form-step input,
.form-step select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}
.form-step input:focus,
.form-step select:focus {
    border-color: #4a7856;
    outline: none;
}
.btn-submit {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    width: 100%;
    margin-top: 20px;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #333, #444);
    transform: translateY(-3px);
}
.form-note {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 15px;
}

/* Карточки проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.project-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}
.project-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.advantage-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.advantage-icon {
    font-size: 2.5rem;
    color: #4a7856;
    margin-bottom: 20px;
}
.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Стили для других блоков (отзывы, FAQ, контакты) */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #4a7856;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}
.review-text {
    color: #555;
    line-height: 1.7;
}
.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 20px 20px;
    color: #666;
}
.contacts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}
.social-links {
    margin-top: 20px;
}
.social-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}
.whatsapp { background: #25D366; color: white; }
.telegram { background: #0088cc; color: white; }
.viber { background: #7360F2; color: white; }
.main-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

/* ============ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ============ */
/* Правило 1: Медиа-запросы для разных разрешений[citation:3][citation:7] */
/* Правило 2: Элементы для касания не менее 44 пикселей[citation:3] */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-list.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .calculator-form { padding: 25px; }
    .btn { padding: 14px 28px; } /* Увеличенная область касания */
    .contacts-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .hero, .calculator-section, .projects-section { padding: 60px 0; }
    .projects-grid { grid-template-columns: 1fr; }
}
/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}
.notification-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left: 4px solid;
    position: relative;
}
.notification.success .notification-content {
    border-color: #4a7856;
}
.notification.error .notification-content {
    border-color: #d32f2f;
}
.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* Индикатор загрузки видео */
.hero-video.loaded + .hero-overlay {
    opacity: 1;
    transition: opacity 1s ease;
}

/* Плавное появление */
.hero-content {
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============ СТИЛИ ДЛЯ ТЕКСТОВОГО БЛОКА ============ */
.design-section {
    padding: 100px 0;
    background: #f8f5f0;
    text-align: center;
}

.design-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 30px;
}

.design-line {
    display: block;
}

.design-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============ СТИЛИ ДЛЯ ГАЛЕРЕИ ПИРАМИДОЙ ============ */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Размеры изображений для создания пирамиды */
.gallery-item-small {
    grid-column: span 2;
    height: 200px;
}

.gallery-item-medium {
    grid-column: span 3;
    height: 250px;
}

.gallery-item-large {
    grid-column: span 4;
    height: 300px;
}

/* Позиционирование изображений в пирамиду */

/* Ряд 1 (3 изображения) */
.gallery-item:nth-child(1) { grid-column: 4 / span 2; }
.gallery-item:nth-child(2) { grid-column: 6 / span 3; }
.gallery-item:nth-child(3) { grid-column: 9 / span 2; }

/* Ряд 2 (4 изображения) */
.gallery-item:nth-child(4) { grid-column: 3 / span 3; }
.gallery-item:nth-child(5) { grid-column: 6 / span 4; }
.gallery-item:nth-child(6) { grid-column: 10 / span 3; }

/* Ряд 3 (5 изображений) */
.gallery-item:nth-child(7) { grid-column: 2 / span 2; }
.gallery-item:nth-child(8) { grid-column: 4 / span 3; }
.gallery-item:nth-child(9) { grid-column: 7 / span 4; }
.gallery-item:nth-child(10) { grid-column: 11 / span 3; }
.gallery-item:nth-child(11) { grid-column: 14 / span 2; }

/* Ряд 4 (4 изображения) */
.gallery-item:nth-child(12) { grid-column: 3 / span 3; }
.gallery-item:nth-child(13) { grid-column: 6 / span 4; }
.gallery-item:nth-child(14) { grid-column: 10 / span 3; }

/* Ряд 5 (3 изображения) */
.gallery-item:nth-child(15) { grid-column: 4 / span 2; }
.gallery-item:nth-child(16) { grid-column: 6 / span 3; }
.gallery-item:nth-child(17) { grid-column: 9 / span 2; }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============ АДАПТИВНОСТЬ ГАЛЕРЕИ ============ */

/* Для планшетов */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 15px;
    }
    
    .design-title {
        font-size: 2.8rem;
    }
    
    .gallery-item-small { grid-column: span 2; height: 180px; }
    .gallery-item-medium { grid-column: span 3; height: 220px; }
    .gallery-item-large { grid-column: span 4; height: 260px; }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .design-section {
        padding: 60px 0;
    }
    
    .design-title {
        font-size: 2.2rem;
    }
    
    .design-line {
        display: inline;
    }
    
    .design-title br {
        display: block;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(19, auto);
        gap: 15px;
    }
    
    .gallery-item {
        grid-column: 1 !important;
        height: 250px;
    }
    
    .gallery-item-small,
    .gallery-item-medium,
    .gallery-item-large {
        grid-column: span 1;
        height: 250px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .design-title {
        font-size: 1.8rem;
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* Эффект загрузки изображений */
.gallery-item img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Задержка появления для создания каскадного эффекта */
.gallery-item:nth-child(1) img { animation-delay: 0.1s; }
.gallery-item:nth-child(2) img { animation-delay: 0.2s; }
.gallery-item:nth-child(3) img { animation-delay: 0.3s; }
.gallery-item:nth-child(4) img { animation-delay: 0.4s; }
.gallery-item:nth-child(5) img { animation-delay: 0.5s; }
.gallery-item:nth-child(6) img { animation-delay: 0.6s; }
.gallery-item:nth-child(7) img { animation-delay: 0.7s; }
.gallery-item:nth-child(8) img { animation-delay: 0.8s; }
.gallery-item:nth-child(9) img { animation-delay: 0.9s; }
.gallery-item:nth-child(10) img { animation-delay: 1.0s; }
.gallery-item:nth-child(11) img { animation-delay: 1.1s; }
.gallery-item:nth-child(12) img { animation-delay: 1.2s; }
.gallery-item:nth-child(13) img { animation-delay: 1.3s; }
.gallery-item:nth-child(14) img { animation-delay: 1.4s; }
.gallery-item:nth-child(15) img { animation-delay: 1.5s; }
.gallery-item:nth-child(16) img { animation-delay: 1.6s; }
.gallery-item:nth-child(17) img { animation-delay: 1.7s; }
.gallery-item:nth-child(18) img { animation-delay: 1.8s; }
.gallery-item:nth-child(19) img { animation-delay: 1.9s; }
/* Оптимизация для ленивой загрузки */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Улучшение доступности */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4a7856;
    outline-offset: 2px;
}

/* Анимация для плавности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Оптимизация для мобильных */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    
    .hero {
        background: linear-gradient(45deg, #1a1a1a, #2c5530);
    }
}