:root {
    --font-main: 'Onest', sans-serif;
    --color-primary: #46a6ff;     /* Ярко-голубой для кнопок и акцентов */
    --color-dark: #010722;        /* Темно-синий/черный для текста и лого */
    --color-text: #8d9ba7;        /* Серый для второстепенного текста */
    --color-light: #f0f6fb;       /* Светло-серый фон для инпутов */
    --color-border: #c9d6e1;      /* Цвет линий и границ */
    --color-icon: #b1bfcc;        /* Цвет иконок */
    --color-white: #ffffff;
    --container-width: 1530px;    /* Максимальная ширина контента с отступами */
    --transition: all 0.25s ease-in-out;
}

/* ── Сброс нативных стилей кнопок/инпутов внутри главной (не трогает остальной сайт) ── */
/* :where() держит нулевую специфичность, чтобы классы вроде .product-card__btn-buy
   всегда побеждали и задавали свой background/border поверх сброса */
/* background НЕ сбрасывается здесь: все кнопки внутри .main-content задают
   свой background-color через собственный BEM-класс (в т.ч. .product-card__btn-buy
   из product-card.css, который может загружаться раньше home.css) */
.main-content :where(button, input) {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* ── Общий контейнер главной (не .container — не пересекается с общим сайтовым) ── */
.home-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 45px;
    width: 100%;
}

.hero-section {
    padding: 15px 0 0;
}

.hero-slider {
    width: 100%;
    border-radius: 26px;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}
.hero-slider .swiper-wrapper {
    align-items: stretch;
}
.hero-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 55px 65px;
    min-height: 480px;
    position: relative;
    box-sizing: border-box;
    height: auto;
}
.hero-slide.main-bg:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: var(--color-primary) url('../images/home/slide-bg.png') no-repeat center center;
    -webkit-background-size: cover;
    background-size: cover;
}

.hero-slide__bg-text {
    width: 600px;
    max-width: 50%;
    text-align: center;
    position: absolute;
    z-index: 2;
    right: 5%;
    top: 40px;
    font-size: 120px;
    letter-spacing: 0;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
    font-family: var(--font-main);
    color: transparent;
    -webkit-text-stroke: .5px rgba(255, 255, 255, 0.4);
}
.hero-slide__content {
    max-width: 550px;
    position: relative;
    z-index: 5;
}

.hero-slide__title {
    font-size: 52px;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.19;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-slide__subtitle {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 50px;
    font-weight: 300;
}

.hero-slide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 21px 45px;
    background-color: #d1e9ff;
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 500;
    border-radius: 16px;
    transition: var(--transition);
}

.hero-slide__btn:hover {
    background-color: var(--color-white);
}
.hero-slide__image {
    position: absolute;
    right: 5%;
    bottom: 0;
    max-width: 650px;
    z-index: 2;
}

.hero-slide__image img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-slider__pagination.swiper-pagination-bullets {
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.hero-slider__pagination .swiper-pagination-bullet {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 !important;
    transition: var(--transition);
}

.hero-slider__pagination .swiper-pagination-bullet-active {
    background-color: var(--color-white);
    width: 58px;
}

/** advantages-section */
.advantages-section {
    padding: 40px 0 0;
    background-color: var(--color-white);
}

.advantages-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

.advantages-item {
    display: flex;
    gap: 25px;
    flex: 1;
    padding: 0 30px;
    box-sizing: border-box;
}

.advantages-item:first-child {
    padding-left: 0;
}

.advantages-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.advantages-item__icon {
    font-size: 45px;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
}
.advantages-item__icon .icon-adv-1 {
    font-size: 50px;
}
.advantages-item__icon .icon-adv-2 {
    font-size: 45px;
}
.advantages-item__icon .icon-adv-3 {
    font-size: 43px;
}
.advantages-item__icon .icon-adv-4 {
    font-size: 48px;
}
.advantages-item__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.advantages-item__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.2;
}

.advantages-item__text {
    font-size: 16px;
    color: var(--color-dark);
    line-height: 1.5;
    font-weight: 300;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 25px;
}
.categories-section .section-title {
    margin-bottom: 0;
}

/* .categories-section/.category-card — вынесено в общий category-card.css (сайтвайд) */

/* популярные категории */
.subcategories-section {
    padding: 60px 0 20px;
    background-color: var(--color-white);
}

.subcategories-section__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}
.subcategories-tag {
    display: inline-flex;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--color-light);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    width: auto !important;
    cursor: pointer;
}

.subcategories-tag:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.subcategories-slider-wrapper:not(.swiper-wrapper) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* хиты продаж и новинки — теперь рендерятся общим компонентом product_cards_slider
   (.products-section/.products-slider__track/.products-section__dot из main.css);
   .products-slider__pagination (для промо-слайдера) остаётся в promo-section.css */

/* Заголовки блоков product_cards_slider на главной — под общий масштаб секций */
.page-home .products-section__title {
    font-family: var(--font-main);
    font-size: 38px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 25px;
}

/* немного о нас */
.about-section {
    position: relative;
    padding: 140px 0 30px 0;
    background-color: var(--color-light);
    overflow: hidden
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background-color: var(--color-white);
    border-radius: 0 0 40px 40px;
    z-index: 1;
}
.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--color-white);
    border-radius: 40px 40px 0 0;
    z-index: 5;
}
.about-section .home-container {
    position: relative;
    z-index: 5;
}
.about-stats.swiper {
    margin-bottom: 10px;
}

.about-stats__wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
    transform: none !important;
}
.about-card {
    background: linear-gradient(0deg, var(--color-light) 0%, var(--color-white) 100%);
    border-radius: 26px;
    padding: 50px 30px;
    box-sizing: border-box;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    height: auto;
    /*width: auto !important;*/
}
.about-card__num {
    font-size: 82px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.about-card__num span {
    font-size: 38px;
    font-weight: 700;
}
.about-card__num .about-card__num-perc {
    font-size: 58px;
}
.about-card__text {
    font-size: 22px;
    color: var(--color-dark);
    line-height: 1.4;
    max-width: 298px;
    font-weight: 300;
}
.about-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}
.about-content__info {
    max-width: 780px;
    padding-bottom: 72px;
}
.about-content__text-block {
    font-size: 18px;
    color: var(--color-dark);
    line-height: 1.77;
    margin-bottom: 30px;
    font-weight: 300;
}
.about-content__text-block p:last-child {
    margin-bottom: 0;
}
.about-content__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    font-size: 18px;
}
.about-content__link span {
    text-decoration: underline;
}
.about-content__link i {
    font-size: 12px;
    transition: transform 0.25s ease-in-out;
    text-decoration: none;
}
.about-content__link:hover i {
    transform: translateX(5px);
}
.about-content__image {
    flex-shrink: 0;
    width: 40%;
    max-width: 440px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}
.about-content__image img {
    width: 100%;
    height: auto;
    display: block;
}

/** выгодные предложения */
.section__link-all {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
    letter-spacing: 0;
}

.section__link-all:hover {
    color: var(--color-dark);
}

/* .promo-section/.promo-card — вынесено в product-card.css-подобный общий файл promo-section.css (сайтвайд) */

/* новости */
.news-section {
    padding: 60px 0 0;
    background-color: var(--color-white);
}

.news-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.news-section__title {
    margin-bottom: 0;
}
.news-slider {
    width: 100%;
    overflow: hidden;
}

.news-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.news-card {
    display: flex;
    flex-direction: column;
    height: auto;
    background-color: var(--color-white);
}
.news-card__link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.news-card__image-box {
    width: 100%;
    height: 280px;
    background-color: var(--color-light);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.news-card__image-box img:not(.news-card__stub-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card__image-box--stub {
    align-items: center;
}

.news-card__stub-img {
    width: 300px;
    max-width: 80%;
    height: auto;
}
.news-card__body {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 15px;
    transition: var(--transition);
}

.news-card__title a:hover {
    color: var(--color-primary);
}
.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 16px;
}

.news-card__more {
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: underline;
    position: relative;
    z-index: 2;
}

.news-card__more:hover {
    color: var(--color-dark);
}

.news-card__date {
    color: var(--color-text);
    font-weight: 400;
}
.news-card:hover .news-card__title {
    color: var(--color-primary);
}
/* футер */
