* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    background: #FFF8E1; /* Мягкий кремовый фон */
    color: #263238; /* Тёмно-серый текст */
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Навигационная панель */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    background: #37474F; /* Тёмно-серый с синим оттенком */
    color: #FFF8E1; /* Кремовый текст */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-x: hidden;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFF8E1; /* Кремовый для логотипа */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo:hover {
    transform: rotate(360deg);
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.7); /* Бирюзовый акцент */
}

.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #FFF8E1; /* Кремовый */
}

.burger-menu i {
    transition: transform 0.3s ease;
}

.burger-menu i.fa-times {
    transform: rotate(180deg);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    font-family: 'Playfair Display', serif;
    color: #FFF8E1; /* Кремовый */
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #2E7D32; /* Бирюзовый акцент */
    transform: scale(1.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2E7D32; /* Бирюзовый */
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info a {
    font-family: 'Roboto', sans-serif;
    color: #FFF8E1; /* Кремовый */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info a:hover {
    color: #2E7D32; /* Бирюзовый */
    transform: translateY(-3px);
}

/* Секции */
.section {
    min-height: 80vh;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-section {
    background: url('images/1.jpg') no-repeat center center/cover;
    color: #FFF8E1; /* Кремовый текст */
    text-align: center;
    position: relative;
    height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.hero h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(46, 125, 50, 0.8); /* Бирюзовый акцент */
}

.hero p {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFCA28; /* Яркий жёлтый для кнопки */
    color: #263238; /* Тёмно-серый текст */
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #FFB300; /* Более тёмный жёлтый при наведении */
    transform: scale(1.1);
}

.gradient-bg {
    background: linear-gradient(135deg, #FFF8E1 0%, #ECEFF1 100%); /* От кремового к светло-серому */
}

.philosophy-bg {
    background: #37474F; /* Тёмно-серый с синим оттенком */
    color: #FFF8E1; /* Кремовый текст */
}

#about {
    overflow-x: hidden;
}

#about [data-aos] {
    overflow-x: hidden;
    transform: translate3d(0, 0, 0);
}

.content {
    max-width: 900px;
    text-align: left;
}

.content h2 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    margin-bottom: 20px;
    color: #263238; /* Тёмно-серый */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.content h2:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.8); /* Бирюзовый акцент */
}

.content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 30px 0 15px;
    color: #263238; /* Тёмно-серый */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.content h3:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.8); /* Бирюзовый */
}

.content p, .content ul {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #263238; /* Тёмно-серый */
    margin-bottom: 20px;
}

.philosophy-bg .content p, .philosophy-bg .content h2 {
    color: #FFF8E1; /* Кремовый для секции Philosophy */
}

.content ul {
    list-style: none;
    padding-left: 20px;
}

.content ul li {
    position: relative;
    margin-bottom: 15px;
}

.content ul li::before {
    content: '✦';
    position: absolute;
    left: -20px;
    color: #2E7D32; /* Бирюзовый */
}

/* Секция Services */
.services-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
}

.image-block {
    flex: 0 0 200px;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-block.left {
    order: -1;
}

.image-block.right {
    order: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.service-card {
    background: #FFF8E1; /* Кремовый фон */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: #263238; /* Тёмно-серый */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.service-card h4:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.8); /* Бирюзовый */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #2E7D32; /* Бирюзовый */
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.service-card i {
    color: #2E7D32; /* Бирюзовый */
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: #263238; /* Тёмно-серый */
}

/* Секция Portfolio */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    background: #FFF8E1; /* Кремовый фон */
    padding: 20px;
    border-radius: 15px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 125, 50, 0.8); /* Бирюзовый акцент */
    color: #FFF8E1; /* Кремовый текст */
    padding: 10px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-card:hover .gallery-text {
    transform: translateX(-50%) translateY(-10px);
    background: rgba(27, 94, 32, 0.8); /* Тёмный бирюзовый при наведении */
}

/* Секция Philosophy */
.philosophy-bg .services-container {
    justify-content: space-between;
    align-items: center;
}

.svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.svg-background path {
    fill: #2E7D32; /* Бирюзовый */
    fill-opacity: 0.7;
}

.philosophy-content {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    max-width: 700px;
    padding: 30px;
    background: rgba(55, 71, 79, 0.6); /* Полупрозрачный тёмно-серый */
    border-radius: 15px;
}

.philosophy-content p {
    font-size: 20px;
    line-height: 2;
}

.philosophy-text {
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.philosophy-text:hover {
    transform: scale(1.05);
    color: #FFCA28; /* Жёлтый акцент */
}

/* Секция Contact */
.contact-content {
    text-align: center;
    max-width: 1000px;
}

.contact-intro {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #263238; /* Тёмно-серый */
}

.divider {
    width: 120px;
    height: 4px;
    background: #2E7D32; /* Бирюзовый */
    margin: 30px auto;
    border-radius: 2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #FFF8E1; /* Кремовый фон */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon-link {
    color: #2E7D32; /* Бирюзовый */
    transition: transform 0.5s ease, color 0.3s ease;
    text-decoration: none;
}

.contact-icon-link:hover .contact-icon {
    transform: scale(1.2) rotate(360deg);
    color: #1B5E20; /* Тёмный бирюзовый */
}

.contact-text {
    margin: 0;
    font-size: 16px;
    color: #263238; /* Тёмно-серый */
    position: relative;
}

.contact-text span {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.contact-text:hover span {
    color: #2E7D32; /* Бирюзовый */
}

.contact-text span::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #2E7D32; /* Бирюзовый */
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: sparkle 1.5s infinite;
}

.contact-text:hover span::before {
    opacity: 1;
    transform: scale(1);
}

@keyframes sparkle {
    0%, 100% { border-color: #2E7D32; } /* Бирюзовый */
    50% { border-color: #1B5E20; } /* Тёмный бирюзовый */
}

.contact-text a {
    color: #263238; /* Тёмно-серый */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #2E7D32; /* Бирюзовый */
}

/* Футер */
.footer {
    background: #37474F; /* Тёмно-серый с синим оттенком */
    color: #FFF8E1; /* Кремовый текст */
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
}

.copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF8E1 0%, #ECEFF1 100%); /* Градиент от кремового к светло-серому */
    opacity: 0.95;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.modal-open {
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    position: relative;
    width: 600px;
    height: 600px;
    background: #FFF8E1; /* Кремовый фон */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #263238; /* Тёмно-серый */
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.close:hover {
    color: #2E7D32; /* Бирюзовый */
    transform: scale(1.2);
}

.prev, .next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #263238; /* Тёмно-серый */
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    color: #2E7D32; /* Бирюзовый */
    transform: translateY(-50%) scale(1.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        width: 100%;
        max-width: 100%;
    }

    .burger-menu {
        display: block;
    }

    .nav-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        background: #37474F; /* Тёмно-серый с синим оттенком */
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
    }

    .nav-container.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .content h2 {
        font-size: 32px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .image-block {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }

    .image-block.right {
        order: 2;
    }

    .philosophy-bg .services-container {
        flex-direction: column;
        align-items: center;
    }

    .philosophy-content {
        padding: 20px;
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 200px;
    }

    .gallery-text {
        font-size: 16px;
        padding: 8px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 300px;
        height: 300px;
    }

    .close {
        font-size: 25px;
        right: 20px;
        top: 15px;
    }

    .prev, .next {
        font-size: 30px;
        padding: 5px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}