/* 1. ПОДКЛЮЧЕНИЕ ШРИФТА */
@font-face {
    font-family: 'Kreadon';
    src: url('fonts/Kreadon-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 2. ПЕРЕМЕННЫЕ */
:root {
    --bg-dark: #1A1A1A;
    --bg-white: #ffffff;
    --text-white: #ffffff;
    --text-black: #111111;
    --accent: #D7135E;
    --transition: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    transition: background-color var(--transition), color var(--transition);
}

body.scrolled {
    background-color: var(--bg-white);
    color: var(--text-black);
}

/* 3. НАВИГАЦИЯ */
.navbar_component {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    z-index: 1000;
    /* Плавный переход для смены цвета */
    transition: background 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;

    /* Начальное состояние (на темном фоне) */
    background: rgba(26, 26, 26, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* Эффект стекла при скролле (и на белых страницах) */
body.scrolled .navbar_component {
    background: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый */
    backdrop-filter: blur(15px); /* Тот самый эффект размытия */
    -webkit-backdrop-filter: blur(15px); /* Поддержка Safari */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Тонкая линия снизу */
}

.navbar_container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo_icon {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.5s ease;
}

body.scrolled .logo_icon {
    filter: none;
}

.navbar_links_list {
    display: flex;
    gap: 30px;
}

.nav_link {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.5s ease;
}

body.scrolled .nav_link {
    color: var(--text-black);
}

.nav_link:hover {
    opacity: 1;
    color: var(--accent);
}

/* 4. HERO (ТЕМНЫЙ) */
.section_hero {
    height: 85vh; /* Чуть уменьшил высоту, чтобы "О нас" было видно раньше */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero_heading h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 0;
}

/* 5. КОНТЕНТ (БЕЛЫЙ "НАЕЗД") */
.content-reveal-wrapper {
    background-color: var(--bg-white);
    color: var(--text-black);
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 2;
    margin-top: -60px; /* Нахлест на темный фон */
    padding: 100px 5%;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}

/* 6. О НАС */
.section_title_centered {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.about_grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento_block {
    background: #f5f5f7;
    border: 1px solid #e5e5e5;
    border-radius: 28px;
    padding: 45px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento_block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.block_label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.about_heading {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.status_dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ff88;
    animation: blink 2s infinite;
}

/* Стили для страницы продуктов */
.products_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product_main {
    grid-column: span 2; /* Главный продукт на всю ширину */
    background: #fdfdfd;
    border: 2px solid var(--accent); /* Выделяем Searcli розовым бордером */
}

.product_tags {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

/* Кнопка */
.primary_button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--text-black);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.primary_button:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

@keyframes blink {
    0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; }
}

.year_display {
    font-size: 40px;
    font-weight: 800;
    margin-top: 20px;
}

/* 7. АДАПТИВНОСТЬ */
/* 8. МОБИЛЬНАЯ ОПТИМИЗАЦИЯ (Smartphones) */
@media (max-width: 767px) {

    /* Уменьшаем отступы в шапке, чтобы логотип и меню не теснились */
    .navbar_component {
        padding: 15px 5%;
    }

    .navbar_container {
        gap: 20px;
        justify-content: space-between;
    }

    .logo_icon {
        height: 35px; /* Чуть меньше лого на мобилке */
    }

    .navbar_links_list {
        gap: 15px; /* Меньше расстояние между ссылками */
    }

    .nav_link {
        font-size: 10px; /* Компактный шрифт для меню */
        letter-spacing: 0.5px;
    }

    /* Главный заголовок на первом экране */
    .hero_heading h1 {
        font-size: 32px; /* Чтобы текст не разбивался некрасиво */
        line-height: 1.2;
        letter-spacing: -1px;
    }

    /* Белая подложка */
    .content-reveal-wrapper {
        margin-top: -40px; /* Меньше нахлест */
        padding: 50px 5% 20px; /* Меньше внутренние отступы */
        border-radius: 30px 30px 0 0;
    }

    /* Сетка Bento - строго в одну колонку */
    .about_grid, .products_grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* Блоки занимают всю ширину */
    .product_main, .bento_block {
        grid-column: span 1 !important;
        padding: 25px; /* Меньше воздуха внутри блоков */
    }

    .about_heading {
        font-size: 20px; /* Заголовки в карточках */
    }

    .section_title_centered {
        font-size: 26px; /* Заголовки секций "О нас", "Продукты" */
        margin-bottom: 30px;
    }

    /* Кнопки на весь экран для удобного нажатия пальцем */
    .primary_button {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 18px;
    }

    .year_display {
        font-size: 28px;
    }

    /* Исправление для карточек контактов */
    .contact_card {
        min-height: auto;
    }

    .link_arrow {
        top: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* 9. СУПЕР-МАЛЕНЬКИЕ ЭКРАНЫ (iPhone SE и подобные) */
@media (max-width: 380px) {
    .navbar_links_list {
        gap: 10px;
    }
    .hero_heading h1 {
        font-size: 28px;
    }
}