/* ====== СБРОС И БАЗА ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f2ede9;
    --bg-dark: #0f0f0f;
    --bg-grey: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #555555;
    --text-on-dark: #f2ede9;
    --text-dark-light: #a8a8a8;
    --accent: #c85a54;
    --border: rgba(26, 26, 26, 0.12);
    --border-dark: rgba(255, 255, 255, 0.08);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.accent-text {
    color: var(--accent);
    font-style: italic;
}

/* ====== НАВИГАЦИЯ ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(242, 237, 233, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    letter-spacing: 2px;
    transition: var(--transition);
}

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

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: var(--transition);
}

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

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-left: 30px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    transition: var(--transition);
    font-weight: 500;
}

.lang-btn.active {
    color: var(--accent);
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--text);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 20px;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ====== HERO ====== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #f7f2ee 0%,
        #ede7e0 50%,
        #e0d9ce 100%
    );
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 90, 84, 0.12) 0%, transparent 70%);
    top: 5%;
    right: -5%;
    animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(160, 140, 110, 0.1) 0%, transparent 70%);
    bottom: 0;
    left: -5%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero-pre {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 25px;
    animation: fadeUp 0.8s ease;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(50px, 10vw, 140px);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-title .line {
    display: block;
    animation: fadeUp 0.8s ease;
}

.hero-title .accent {
    color: var(--accent);
    font-weight: 400;
    animation-delay: 0.1s;
}

.hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 21px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeUp 0.8s ease 0.2s backwards;
    line-height: 1.5;
}

.about-text p {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 21px !important;
    color: var(--text-light) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px;
}

/* Убираем отступ у последнего абзаца, чтобы внизу не было лишнего пустого места */
.about-text p:last-child {
    margin-bottom: 0;
}

.btn-outline {
    display: inline-block;
    padding: 16px 42px;
    border: 1.5px solid var(--text);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
    animation: fadeUp 0.8s ease 0.3s backwards;
}

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
}

.btn-outline.light {
    border-color: var(--text-on-dark);
    color: var(--text-on-dark);
}

.btn-outline.light:hover {
    background: var(--text-on-dark);
    color: var(--bg-dark);
}

.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background: var(--text-light);
    overflow: hidden;
    opacity: 0.6;
}

.scroll-indicator span {
    display: block;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

/* ====== СЕКЦИИ ====== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    text-align: center;    /* ← добавь эту строку */
}

.section-dark .section-desc {
    color: var(--text-dark-light);
}

.subsection-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

/* ====== ОБО МНЕ ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.img-frame {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #e5ddd2;
}

.img-frame::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(26, 26, 26, 0.2);
    z-index: 2;
    pointer-events: none;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition);
}

.img-frame:hover img {
    filter: grayscale(20%) contrast(1.05);
    transform: scale(1.02);
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.8;
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    color: var(--accent);
    line-height: 1;
    font-weight: 400;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 12px;
    display: block;
    line-height: 1.5;
}

/* ====== ПРОЕКТЫ ====== */
.featured-project {
    border: 1px solid var(--border-dark);
    padding: 50px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--transition);
}

.featured-project:hover {
    border-color: rgba(200, 90, 84, 0.3);
}

.featured-project::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.project-content {
    position: relative;
    z-index: 1;
}

/* === ГРУППА 1: технические метки (полужирный Inter) === */
.project-badge {
    font-family: 'Inter', serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.project-genre {
    font-family: 'Inter', serif;
    font-size: 14px;
    font-weight: 400;
    color: #ddd;
    margin-bottom: 20px;
}

.project-meta {
    font-family: 'Inter', serif;
    font-size: 14px;
    font-weight: 400;
    color: #ddd;
    margin-bottom: 20px;
}

.project-meta strong,
.project-genre strong {
    font-weight: 400; /* 400 - это нормальный (не жирный) вес шрифта */
}

/* === ГРУППА 2: основной текст (Cormorant Garamond) === */
.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

/* Акцентный текст внутри заголовка — курсив */
.accent-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
}

.project-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    border-left: 2px solid var(--border-dark);
    padding-left: 20px;
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.project-logline {
    /* Меняем на sans-serif, чтобы шрифт был легким и современным, как в 'Жанре' */
    font-family: 'Inter', sans-serif; 
    
    font-size: 16px;       /* Уменьшил с 18 до 16, чтобы точно совпадало с Жанром */
    font-weight: 400;      /* Обычный шрифт */
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 20px;
    
    /* Выравнивание */
    text-align: justify;
    hyphens: auto;
    
    /* На всякий случай сбрасываем стили, если они наследуются */
    font-style: normal;
}

.project-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal; /* убираем курсив, который был раньше */
    color: var(--text-dark-light);
}

/* === Кнопка (без изменений) === */
.project-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-accent {
    display: inline-block;
    padding: 14px 34px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-accent:hover {
    background: #b34a45;
    transform: translateY(-2px);
}

.btn-accent:active {
    transform: translateY(0);
}

/* ====== ВЫДЕРЖКИ ====== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: #fff;
    padding: 40px 35px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.work-card:hover::before {
    transform: scaleX(1);
}

.work-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* === СТИЛЬ ЦИТАТ В КАРТОЧКАХ ВЫДЕРЖЕК === */
.work-card .styled-text {
    font-family: 'Cormorant Garamond', serif; /* Твой любимый шрифт */
    font-size: 16px;                          /* Размер как ты просила */
    font-style: italic;                       /* Курсив */
    font-weight: 400;
    line-height: 1.8;
    color: var(--transition);               /* Цвет текста */
    
    /* Декоративная черточка слева (как в проектах) */
    border-left: 3px solid var(--accent);      /* Сделал акцентным цветом, можно заменить на var(--border-dark)) */
    padding-left: 15px;                        /* Отступ от черточки */
    margin-bottom: 25px;                      /* Отступ снизу */
}

.work-type {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 600;
}

.work-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text);
}

.work-excerpt {
    font-style: italic;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.work-read {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition);
}

.work-card:hover .work-read {
    gap: 5px;
}

/* ====== ГАЛЕРЕЯ ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #ccc;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.06);
}

/* Кнопка YouTube */
.youtube-cta {
    text-align: center;
    margin: 40px 0;
}

.youtube-cta .btn-accent {
    animation: none;
}

/* ====== ВИДЕО КОММЕНТАРИИ ====== */
.video-comments {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

.video-comments h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* ====== КОНТАКТЫ ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

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

.contact-link .icon {
    font-size: 18px;
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    font-weight: 600;
}

.socials a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--border);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: inherit;
    transition: var(--transition);
}

.section-dark .comment-form input,
.section-dark .comment-form textarea {
    border-color: var(--border-dark);
    color: var(--text-on-dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(200, 90, 84, 0.05);
}

.contact-form select,
.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%231a1a1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}

.section-dark .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23f2ede9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

.form-status {
    font-size: 14px;
    color: var(--accent);
    margin-top: 10px;
    font-weight: 500;
}

.comment-form textarea,
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ====== МОДАЛЬНОЕ ОКНО ====== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg);
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 50px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    margin-bottom: 12px;
    font-weight: 400;
}

.modal-body .work-type {
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: 600;
}

/* === СТИЛЬ ТЕКСТА ВНУТРИ МОДАЛЬНОГО ОКНА === */
.content-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);          /* основной черный цвет сайта */
    margin-bottom: 20px;
    
    text-align: justify;          /* выравнивание по ширине */
    hyphens: auto;                /* красивые переносы */
    
    font-style: normal;
    
    /* Сохраняем переносы строк (\n) из JS */
    white-space: pre-line;
}

/* ====== КОММЕНТАРИИ ====== */
.comments-section {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid var(--border);
}

.comments-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeUp 0.5s ease;
}

.section-dark .comment-item {
    border-bottom-color: var(--border-dark);
}

.comment-author {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 15px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-item div:last-child {
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}

/* ====== ФУТЕР ====== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    background: #fafaf7;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 1024px) {
    .featured-project {
        padding: 40px 30px;
    }

    .about-grid,
    .contact-grid {
        gap: 50px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
        text-align: center;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .burger {
        display: flex;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .project-title {
        font-size: 32px;
    }

    .modal-content {
        padding: 40px 25px;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 24px;
    }

    .nav-links {
        gap: 15px;
    }

    .lang-switcher {
        margin-left: 15px;
    }

    .hero {
        margin-top: 50px;
    }

    .hero-title {
        font-size: clamp(36px, 8vw, 80px);
    }

    .about-stats {
        flex-direction: column;
        gap: 25px;
    }

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

    .contact-grid {
        gap: 30px;
    }

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

    .section {
        padding: 70px 0;
    }

    .featured-project {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .project-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .socials {
        width: 100%;
    }

    .socials a {
        flex: 1;
    }
}
.lang-btn {
    color: inherit;
    text-decoration: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 100; /* Гарантирует, что крестик выше всех слоев */
    color: var(--text-on-dark);
    line-height: 1;
    padding: 0;
}

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