

/* базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFBF0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 65px, rgba(0, 150, 60, 0.03) 80px, rgba(0, 150, 60, 0.03) 80.1px, transparent 80.5px, transparent 160px), repeating-linear-gradient(-45deg, transparent, transparent 65px, rgba(0, 150, 60, 0.03) 80px, rgba(0, 150, 60, 0.03) 80.1px, transparent 80.5px, transparent 160px);
    background-attachment: fixed;
    font-family: 'Inter', Arial, sans-serif;
    color: #1a2a1a;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}
/*-------------------------------------------------------*/

/* шапки */

/* Большая шапка */
#main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.75) 0%, rgba(0, 180, 70, 0.8) 100%);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 150, 60, 0.25);
    z-index: 1000;
    transition: all 0.4s ease;
}

    #main-header.hidden {
        transform: translateX(-50%) translateY(-150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* Навигация в шапке */
.nav-menu {
    display: flex;
    gap: 32px;
}

    .nav-menu a {
        color: white;
        font-weight: 500;
        transition: opacity 0.2s;
    }

        .nav-menu a:hover {
            opacity: 0.8;
        }

/* Логотип */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    background: rgba(255,255,255,0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

/* Компактная шапка (появляется при скролле) */
#compact-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.85) 0%, rgba(0, 180, 70, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

    #compact-header.visible {
        opacity: 1;
        pointer-events: all;
    }

    #compact-header a {
        color: white;
        font-weight: 500;
    }
/*-------------------------------------------------------*/

/* общие контейнер */
.section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 180, 70, 0.15);
    color: #2e7d32;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a3a1a;
}
/*-------------------------------------------------------*/

/* hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 120px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-badge {
    background: rgba(0, 200, 83, 0.15);
    color: #2e7d32;
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 22px;
    color: #2a4a2a;
    margin-bottom: 40px;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
/*-------------------------------------------------------*/

/* кнопки*/
.btn-primary {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,150,60,0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,150,60,0.4);
    }

.btn-secondary {
    background: rgba(0, 180, 70, 0.15);
    backdrop-filter: blur(10px);
    color: #2e7d32;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(0,150,60,0.3);
    transition: all 0.3s;
}

    .btn-secondary:hover {
        background: rgba(0, 180, 70, 0.25);
        transform: translateY(-3px);
    }
/*-------------------------------------------------------*/

/* плейсхолдеры фото */
.hero-image-placeholder {
    flex: 1;
    min-width: 300px;
}

.image-placeholder {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 150, 60, 0.3));
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed rgba(0,150,60,0.5);
    color: #2e7d32;
    transition: all 0.3s;
}

    .image-placeholder i {
        font-size: 48px;
        margin-bottom: 16px;
        display: block;
    }

    .image-placeholder span {
        font-size: 16px;
        font-weight: 500;
    }

.glass {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
/*-------------------------------------------------------*/

/* о студии */
.about-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.about-text {
    flex: 1;
    font-size: 18px;
    color: #2a3a2a;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #2e7d32;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #4a6a4a;
}

.about-image-placeholder {
    flex: 1;
}
/*-------------------------------------------------------*/

/* сетки карточек */
.portfolio-grid,
.services-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
/*-------------------------------------------------------*/

/* общий стиль карточек */
.portfolio-card,
.service-card,
.review-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 24px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

    .portfolio-card:hover,
    .service-card:hover,
    .review-card:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 20px 40px rgba(0,150,60,0.15);
    }

.card-image {
    background: rgba(0, 150, 60, 0.15);
    border-radius: 24px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px dashed rgba(0,150,60,0.5);
    color: #2e7d32;
}

    .card-image i {
        font-size: 48px;
    }

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a3a1a;
}

.card-desc {
    color: #3a5a3a;
    font-size: 14px;
    line-height: 1.5;
}

.service-icon {
    font-size: 40px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #2a4a2a;
}

.review-author {
    font-weight: 700;
    color: #1a3a1a;
}
/*-------------------------------------------------------*/

/*контакты */
.contact-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    border-radius: 28px;
}

    .contact-item i {
        font-size: 32px;
        color: #2e7d32;
    }

    .contact-item h4 {
        margin-bottom: 8px;
        color: #1a3a1a;
    }

    .contact-item a {
        color: #2e7d32;
        font-weight: 600;
    }

.contact-form-placeholder {
    flex: 1;
}
/*-------------------------------------------------------*/

/* футер */
.footer {
    background: linear-gradient(135deg, #1a3a1a, #0e2a0e);
    color: white;
    margin-top: 60px;
    padding: 48px 5% 24px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo .logo {
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.2);
}

.footer-links {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

    .footer-links a {
        font-size: 14px;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

        .footer-links a:hover {
            opacity: 1;
        }
/*-------------------------------------------------------*/

/* адаптив */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 32px;
    }

    .nav-menu {
        display: none;
    }

    #compactheader .nav-menu-small {
        display: none;
    }

    #compactheader {
        padding: 8px 20px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }
}
/*-------------------------------------------------------*/

/* общие стили */

/* Контейнеры страниц */
.about-page,
.services-page,
.project-page,
.blog-page,
.contact-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 5% 80px;
}

/* Hero секции (общие) */
.hero-badge {
    background: rgba(0, 180, 70, 0.15);
    color: #2e7d32;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    background: rgba(0, 180, 70, 0.15);
    color: #2e7d32;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a3a1a;
    margin-bottom: 16px;
}

.section-header p {
    color: #3a5a3a;
    font-size: 18px;
}

/* Карточки (общие) */
.portfolio-card,
.service-card,
.review-card,
.principle-card,
.contact-card,
.item-card,
.work-card {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 24px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.6);
}

    .portfolio-card:hover,
    .service-card:hover,
    .review-card:hover,
    .principle-card:hover,
    .contact-card:hover,
    .item-card:hover,
    .work-card:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,0.6);
    }

/* Кнопки (общие) */
.btn-primary {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,150,60,0.4);
    }

.btn-secondary {
    background: rgba(0, 180, 70, 0.15);
    backdrop-filter: blur(10px);
    color: #2e7d32;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(0,150,60,0.3);
    transition: all 0.3s;
    display: inline-block;
}

    .btn-secondary:hover {
        background: rgba(0, 180, 70, 0.25);
        transform: translateY(-3px);
    }

/* Плейсхолдеры для фото */
.image-placeholder {
    background: rgba(0,150,60,0.1);
    border-radius: 32px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed rgba(0,150,60,0.4);
    color: #2e7d32;
}

    .image-placeholder i {
        font-size: 64px;
        margin-bottom: 16px;
        display: block;
    }

/* Сетки */
.portfolio-grid,
.services-grid,
.reviews-grid,
.principles-grid,
.contacts-grid,
.works-grid,
.items-grid {
    display: grid;
    gap: 32px;
}

/* Футер общий */
#main-footer,
.footer {
    background: linear-gradient(135deg, #1a3a1a, #0e2a0e);
    color: white;
    margin-top: 60px;
    padding: 48px 5% 24px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo .logo {
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.2);
}

.footer-links {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

    .footer-links a {
        font-size: 14px;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

        .footer-links a:hover {
            opacity: 1;
        }

/* Адаптив общий */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }

    .nav-menu {
        display: none;
    }
}
/*-------------------------------------------------------*/

/* модальное окно*/
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(0,150,60,0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 28px;
    color: #1a3a1a;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 16px;
    color: #2a4a2a;
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: #2e7d32;
    }

.modal-btn {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,150,60,0.3);
    }
/*-------------------------------------------------------*/

/* визуальные подсказки для ссылок*/
.portfolio-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .portfolio-card:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,0.7);
        box-shadow: 0 20px 40px rgba(0,150,60,0.2);
    }

    .portfolio-card::after {
        content: "→";
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        color: #2e7d32;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .portfolio-card:hover::after {
        opacity: 1;
        transform: translateX(5px);
    }

    .portfolio-card:hover .card-image {
        border-color: #2e7d32;
        background: rgba(0,150,60,0.2);
    }

.portfolio-card {
    cursor: pointer;
}

.hero-image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    object-fit: cover;
}
/*-------------------------------------------------------*/

/* бургер меню */

/* Кнопка бургера */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

    .burger span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

/* Мобильное меню (выезжающее справа) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 180, 70, 0.98), rgba(0, 150, 60, 0.98));
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu a {
        display: block;
        color: white;
        font-size: 18px;
        font-weight: 500;
        padding: 15px 0;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        transition: all 0.2s;
    }

        .mobile-menu a:hover {
            opacity: 0.8;
            padding-left: 10px;
        }

/* Затемнение фона при открытом меню */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

    .mobile-overlay.active {
        display: block;
    }
/*-------------------------------------------------------*/

/* адаптив */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu,
    .nav-menu-small {
        display: none !important;
    }

    #main-header,
    #header {
        width: 95% !important;
        padding: 10px 16px !important;
        top: 10px !important;
        left: 2.5% !important;
        transform: none !important;
    }

        #main-header .logo,
        #header .logo {
            width: 36px !important;
            height: 36px !important;
            font-size: 18px !important;
        }

        #main-header.hidden,
        #header.hidden {
            transform: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: all !important;
        }

    #compact-header,
    #compactheader {
        display: none !important;
    }
}
/*-------------------------------------------------------*/
