/* ================================
   STALKMET - Main Stylesheet
   ================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #F0F0F0;
    --bg-quaternary: #EBEBEB;
    --bg-light: #FCFCFC;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --white: #FFFFFF;
    --accent: #2A2A2A;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* ================================
   Navigation
   ================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
}

nav .logo {
    margin: 0;
}

nav .nav-links {
    margin: 0;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.35rem;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F4511E, #FF6F3C);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    color: #F4511E;
    transform: translateY(-1px);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F4511E, #FF6F3C);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a[href="works.html"] {
    color: var(--white);
    background: linear-gradient(120deg, #1a1a1a, #2f2f2f);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav-links a[href="works.html"]::before {
    display: none;
}

/* ================================
   Language Switcher (Dropdown)
   ================================ */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn-dropdown {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 60px;
}

.language-btn-dropdown:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

.language-flag {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    margin-right: 0.25rem;
}

.language-current {
    display: inline-block;
}

.language-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 0.25rem;
}

.language-switcher.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    gap: 0.5rem;
}

.language-option .language-flag {
    font-size: 1rem;
    margin-right: 0;
}

.language-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.language-option.active {
    background: var(--text-primary);
    color: var(--white);
}

.language-option.active:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1A1A;
    overflow: hidden;
    padding: 120px 0 60px 0;
    /* Оптимальные отступы для главной */
}

/* Разная высота и отступы для разных страниц */
.construction-page .hero,
.design-page .hero {
    height: 70vh;
    min-height: 500px;
    padding: 100px 0 40px 0;
    /* Меньше отступы для меньшей высоты */
}

.works-page .hero {
    height: 60vh;
    min-height: 450px;
    padding: 80px 0 30px 0;
    /* Еще меньше отступы */
}

.contacts-page .hero {
    height: 50vh;
    min-height: 400px;
    padding: 70px 0 20px 0;
    /* Минимальные отступы */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Fallback изображение */
.hero-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
    /* Скрыто по умолчанию */
}

/* Улучшенная совместимость для видео */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 1200px;
    padding: 0 3%;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* Адаптивные заголовки для разных страниц */
.construction-page .hero h1,
.design-page .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.works-page .hero h1,
.contacts-page .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* Адаптивные описания для разных страниц */
.construction-page .hero-description,
.design-page .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.works-page .hero-description,
.contacts-page .hero-description {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

button.btn-primary {
    appearance: none;
    -webkit-appearance: none;
}

/* Dark button for white backgrounds */
.btn-dark {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.12em;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding-right: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-dark::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.btn-dark:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.btn-dark:hover::after {
    transform: translateY(-50%) translateX(5px);
}

/* ================================
   Container & Grid
   ================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    position: relative;
    transition: background-color 0.6s ease;
}

/* Серая палитра для секций - нежные оттенки */
#why-us {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-primary) 100%);
}

#services {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.philosophy {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
}

.contact {
    background: linear-gradient(180deg, var(--bg-quaternary) 0%, var(--bg-light) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    padding: 0.75rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
}

.section-header::before,
.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(80px, 20vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

.section-header::before {
    left: 0;
    transform: translateY(-50%);
}

.section-header::after {
    right: 0;
    transform: translateY(-50%);
}

.section-label {
    font-size: 0.813rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #F4511E, #FF6F3C);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   About & Vision Slider Section
   ================================ */
.about-vision-slider {
    padding: clamp(3rem, 6vw, 5rem) 0 0 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 5%;
    color: var(--white);
    text-align: center;
    animation: slideContentFadeIn 0.8s ease-out;
}

@keyframes slideContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-content .section-label {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.slider-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--white);
}

.slider-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.slider-content p:last-child {
    margin-bottom: 0;
}

.slider-content strong {
    color: var(--white);
    font-weight: 500;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-prev {
    left: 3%;
}

.slider-nav-next {
    right: 3%;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Dots Indicators */
.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slider-container {
        max-height: 800px;
        min-height: 500px;
    }

    .slider-content h2 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .slider-content p {
        font-size: clamp(0.938rem, 2vw, 1.125rem);
    }

    .slider-nav {
        width: 50px;
        height: 50px;
    }

    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
    }

    .slider-content {
        padding: 0 6%;
    }

    .slider-content h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .slider-content p {
        font-size: clamp(0.875rem, 3vw, 1rem);
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .slider-content .section-label {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .slider-nav {
        width: 45px;
        height: 45px;
    }

    .slider-nav-prev {
        left: 2%;
    }

    .slider-nav-next {
        right: 2%;
    }

    .slider-nav svg {
        width: 18px;
        height: 18px;
    }

    .slider-dots {
        bottom: 2rem;
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 70vh;
        min-height: 450px;
    }

    .slider-content {
        padding: 0 5%;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        opacity: 0.9;
    }

    .slider-nav svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        bottom: 1.5rem;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }

    .slider-dot {
        width: 7px;
        height: 7px;
    }

    .slider-dot.active {
        width: 20px;
    }
}

/* Legacy About Section Styles (kept for compatibility) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-text {
    grid-column: span 5;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image {
    grid-column: span 7;
    height: 600px;
    background: linear-gradient(135deg, #E8E8E8, #D0D0D0);
    position: relative;
    overflow: hidden;
}

/* ================================
   Expertise Section
   ================================ */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
}

.expertise-card {
    grid-column: span 4;
    padding: 3rem 2.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.expertise-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.expertise-card:hover .expertise-icon {
    opacity: 0.9;
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.expertise-card p {
    font-size: 0.938rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ================================
   Team Slider
   ================================ */
.team-slider {
    margin-top: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-slider__viewport {
    overflow: hidden;
    flex: 1;
}

.team-slider__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.team-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.team-card__photo {
    aspect-ratio: 5 / 4;
    background: linear-gradient(135deg, #E8E8E8, #D0D0D0);
    overflow: hidden;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

@supports not (aspect-ratio: 1) {
    .team-card__photo {
        height: 360px;
    }
}

.team-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.team-card__role {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

.team-card__excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.team-card__more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card__more:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.team-card__full {
    display: none;
}

.team-slider-nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.team-slider-nav:hover {
    background: var(--text-primary);
    color: var(--white);
}

.team-slider-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.team-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 0;
}

.team-modal.show {
    display: flex;
}

.team-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.team-modal__dialog {
    position: relative;
    background: var(--white);
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 900px;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.team-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
}

.team-modal__content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.team-modal__media img {
    width: 240px;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.team-modal__role {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.team-modal__name {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.team-modal__bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.team-modal__bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .team-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 900px) {
    .team-card {
        flex: 0 0 100%;
    }

    .team-modal__dialog {
        padding: 2rem;
    }

    .team-modal__content {
        flex-direction: column;
    }

    .team-modal__media img {
        width: 100%;
        height: auto;
        object-position: top center;
    }

    .team-slider {
        padding: 0 3rem;
    }

    .team-slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        order: 0;
    }

    .team-slider-nav--prev {
        left: 0;
    }

    .team-slider-nav--next {
        right: 0;
    }

    .team-slider__viewport {
        width: 100%;
    }

    footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-contact {
        gap: 1.25rem;
    }

    .footer-contact__info {
        padding: 0 1.25rem;
    }

    .footer-contact__form {
        margin: 0 1.25rem;
        border-radius: 16px;
        padding: 1.5rem;
    }

    .footer-contact__mobile-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 2rem 0 1.25rem;
    }

    .footer-contact {
        gap: 1rem;
    }

    .footer-contact__form {
        display: none;
    }

    .footer-contact__form-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact__info {
        padding: 0 0.75rem;
    }

    .footer-contact__mobile-btn {
        display: block;
    }

    .team-card__photo {
        height: auto;
    }

    .team-card__body {
        padding: 1.5rem;
    }

    .team-modal {
        padding: 1rem 0;
    }

    .team-modal__dialog {
        padding: 1.5rem;
        width: calc(100% - 1rem);
        max-height: calc(100vh - 2rem);
        border-radius: 24px;
    }

    .team-modal__close {
        top: 1rem;
        right: 1rem;
    }

    .team-modal__name {
        font-size: 1.5rem;
    }

    .team-modal__bio p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .team-slider {
        padding: 0 2.5rem;
    }

    .team-slider-nav {
        width: 44px;
        height: 44px;
    }

    .team-slider-nav--prev {
        left: 0.25rem;
    }

    .team-slider-nav--next {
        right: 0.25rem;
    }

    .team-card__photo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

.team-photo {
    width: 100%;
    height: 280px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.team-photo-img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .team-photo {
        height: auto;
        min-height: 220px;
    }

    .team-photo-img {
        height: auto;
        max-height: 320px;
        object-fit: contain;
        object-position: center;
        transform: none !important;
    }
}

/* ================================
   Projects Gallery
   ================================ */
.projects {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
}

.project-card {
    grid-column: span 6;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, #E8E8E8, #D8D8D8);
    position: relative;
    overflow: hidden;
}

.project-info {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info .btn-dark,
.project-info .btn-primary {
    margin-top: auto !important;
}

.project-location {
    font-size: 0.813rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.project-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ================================
   Services Slider
   ================================ */
.services {
    background: var(--white);
}

.services-slider {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.services-slider__viewport {
    overflow: hidden;
}

.services-slider__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.service-card {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(260px, 40%) 1fr;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    min-height: 420px;
}

.service-card__media {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
}

.service-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.service-card__content {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.service-card__badge {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.service-card__number {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
}

.service-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
}

.service-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.service-card__actions {
    margin-top: auto;
}

.services-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.services-nav:hover {
    background: var(--text-primary);
    color: var(--white);
}

.services-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.services-nav--prev {
    left: -28px;
}

.services-nav--next {
    right: -28px;
}

@media (max-width: 1100px) {
    .service-card {
        grid-template-columns: 1fr;
    }

    .service-card__media {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .service-card__content {
        padding: 1.75rem;
    }

    .services-nav {
        width: 44px;
        height: 44px;
    }

    .services-nav--prev {
        left: 8px;
    }

    .services-nav--next {
        right: 8px;
    }
}

/* ================================
   Philosophy Section
   ================================ */
.philosophy {
    background: var(--white);
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* ================================
   Core Values
   ================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.value-card {
    grid-column: span 4;
    text-align: center;
    padding: 2rem 1rem;
}

.value-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.value-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.value-description {
    font-size: 0.938rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ================================
   CTA Section
   ================================ */
.cta {
    background: var(--text-primary);
    color: var(--white);
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 5% clamp(3rem, 6vw, 5rem);
}

.cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.15;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5rem;
}

.contact-info {
    grid-column: span 5;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.contact-detail {
    margin-bottom: 2rem;
}

.contact-detail label {
    display: block;
    font-size: 0.813rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-detail a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    transition: opacity 0.3s;
}

.contact-detail a:hover {
    opacity: 0.6;
}

.contact-form {
    grid-column: span 7;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    padding: 1rem 3rem;
    background: var(--text-primary);
    color: var(--white);
    border: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    font-weight: 300;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* ================================
   Footer & Compact Contact
   ================================ */
footer {
    background: var(--text-primary);
    color: var(--white);
    padding: clamp(2.5rem, 6vw, 4rem) 5% 2rem;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.footer-contact__info {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact__item label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-contact__item a,
.footer-contact__item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.footer-contact__item a {
    display: block;
}

.footer-contact__item a:hover {
    opacity: 0.8;
}

.footer-contact__form {
    grid-column: span 8;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.footer-contact__form .form-group label {
    color: var(--text-secondary);
}

.footer-contact__form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.footer-contact__mobile-btn {
    display: none;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-contact__mobile-btn:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: transparent;
}

.footer-logo {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .footer-contact {
        grid-template-columns: 1fr;
    }

    .footer-contact__info,
    .footer-contact__form {
        grid-column: span 12;
    }

    .footer-contact__form-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Animations
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Portfolio/Works Section
   ================================ */
.portfolio-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #E0E0E0, #C8C8C8);
    position: relative;
    overflow: hidden;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.portfolio-category {
    font-size: 0.813rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.portfolio-description {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.portfolio-actions {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* ================================
   Works Gallery (Masonry Style)
   ================================ */
.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.works-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.works-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.works-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.works-gallery-item:hover img {
    transform: scale(1.05);
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .works-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .works-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ================================
   Works Gallery Skeleton/Shimmer
   ================================ */
.works-skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.works-skeleton-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4/3;
}

.works-skeleton-item .works-skeleton {
    width: 100%;
    height: 100%;
}

.works-gallery-item.loading {
    opacity: 0;
    pointer-events: none;
}

.works-gallery-item.loaded {
    opacity: 1;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Works Gallery Overlay/Modal
   ================================ */
.works-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.works-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.works-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.works-overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.works-overlay-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.works-overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.works-overlay-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.works-overlay-nav.prev {
    left: 30px;
}

.works-overlay-nav.next {
    right: 30px;
}

.works-overlay-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    z-index: 10001;
}

@media (max-width: 768px) {
    .works-overlay-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .works-overlay-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .works-overlay-nav.prev {
        left: 15px;
    }

    .works-overlay-nav.next {
        right: 15px;
    }

    .works-overlay-counter {
        bottom: 15px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

.btn-load-more:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* ================================
   Certificates Section
   ================================ */
.certificates {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-secondary) 100%);
    padding: 6rem 0;
}

.certificates-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    line-height: 1.8;
    color: var(--text-secondary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-card {
    background: var(--white);
    padding: 3.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.certificate-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.certificate-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.certificate-description {
    font-size: 0.938rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ================================
   Clients Section
   ================================ */
.clients {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 6rem 0;
}

.clients-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    line-height: 1.8;
    color: var(--text-secondary);
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 180px;
    height: 80px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.client-logo:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* ================================
   Mobile Menu (Drawer)
   ================================ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

/* Скрываем гамбургер-кнопку когда drawer открыт */
.mobile-menu-btn.active {
    opacity: 0;
    pointer-events: none;
}

/* Overlay за drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

/* Шапка drawer */
.mobile-menu-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.mobile-menu-logo {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Навигационные ссылки */
.mobile-menu-links {
    list-style: none;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.mobile-menu-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-links li:last-child {
    border-bottom: none;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-menu-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-links a:active {
    background: rgba(0, 0, 0, 0.03);
}

.mobile-menu-links a:hover::before,
.mobile-menu-links a:active::before {
    transform: scaleY(1);
}

.mobile-menu-links a[href="works.html"]::before {
    transform: scaleY(1);
}

/* Футер drawer с языковым переключателем */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-light);
}

.mobile-menu-footer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.mobile-language-options {
    display: flex;
    gap: 0.75rem;
}

.mobile-language-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.mobile-language-btn .language-flag {
    font-size: 1.25rem;
}

.mobile-language-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
}

.mobile-language-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.mobile-language-btn.active:hover {
    background: var(--accent);
    opacity: 0.9;
}

/* Плавная прокрутка для drawer */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {

    .about-grid,
    .expertise-grid,
    .projects-grid,
    .contact-grid,
    .values-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .about-text,
    .about-image,
    .expertise-card,
    .project-card,
    .contact-info,
    .contact-form,
    .value-card {
        grid-column: span 1;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .language-switcher {
        position: relative;
    }

    .language-btn-dropdown {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 50px;
    }

    .language-dropdown {
        min-width: 50px;
    }

    .language-option {
        padding: 0.6rem 0.6rem;
        font-size: 0.7rem;
    }

    .project-image {
        height: 60vh;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Vision section адаптивность */
    #vision .about-grid {
        flex-direction: column !important;
    }

    #vision .about-text {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 2rem;
    }

    #vision .about-image {
        min-height: 300px !important;
    }

    #vision .vision-team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #vision .vision-reverse {
        flex-direction: column !important;
    }

    #vision .vision-team-block {
        padding: 2rem !important;
    }

    .portfolio-image {
        height: 250px;
    }
}

/* Vision section - дополнительные стили для десктопа */
@media (min-width: 1025px) {
    #vision .about-grid {
        display: flex;
        flex-direction: row;
    }

    #vision .vision-reverse {
        flex-direction: row-reverse;
    }

    #vision .about-text {
        flex: 1;
    }

    #vision .about-image {
        flex: 1;
        grid-column: auto;
        height: auto;
    }
}

/* ================================
   Modal Styles
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-secondary);
    float: right;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text-primary);
}

.contact-form-modal {
    margin-top: 0.5rem;
}

.contact-form-modal .form-group {
    margin-bottom: 1rem;
}

.contact-form-modal .form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form-modal .form-group input,
.contact-form-modal .form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.contact-form-modal .form-group input:focus,
.contact-form-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.1);
}

.contact-form-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form-modal .btn-submit {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .section-header {
        padding: 0.5rem 0;
    }

    .section-header::before,
    .section-header::after {
        width: clamp(40px, 12vw, 80px);
    }

    nav>div>div {
        gap: 1rem !important;
    }

    .language-switcher {
        position: relative;
    }

    .language-btn-dropdown {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
        min-width: 45px;
    }

    .language-dropdown {
        min-width: 45px;
    }

    .language-option {
        padding: 0.5rem 0.5rem;
        font-size: 0.65rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-height: 85vh;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.75rem;
    }
}

/* Special styling for Sofia's photo to handle crop differences */
.sofia-img {
    transform: scale(1.5);
    transform-origin: 60% 70%;
    /* Desktop: Focus slightly lower than top */
}

@media (max-width: 768px) {
    .sofia-img {
        transform: scale(1.45);
        transform-origin: 65% 35%;
        /* Mobile: Focus near top, shifted further left and up */
    }
}