:root {
    --bg-color: #F4F3EF;          /* Светло-бежевый фон */
    --text-dark: #1E221E;         /* Глубокий тёмный цвет текста */
    --accent-green: #2B3A2F;      /* Фирменный тёмно-зелёный */
    --accent-hover: #3C4E41;      /* Цвет при наведении */
    --text-muted: #666666;        /* Серый цвет для подписей */
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent-green);
    color: #FFFFFF;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
    border-radius: 4px;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 58, 47, 0.18);
}

.btn-link {
    display: inline-block;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--text-dark);
    font-weight: 500;
}

/* --- ШАПКА И МОБИЛЬНОЕ МЕНЮ --- */
.header {
    position: sticky;
    top: 0;
    padding: 20px 0;
    background-color: rgba(244, 243, 239, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--accent-green);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-hover);
}

.nav {
    display: flex;
}

.nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav a {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: var(--accent-hover);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--accent-green);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    position: relative;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- ФОНОВАЯ АНИМАЦИЯ --- */
.flowers-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.animated-flower {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    will-change: transform, opacity;
    animation: floatFlower linear infinite;
}

@keyframes floatFlower {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg) scale(0.6);
    }
    15% { opacity: 0.25; }
    85% { opacity: 0.25; }
    100% {
        opacity: 0;
        transform: translateY(-800px) rotate(360deg) scale(1.1);
    }
}

.flower-1 { left: 5%;  animation-duration: 22s; animation-delay: 0s; width: 50px; height: 50px; }
.flower-2 { left: 20%; animation-duration: 28s; animation-delay: 4s; width: 75px; height: 75px; }

/* --- HERO --- */
.hero {
    padding: 40px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-title);
    font-size: 56px;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 35px;
    max-width: 380px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero-logo-container {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.05));
}

/* --- ПРЕИМУЩЕСТВА --- */
.features {
    padding: 40px 0 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-icon-svg {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: block;
}

.feature-icon-svg path,
.feature-icon-svg circle,
.feature-icon-svg rect {
    stroke: var(--text-dark);
    stroke-width: 1.5;
    fill: none;
}

.feature-item h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- КАРУСЕЛЬ И КАРТОЧКИ (ПОРТФОЛИО) --- */
.portfolio {
    padding: 60px 0;
    position: relative;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.portfolio-title span {
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.portfolio-title h2 {
    font-family: var(--font-title);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.work-card-interactive {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.work-card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #E2DFD7;
    user-select: none;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide:hover img {
    transform: scale(1.04);
}

.badge-interactive {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(43, 58, 47, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FFFFFF;
    width: 16px;
    border-radius: 3px;
}

.interactive-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.work-card-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.work-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-interactive {
    width: 100%;
    padding: 10px;
    background-color: var(--accent-green);
    color: #FFFFFF;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
    margin-top: 14px;
}

.btn-interactive:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 58, 47, 0.18);
}

/* --- LIGHTBOX (ПОЛНОЭКРАННЫЙ ПРОСМОТР) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #FFFFFF;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
    z-index: 2010;
}

.lightbox-close:hover { opacity: 0.7; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2010;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- СЕКЦИЯ О СТУДИИ / О НАС --- */
.about {
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.about-page {
    padding: 80px 0 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 40px;
    height: 580px;
    background-color: #E2DFD7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: pointer;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-content span.subtitle {
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.about-text-content h1 {
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 25px;
}

.about-intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text-content p {
    font-size: 14px;
    color: #4A4A4A;
    margin-bottom: 18px;
    line-height: 1.7;
}

.about-quote {
    font-family: var(--font-title);
    font-size: 22px;
    font-style: italic;
    line-height: 1.4;
    color: var(--accent-green);
    border-left: 2px solid var(--accent-green);
    padding-left: 20px;
    margin: 30px 0;
}

.about-text h2 {
    font-family: var(--font-title);
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 440px;
}

/* --- СЕКЦИЯ КОНТАКТОВ --- */
.contacts-page {
    padding: 60px 0 80px;
    flex-grow: 1;
}

.page-title {
    margin-bottom: 50px;
}

.page-title span {
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.page-title h1 {
    font-family: var(--font-title);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-group h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.info-group p, 
.info-group a:not(.social-icon-btn) {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    transition: color 0.3s ease;
}

.info-group a:not(.social-icon-btn):hover {
    color: var(--accent-hover);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.social-icon-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 0;
    line-height: 0;
    text-decoration: none;
    will-change: transform;
}

.social-icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

.social-icon-btn:hover {
    background-color: var(--accent-green);
    color: #FFFFFF;
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(43, 58, 47, 0.2);
}

.contact-form-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.contact-form-card h2 {
    font-family: var(--font-title);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 400;
}

.contact-form-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(43, 58, 47, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--accent-green);
    color: #FFFFFF;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 58, 47, 0.18);
}

#map {
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 450px;
    width: 100%;
}

/* --- ПОДВАЛ --- */
.footer {
    background-color: #ECEBE6;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.copyright {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* --- АДАПТИВНОСТЬ И МОБИЛЬНОЕ МЕНЮ --- */
@media (max-width: 1024px) {
    .hamburger-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #F4F3EF;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        font-size: 22px;
        text-align: center;
    }

    .hero-grid, .about-grid, .contacts-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .features-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-logo-container { height: 300px; padding: 20px; }
    .carousel-btn { opacity: 1; }
    .contact-form-card { padding: 25px; }
    #map { height: 350px; }
    .about-image { height: 400px; position: static; }
    .about-text-content h1 { font-size: 36px; }
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    
    .carousel-wrapper {
        aspect-ratio: 4 / 3;
    }
}
