/* === DESKTOP STYLES === */

/* === БЛОК: Hero-блок (текст и кнопка): НАЧАЛО === */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
}

.hero__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-top: 18px;
    margin-bottom: 34px;
    position: relative;
    z-index: 2;
}

.hero__btn {
    background: #e51f42;
    color: #fff;
    font-size: 1.14rem;
    padding: 17px 34px;
    border-radius: 28px;
    box-shadow: 0 5px 14px rgba(221,35,73,.12);
    text-decoration: none;
    transition: .2s;
    position: relative;
    z-index: 2;
}

.hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(221,35,73,.2);
}
/* === БЛОК: Hero-блок (текст и кнопка): КОНЕЦ === */


/* === БЛОК: Hero-блок (видео и оверлей): НАЧАЛО === */
.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}
/* === БЛОК: Hero-блок (видео и оверлей): КОНЕЦ === */


/* === БЛОК: Заголовки секций: НАЧАЛО === */
.benefits__title,
.categories__title,
.before-after__title,
.reviews__title {
    font-family: 'Montserrat', serif;
    font-size: 1.5rem;
    color: #18171a;
    margin: 20px 0;
    text-align: center;
}
/* === БЛОК: Заголовки секций: КОНЕЦ === */


/* === БЛОК: Преимущества — карточки: НАЧАЛО === */
.benefits__items {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.benefits__item {
    flex: 1 1 calc((100% - 3 * 24px) / 4);
    max-width: calc((100% - 3 * 24px) / 4);
    box-sizing: border-box;
    padding: 36px 24px;
    min-height: 320px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
}

.benefits__item img {
    display: block;
    margin: 0 auto 15px auto;
    max-width: 80px;
    height: auto;
}

.benefits__item h3 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #18171a;
}

.benefits__item p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}
/* === БЛОК: Преимущества — карточки: КОНЕЦ === */


/* === БЛОК: Категории — карточки: НАЧАЛО === */
#categories {
    scroll-margin-top: 100px;
}

.categories__items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.categories__item {
    flex: 1 1 calc((100% - 4 * 20px) / 5);
    max-width: calc((100% - 4 * 20px) / 5);
    box-sizing: border-box;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.categories__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #fff;
    flex-shrink: 0;
}

.categories__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #18171a;
    padding: 16px 10px 18px;
    display: block;
    line-height: 1.3;
}
/* === БЛОК: Категории — карточки: КОНЕЦ === */


/* === БЛОК: Hover эффекты карточек: НАЧАЛО === */
.benefits__item:hover,
.categories__item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
/* === БЛОК: Hover эффекты карточек: КОНЕЦ === */


/* === БЛОК: Адаптивность: НАЧАЛО === */
@media (max-width: 1199px) {
    .benefits__item {
        flex: 1 1 calc(33.33% - 24px);
        max-width: calc(33.33% - 24px);
    }

    .categories__item {
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 767px) {
    .benefits__items,
    .categories__items {
        padding: 0 16px;
    }

    .benefits__item,
    .categories__item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__btn {
        font-size: 1rem;
        padding: 14px 28px;
    }

    .categories__item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .categories__name {
        font-size: 1rem;
        font-weight: 600;
        color: #18171a;
    }

    .desktop-slider {
        display: none !important;
    }

    .mobile-slider {
        display: block !important;
    }
}
/* === БЛОК: Адаптивность: КОНЕЦ === */


/* === БЛОК: Общие правки: НАЧАЛО === */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.desktop-slider {
    display: block;
}

.mobile-slider {
    display: none;
}
/* === БЛОК: Общие правки: КОНЕЦ === */

/* === БЛОК: SEO-блок: НАЧАЛО === */
.seo-text {
    max-width: 1000px;
    margin: 80px auto 60px;
    padding: 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

.seo-text__title {
    font-family: 'Montserrat', serif;
    font-size: 1.2rem;
    color: #18171a;
    margin: 18px 0;
    text-align: center;
}

.seo-text__content a {
    color: #18171a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.seo-text__content a:hover {
    color: #e51f42;
}
/* === БЛОК: SEO-блок: КОНЕЦ === */


/* === БЛОК: Якоря и плавная прокрутка: НАЧАЛО === */
html {
  scroll-behavior: smooth;
}

:target::before {
  content: "";
  display: block;
  height: 80px;
  margin-top: -80px;
}
/* === БЛОК: Якоря и плавная прокрутка: КОНЕЦ === */

.header,
.header__mobile-menu,
.header__mobile-menu-btn {
    z-index: 9999 !important;
    position: relative;
}
.header__mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: none;
    overflow-y: auto;
}

.header__mobile-menu.active {
    display: block;
}
.header__mobile-menu {
    text-align: left !important;
    padding: 20px;
}

.header__mobile-menu a {
    display: block;
    text-align: left;
    padding: 12px 0;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    color: #18171a;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.header__mobile-menu a:hover {
    color: #e51f42;
}