html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Защита от горизонтальной прокрутки */
}

@font-face {
    font-family: 'Kommuna';
    src: url('fonts/Kommuna-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --black: #1A1919;
    --white: #FFFFFF;
    --gray-light: #F5F5External;
    --border: #E5E5E5;
    --font-header: 'Alumni Sans', sans-serif;
    --font-body: 'Kommuna', serif;
    /* ... твои старые переменные ... */
    --footer-bg: #F4F1E2; /* Тот самый цвет бумаги из Академии */
    --footer-text: #1A1919;
}


body {
    margin: 0;
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.top-banner {
    background-color: #F4F1E2; /* Цвет как у Академии */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    position: relative;
    width: 100%;
}

.banner-container {
    display: flex;
    justify-content: center; /* Центрируем текст */
    align-items: center;
    position: relative;
}

.banner-text {
    font-family: 'Kommuna', serif;
    font-size: 14px;
    color: var(--black);
    text-align: center;
    padding-right: 40px; /* Отступ, чтобы текст не налезал на крестик */
}

.banner-text a {
    color: var(--black);
    text-decoration: underline;
    font-weight: 500;
}

.banner-text a:hover {
    text-decoration: none;
}

/* Кнопка закрытия */
.banner-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 5px;
}

.banner-close:hover {
    color: var(--black);
}

/* Строгий верхний бар */
.top-bar {
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 0;
    letter-spacing: 1px;
    color: #888;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-links a {
    text-decoration: none;
    color: inherit;
    margin-left: 20px;
}

/* Хедер */
.header {
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

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

.main-nav a {
    font-family: var(--font-header);
    font-size: 24px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    margin: 0 20px;
    font-weight: 500;
}

.logo img {
    /* Увеличиваем высоту. Для Alumni Sans и твоего лого 60-80px обычно золотая середина */
    height: 70px; 
    
    /* Это позволит логотипу не искажаться */
    width: auto; 
    
    /* Если логотип кажется слишком "прижатым" к краям */
    display: block;
    
    /* Убираем возможные лишние отступы */
    margin: 0; 
}

/* Изменяем структуру Hero-секции */
.hero-minimal {
    padding: 80px 0; /* Чуть уменьшил отступы для компактности */
    border-bottom: 1px solid var(--border);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Текст чуть шире картинки */
    gap: 60px;
    align-items: center;
}

/* Стили для картинки */
.hero-image {
    position: relative;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    /* ФИШКА СТИЛЯ: делаем картинку черно-белой и чуть контрастной */
    filter: grayscale(100%) contrast(110%);
    transition: filter 0.5s ease;
}

/* При наведении картинка может становиться цветной (мягко) */
.hero-image:hover img {
    filter: grayscale(0%) contrast(100%);
}

/* Маленькая тех. подпись под картинкой */
.image-label {
    position: absolute;
    bottom: -25px;
    right: 0;
    font-family: 'JetBrains Mono', monospace; /* Или Kommuna, если она завелась */
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* Адаптив: на телефонах картинка уйдет под текст */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image {
        margin-top: 40px;
    }
}

h1 {
    font-family: var(--font-header);
    font-size: 110px; /* Крупно, как в журналах */
    line-height: 0.9;
    font-weight: 700;
    margin: 0 0 30px 0;
    letter-spacing: -2px;
}

h2 {
    font-family: var(--font-header);
    font-size: 55px; /* Крупно, как в журналах */
    line-height: 0.9;
    font-weight: 700;
    margin: 0 0 30px 0;
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 20px;
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Кнопки как у Академии */
.btn-black {
    background: var(--black);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 22px;
    text-transform: uppercase;
    display: inline-block;
}

.btn-outline {
    border: 1px solid var(--black);
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 22px;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 10px;
    color: var(--black);
}

/* Плитки категорий */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.cat-card {
    padding: 40px;
    border-right: 1px solid var(--border);
    transition: background 0.3s;
}

.cat-card:last-child {
    border-right: none;
}

.cat-card:hover {
    background: #f9f9f9;
}

.cat-label {
    font-family: var(--font-header);
    font-size: 18px;
    color: #AAA;
    margin-bottom: 20px;
}

.cat-card h2 {
    font-family: var(--font-header);
    font-size: 42px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

/* Навигационные блоки на главной */
.main-navigation-grid {
    border-top: 1px solid var(--border);
}

.nav-block {
    padding: 60px 40px;
    border-right: 1px solid var(--border);
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}

.nav-block:last-child {
    border-right: none;
}

.nav-block:hover {
    background-color: #f9f9f9;
}

.nav-block h2 {
    font-family: var(--font-header);
    font-size: 48px;
    text-transform: uppercase;
    margin: 10px 0;
}

.nav-block .block-num {
    font-family: var(--font-header);
    font-size: 18px;
    color: #999;
}

.nav-block .arrow {
    font-size: 32px;
    margin-top: 20px;
    transition: transform 0.3s;
}

.nav-block:hover .arrow {
    transform: translateX(10px);
}

/* Основной фон футера из бенчмарка */
.footer {
    background-color: #F4F1E2; 
    border-top: 1px solid #E5E5E5;
    padding-top: 80px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

/* Логотип в футере */
.footer-logo {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Юридические данные */
.legal-data {
    font-family: 'Kommuna', serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
}

/* ЗАГОЛОВКИ в футере как в бенчмарке */
.footer-label {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 32px; /* Крупный размер для акцента */
    font-weight: 700; /* Жирное начертание */
    color: #1A1919;
    margin-bottom: 25px;
    line-height: 1;
}

/* Ссылки */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #1A1919;
    font-family: 'Kommuna', serif;
    font-size: 15px;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.5;
}

/* НИЖНЯЯ ПЛАНКА: фикс ширины */
.footer-bottom-bar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom-bar .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.copyright {
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    font-family: 'Kommuna', serif;
}

/* education */

.education-page {
    padding: 60px 0;
}

.page-header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--black);
}

.product-image {
    background: #f9f9f9;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

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

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.product-info h3 {
    font-family: var(--font-header);
    font-size: 28px;
    margin: 10px 0;
}

.product-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    border: 1px solid var(--black);
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
}