* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gramatika', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    overflow-x: hidden;
    width: 100vw;
}

.grid-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
}

.row {
    display: flex;
    width: 100vw;
    flex-wrap: nowrap;
}

.row-half-half {
    height: 150vh;
}

.row-full {
    height: 150vh;
}

.image-block {
    overflow: hidden;
    display: block;
}

.half {
    width: 50vw;
    height: 100%;
}

.full {
    width: 100vw;
    height: 100%;
}

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

/* Стили для кликабельного изображения с текстом */
.image-block-link {
    position: relative;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.image-link:hover::before {
    opacity: 1;
}

.image-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Gramatika', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 48px;
    color: #fff;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-link:hover .image-overlay-text {
    opacity: 1;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .row-half-half {
        height: auto;
        min-height: auto;
    }
    
    .row-full {
        height: auto;
        min-height: auto;
    }
    
    /* Ключевое изменение: ВСЕ блоки на 100% ширины */
    .half, .full {
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh;
    }
    
    .image-block {
        width: 100% !important;
        height: 100vh !important;
    }
    
    .image-block img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .image-overlay-text {
        font-size: 32px;
    }
}

/* Фиксированная плашка */
.fixed-panel {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    z-index: 1000;
    transition: max-width 0.4s ease, width 0.4s ease, height 0.4s ease, border-radius 0.4s ease, transform 0.4s ease, top 0.4s ease;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-width: 300px;
    height: 60px;
    border-radius: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    width: 100%;
}

.panel-logo {
    border: 2px solid #000;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    color: #000;
    transition: background 0.2s ease, color 0.2s ease;
}

.panel-logo:visited {
    color: #000;
}

.panel-logo:hover {
    background: #000;
    color: #fff;
}

.panel-catalog {
    display: none;
    border: 2px solid #000;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    opacity: 0;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease 0.1s;
}

.panel-catalog:visited {
    color: #000;
}

.panel-catalog:hover {
    background: #000;
    color: #fff;
}

.panel-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    font-weight: 200;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
}

.panel-toggle:focus {
    outline: none;
}

/* Корректировка для символа × для лучшего центрирования */
.panel-toggle.close-icon {
    font-size: 28px;
    line-height: 0.9;
}

.panel-toggle:hover {
    background: #000;
    color: #fff;
}

.panel-content {
    display: block;
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

/* Открытое состояние плашки */
.fixed-panel.open {
    width: auto;
    max-width: 600px;
    min-width: 300px;
    height: auto;
    border-radius: 0;
}

.fixed-panel.open .panel-catalog {
    display: inline-block;
    opacity: 1;
}

.fixed-panel.open .panel-content {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
    overflow-y: visible;
}

/* Стили для навигации в сайдбаре */
.sidebar-navigation {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.nav-item:visited,
.nav-item:active,
.nav-item:focus {
    color: #000;
}

.nav-item:hover {
    border-bottom-color: #000;
    opacity: 0.8;
}

/* Табы категорий */
.panel-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: #000;
}

.tab-btn.active {
    color: #000;
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

/* Контент табов */
.panel-items {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.item-row:hover {
    background: #f8f8f8;
}

.item-row:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: bold;
    font-size: 16px;
    color: #000;
}

.item-year {
    font-size: 16px;
    color: #000;
}

/* Мобильная версия плашки */
@media (max-width: 768px) {
    .fixed-panel {
        width: 90%;
        max-width: 90%;
        height: 60px;
        top: 20px;
    }
    
    .fixed-panel.open {
        width: auto;
        min-width: 90%;
        max-width: calc(100vw - 40px);
        height: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 20px;
    }
    
    .panel-header {
        padding: 0 15px;
    }
    
    .panel-logo,
    .panel-catalog {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .panel-toggle {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .panel-content {
        padding: 0 15px;
    }
    
    .fixed-panel.open .panel-content {
        padding: 15px;
        max-height: 400px;
    }
    
    .sidebar-navigation {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .nav-item {
        font-size: 13px;
        width: 100%;
        padding: 10px 0;
    }
    
    .panel-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .tab-btn {
        font-size: 13px;
    }
    
    .item-name,
    .item-year {
        font-size: 14px;
    }
}

/* Базовый контейнер */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка для страниц каталога и "О бренде" */
.catalog-header {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #000000;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
}

.header-menu {
    display: flex;
    gap: 30px;
}

.menu-item {
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    transition: opacity 0.3s;
}

.menu-item:visited,
.menu-item:active,
.menu-item:focus {
    color: #000000;
}

.menu-item:hover {
    opacity: 0.7;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.icon-link img,
.icon-link svg {
    width: 20px;
    height: 20px;
}

.icon-link svg path {
    stroke: #000000;
}

/* Счетчик корзины */
.cart-icon {
    position: relative;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Страница "О бренде" */
.about-page {
    padding: 80px 0;
    background: #fff;
}

/* Заголовок страницы */
.about-page-title {
    font-size: 64px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.2;
    color: #000;
}

.about-block {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 0;
    min-height: 600px;
}

.about-block:not(.about-block-quote) {
    margin-bottom: 0;
    padding-bottom: 60px;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-text {
    flex: 1;
    max-width: 50%;
    position: sticky;
    top: 0;
    align-self: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: top 0.3s ease;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong,
.about-text b,
.about-text p strong,
.about-text p b {
    font-weight: bold !important;
}

.about-text em,
.about-text i,
.about-text p em,
.about-text p i {
    font-style: italic;
}

.about-image {
    flex: 1;
    max-width: 50%;
    min-height: 600px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    display: block;
    position: sticky;
    top: 0;
}

/* Зеркальный блок (изображение слева, текст справа) */
.about-block-image-text {
    flex-direction: row-reverse;
}

/* Блок с цитатой */
.about-block-quote {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
    min-height: auto;
    width: 100%;
}

.about-block-quote .about-quote-text {
    position: static;
}

.about-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #000;
    margin: 0;
    max-width: 100%;
}

/* Горизонтальная линия между блоками с изображением */
.about-block-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #000;
    margin: 60px 0;
}

.about-quote {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    color: #000;
    font-style: italic;
    line-height: 1.5;
    max-width: 800px;
    margin: 0;
}

.about-quote-text {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    color: #000;
    line-height: 1.5;
    max-width: 800px;
    margin: 0;
}

.about-quote-text p {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

/* Мобильная версия */
@media (max-width: 1024px) {
    .about-page .container {
        padding: 0 16px;
    }
    
    .about-block {
        gap: 40px;
        margin-bottom: 80px;
        min-height: auto;
    }
    
    .about-page-title {
        font-size: 48px;
        margin-bottom: 60px;
    }
    
    .about-text {
        position: static;
        max-width: 100%;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .about-quote-text,
    .about-quote-text p {
        font-size: 28px;
    }
    
    .about-image {
        height: 500px;
        min-height: 500px;
    }
    
    .about-image img {
        min-height: 500px;
        position: static;
    }
    
    .about-quote {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .about-page {
        padding: 40px 0;
    }
    
    .about-block {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
        min-height: auto;
    }
    
    .about-text,
    .about-image {
        max-width: 100%;
        width: 100%;
        position: static !important;
    }
    
    .about-page-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .about-text p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .about-quote-text,
    .about-quote-text p {
        font-size: 24px;
    }
    
    .about-image {
        height: 400px;
        min-height: 400px;
    }
    
    .about-image img {
        min-height: 400px;
        position: static !important;
    }
    
    .about-block-quote {
        padding: 60px 0;
        gap: 30px;
    }
    
    .about-quote {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .about-divider {
        max-width: 100%;
    }
}

