            html {
                scroll-behavior: smooth;
            }
            body {
                margin: 0;
                font-family: "Ysabeau Office", sans-serif;
            }
            .header-first-line-container {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                border-bottom: 1px solid #f2f2f2;
            }
            .header-first-line-content {
                width: 1200px;
                height: 37px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #aaaaaa;
                font-size: 14px;
                font-weight: 300;
            }
            .header-first-line-content-left {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                gap: 0 10px;
            }
            .header-first-line-content-left div {
                filter: grayscale(1);
                cursor: pointer;
                transition: 0.5s ease;      
            }
            .header-first-line-content-left div:hover {
                filter: grayscale(0);     
            }
            .header-first-line-content-left img {
                width: 20px;
                height: 20px;
            }
            .header-first-line-content-left-phone {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                cursor: pointer;
                transition: 0.5s ease;
            }
            .header-first-line-content-left a {
                color: #999999;
                text-decoration: none;
            }
            .header-first-line-content-left-phone:hover {
                color: #000;
            }
            .header-first-line-content-left-phone img {
                width: 20px;
                height: 20px;
                padding-right: 4px;
            }
			.header-adress {
				display: block;
			}
            .header-second-line-container {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
            }
.header-second-line-content {
    width: 1200px;
    height: 140px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
}

.header-second-line-content-left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.header-second-line-content-center {
    justify-self: center;
}

.header-second-line-content-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.icon-wrapper {
    display: inline-block;
    text-align: center;
    position: relative; /* для ::after */
    margin: 0 0px;
}

.icon-wrapper img {
    padding: 15px;
    cursor: pointer;
    transition: 0.5s;
    filter: contrast(0);
}

.icon-wrapper img:hover {
    filter: contrast(1);
}

/* Подпись под картинкой */
.icon-wrapper::after {
    content: attr(data-title); /* берём текст из data-title */
    position: absolute;
    left: 50%;
    bottom: -5px; /* немного ниже картинки */
    transform: translateX(-50%);
    font-size: 12px;
    color: #000;
    opacity: 0; /* скрыто по умолчанию */
    transition: opacity 0.3s;
    white-space: nowrap;
}

.icon-wrapper:hover::after {
    opacity: 1;
}

            .header-main-logo-image {
                cursor: pointer;
                transition: 0.7s;
            }
            .header-main-logo-image:hover {
                -webkit-filter: grayscale(100%);
                filter: grayscale(100%);
            }
            .header-third-line-container {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .header-third-line-container.sticky {
                position: fixed;
                top: 0;
                left: 0;
                z-index: 999;
                background: #fff;
                box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            }

            .header-third-line-content {
                width: 1200px;
                height: 50px;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                color: #000;
                font-size: 20px;
                font-weight: 500;
                position: relative;
            }
            
            .header-third-line-content a {
                color: #000;
                text-decoration: none;
            }
            .header-third-line-content a:hover {
                color: #C90254;
                text-decoration: underline;
            }
            
            .header-third-line-content-main-button {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 50px;
                padding: 0 25px;
                background-color: #C90254;
                color: #ffffff;
                cursor: pointer;
                user-select: none;
            }
            .header-third-line-content-main-menu {
                position:absolute;
                width: calc(100% - 100px);
                top:100%;
                left:0;
                border:1px solid #dddddd;
                background-color: #ffffff;
                z-index:100;
                padding: 15px 50px 20px 50px;
                display: none;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                flex-flow: row wrap;
            }
            .header-third-line-content-main-menu::after {
              content: "";
              flex: auto;
            }
            .header-third-line-content-main-menu a:hover {
                text-decoration: none;
            }
            .header-third-line-content-main-menu-link {
                padding: 15px 30px;
                cursor: pointer;
                transition: 0.4s ease;
                color: #555555;
            }
            .header-third-line-content-main-menu-link:hover {
                color: #000000;
                transform: translateX(6px);
            }
            .burger {
                width: 22px;
                height: 18px;
                position: relative;
                margin-right: 25px;
            }

            .burger span {
                display: block;
                position: absolute;
                height: 2px;
                width: 100%;
                background: #fff;
                left: 0;
                transition: 0.25s ease;
            }

            .burger span:nth-child(1) {
                top: 0px;
            }

            .burger span:nth-child(2) {
                top: 8px;
            }

            .burger span:nth-child(3) {
                bottom: 0px;
            }

            #main-burger-button:hover .burger:not(.open) span:nth-child(1) {
                top: 16px;
            }

            #main-burger-button:hover .burger:not(.open) span:nth-child(3) {
                bottom: 16px;
            }

            .burger.open span:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }

            .burger.open span:nth-child(2) {
                opacity: 0;
            }

            .burger.open span:nth-child(3) {
                transform: translateY(-8px) rotate(-45deg);
            }
            .header-third-line-content-regular-link {
                padding: 0 30px;
                cursor: pointer;
                transition: 0.7s ease;
            }
            .header-third-line-content-regular-link:hover {
                color: #C90254;
                text-decoration: underline;
            }
            .image-slider {
                width: 100%;
                height: 450px;
                overflow: hidden;
                background: #fff;
                display: grid;
                place-items: center;
                position: relative;
            }

            .image-slider img {
                height: 100%;
                min-width: 1200px;
                width: auto;
                max-width: none;
            }

            .slide-image {
                opacity: 0;
                visibility: hidden; 
                transition: opacity 0.8s ease, visibility 0.8s ease; 
                grid-area: 1 / 1;  
                cursor: pointer;
            }

            .image-slider .active {
                opacity: 1;
                visibility: visible;   
                z-index: 1; 
            }

            .image-slider-buttons {
                position: absolute;
                bottom: 20px;
                margin: 0 auto;
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                z-index: 10;   
            }

            .image-slider-buttons .active {
                background-color: #333333;
            }

            .image-slider-buttons-item {
                width: 40px;
                height: 8px;
                background-color: rgba(0,0,0,0.2);
                cursor: pointer;
                transition: background-color 0.7s ease;
            }

            .image-slider-buttons-item:hover {
                background-color: #333333;
            }
            .products-container {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            .products-content {
                width: 1200px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #555555;
                font-size: 18px;
                font-weight: 300;
                flex-wrap: wrap;
                flex-flow: row wrap;
            }
            .products-content::after {
              content: "";
              flex: auto;
            }
            .products-content-title-wrap {
                width: 100%;
                text-align: center;
                margin: 40px 0;
            }

            .products-content-title-main {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                margin-bottom: 0px; 
            }

            .products-content-title-main::before,
            .products-content-title-main::after {
                content: "";
                flex: 1;
                height: 1px;
                background: #ddd;
                transform: translateY(5px); 
            }

            .products-content-title-main h1 {
                margin: 0 30px;
                padding: 5px 30px;
                font-size: 44px;
                font-weight: 700;
                background: #fff;
                color: #333;
            }
            .products-content-title-main h3 {
                margin: 0 30px;
                padding: 10px 30px;
                font-size: 36px;
                font-weight: 700;
                background: #fff;
                color: #333;
            }

            .products-content-title-wrap h2 {
                margin: 0;
                font-size: 30px;
                font-weight: 600;
                color: #333;
            }
            .main-product-thumb-item {
                width: calc(25% - 20px);
                text-align: center;
                padding: 20px 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
				position: relative;
            }

            .main-product-thumb-item img {
                max-width: 80%;
                max-height: 80%;
                margin-bottom: 10px;
            }

            .main-product-thumb-item .title {
                font-size: 20px;
                color: #333;
                margin-bottom: 8px;
                font-weight: 600;
                text-align: left;
                width: 100%;
            }

            .main-product-thumb-item .price {
                font-size: 20px;
                font-weight: 600;
                color: #d60000;
                text-align: left;
                width: 100%;
            }
            .price .quantity {
                color: #999;
                font-weight: 300;
                font-size: 16px;
                margin-left: 0px;
            }
            .follow-container {
                width: 100%;
                height: 160px;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: #F4F4F4;
                border-top: 1px solid #E5E5E5;
                border-bottom: 1px solid #E5E5E5;
                margin-top: 30px;
            }
            .follow-content {
                width: 1200px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #333;
                font-size: 18px;
                font-weight: 300;
            }
            .follow-content-wrap {
                display:flex;
                justify-content: flex-start;
                align-items: center;
            }
            .follow-content-wrap img {
                padding-right: 60px;
                width: 80px;
                height: 80px;
                filter: grayscale(1);
                transition: 0.7s ease;
                cursor: pointer;
            }
            .follow-content-wrap img:hover {
                filter: grayscale(0);
            }
            .follow-content-title {
                text-transform: uppercase;
                font-size: 32px;
                font-weight: 800;
            }
            .follow-content-description {
                font-size: 20px;
                font-weight: 500;
                margin-top: 8px;
            }
            
            .about-container {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: #FFF;
                border-bottom: 1px solid #E5E5E5;
                padding: 0 0 50px 0;
            }
            .about-content {
                width: 1200px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #555555;
                font-size: 18px;
                font-weight: 300;
                flex-wrap: wrap;
            }
            .about-content-text {
                display: block;
                flex-wrap: nowrap;
            }
            
            .b2b-container {
                width: 100%;
                display: flex;
                justify-content: center;
                background: #FFF;
            }

            .b2b-content {
                width: 1200px;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                color: #555;
                font-size: 18px;
                font-weight: 300;
                flex-wrap: wrap;
                gap: 40px;
            }

            /* Левая колонка */
            .b2b-form-wrap {
                width: 360px;
            }

            .b2b-form-title {
                font-size: 26px;
                font-weight: 600;

                color: #333;
            }

            .b2b-form {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .b2b-input {
                padding: 12px 15px;
                border: 1px solid #E5E5E5;
                border-radius: 6px;
                font-size: 16px;
                color: #555;
            }

            .b2b-submit {
                padding: 14px 20px;
                background-color: #C90254;
                color: #fff;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-size: 16px;
                transition: 0.25s;
            }

            .b2b-submit:hover {
                background-color: #E92274;
            }

            .b2b-text {
                width: calc(100% - 420px);
                line-height: 1.55;
            }

            .b2b-text p {
                margin-bottom: 22px;
            }

            .prefooter-container {
                width: 100%;
                padding: 40px 0;
                display: flex;
                justify-content: center;
                background: #fff;
            }

            .prefooter-content {
                width: 1200px;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                color: #555;
                font-size: 14px;
                font-weight: 300;
            }

            .prefooter-column {
                width: 33%;
                padding-right: 20px;
            }

            .prefooter-column h3 {
                font-size: 22px;
                color: #222;
                margin-bottom: 15px;
                font-weight: 600;
            }
            .prefooter-column img {
                width: 100%;
                filter: grayscale(1);
                cursor: pointer;
                transition: 0.7s ease;
            }
            .prefooter-column img:hover {
                filter: grayscale(0);
            }
            .prefooter-phone {
                font-size: 34px;
                font-weight: 700;
                color: #333;
                margin-bottom: 10px;
            }
            .prefooter-phone a {
                color: #333;
                text-decoration: none;
                transition: 0.5s ease;
            }
            .prefooter-phone a:hover {
                color: #C90254;
            }
            .prefooter-column p {
                line-height: 1.6;
            }

            .prefooter-column select {
                margin-top: 10px;
                padding: 6px 8px;
                border: 1px solid #ddd;
                font-size: 14px;
                color: #555;
            }

            .prefooter-news {
                list-style: none;
                padding: 0;
                margin: 0 0 10px 0;
            }

            .prefooter-news li {
                margin-bottom: 8px;
                line-height: 1.4;
            }

            .prefooter-more {
                color: #777;
                font-size: 13px;
                text-decoration: none;
            }

            .prefooter-more:hover {
                color: #000;
            }

            .footer-container {
				margin-top: 20px;
                width: 100%;
                padding: 30px 0;
                display: flex;
                justify-content: center;
                background: #fff;
                border-top: 1px solid #e5e5e5;
            }

            .footer-content {
                width: 1200px;
                display: block;
                text-align: center
                color: #555;
                font-size: 14px;
                font-weight: 300;
            }

            .footer-links {
                display: flex;
                justify-content: center;
                gap: 40px;
                margin: 0 auto;
            }

            .footer-links a {
                color: #555;
                font-size: 14px;
                font-weight: 300;
                text-decoration: none;
            }

            .footer-links a:hover {
                color: #000;
            }
            .copyright {
                text-align: center;
                color: #555;
            }
            .anchor-offset {
                scroll-margin-top: 80px; 
            }

/* Серый блок заголовка категории */
.category-title-container {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 40px;
}

.category-title-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
	border-bottom: 1px solid #ccc;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
	text-align: left;
}

/* Товары: выравнивание */
.main-product-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Для выравнивания в строке */
    padding: 20px 10px;
    box-sizing: border-box;
}

.main-product-thumb-item img {
    max-width: 80%;
    max-height: 200px; /* Сделали картинку поменьше */
    margin-bottom: 15px;
    object-fit: contain;
}

.main-product-thumb-item .title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    flex-grow: 1; /* Растягиваем для выравнивания */
    display: flex;
    align-items: center; /* Вертикальное центрирование текста */
    justify-content: center;
    min-height: 60px; /* Мин. высота по самому длинному названию — скорректируйте */
}

.main-product-thumb-item .price {
    font-size: 20px;
    font-weight: 600;
    color: #d60000;
    margin-bottom: 5px;
    width: 100%;
}

.price .quantity {
    color: #999;
    font-weight: 300;
    font-size: 16px;
}
.search-container {
	border-bottom: 2px solid black;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	position: relative;
}
.search-main {
	width: 200px;
	border: 0;
	padding: 10px;
	outline: 0;
	font-family: "Ysabeau Office", sans-serif;
}
.search-button {
	cursor: pointer;
	transition: 0.5s;
	position: absolute;
	right: 4px;
	top:6px;
}
.price-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.price-row {
    display: flex;
    align-items: center;
    height: 32px;
	border: 1px solid #ddd;
	margin-top: -1px;
}

/* Цена + фасовка одной строкой слева */
.price-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    border: none;
    background: transparent;
    font-family: "Ysabeau Office", sans-serif;
    white-space: nowrap;
}

.price-value {
    font-weight: 700;
	font-size: 16px;
	color: #C90254;
}

.price-quantity {
    font-size: 12px;
    color: #666;
}

/* Контрол количества — ВСЕГДА одинаковые отступы */
.qty-control {
    width: 72px;
    padding: 0 6px;   /* ← фиксируем */
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Кнопки */
.qty-control button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
	border-radius: 100%;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.qty-control button:hover {
    background: #C90254;
    color: #fff;
}

.qty-value {
    width: 24px;
    text-align: center;
    font-size: 13px;
}
.category-thumbnail-image {
	padding: 0;
	transition: 0.5s;
}
.category-thumbnail-image:hover {
	transform: scale(115%);
}
.category-thumbnail-image img {
	padding: 0;
	max-width: 100%;
	
}
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.auth-form .required {
    color: #d00;
}

.auth-form .checkbox {
    margin: 20px 0;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #C90254;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e0226e;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
}

.alert.success {
    background: #d4edda;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #C90254;
    text-decoration: none;
    font-weight: 500;
}
.auth-form .checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;          /* расстояние между чекбоксом и текстом */
    cursor: pointer;
}

/* Только текстовые поля */
.auth-form input:not([type="checkbox"]) {
    width: calc(100% - 26px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

/* Чекбокс */
.auth-form input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
}
.favourite-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.15s ease;
    z-index: 5;
}

/* Наведение на карточку — ТОЛЬКО если НЕ active */
.main-product-thumb-item:hover .favourite-icon:not(.active) {
    opacity: 0.5;
}

/* Наведение именно на иконку */
.favourite-icon:hover {
    opacity: 1;
}

/* Активное состояние — всегда видно */
.favourite-icon.active {
    opacity: 1;
}

/* Нажатие */
.favourite-icon:active {
    transform: scale(1.3);
}

/* =====================================================================
   Универсальный центрированный контейнер + адаптивность
   ===================================================================== */

/* Базовый контейнер */
.container {
    width: 100%;
    max-width: 1240px;          /* чуть больше 1200 — запас на паддинги */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Для старых страниц, где уже используется 1200px */
.container-1200 {
    composes: container;
    max-width: 1220px;          /* 1200 + 2×10px запас */
}

/* Варианты с разными отступами */
.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1400px;
}

/* =====================================================================
   Адаптивность
   ===================================================================== */

@media (max-width: 1300px) {
    .container {
        max-width: 1140px;
        padding: 0 16px;
    }
}

@media (max-width: 992px) {    /* ≈ ноутбуки, планшеты */
    .container,
    .container-1200,
    .container-narrow,
    .container-wide {
        max-width: 100%;
        padding: 0 16px;
    }

    /* Часто полезно для карточек товаров */
    .products-content {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {    /* планшеты вертикально, мобильные */
    .container {
        padding: 0 12px;
    }

    .products-content {
        gap: 16px;
    }

    /* Дополнительно уменьшаем заголовки, если нужно */
    .category-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {    /* маленькие телефоны */
    .container {
        padding: 0 10px;
    }

    .products-content {
        gap: 12px;
    }
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
