/* ================================
1. IMPORTS & FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* ================================
2. RESET & BASE STYLES
================================ */
html {
    scroll-behavior: smooth;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ================================
   3. TYPOGRAPHY
   ================================ */
h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-weight: 500;
    font-size: 80px;
    line-height: 100%;
    color: #181818;
}

h2 {
    margin: 0;
    font-weight: 700;
    font-size: 40px;
    line-height: 105%;
    letter-spacing: -0.8px;
    color: #181818;
}

h3 {
    margin: 0;
    font-weight: 600;
    font-size: 32px;
    line-height: 110%;
    letter-spacing: -0.48px;
    color: #181818;
}

h4 {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    line-height: 115%;
    letter-spacing: -0.24px;
}

h5 {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: -0.1px;
}

.body1 {
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0.09px;
}

.body2 {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0.08px;
}

.body3 {
    margin: 0;
    font-weight: 400;
    font-size: 14px;    
    line-height: 145%;
    letter-spacing: 0.14px;
}

.body4 {
    margin: 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0.18px;
}

/* ================================
    4. BUTTONS
    ================================ */
.button-black {
    font-family: 'Montserrat', sans-serif;
    background-color: #181818;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.button-black p {
    font-size: 18px;
    font-weight: 500;
    line-height: 135%;
    letter-spacing: 0px;
    margin: 0;
    text-decoration: none; 
}

.button-black img {
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
    border-radius: 0;
}

.button-black:hover {
    background-color: #CDA769;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.24);
}

.button-white {
    font-family: 'Montserrat', sans-serif;
    background-color: #FCFCFC;
    color: #181818;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.button-white p {
    font-size: 18px;
    font-weight: 600;
    line-height: 135%;
    letter-spacing: 0px;
    margin: 0;
}

.button-white:hover {
    background-color: #CDA769;
    color: #FCFCFC;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.24);
}

.button-clear {
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    color: #808080;
    border-radius: 8px;
    padding: 12px 0px;
    gap: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.button-clear p {
    font-size: 18px;
    font-weight: 500;
    line-height: 135%;
    letter-spacing: 0px;
    margin: 0;
}

.button-clear:hover {
    background-color: transparent;
    color: #181818;
}

.button-clear img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 0;
}

.button-border {
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    color: #181818;
    border-radius: 8px;
    padding: 11px 23px;
    border: solid 1px #181818;
    cursor: pointer;
    display: flex;  
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.button-border p {
    font-size: 18px;
    font-weight: 500;
    line-height: 135%;
    letter-spacing: 0px;
    margin: 0;
}

.button-border:hover {
    background-color: #CDA769;
    border: 1px solid #CDA769;
    color: #FCFCFC;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.24);
}

.favorite-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-button:hover {
    background-color: #F0F0F0;
}

.favorite-button.active {
    background-color: #FF4757;
}

.favorite-button.active img {
    filter: brightness(0) invert(1);
}

.favorite-button img {
    width: 24px;
    height: 24px;
}

/* Show More Button */
.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.show-more-btn {
    padding: 12px 24px;
    background-color: #181818;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 150px;
}

.show-more-btn:hover {
    background-color: #CDA769;
}

.show-more-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.show-more-btn.hide-items {
    background-color: #666;
}


/* ================================
    5. LAYOUT
    ================================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible !important;
}

.divider {
    border: none;
    height: 1px;
    background-color: #D6D6D6;
    margin: 100px 0;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ================================
6. HEADER & NAVIGATION
=============================== */
header {
    background-color: #ffffff; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Оптимизированная анимация */
    transition: transform 0.3s ease-out;
    transform: translateY(0);
    will-change: transform;
}

header.header-hidden {
    transform: translateY(-100%);
}

/* Убираем старый класс .hidden если он есть */
header.hidden {
    transform: translateY(-100%);
}

.top-bar {
    display: flex;
    color: #ffffff;
    justify-content: center;
    height: 40px;
    width: 100%;
    background-color: #181818;
}

.content-top-bar {
    display: flex;
    max-width: 1600px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
}

.contact-top-bar {
    display: flex;
    gap: 12px;
}

.contact-top-bar p {
    text-align: left;
}

.contact-top-bar-text {
    display: flex;
    gap: 12px;
    margin: 0;
}

.order-info {
    display: flex;
    gap: 12px;
}

.main-header {
    display: flex;
    position: center;
    height: 80px;
    max-width: 1600px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    display: flex;
    
}

.logo img {
    height: 34px;
    padding-left: 20px;
}

.desktop-nav nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Добавляем недостающие стили навигации */
.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: center;
}

.desktop-nav li {
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: #181818;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.desktop-nav a:hover {
    background-color: #F5F5F5;
    color: #CDA769;
}

.search-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E0E0E0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-panel.input-focused .search-input-wrapper {
    border-color: #CDA769;
    background: white;
    box-shadow: 0 0 0 4px rgba(205, 167, 105, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #181818;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.search-input::placeholder {
    color: #808080;
    font-weight: 400;
}

.search-submit-btn {
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.search-submit-btn:hover {
    background: rgba(205, 167, 105, 0.1);
}

.search-submit-btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.search-submit-btn:hover img {
    transform: scale(1.1);
}

.search-close-btn {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
}

.search-close-btn:hover {
    background: #F0F0F0;
    transform: rotate(90deg);
}

.search-close-btn img {
    width: 24px;
    height: 24px;
}


/* ================================
   BURGER MENU STYLES
   ================================ */

/* Кнопка бургер-меню */
.burger-btn {
    display: none; /* Скрыта по умолчанию на десктопе */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 30px 10px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.burger-btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.burger-btn.active img {
    transform: rotate(180deg);
}

/* Мобильное меню */
.mobile-menu {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #E0E0E0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Мобильная навигация */
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #F0F0F0;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    color: #181818;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    color: #CDA769;
    padding-left: 8px;
}

/* Блокировка скролла страницы при открытом меню */
body.menu-open {
    overflow: hidden;
}


/* Overlay for scroll blocking */
.header-icons {
    display: flex;
    align-items: center;
    padding-right: 30px;
}

.header-icons a {
    color: #181818;
    margin-left: 20px;
    position: relative;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-icons a:hover {
    opacity: 0.7;
}

.header-icons img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #F21E1E;
    color: white;
    border-radius: 50%;
    padding: 5px 5px;
    font-size: 12px;
    min-width: 6px;
    height: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* ================================
    7. HOME PAGE SECTIONS
    ================================ */

/* Main Screen */
.main-screen {
    background-image: url('/static/images/bghome1.png');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    height: calc(100vh - 140px);
    max-height: 1080px;
    border-radius: 20px;
    background-color: #ffffff;
    margin: 120px 0 0 0;
}

.content-main-screen { 
    color: #181818;
    padding: 64px 0 0 48px;
    flex-direction: column;
    justify-content: center;
}

.content-main-screen h1 {
    margin-bottom: 24px;
}

.content-main-screen button {
    margin-top: 32px;
}

/* Advantages Section */
.advantages {
    display: flex;
    justify-content: space-around;
    margin: 100px 0;
    gap: 24px;
}

.advantage-item {
    background-color: #fff;
    border: 1px solid #D5C2AF;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advantage-item-content {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
}

.advantage-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

/* Popular Categories */
.popular-categories {
    margin: 0 auto;
}

.popular-categories h2 {
    margin-bottom: 56px;
}

.categories-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.category-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item:hover .category-overlay {
    opacity: 1;
}

/* Service Banners */
.service-banner1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #161819;
    color: #fff;
    height: 500px;
    margin: 100px auto;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.service-content1 {
    width: calc(50% - 48px);
    z-index: 2;
    padding-left: 48px;
}

.service-content1 h2 {
    margin-bottom: 24px;
    color: #fff;
}

.service-content1 button {
    margin-top: 24px;
}

.service-image1 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.service-banner2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url('/static/images/bg-gadient.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #181818;
    height: 500px;
    width: 100%;
    margin: 100px auto;
    border-radius: 24px;
    border: 1px solid #D5C2AF;
    position: relative;
    overflow: hidden;
}

.service-content2 {
    width: calc(50% - 48px);
    z-index: 2;
    padding-left: 48px;
}

.popular-goods-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    margin-bottom: 56px;
}

.service-content2 h2 {
    margin-bottom: 24px;
}

.service-content2 button {
    margin-top: 24px;
}

.service-image2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 80%;
    overflow: hidden;
    object-fit: contain;
}

.service-image2 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-banner3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #161819;
    color: #fff;
    height: 500px;
    margin: 100px auto;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.service-content3 {
    width: calc(50% - 48px);
    z-index: 2;
    padding-left: 48px;
}

.service-content3 h2 {
    margin-bottom: 24px;
    color: #fff;
}

.service-content3 button {
    margin-top: 24px;
}

.service-image3 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* ================================
    8. PRODUCT COMPONENTS
    ================================ */

/* Products Section */
.products {
    margin: 100px auto;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
}

.product-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.product-filters button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    padding: 12px 24px;
    background-color: #F5F5F5;
    color: #181818;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-filters button:hover,
.product-filters button.active {
    background-color: #CDA769;
    color: white;
}

/* Стили для каталога */
.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Стили для главной страницы остаются без изменений */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.product-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

/* Product Images */
.product-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.product-item .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 0;
}

.product-item .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 0;
}

.product-image-container:hover .main-image {
    opacity: 0;
    transform: scale(1.05);
}

.product-image-container:hover .hover-image {
    opacity: 1;
    transform: scale(1.05);
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    flex-grow: 1;
}

.product-info-top h3{
    margin-bottom: 24px;
}

.product-info button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-info button img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 0;
}

.product-info-price-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-info-price-button h4 {
    color: #CDA769;
}

.product-info h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-info p {
    margin-bottom: 16px;
}

.product-info-favorite-button {
    display: flex;
    gap: 8px;
    align-items: center;
}



.product-full-description {
    margin-bottom: 100px;
}

.product-full-description h4 {
    margin-bottom: 32px;
}

.product-full-description p {
    column-count: 2; /* Делит текст на 2 колонки */
    column-gap: 30px;
    color: #616161;
}
.recommended-products h2{
    margin-bottom: 56px;
}




/* ================================
    9. BLOG SECTION
    ================================ */
.blog {
    margin-bottom: 100px;
    margin-top: 0px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Растягиваем на всю высоту grid-ячейки */
    margin-bottom: 24px;
    
}

.blog-item button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}


.blog-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
}

.blog-info {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    flex: 1; 
}

.blog-info h5 {
    margin-bottom: 12px;
}

.blog-info .body4 {
    margin-bottom: 4px;
}

.blog-info .body3 {
    color: #616161;
    flex-grow: 1; /* Текст растягивается, кнопка прижимается вниз */
}

/* ================================
    BLOG ARTICLE PAGE
    ================================ */
    .blog-article-hero {
        width: 100%;
        height: 50vh;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 40px;
    }
    
    .blog-article-hero img {
        width: 100%;
        max-height: 100%;
        object-fit: cover;
    }
    
    .blog-article-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 56px;
    }
    
    .blog-article-header h1 {
        margin-bottom: 16px;
    }
    
    .blog-article-meta {
        display: flex;
        justify-content: center;
        gap: 8px;
        color: #808080;
    }
    
    .blog-article-main {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 80px;
        margin-bottom: 100px;
    }
    
    .blog-article-content {
        max-width: none;
    }
    
    .blog-article-content h3 {
        margin-bottom: 24px;
    }
    
    .blog-article-content p {
        margin-bottom: 24px;
        color: #616161;
    }
    
    .blog-article-sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .sidebar-banner {
        background: #FAF5F3;
        border-radius: 16px;
        padding: 24px;
        text-align: center;
    }
    .sidebar-banner input {
        margin-top: 12px;
    }
    
    .subscription-banner h4 {
        margin-bottom: 12px;
    }

    .subscription-banner button {
        margin-top: 12px;
        width: 100%;
    }

    
    .specialist-banner {
        background: #2A2A2A;
        color: white;
    }
    
    .specialist-banner h4 {
        color: white;
        margin-bottom: 16px;
    }
    
    .specialist-banner img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .specialist-banner button {
        margin-top: 12px;
        width: 100%;
    }
    
    .other-articles {
        margin-bottom: 100px;
    }
    
    .other-articles-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 56px;
    }
    
    .other-articles-header a {
        color: #808080;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .other-articles-header a:hover {
        color: #181818;
    }
    
    .other-articles-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .article-card {
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
        background: white;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .article-card:hover {
        transform: translateY(-4px);
    }
    
    .article-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .article-card-content {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .article-card-content span {
        color: #808080;
        margin-bottom: 8px;
    }
    
    .article-card-content h5 {
        margin-bottom: 12px;
    }
    
    .article-card-content button {
        margin-top: 16px;
        width: 100%;
    }

/* ================================
   10. FOOTER
   ================================ */
footer {
    background-color: #ffffff;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.adress-container {
    margin: 100px auto;
}

.adress-header {    
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

#map {
    border-radius: 16px;
    overflow: hidden;
}

.contact-container {
    margin: 100px auto;
}

.contact-header h2 {
    margin-bottom: 56px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.contact-info p {
    margin-bottom: 16px;
    color: #808080;
}

.contact-info a {
    color: #181818;
}

.footer-bottom {
    margin: 100px 0 10px 0;
}

.footer-bottom-content a {
    text-decoration: none;
    color: #181818;
}

.footer-bottom-content p {
    margin-bottom: 4px;
    color: #616161;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    gap: 112px;
}

.footer-links-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.footer-content-chapter1 img {
    width: 200px;
    height: auto;
}



.footer-content-chapter1 {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 56px;
}

.footer-image {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
}

.footer-image img {
    width: 100%;
    height: 100%;
    max-height: 1080px;
    object-fit: cover;
    display: block;
}
    
.footer-legal-info {
    display: flex;  
    justify-content: space-between;
    margin-top: 10px;
}

.footer-legal-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

/* ================================
    11. CATALOG PAGE
    ================================ */
.main-screen-catalog {
    background-image: url('/static/images/main-catalog.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: calc(100vh - 160px);
    max-height: 300px;
    border-radius: 24px;
    border: 1px solid #D5C2AF;
    margin: 140px 0px 56px 0px;
}

.content-main-screen-catalog { 
    display: flex;
    align-items: center;
    padding: 0px 0 0 48px;
    height: 100%;
}

.content-main-screen-catalog h1 {
    color: #181818;
}

/* ================================
   CATALOG LAYOUT STYLES (DESKTOP)
   ================================ */

/* Основной контейнер каталога */
.catalog-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;

}

/* Заголовок каталога */
.catalog-header {
    margin-bottom: 32px;
}

.catalog-header h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    color: #181818;
}

/* Контент каталога с сайдбаром */
.catalog-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    overflow: visible !important;
}

/* ================================
   SIDEBAR FILTERS (DESKTOP)
   ================================ */

.sidebar-filters {
    flex: 0 0 280px;
    background: #fff;
    padding: 0;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #181818;
    margin: 0 0 16px 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #CDA769;
}

.filter-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-option:hover .filter-label {
    color: #CDA769;
}

.filter-option input[type="checkbox"]:checked + .filter-label {
    color: #CDA769;
    font-weight: 500;
}

/* ================================
   PRICE FILTER
   ================================ */

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    width: 60px;
}

.price-separator {
    color: #666;
    font-size: 14px;
}

.price-range {
    position: relative;
    height: 20px;
}

.price-range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    background: #CDA769;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #CDA769;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: none;
}

/* ================================
   MAIN CATALOG CONTENT
   ================================ */

.catalog-main {
    flex: 1;
    overflow: visible !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;

}

.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 18px;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    padding: 12px 24px;
    background: #CDA769;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-more-btn:hover {
    background: #B8965A;
}

/* ... existing code ... */

/* ================================
   CATALOG CONTROLS (DESKTOP)
   ================================ */

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0;
}

/* Кнопка сортировки */
.sort-dropdown {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #D6D6D6;
    border-radius: 8px;
    color: #181818;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: space-between;
}

.sort-btn:hover {
    border-color: #CDA769;
    background-color: #F9F9F9;
}

.sort-btn.active {
    border-color: #CDA769;
    background-color: #F9F9F9;
}

.sort-btn svg {
    transition: transform 0.3s ease;
}

.sort-btn.active svg {
    transform: rotate(180deg);
}

.sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D6D6D6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.sort-options.show {
    display: block;
}

.sort-option {
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    color: #181818;
    border-bottom: 1px solid #F0F0F0;
    transition: all 0.3s ease;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background-color: #F9F9F9;
    color: #CDA769;
}

.sort-option.active {
    background-color: #CDA769;
    color: white;
}

/* Фильтры-таблетки */
.catalog-filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.catalog-filter-pills .filter-pill {
    padding: 10px 20px;
    border: 1px solid #D6D6D6;
    border-radius: 50px;
    background: transparent;
    color: #808080;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.catalog-filter-pills .filter-pill:hover {
    border-color: #CDA769;
    color: #CDA769;
    background-color: rgba(205, 167, 105, 0.1);
}

.catalog-filter-pills .filter-pill.active {
    background: #CDA769;
    color: #FFFFFF;
    border-color: #CDA769;
}

.catalog-filter-pills .filter-pill.active:hover {
    background: #B8965A;
    border-color: #B8965A;
}

/* ================================
   ADAPTIVE FILTERS (ПОКАЗЫВАЕМ НА ДЕСКТОПЕ)
   ================================ */

   .adaptive-filters {
    display: none;
}

.adaptive-filters-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: visible !important;
}

.adaptive-filters-scroll::-webkit-scrollbar {
    display: none;
}

.adaptive-filter-group {
    position: relative;
    flex-shrink: 0;
}

.adaptive-filter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #D6D6D6;
    border-radius: 50px;
    color: #808080;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.adaptive-filter-pill:hover {
    border-color: #CDA769;
    color: #CDA769;
    background-color: rgba(205, 167, 105, 0.1);
}

.adaptive-filter-pill.active {
    background: #CDA769;
    color: #FFFFFF;
    border-color: #CDA769;
}

.adaptive-filter-pill svg {
    transition: transform 0.3s ease;
}

.adaptive-filter-pill.active svg {
    transform: rotate(180deg);
}

.adaptive-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #D6D6D6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Увеличиваем z-index для отображения над товарами */
    min-width: 200px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
}

.adaptive-filter-dropdown.show {
    display: block;
}

.adaptive-filter-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #F0F0F0;
    transition: background-color 0.2s ease;
}

.adaptive-filter-option:last-child {
    border-bottom: none;
}

.adaptive-filter-option:hover {
    background-color: #F9F9F9;
}

.adaptive-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #CDA769;
}

.adaptive-filter-option span {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.adaptive-filter-option input[type="checkbox"]:checked + span {
    color: #CDA769;
    font-weight: 500;
}

.adaptive-price-filter {
    min-width: 250px;
    padding: 16px;
}

.adaptive-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.adaptive-price-inputs input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #D6D6D6;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.adaptive-price-separator {
    color: #808080;
    font-size: 14px;
}

.adaptive-price-range {
    position: relative;
    margin-top: 8px;
}

.adaptive-price-range input[type="range"] {
    width: 100%;
    height: 4px;
    background: #D6D6D6;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.adaptive-price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #CDA769;
    border-radius: 50%;
    cursor: pointer;
}

.adaptive-price-range input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #CDA769;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ================================
    12. PRODUCT PAGE
    ================================ */

/* Breadcrumbs */
.breadcrumbs {
    margin: 0px 0 40px 0;
    font-size: 14px;
    color: #808080;
}

.breadcrumbs a {
    color: #808080;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #181818;
}

.breadcrumbs span {
    margin: 0 8px;
}

.breadcrumbs .current {
    color: #181818;
    font-weight: 500;
}

.breadcrumbs-margin {
    margin: 140px 0 32px 0;
    font-size: 14px;
    color: #808080;
}

.breadcrumbs-margin a {
    color: #808080;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs-margin a:hover {
    color: #181818;
}

.breadcrumbs-margin span {
    margin: 0 8px;
}

.breadcrumbs-margin .current {
    color: #181818;
    font-weight: 500;
}

/* Product Page Layout */
.product-page {
    display: flex;
    gap: 30px;
    margin-bottom: 100px;
    margin-top: 56px;
}

/* Product Gallery */
.product-gallery {
    flex: 1;
    max-width: calc(50% - 15px);
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-image-container {
    width: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.gallery-image-container img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav img {
    width: 20px;
    height: 20px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 2px;
    scroll-behavior: smooth; /* Плавная прокрутка */

    
    /* Скрываем полосу прокрутки */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px; /* Чтобы миниатюры не сжимались */
    min-height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.2s;
    aspect-ratio: 1/1; /* Квадратные пропорции */
}

.thumbnail.active {
    border-color: #CDA769;
    transform: scale(1.05); /* Небольшое увеличение активной миниатюры */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображение по размеру квадрата */
    transition: transform 0.2s;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Product Info */
.product-info-detailed {
    flex: 1;
    max-width: calc(50% - 15px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info-detailed h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #181818;
}

/* Product Price */
.product-price {
    margin-bottom: 24px;
}

.product-price #current-price {
    font-size: 32px;
    font-weight: 600;
    color: #CDA769;
}

/* Product Specifications */
.product-specs {
    margin-bottom: 40px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-label {
    color: #181818;
    font-weight: 600;
}

.spec-value {
    color: #616161;
    font-weight: 400;
    text-align: right;
}



/* Product Options */
.product-options {
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 24px;
}

.option-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #181818;
}


/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-end;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}


/* Quantity Selector */

.quantity-display {
    font-size: 16px;
    color: #181818;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: #f5f5f5;
    border: solid 1px #D6D6D6;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background: #181818;
    color: white;
}

#product-quantity {
    border: none;
    width: 60px;
    height: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
}



/* ================================
    SERVICES PAGE
    ================================ */
    .main-screen-services {
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url('/static/images/bg-gadient.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #181818;
        height: 500px;
        width: 100%;
        border-radius: 24px;
        border: 1px solid #D5C2AF;
        position: relative;
        overflow: hidden;
        margin: 120px 0px 56px 0px;
    }

    .content-main-screen-services {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 960px;
    }

    .content-main-screen-services h1 {
        font-size: 64px;
        margin-bottom: 40px;
        color: #181818;
    }
    .content-main-screen-services h4 {
        margin-bottom: 48px;
        color: #181818;
    }
    .content-main-screen-services a {
        text-decoration: none;
    }

    .services-about {
        display: flex;
        flex-direction: column;
    }

    .services-about h5 {
        margin-bottom: 16px;
        color: #CDA769;
    }

    .services-about body2 {
        color: #3D3C3C;
    }

    .services-about-header {
        width: 50%;
        margin-bottom: 56px;
    }

    .services-about-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 56px;
    }

    .services-about-content-item1 {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }


    .services-about-content-item3 {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .about-item-left {
        display: flex;
        flex-direction: column;
        text-align: right;
    }

    .about-item-right {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .services-masters {
        display: flex;
        flex-direction: column;
        gap: 56px;
    }

    .services-masters-cards {
        display: flex;
        flex-direction: row;
        gap: 32px;
    }

    .services-masters-cards .divider {
        margin: 24px 0;
    }

    .services-masters-card1 {
        background-color: #FAF5F3;
        display: flex;
        flex-direction: column;
        padding: 32px 24px;
        width: calc(50% - 16px);
        border-radius: 16px;
        justify-content: space-between;
    }

    .services-masters-card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .services-masters-card1 h1 {
        font-size: 32px;
        margin-bottom: 24px;
        margin-top: 4px;
    }
    .services-masters-card1 .body1 {
        color: #3D3C3C;
    }

    .services-masters-card2 {
        background-color: #F9F9FB;
        display: flex;
        flex-direction: column;
        padding: 32px 24px;
        width: calc(50% - 16px);
        border-radius: 16px;
        justify-content: space-between;
    }


    .services-masters-card2 h1 {
        font-size: 32px;
        margin-bottom: 24px;
        margin-top: 4px;
    }

    .services-masters-card2 .body1 {
        color: #3D3C3C;
    }

    .services-masters-price-radio .body1 { 
        color: #808080;
        cursor: pointer;
    }

    .custom-bullet {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0; 
        padding: 0 0 0 24px;
    }
    .custom-bullet li::marker {
        color: #CDA769;
        height: 24px;
        width: 24px;
    }

    .services-masters-price {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 32px;
    }

    .services-masters-price-header {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .services-masters-price-header img {
        width: 24px;
        height: 24px;
    }

    .services-masters-price-radio {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .option {
        display: flex; /* Используем flex для выравнивания */
        justify-content: space-between; /* Распределяем содержимое по краям */
        align-items: center; /* Центрируем по вертикали */
        padding: 12px 16px; /* Увеличиваем отступы для лучшего внешнего вида */
        background-color: #ffffff;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s; /* Добавляем плавный переход */
        box-sizing: border-box; /* Включаем padding и border в расчет ширины */
        width: 100%;
    }

    .option:hover {
        background-color: #f7f7f7; /* Цвет фона при наведении */
    }

    .option input[type="radio"] {
        display: none; /* Скрываем стандартные радио-кнопки */
    }
    
    .radio-circle {
        width: 16px; /* Ширина круга */
        height: 16px; /* Высота круга */
        border: 2px solid #181818; /* Черная граница */
        border-radius: 50%; /* Делаем круг */
        margin-right: 8px; /* Отступ между кругом и текстом */
        position: relative;
        flex-shrink: 0; /* Предотвращаем сжатие */
        background-color: transparent; /* Прозрачный фон для неактивного состояния */
    }
    
    .option input[type="radio"]:checked + .radio-circle {
        background-color: #ffffff; /* Черный цвет при выборе */
        border: 2px solid #181818; /* Черная граница при выборе */
    }
    
    .option input[type="radio"]:checked + .radio-circle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        background-color: #181818; /* Черная точка внутри */
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .option-radio-time {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }

    .services-masters-card-buttons {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100%;
        margin-top: 24px;
    }

    .services-masters-card-buttons button {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .services-steps {
        flex-direction: column;
    }

    .services-steps h3 {
        color: #CDA769;
    }

    .services-steps-header {
        margin-bottom: 56px;
    }   

    .services-steps-content {
        display: flex;
        flex-direction: row;
        gap: 24px;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .services-steps-button {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 32px;
    }

    .services-steps-content-item1,
    .services-steps-content-item2, 
    .services-steps-content-item3,
    .services-steps-content-item4,
    .services-steps-content-item5,
    .services-steps-content-item6 {
        display: flex;
        flex: 0 1 calc(33.33% - 16px); /* Десктоп: 3 плитки в ряд */
        flex-direction: column;
        justify-content: space-between;
        padding: 32px 24px;
        border-radius: 16px;
        border: 1px solid #D6D6D6;
        height: 220px;
        box-sizing: border-box;
    }

    .services-stweps-button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 56px;
    }

    .service-banner4 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-radius: 16px;
        border: 1px solid #D5C2AF;
        background-image: url('/static/images/Service-banner4.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        margin-top: 100px;
    }

    .service-banner4-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 450px;
        height: 100%;
        margin-left: 48px;
    }
    .service-banner4-content h2 {
        margin-bottom: 24px;
    }
    .service-banner4-content button {
        margin-top: 32px;
    }


    /* MODALS STYLES */
    /* Размеры и базовые стили модального окна */
    .booking-modal-content {
        background: white;
        border-radius: 24px;
        padding: 40px;
        width: 90%;
        max-width: 480px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        align-items: center;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    /* Отступы между полями - НОВЫЙ (для плотности формы) */
    .booking-form .form-group {
        margin-bottom: 24px;
    }

    /* Лейблы полей */
    .booking-form label {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
        color: #333333;
        margin-bottom: 8px;
    }

    /* Для readonly полей - НОВЫЙ (специальный стиль для неактивных полей) */
    .booking-form input[readonly] {
        background-color: #F9F9FB !important;
        cursor: not-allowed;
        color: #666666;
    }

    /* Чекбокс группа - НОВЫЙ (нужна для правильного позиционирования) */
    .booking-form .checkbox-group {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 32px;
        font-size: 14px;
        line-height: 1.5;
        color: #666666;
    }

    /* Скрытый чекбокс */
    .booking-form .checkbox-group input[type="checkbox"] {
        display: none;
    }

    /* Кастомный чекбокс - НОВЫЙ (для визуального оформления) */
    .booking-form .checkbox-circle {
        width: 20px;
        height: 20px;
        border: 2px solid #D6D6D6;
        border-radius: 4px;
        background: white;
        flex-shrink: 0;
        margin-top: 2px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Отмеченный чекбокс - НОВЫЙ */
    .booking-form input[type="checkbox"]:checked + .checkbox-circle {
        background-color: #333333;
        border-color: #333333;
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Ссылки в тексте соглашения */
    .booking-form .privacy-link {
        color: #333333;
        text-decoration: underline;
    }

    .booking-form .privacy-link:hover {
        color: #666666;
    }

    /* Кнопка отправки - используем существующий button-black с дополнениями */
    .booking-form .booking-submit-btn {
        width: 100%;
        margin-top: 8px;
    }

    /*MASTER DETAIL MODAL*/

    /* Центрирование модального окна мастера (как у booking-modal) */
    .master-detail-modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        background: white;
        border-radius: 24px;
        width: 90%;
        max-width: 800px;  /* НОВЫЙ: больше чем booking modal */
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
    }

    /* Layout контента - НОВЫЙ (для горизонтального расположения фото и текста) */
    .master-detail-content {
        padding: 40px;
    }

    /* Header с фото и именем - НОВЫЙ */
    .master-detail-header {
        display: flex;
        gap: 24px;
        margin-bottom: 32px;
    }

    /* Фото мастера - НОВЫЙ */
    .master-detail-header img {
        width: 120px;
        height: 120px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
    }

    /* Титулы мастера используют существующие стили h2, h3 */
    .master-title h2 {
        margin: 0 0 8px 0;
        font-size: 32px;
    }

    .master-title h3 {
        margin: 0;
        color: #666666;
        font-weight: 400;
    }

    /* Блоки услуг - НОВЫЙ (вертикальное расположение) */
    .master-services {
        margin-bottom: 32px;
    }

    .service-block {
        margin-bottom: 24px;
    }

    .service-block h4 {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 600;
    }

    .service-block p {
        margin: 0;
        color: #666666;
        line-height: 1.5;
    }

    /* Блок образования - НОВЫЙ */
    .master-education {
        margin-bottom: 32px;
    }

    .master-education h4 {
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
    }

    .master-education ul {
        margin: 0;
        padding-left: 20px;
    }

    .master-education li {
        margin-bottom: 8px;
        color: #666666;
        line-height: 1.5;
    }

    /* Ценовой блок - используем существующие стили services-masters-price */
    .master-pricing {
        margin-bottom: 32px;
    }

    /* Кнопка внизу - используем существующий button-black */
    .master-detail-book-btn {
        width: 100%;
    }
    





/* ================================
    OPT PAGE
    ================================ */

    .opt-content {
        display: flex;
        flex-direction: column;
        gap: 56px;
    }

    .opt-content-header {
        width: 50%;
        margin-bottom: 56px;
    }

    .opt-about {
        display: flex;
        flex-direction: row;
        gap: 30px;
    }

    .opt-about-item1 {
        display: flex;
        flex-direction: column;
        width: 60%;
    }

    .opt-about-item2 {
        display: flex;
        flex-direction: column;
        width: 50%;
        background-image: url('/static/images/bg-gadient.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 32px 24px;
        border-radius: 16px;
        margin-right: 48px;
        border: 1px solid #D5C2AF;
        box-sizing: border-box;
    }

    .service-banner4-form {
        display: flex;
        flex-direction: column;
        max-width: 550px;
        background-image: url('/static/images/bg-gadient.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 32px 24px;
        border-radius: 16px;
        margin: 48px 48px 48px 0;
        border: 1px solid #D5C2AF;
        box-sizing: border-box;
    }
    .service-banner4-form form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .service-banner4-form button {
        margin-top: 24px;
    }

    .opt-about-item2 h3 {
        margin-bottom: 12px;
    }

    .opt-about-item2 button {
        margin-top: 24px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .opt-about-item2 form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .opt-about-item2 input {
        border: 1px solid #D5C2AF;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: 500;
    }

    .opt-about-item2-header {
        display: flex;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    

    .form-placeholder {
        background-image: url('/static/images/Icons/mail.svg'); /* Путь к вашему SVG файлу */
        background-repeat: no-repeat;
        background-position: 16px center; /* Увеличьте значение для отступа от края */
        background-size: 20px 20px; /* Размер иконки */
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
        border: 1px solid #EBEBEB;
        border-radius: 8px;
        padding: 12px 44px;
        font-size: 16px;
        font-weight: 500;
        
    }

    .form-group label {
        font-size: 20px;
        font-weight: 500;
        color: #181818;
    }

    .checkbox-group {
        display: flex;
        flex-direction: row;
        gap: 4px;
        align-items: flex-start;
        margin-top: 12px;
    }

/* ================================
    DELIVERY PAGE
    ================================ */

    .delivery-content-header {
        margin-bottom: 56px;
    }

    .delivery-content {
        display: flex;
        flex-direction: row;
        gap: 30px;
    }

    .delivery-content-item1 {
        width: 50%;
    }

    /*delivery accordion*/
    
    .accordion-item {
        border-radius: 8px;
        margin-bottom: 12px;
        overflow: hidden;
        background: #ffffff;
    }
    
    .accordion-header {
        padding: 20px 24px;
        background-color: #FAF5F3;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.3s ease;
    }
    
    .accordion-header:hover {
        background-color: #F3ECE9;
    }
    
    .accordion-header h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #181818;
    }
    
    .accordion-arrow {
        transition: transform 0.3s ease;
    }
    
    .accordion-header.active .accordion-arrow {
        transform: rotate(180deg);
    }
    
    .accordion-header.active {
        border-bottom: 1px solid #E5E5E5;
    }
    
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: #FAF5F3;
    }
    
    .accordion-content.active {
        max-height: 1000px;
    }
    
    /* Внутренний wrapper с постоянным padding */
    .accordion-content-wrapper {
        padding: 24px;
    }
    
    .accordion-content p {
        margin: 0;
        color: #3D3C3C;
        line-height: 1.6;
        font-size: 16px;
    }

    .delivery-content-item2 {
        width: 50%;
    }
    
    .payment-intro {
        font-size: 18px;
        color: #181818;
        margin-bottom: 17px;
        margin-top: 0;
        font-weight: 500;
    }
    .payment1 {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }
    .payment2 .payment-option {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }  

    .payment-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .payment-option {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        width: 50%;
        border-radius: 8px;
        gap: 12px;
    }

    .payment-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .payment-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .payment-content {
        flex: 1;
    }
    
    .payment-content h4 {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 600;
        color: #181818;
    }
    
    .payment-content p {
        margin: 0;
        font-size: 16px;
        color: #666666;
        line-height: 1.5;
    }


/* ================================
   404 PAGE STYLES
================================ */

.main-screen-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/static/images/404-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #181818;
    height: 500px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid #D5C2AF;
    position: relative;
    overflow: hidden;
    margin: 120px 0px 56px 0px;
    height: calc(100vh - 140px);
    box-sizing: border-box;
}

.content-main-screen-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.content-main-screen-404 h3 {
    margin-bottom: 48px;
    color: #181818;
}
.content-main-screen-404 img {
    margin-bottom: 48px;
}
.content-main-screen-404 h4 {
    margin-bottom: 48px;
    color: #181818;
}
.content-main-screen-404 a {
    text-decoration: none;
}

  /* ================================
    THANK PAGE STYLES
    ================================ */

    .order-details {
        background-color: #f8f9fa;
        border-radius: 8px;
        padding: 20px;
        margin: 20px 0;
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .order-details p {
        margin: 10px 0;
    }

    .main-screen-thank {
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url('/static/images/thank-page-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #181818;
        height: 500px;
        width: 100%;
        border-radius: 24px;
        border: 1px solid #D5C2AF;
        position: relative;
        overflow: hidden;
        margin: 120px 0px 56px 0px;
        height: calc(100vh - 140px);
        box-sizing: border-box;
    }

    .content-main-screen-thank {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: 80px;
    }

    .content-main-screen-thank h1 {
        font-size: 64px;
        margin-bottom: 40px;
        color: #181818;
    }
    .content-main-screen-thank h4 {
        margin-bottom: 48px;
        color: #181818;
    }
    .content-main-screen-thank a {
        text-decoration: none;
    }

    


    

    /* ================================
    LEGAL PAGE STYLES
    ================================ */


    .legal-content-body {
        display: flex;
        flex-direction: row;
        gap: 30px;
    }

    .legal-content-body-item {
        width: 50%;
        height: 300px;
        background-image: url('/static/images/legal-bg.png');
        background-size: cover;
        background-color: #ffffff;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        border: 1px solid #E5E5E5;
        box-sizing: border-box;
        align-items: flex-start;
        position: relative;
    }

    .legal-content-body-item a {
        display: block; /* Убедитесь, что ссылка занимает весь блок */
        height: 300px; /* Занимает всю высоту родительского блока */
        width: 100%; /* Занимает всю ширину родительского блока */
        text-decoration: none; /* Убирает подчеркивание */
        color: inherit; /* Унаследует цвет текста */
        padding: 32px 24px; /* Добавьте паддинги сюда, если нужно */
        box-sizing: border-box; /* Убедитесь, что паддинги учитываются в размерах */
    }

    .legal-content-body-item:hover {
        background-color: #F9F9FB;
    }

    .legal-content-header h2 {
        margin-bottom: 56px;
    }
    
    
    

/* ================================
    13. MODAL COMPONENTS
    ================================ */

/* Modal Base Styles - Правильная анимация без display: none/block */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    overflow: hidden;
    /* Начинаем с невидимого состояния */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Анимация появления модального окна снизу */
.favorites-modal-content,
.cart-modal-content {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 1000px;
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    position: fixed;
    bottom: 0;
    left: 50%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Начальная позиция - под экраном */
    transform: translateX(-50%) translateY(100%);
    /* Плавная анимация */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Состояние показа модального окна - выезжает снизу */
.modal-overlay.active .favorites-modal-content,
.modal-overlay.active .cart-modal-content {
    transform: translateX(-50%) translateY(0);
}

/* Состояние скрытия модального окна - уезжает вниз */
.modal-overlay.modal-hiding .favorites-modal-content,
.modal-overlay.modal-hiding .cart-modal-content {
    transform: translateX(-50%) translateY(100%);
}

/* Фиксированный хедер */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 12px 24px;
    border-bottom: 1px solid #E0E0E0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.modal-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #000;
}

/* Скроллируемая область с товарами */
.favorites-list,
.cart-list {
    padding: 24px;
    min-height: 200px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CDA769 #f1f1f1;
}

/* Стилизация скроллбара для webkit браузеров */
.favorites-list::-webkit-scrollbar,
.cart-list::-webkit-scrollbar {
    width: 6px;
}

.favorites-list::-webkit-scrollbar-track,
.cart-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.favorites-list::-webkit-scrollbar-thumb,
.cart-list::-webkit-scrollbar-thumb {
    background: #CDA769;
    border-radius: 3px;
}

.favorites-list::-webkit-scrollbar-thumb:hover,
.cart-list::-webkit-scrollbar-thumb:hover {
    background: #b8956a;
}

/* Фиксированный футер */
.favorites-footer,
.cart-footer {
    padding: 24px;
    border-top: 1px solid #E0E0E0;
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cart-buttons,
.favorites-buttons  {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-end;
}

/* Полная блокировка скролла страницы - как у модального окна мастера */
body.modal-open {
    overflow: hidden !important;
}

/* Остальные стили остаются без изменений */
.favorite-item,
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background-color: #F9F9FB;
    margin-bottom: 16px;
    align-items: center;
    height: 100px;
    justify-content: space-between;
}

.favorite-item img,
.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.favorite-item img:hover,
.cart-item img:hover {
    opacity: 0.8;
}

.favorite-item button {
    border-radius: 6px;
    padding: 10px 22px;
    gap: 6px;
}

.favorite-item button p {
    font-size: 16px;
}

.favorite-item button img {
    width: 20px;
    height: 20px;
}

.favorite-item-left,
.cart-item-left {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.favorite-item-info,
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 600px;
}

.favorite-item-info h5,
.cart-item-info h5 {
    font-size: 18px;
}

.favorite-item-details,
.cart-item-details {
    color: #808080;
    font-size: 12px;
}

.favorite-item-details p,
.cart-item-details p {
    margin-top: 4px;
    margin-bottom: 0;
}

.favorite-item-price-quantity,
.cart-item-price-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 240px;
    white-space: nowrap;
}

.favorite-item-price-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    gap: 16px;
}

.favorite-item-actions,
.cart-item-actions {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    align-items: flex-end;
}

.favorite-item-price,
.cart-item-price {
    font-size: 24px;
    font-weight: 600;
    color: #181818;
    width: 100%;
    text-align: right;
}



.remove-from-favorites,
.remove-from-cart {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #616161;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Добавляем стили для иконок внутри кнопок удаления */
.remove-from-favorites img,
.remove-from-cart img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.2s ease; /* Плавный переход */
}

/* При наведении иконка становится красной #F21E1E */
.remove-from-favorites:hover img,
.remove-from-cart:hover img {
    filter: invert(25%) sepia(95%) saturate(6500%) hue-rotate(355deg) brightness(95%) contrast(95%);
}

/* Убираем изменение фона при наведении */
.remove-from-favorites:hover,
.remove-from-cart:hover {
    color: #666; /* Сохраняем исходный цвет текста */
    background-color: transparent; /* Убираем фон */
}

.favorites-total,
.cart-total {
    display: flex;
    flex-direction: row;
    gap: 16px;
    text-align: left;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.favorites-total-left,
.cart-total-left {
    flex: 1;
}

.favorites-total h3,
.cart-total h3 {
    color: #CDA769;
    font-size: 24px;
}

.favorites-total-price,
.cart-total-price {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 8px;
}

.delivery-info {
    font-size: 12px;
    color: #666;
    text-align: left;
    margin-top: 12px;
    margin-bottom: 0;
}

.empty-favorites,
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-favorites h4,
.empty-cart h4 {
    margin: 0 0 8px 0;
    color: #333;
}

/* Стили для рекомендаций в футере модального окна */
.footer-recommendations {
    width: 100%;
}

.footer-recommendations .recommendation-section {
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 24px;
}

.recommendation-title {
    margin-bottom: 12px;
    color: #333;
    font-size: 18px;
}

.recommendation-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background-color: #FAF5F3;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.recommendation-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.recommendation-item img:hover {
    opacity: 0.8;
}

.recommendation-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 450px;
}

.recommendation-item-info h5 {
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendation-item-info h5:hover {
    text-decoration: underline;
}

.recommendation-item-left {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.recommendation-item-details p {
    margin: 0;
    color: #808080;
    font-size: 12px;
}

.recommendation-item-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recommendation-item-actions button {
    border-radius: 6px;
    padding: 10px 22px;
    gap: 6px;
}

.recommendation-item-actions button p {
    font-size: 16px;
}

.recommendation-item-actions button img {
    width: 20px;
    height: 20px;
}

.recommendation-item-price {
    font-size: 24px;
    font-weight: 600;
    color: #CDA769;
    white-space: nowrap;
}

.recommendation-item-actions button {
    margin: 0;
}

.recommendation-item-actions .favorite-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Унифицируем стили кнопок избранного в рекомендациях */
/* Убираем переопределение стилей для favorite-button в модальных окнах рекомендаций */
.footer-recommendations .favorite-button {
    background: none !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 8px !important;
    transition: background-color 0.3s !important;
}

.footer-recommendations .favorite-button:hover {
    background-color: #F0F0F0 !important;
}

.footer-recommendations .favorite-button.active {
    background-color: #FF4757 !important;
}

.footer-recommendations .favorite-button.active img {
    filter: brightness(0) invert(1) !important;
}

.footer-recommendations .favorite-button img {
    width: 20px !important;
    height: 20px !important;
}


.modal-overlay .favorite-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-overlay .favorite-button img {
    width: 20px;
    height: 20px;
}

.favorites-modal-content .favorite-button,
.cart-modal-content .favorite-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.favorites-modal-content .favorite-button img,
.cart-modal-content .favorite-button img {
    width: 20px;
    height: 20px;
}

/* ================================
    14. NOTIFICATIONS
    ================================ */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, #181818 0%, #2c2c2c 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notification-favorite .notification-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.notification-cart .notification-icon {
    background: linear-gradient(135deg, #4ECDC4, #6FE7DB);
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.notification-message {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Notification Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification.show .notification-icon {
    animation: pulse 0.6s ease-in-out;
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.notification.error {
    background: linear-gradient(135deg, #F44336 0%, #EF5350 100%);
}

/* ================================
    HEADER SEARCH STYLES DESKTOP
    ================================ */

/* Поисковая строка в хедере (скрыта по умолчанию) */
.search-bar {
    display: none;
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

/* Режим поиска - показываем поиск, скрываем навигацию */
#main-header.search-mode .desktop-nav {
    display: none;
}

#main-header.search-mode .search-bar {
    display: flex;
    animation: searchBarSlideIn 0.3s ease-out;
}

@keyframes searchBarSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-input-container {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
}

.search-input-container:focus-within {
    border-color: #CDA769;
    background: white;
    box-shadow: 0 0 0 4px rgba(205, 167, 105, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #181818;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.search-input::placeholder {
    color: #808080;
    font-weight: 400;
}

.search-submit-btn {
    background: none;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.search-submit-btn:hover {
    background: rgba(205, 167, 105, 0.1);
}

.search-submit-btn img {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.search-submit-btn:hover img {
    transform: scale(1.1);
}

/* ================================
    SEARCH RESULTS PANEL DESKTOP
    ================================ */
.search-results-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E0E0E0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 998;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-results-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-results-content {
    padding: 24px 0;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.search-results-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.search-show-all {
    background: none;
    border: none;
    color: #CDA769;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.search-show-all:hover {
    background: rgba(205, 167, 105, 0.1);
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    max-height: 350px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #F9F9FB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #FAF5F3;
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #181818;
    line-height: 1.3;
}

.search-result-category {
    margin: 0;
    font-size: 12px;
    color: #808080;
    font-weight: 400;
}

.search-result-price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #CDA769;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-no-results p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Предотвращение конфликтов */
#main-header.search-mode .mobile-menu.active {
    display: none;
}

/* ================================
   ADAPTIVE FILTERS (HIDDEN ON DESKTOP)
   ================================ */

.adaptive-filters {
    display: none;
}


/* ================================
    CHECKOUT PAGE STYLES
    ================================ */

/* Основной контейнер чекаут */
.checkout-content {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
}

/* Левая секция с формой */
.checkout-form-section {
    width: calc(55% - 15px);
}

/* Правая секция с корзиной */
.checkout-summary {
    flex: 1;
    width: calc(45% - 15px);
    background: #F9F9FB;
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Заголовки секций */
.checkout-form-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: #181818;
}

.checkout-form-section h3 {
    font-size: 24px;
    margin: 40px 0 24px 0;
    color: #181818;
}

.checkout-summary h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #181818;
}

/* Форма чекаут */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #181818;
}

.required {
    color: #F21E1E;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #D6D6D6;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #CDA769;
    box-shadow: 0 0 0 3px rgba(205, 167, 105, 0.1);
}

/* Опции доставки */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-option {
    position: relative;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.delivery-option label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.delivery-option label:hover {
    border-color: #CDA769;
    background: rgba(205, 167, 105, 0.05);
}

.delivery-option input[type="radio"]:checked + label {
    border-color: #CDA769;
    background: rgba(205, 167, 105, 0.1);
}

.delivery-option label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #D6D6D6;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.delivery-option input[type="radio"]:checked + label::before {
    border-color: #CDA769;
    background: #CDA769;
    box-shadow: inset 0 0 0 4px #fff;
}

.delivery-option-content h4 {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #181818;
}

.delivery-option-content p {
    font-size: 14px;
    color: #808080;
    margin: 0;
}

.delivery-note {
    font-size: 14px;
    color: #808080;
    font-weight: 400;
}

.delivery-price {
    font-size: 16px;
    color: #CDA769;
    font-weight: 600;
}

/* Адрес доставки */
.delivery-address-section {
    margin-top: 20px;
}

/* Опции оплаты */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-row {
    display: flex;
    gap: 16px;
}

.payment-option {
    flex: 1;
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #D6D6D6;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    height: 80px;
    box-sizing: border-box;
}

.payment-option label:hover {
    border-color: #CDA769;
    background: rgba(205, 167, 105, 0.05);
}

.payment-option input[type="radio"]:checked + label {
    border-color: #CDA769;
    background: rgba(205, 167, 105, 0.1);
}

.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon img {
    width: 32px;
    height: 32px;
}

.payment-content h4 {
    font-size: 16px;
    margin: 0;
    color: #181818;
}

/* Корзина товаров */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.checkout-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
}

.checkout-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-item-info h5 {
    font-size: 16px;
    margin: 0;
    color: #181818;
}

.checkout-item-info p {
    font-size: 14px;
    color: #808080;
    margin: 0;
}

.checkout-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.checkout-item-price {
    font-size: 18px;
    font-weight: 600;
    color: #181818;
}

.checkout-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #D6D6D6;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkout-item-quantity button:hover {
    background: #181818;
    color: #fff;
}

.checkout-item-quantity span {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Промокод */
.promo-section {
    margin-bottom: 24px;
}

.promo-section .form-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.promo-section input {
    flex: 1;
}

.checkout-item-controls {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.remove-from-checkout {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #616161;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-from-checkout:hover {
    background-color: #ffebee;
    color: #f44336;
}

.remove-from-checkout img {
    width: 24px;
    height: 24px;
}

/* Итоговая сумма */
.order-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #E0E0E0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.total-row span:first-child {
    color: #808080;
}

.total-row span:last-child {
    color: #181818;
    font-weight: 500;
}

.total-final {
    font-size: 20px;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
    margin-top: 12px;
}

.total-final span {
    color: #181818 !important;
}

/* Кнопки действий */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-submit-btn,
.continue-shopping-btn {
    width: 100%;
    justify-content: center;
}

/* Уведомление о конфиденциальности */
.privacy-notice {
    font-size: 12px;
    color: #808080;
    text-align: center;
    line-height: 1.4;
}

.privacy-notice a {
    color: #CDA769;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* ================================
   DESKTOP OVERRIDES (1280px+)
   ================================ */
@media (min-width: 1280px) {
    /* Показываем боковые фильтры на десктопе */
    .sidebar-filters {
        display: block !important;
        flex: 0 0 280px;
        background: #fff;
        padding: 0;
        max-width: 200px;
    }
    
    /* Скрываем adaptive-filters на десктопе */
    .adaptive-filters {
        display: none !important;
    }
    
    /* Возвращаем горизонтальную раскладку для catalog-content */
    .catalog-content {
        display: flex !important;
        flex-direction: row !important;
        gap: 30px !important;
        align-items: flex-start !important;
    }
    
    /* Возвращаем горизонтальную раскладку для catalog-controls */
    .catalog-controls {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 32px !important;
        padding: 0 !important;
    }
    
    /* Возвращаем нормальные размеры для sort-dropdown */
    .sort-dropdown {
        width: auto !important;
    }
    
    .sort-btn {
        width: auto !important;
        font-size: 16px !important;
        padding: 12px 20px !important;
        min-width: 200px !important;
    }
    
    .sort-option {
        font-size: 16px !important;
        padding: 12px 20px !important;
    }
    
    /* Возвращаем нормальные стили для filter-pills */
    .catalog-filter-pills {
        width: auto !important;
        justify-content: flex-start !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        flex-wrap: wrap !important;
    }
    
    .catalog-filter-pills .filter-pill {
        padding: 10px 20px !important;
        font-size: 16px !important;
        flex-shrink: 1 !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }

    
}

/* Добавить в конец файла или в соответствующую секцию */

/* Варианты товара */
.product-variants {
    margin: 24px 0;
}

.variants-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-option {
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.variant-option:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variant-option.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.15);
}

.variant-option.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f8f8;
}

.variant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.variant-name {
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

.variant-price {
    font-weight: 600;
    font-size: 18px;
    color: #007bff;
}

.variant-sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.variant-stock {
    font-size: 14px;
}

.in-stock {
    color: #28a745;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .variant-option {
        padding: 12px;
    }
    
    .variant-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .variant-name {
        font-size: 15px;
    }
    
    .variant-price {
        font-size: 16px;
    }
}