* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #c7c7c7;
    color: #1A1A1A;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Только заголовки и акцентные элементы — Playfair */
h1, h2, h3, .logo, .quote-text, .step-number, .work-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
}

h1 {
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section {
    padding: 100px 0;
    border-bottom: 1px solid #F0F0F0;
}

.section:last-child {
    border-bottom: none;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

/* Верхняя белая строка */
.logo_and_menu-row {
    background: #FFFFFF;
    transition: padding 0.3s ease;
}

.maxwidth-theme {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-row {
    padding: 18px 0;
    transition: padding 0.3s ease;
}

/* ---------------------------------------------
   КНОПКА БУРГЕРА (ДЛЯ МОБИЛЬНОЙ ВЕРСИИ)
   --------------------------------------------- */
.burger {
    font-size: 26px;
    cursor: pointer;
    display: none;             /* По умолчанию скрыта на десктопе */
    background: none;
    border: none;
    color: #000000;
}

.auth_wr_inner a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #000000;
}

/* ---------------------------------------------
   МОБИЛЬНОЕ МЕНЮ (ВЫЕЗЖАЮЩАЯ ШТОРКА)
   --------------------------------------------- */
.menu-mobile {
    position: fixed;           /* Фиксируем относительно окна */
    top: 0;
    right: -100%;              /* Спрятано за правым краем экрана */
    width: 260px;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;    /* Пункты вертикально */
    padding: 60px 20px;
    gap: 20px;
    transition: 0.3s;
    z-index: 999;
}

.menu-mobile a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    padding: 8px 0;
}

.menu-mobile a:hover {
    color: #CCCCCC;
}

/* Кнопка закрытия мобильного меню (крестик) */
.menu-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    border-radius: 4px;
}

.menu-mobile-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.menu-mobile-close:active {
    transform: scale(0.95);
}


.menu-mobile.active {
    right: 0;                  /* Класс, который выдвигает меню при клике на бургер */
}

/* Эффект сжатия при скролле */
#header.scrolled .logo-row {
    padding: 8px 0;
}

#header.scrolled .logo a {
    font-size: 18px;
}

#header.scrolled .menu-row {
    padding: 0;
}

.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    color: #000000;
    font-family: 'Playfair Display', serif;
    transition: font-size 0.3s ease;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.right-icons .line-block {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #000000;
}

.top-btn:hover {
    opacity: 0.7;
}

.auth_wr_inner a:hover {
    opacity: 0.7;
}

/* Иконка кабинета (Личный кабинет / Войти) */
.icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
}

.icon-btn:hover {
    opacity: 0.7;
    background: none;
    transform: none;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

/* Иконки */
.svg-inline-phone svg,
.svg-inline-search svg,
.svg-inline-cabinet svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Нижняя чёрная строка */
.menu-row {
    background: #000000;
    transition: all 0.3s ease;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.table-menu {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.table-menu table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.table-menu td {
    text-align: center;
    padding: 12px 0;
    transition: padding 0.3s ease;
}

#header.scrolled .table-menu td {
    padding: 8px 0;
}

/* Основные стили для пунктов меню */
.table-menu td a {
    text-decoration: none;
    color: #CCCCCC;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
    display: inline-block;
    white-space: nowrap;
}

/* РУЧНАЯ НАСТРОЙКА РАССТОЯНИЯ МЕЖДУ ПУНКТАМИ */
/* Добавьте столько отступов, сколько нужно между пунктами */
.table-menu td {
    padding-left: 25px;   /* Левое расстояние между пунктами */
    padding-right: 25px;  /* Правое расстояние между пунктами */
}

/* Для первого и последнего пункта убираем лишние отступы по краям */
.table-menu td:first-child {
    padding-left: 0;
}

.table-menu td:last-child {
    padding-right: 0;
}

.table-menu td a:hover {
    color: #FFFFFF;
}

/* Специальная кнопка в меню */
.btn-menu {
    border: 1px solid #FFFFFF;
    padding: 6px 18px !important;
    color: #FFFFFF !important;
    border-radius: 0;
}

.btn-menu:hover {
    background: #FFFFFF;
    color: #000000 !important;
}

/* Hero */
.hero {
    background-color: #FFFFFF;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.hero-background {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background-image: url('pictures/backgroundKnive.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-image-wrapper {
        border-radius: 12px;
    }
}

/* Quote block */
.quote-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: 28px;
    line-height: 1.4;
    color: #2A2A2A;
    font-style: italic;
    margin-bottom: 24px;
}

.quote-author {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
    font-family: 'Inter', sans-serif;
}

/* Grid for works */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 60px 40px;
    margin-top: 20px;
}

.work-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    background: #c7c7c7;
}

.work-card:hover {
    transform: scale(1.50);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.work-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #F5F5F5;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.work-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 14px;
    color: #5A5A5A;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.work-price {
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
}

/* Two columns layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 16px;
    color: #2C2C2C;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.about-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #E5E5E5;
    background-size: cover;
    background-position: center;
}

/* Process steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
    text-align: center;
}

.step {
    padding: 0 20px;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #D0D0D0;
    margin-bottom: 16px;
}

.step h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.step p {
    font-size: 14px;
    color: #5A5A5A;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.review-card {
    border-left: 2px solid #E0E0E0;
    padding-left: 28px;
}

.review-text {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #2A2A2A;
    font-family: 'Inter', sans-serif;
}

.review-author {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* Call to action */
.cta-block {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-block p {
    margin: 32px 0;
    color: #3A3A3A;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #1A1A1A;
    padding: 12px 32px;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #1A1A1A;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

/* Специальные стили для кнопки в hero-блоке */
.hero-content .btn-primary {
    margin-top: 32px;
}

/* Footer */
.footer {
    padding: 60px 0 80px;
    text-align: center;
    border-top: 1px solid #F0F0F0;
    margin-top: 40px;
}

.footer-links {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    text-decoration: none;
    color: #3A3A3A;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.footer small {
    color: #8A8A8A;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .section {
        padding: 60px 0;
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }
    .hero-content h1 {
        font-size: 44px;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .works-grid {
        gap: 40px;
    }
    .hero-btn {
        bottom: 40px;
    }
    
    /* Адаптив для хедера */
    .header__top-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        width: 100%;
    }
    
    .table-menu td {
        display: block;
        padding: 8px 0;
    }
}
/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ НОЖА ===== */

/* Хлебные крошки */
.breadcrumbs {
    padding: 30px 0 20px;
    font-size: 13px;
    color: #777;
    font-family: 'Inter', sans-serif;
}

.breadcrumbs a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #1A1A1A;
}

.breadcrumbs span {
    color: #1A1A1A;
}

/* Карточка ножа */
.knife-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0 80px;
}

/* Галерея */
.knife-gallery {
    position: sticky;
    top: 120px;
}

.main-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    aspect-ratio: 1 / 1;
    background-color: #F5F5F5;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover {
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #1A1A1A;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Информация о ноже */
.knife-info h1 {
    font-size: 40px;
    text-align: left;
    margin-bottom: 16px;
}

.knife-price {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
}

.knife-specs,
.knife-description {
    margin-bottom: 32px;
}

.knife-specs h3,
.knife-description h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.knife-specs ul {
    list-style: none;
    padding: 0;
}

.knife-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #E5E5E5;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #2C2C2C;
}

.knife-specs li strong {
    width: 140px;
    display: inline-block;
    font-weight: 600;
    color: #1A1A1A;
}

.knife-description p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #3A3A3A;
    font-family: 'Inter', sans-serif;
}

.knife-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* Рекомендуемые ножи */
.related-knives {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 1px solid #E5E5E5;
}

.related-knives h2 {
    text-align: left;
    margin-bottom: 32px;
}

/* ---------------------------------------------
   АДАПТИВНАЯ ВЕРСТКА (MEDIA QUERIES)
   Правила для планшетов и телефонов
   --------------------------------------------- */
@media (max-width: 768px) {
    /* Скрываем нижнее чёрное меню (десктопное) */
    .menu-row {
        display: none !important;
    }
    
    /* Показываем бургер */
    .burger {
        display: block !important;
    }
    
    /* Корректируем верхнюю панель для мобильных */
    .header__top-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    /* Скрываем телефон на мобильных */
    .phone {
        display: none !important;
    }
    
    /* Скрываем текстовые подписи иконок */
    .icon-title {
        display: none !important;
    }
    
    /* Оставляем только иконки */
    .right-icons .line-block {
        gap: 12px;
    }
    
    .top-btn {
        padding: 0;
    }
}

.menu-row {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* Для планшетов (опционально) */
@media (max-width: 992px) and (min-width: 769px) {
    .menu-row td a {
        font-size: 12px;
    }
    
    .btn-menu {
        padding: 4px 12px !important;
    }
}

/* Убедимся, что на десктопе бургер скрыт */
@media (min-width: 769px) {
    .burger {
        display: none !important;
    }
    
    .menu-row {
        display: block !important;
    }
}

/* Мобильная версия галереи */
@media (max-width: 768px) {
    /* Переключаем карточку ножа в колонку */
    .knife-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Основное фото на всю ширину */
    .main-photo {
        aspect-ratio: 1 / 1;
        width: 100%;
    }
    
    /* Миниатюры под основным фото */
    .thumbnails {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    
    .thumbnail {
        aspect-ratio: 1 / 1;
        cursor: pointer;
    }
    
    /* Убираем sticky на мобильных */
    .knife-gallery {
        position: static;
        top: auto;
    }
}

@media (max-width: 480px) {
    /* На очень маленьких экранах - 3 миниатюры в ряд */
    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}