/* Базовые настройки */
:root {
    --main-padding: 40px;
    --border-color: #000;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
    overflow-x: hidden; /* Защита от горизонтальной прокрутки */
}

/* Контейнер с адаптивными отступами */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--main-padding) 20px;
}

/* Шапка */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

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

.logo {
    font-weight: 600;
    letter-spacing: 2px;
}

/* Сетка интро-секции */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки на десктопе */
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}

/* Адаптивный заголовок */
.main-title {
    font-size: clamp(40px, 8vw, 90px); /* Размер подстраивается под экран */
    line-height: 0.85;
    margin: 0;
    letter-spacing: -0.04em;
}

.description-block {
    max-width: 500px;
    font-size: 14px;
    text-transform: none; /* Текст описания читабельнее маленькими буквами */
    justify-self: end;
}

/* Изображения */
.main-hero-image img,
.vertical-photo img,
.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Инфо-панель */
.info-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 12px;
}

/* Секция Details (The Man) */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 100px;
}



    /* Контейнер для отступа, если нужно */
.portfolio-link-wrapper {
    margin: 20px 0;
}

    .magazine-link {
        display: inline-block;
        color: #000;
        text-decoration: none;
        border: 1px solid #000;     /* Черная рамка 1 пиксель */
        padding: 10px 25px;         /* Внутренние отступы */
        font-weight: 600;
        text-transform: uppercase;
        transition: background 0.3s, color 0.3s;
    }

    .magazine-link:hover {
        background-color: #000;     /* Черный фон при наведении */
        color: #fff;                /* Белый текст при наведении */
    }

    .portfolio-menu {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Выравнивание по центру */

    /* ИЗМЕНИТЕ ЭТО ЗНАЧЕНИЕ: */
    gap: 30px; /* Увеличьте (например, 80px) или уменьшите (например, 20px) */

    margin: 40px 0;
    flex-wrap: wrap;
}



.section-title-overlap {
    font-size: clamp(60px, 15vw, 182px);
    line-height: 0.8;
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.05em;
    text-transform: lowercase;

    /* ЭФФЕКТ СМЕШИВАНИЯ */
    position: relative;
    z-index: 100;
    color: #ffffff; /* Белый инвертируется в черный на белом фоне */
    mix-blend-mode: difference;

    /* Визуальное растяжение как на макете */
    transform: scaleY(1.3);
    transform-origin: top left;
}



    :root {
    --bg-color: #ffffff;
    --text-color: #000000;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Верхняя панель */
.meta-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    font-size: 10px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.meta-item.center { text-align: center; }
.meta-item.right { text-align: right; }

/* Основная сетка контента */
.grid-content {
    display: grid;
    grid-template-columns: 1fr 4fr; /* Левая колонка и основной контент */
    gap: 20px;
    position: relative;
}

/* Заголовок на две строки, очень крупный */
.hero-title {
    grid-column: 1 / 3;
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 400;
    line-height: 0.8;
    margin: 40px 0;
    letter-spacing: -0.05em;
    z-index: 10;
}

/* Левый блок (номер 2 и описание) */
.side-info {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

.big-number {
    font-size: 120px;
    font-weight: 300;
    line-height: 1;
}

.latin-desc {
    font-size: 14px;
    text-transform: none;
    line-height: 1.4;
    max-width: 180px;
    font-weight: 300;
}

.scroll-arrow {
    font-size: 40px;
    margin-top: auto;
}

/* Галерея моделей */
.team-gallery {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.card-footer {
    display: flex;
    gap: 15px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 45px;
}

.desc {
    font-size: 10px;
    text-transform: none;
    line-height: 1.5;
    font-weight: 300;
}






/* Контейнер всей секции */
.branding-design-section {
    position: relative;
    padding: 80px 40px;
    background-color: #fff;
    overflow: hidden;
}

/* Огромный заголовок, который "наползает" на фото */
.section-title-overlap {
    font-size: clamp(60px, 15vw, 182px); /* Адаптивный размер */
    transform: scaleY(1.3);
    transform-origin: bottom left;
    line-height: 0.8;
    margin: 0;
    position: relative;
    z-index: 10; /* Поверх всего */
    pointer-events: none; /* Чтобы можно было кликать сквозь текст */
    font-weight: 500;
    letter-spacing: -0.05em; /* Плотное написание как на фото */

    text-transform: lowercase; /* Строчные буквы */
    color: white; /* Базовый цвет текста */
    mix-blend-mode: difference; /* Текст инвертирует цвета под собой */

}



/* Сетка контента */
.branding-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 3fr 4fr; /* Три колонки разной ширины */
    gap: 40px;
    margin-top: -5px; /* Поднимаем контент под заголовок */
    align-items: start;
}

/* Левая колонка */
.sub-label {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    padding-top: 110px;
}

.down-arrow-large {
    font-size: 100px;
    transform: scale(2.1);   /* Увеличит стрелку в 2 раза */
    transform-origin: left top;
    font-weight: 300;
}

/* Блок описания (две колонки текста) */
.main-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    font-size: 18px;
    text-transform: none; /* Текст не капсом для читабельности */
    line-height: 1.6;
    color: #333;
    padding-top: 120px; /* Отступ сверху, чтобы текст не сливался с заголовком */
}

/* Правое изображение */
.large-feature-image img {
    width: 100%;
    height: 640px;
    display: block;
    object-fit: contain;
}

















/* --- ИСПРАВЛЕННАЯ МОБИЛЬНАЯ ВЕРСИЯ --- */

@media (max-width: 768px) {
    :root {
        --main-padding: 20px;
    }

    .container, .page-wrapper {
        padding: 20px 15px !important;
    }

    /* 1. Исправляем главные заголовки (ПОРТФОЛИО ФОТОХУДОЖНИКА и др.) */
    .main-title,
    .hero-title,
    .section-title-overlap {
        font-size: 42px !important; /* Фиксированный размер для мобильных */
        line-height: 1.1 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 15px !important;
        transform: none !important;
        display: block !important;
        width: 100% !important;
    }

    .main-title span {
        font-size: 36px !important;
        display: block;
    }

    /* 2. Исправляем текст под заголовком (описание и год) */
    .description-block,
    .subtitle,
    .text-content p,
    .description-box p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        margin: 10px 0 25px 0 !important;
        padding: 0 !important;
        text-align: left !important;
        justify-self: start !important; /* Сбрасываем justify-self: end */
        text-transform: none !important;
    }

    /* 3. Сброс сеток в одну колонку */
    .intro-grid,
    .branding-content-grid,
    .grid-content,
    .details-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 4. Убираем лишние пустые пространства */
    .side-info, .title-block {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 5. Исправляем большие номера (например, "2") */
    .big-number {
        font-size: 80px !important;
        line-height: 1 !important;
        margin-bottom: 10px !important;
    }

    /* 6. Адаптация меню (кнопки) */
    .portfolio-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .magazine-link {
        text-align: center;
        width: 100%;
    }

    /* 7. Инфо-футер (Head office: Moscow) */
    .info-footer {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        text-align: left !important;
    }
}

/* Дополнительная правка для очень маленьких экранов */
@media (max-width: 480px) {
    .main-title {
        font-size: 34px !important;
    }
}







.footer-contact a {
    text-decoration: none; /* Убираем подчеркивание */
    color: inherit;        /* Ссылка примет цвет текста родителя (белый или серый) */
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.7;          /* Эффект при наведении */
    text-decoration: underline; /* Можно вернуть подчеркивание только при наведении */
}

/* Если хотите выделить именно Telegram акцентным цветом */
.tg-link {
    font-weight: bold;
    letter-spacing: 0.05em;
}



