@font-face {
    font-family: 'Manrope';
    src:
        url('../fonts/Manrope-VariableFont_wght.ttf');
      

}
@font-face {
    font-family: 'Onest';
    src:
        url('../fonts/Onest-VariableFont_wght.ttf');
      

}
@font-face {
    font-family: 'SF Compact Display';
    src:
        url('../fonts/SF-Compact-Display-Light.ttf');
      
    font-weight: 300;
}

@font-face {
    font-family: 'SF Compact Display';
    src:
        url('../fonts/SF-Compact-Display-Medium.ttf');
      
    font-weight: 500;
}

@font-face {
    font-family: 'SF Compact Display';
    src:
        url('../fonts/SF-Compact-Display-Regular.ttf');
      
    font-weight: 400;
}

@font-face {
    font-family: 'SF Compact Display';
    src:
        url('../fonts/SF-Compact-Text-LightItalic.ttf');
      
    font-weight: 300;
    font-style: italic;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    font-family: 'SF Compact Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: black;
}
a, button, .header-link, .h-btn, .btn, .adv-item, img {
    transition: 0.4s ease-in-out;
}
.container {
    max-width: 1695px;
    margin: 0 auto;
    padding: 0 15px;
}

.manrope {
    font-family: "Manrope";
}

.onest {
    font-family: "Onest";
}

body { 
    background-color: #F5F5F7;
    font-size: 20px;
}

@media (max-width: 1000px) {
    body {
        font-size: 18px;
    }

    .home-cat-down {
        height: 150px;
    }
}

@media (max-width: 780px) {
    body {
        font-size: 16px;
    }

}


@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

}

@media (max-width: 375px) {
    body {
        font-size: 12px;
    }

}

/* header */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 40px 15px 0 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.header-nav {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.h-nav-cat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.h-nav-cat a,
.header-link:hover {
    color: black;
}

.header-link {
    text-transform: uppercase;
    color: #7A7A7A;
}

.header-btns,
.header-socials-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btns img {
    cursor: pointer;
}

.header-btns img:hover,
.h-phone:hover {
    opacity: 0.7;
}

.h-max {
    display: flex;
    align-items: center;
    gap: 8px;
}

.h-max img:hover {
    opacity: 0.7;
}

.h-max p,
.h-phone {
    font-weight: 500;
}

.header-btn-box {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.h-btn {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid white;
    background-color: white;
    cursor: pointer;
}

.h-btn:hover {
    box-shadow: 0 4px 12px rgba(89, 89, 89, 0.15) !important;
}

.h-nav-cat {
    position: relative;
    cursor: pointer;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* начальное состояние */
.catalog-dropdown {
    position: absolute;
    top: 110%;
    /* чуть ниже для анимации */
    left: 0;

    background: white;
    border-radius: 12px;
    padding: 30px;

    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 15px;
    min-width: 400px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;

    /* анимация */
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        visibility 0.6s;
}

.catalog-dropdown a {
    background-color: #7a7a7a2b;
    border-radius: 20px;
    padding: 20px;
    color: #000;
    text-transform: lowercase;
}

.catalog-dropdown a:hover {
    color: #FF2527;
}

.catalog-dropdown a::first-letter {
    text-transform: uppercase;
    /* Затем первая буква заглавная */
}

@media (min-width: 1052px) {
    .h-nav-cat:hover .catalog-dropdown {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        display: grid;
        grid-template-columns: repeat(3, 250px);
    }

    .h-nav-cat:hover img {
        transform: rotate(180deg);
    }
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 300;
}

.burger span {
    width: 30px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: 0.4s cubic-bezier(.4, 0, .2, 1);
}

/* крестик */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* При открытом меню бургер фиксирован */
body.menu-open .burger {
    position: fixed;
    top: 55px;
    right: 15px;
    z-index: 302;
}

@media (max-width: 1600px) {

    .header-link,
    .header-btns a,
    .header-btns p {
        font-size: 16px;
    }

    .h-nav-cat img {
        width: 20px;
    }

    .catalog-dropdown a {
        font-size: 16px;
    }
}

@media (max-width: 1360px) {
    .catalog-dropdown a{
        font-size: 20px;
    }
    .header-link,
    .header-btns a,
    .header-btns p {
        font-size: 20px;
    }

    .header-left {
        gap: 45px;
    }

    .logo {
        width: 215px;
    }

    .header-btns {
        flex-direction: column;
    }

    .header-left {
        flex-direction: column;
        align-items: baseline;
    }

    header .container {
        align-items: baseline;
    }
}


/* ===== BURGER MODE ===== */
@media (max-width: 1052px) {
    header .container {
        align-items: center;
    }

    .header-btn-box .h-btn,
    .header-btn-box {
        width: 100% !important;
    }

    .burger {
        display: flex;
    }

    .header-nav,
    .header-btns {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        z-index: 200;

        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
    }

    /* открытое меню */
    .menu-open .header-nav,
    .menu-open .header-btns {
        right: 0;
    }

    /* кнопки под навигацией */
    .menu-open .header-btns {
        top: auto;
        bottom: 0;
        height: auto;
        padding-top: 50px;
    }

    /* ссылки в колонку */
    .header-nav {
        gap: 20px;
    }

    .header-link {
        font-size: 18px;
    }

    .h-nav-cat {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .h-nav-cat>a {
        width: 100%;
    }

    .h-nav-cat img {
        position: absolute;
        right: 0;
    }

    /* сам список */
    .catalog-dropdown {
        border-radius: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        background: white;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 10px;
        transition: max-height 0.35s ease;
    }

    /* открытое состояние */
    .h-nav-cat.active .catalog-dropdown {
        max-height: 300px;
        /* ограничиваем */
        overflow-y: auto;
        /* ВКЛЮЧАЕМ СКРОЛЛ */
        padding: 10px 0;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        display: grid;
        grid-template-columns: 1fr;
    }

    .h-nav-cat.active img {
        transform: rotate(180deg);
    }

    .catalog-dropdown a {
        background-color: transparent;
        width: 260px;
        padding: 5px 0;
        border-radius: 0px;
        font-size: 15px;
        border-bottom: 1px solid #e1e1e1;
    }

    /* overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        z-index: 150;
    }

    .menu-open .menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .h-btn {
        border: 1px solid #F5F5F7;
        background-color: #F5F5F7;
        text-align: center;
    }

    .h-btn:hover {
        box-shadow: 0 4px 12px rgba(89, 89, 89, 0.25) !important;
    }
}

/* footer */
footer .container {
    padding: 30px 15px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-nav p,
.footer-nav a {
    font-weight: 500;
    font-size: 0.6em;
    font-family: 'Onest', sans-serif;
}

.footer-nav a:hover {
    color: #FF2527;
}

/* banner */
.banner {
    margin-top: 20px;
}

.banner-box {
    padding: 60px 50px;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.banner-txt {
    z-index: 3;
    position: relative;
}

.ban-up-desc {
    color: #FF2527;
    font-weight: 300;
    font-style: italic;
    font-size: 1.2em;
}

h1 {
    font-size: 3.2em;
    text-transform: uppercase;
    font-weight: 700;
}

.ban-desc {
    margin: 20px 0;
    max-width: 548px;
    font-size: 1.2em;
    line-height: 29px;
}

.orange {
    color: #FF2527;
}



.btn {
    display: flex;
    font-size: 1em;
    color: white;
    gap: 10px;
    align-items: center;
    padding: 20px;
    background: #FF2527;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    max-width: 260px;
    width: max-content;
}

.btn:hover {
    background: #ce1c1f;
}

.bannergbg {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1;
}

.bannerImg {
    position: absolute;
    right: 13%;
    bottom: 0;
    z-index: 2;
}

/* popul */
.mt60 {
    margin-top: 60px;
}

h2 {
    font-size: 2.5em;
    font-weight: 300;
    text-transform: uppercase;
}

.semibold {
    font-weight: 600;
}

.popul-title-up {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.slider-btns {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

/* Стили для неактивных кнопок */
.slider-btn.swiper-button-disabled,
.slider-btn.swiper-button-disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ff6568;
    transform: none;
    pointer-events: none;
}

/* Убираем стандартные стили Swiper для кнопок */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: static;
    margin: 0;
}

.slider-btn {
    padding: 20px;
    border-radius: 20px;
    background-color: #FF2527;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    transform: scale(1.05);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Swiper контейнер */
.popul-swiper {
    margin-top: 47px;
    overflow: hidden !important;
}

.swiper-wrapper {
    align-items: stretch;
    /* ключевое */
}

.swiper-slide {
    display: flex;
    height: auto;
}

.popul-cards {
    display: flex;
}



.popul-card {
    padding: 20px;
    background-color: white;
    border-radius: 20px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}


.popul-img-box {
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
    aspect-ratio: 1/1;
}

.popul-img-box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.btn-popul-card {
    font-weight: 500;
    margin-top: auto;
    max-width: 157px;
}

.acrticul {
    color: #7A7A7A;
    font-size: 0.8em;
    margin-top: 15px;
}

.popul-title {
    margin: 10px 0 20px 0;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 48px;
    /* под 2 строки */
}

.popul-btn {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    width: 100%;
    border-radius: 20px;
    background-color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid white;
}

.popul-btn:hover {
    background-color: rgba(255, 255, 255, 0.251);
}

/* home-catalog */
.home-catalog-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 37px;
}

.home-catalog-card {
    overflow: hidden;
    border-radius: 30px;
    position: relative;
}

.home-catalog-card:nth-last-child(1) .home-cat-down {
    background: none;
    backdrop-filter: none;
}

.home-catalog-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.home-cat-down {
    border-radius: 30px;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 180px;

    background: rgba(11, 11, 11, 0.2);
    backdrop-filter: blur(4.5px);
}

.positions {
    color: white;
    margin-bottom: 10px;
    font-size: 0.8em;
}

.home-cat-title {
    color: white;
    font-weight: 700;
    font-size: 1.8em;
    text-transform: uppercase;
}

/* advantages */
.advantages .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.adv-txt-box {
    display: flex;
    flex-direction: column;
    gap: 166px;
}

.adv-desc {
    margin: 20px 0 40px 0;
    max-width: 920px;
}

.adv-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.adv-item {
    background-color: white;
    border-radius: 30px;
    border: 1px solid rgba(39, 93, 174, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.adv-item:hover {
    transform: translateY(-4px);
}

.adv-item-info {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 282px;
}

.adv-item-title {
    font-weight: 500;
}

.adv-item-desc {
    font-weight: 300;
    font-size: 0.8em;
}

.adv-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: flex-end;
}

.adv-btn-desc {
    max-width: 240px;
}

.adv-box-image {
    overflow: hidden;
    border-radius: 30px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.adv-box-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* contacts */
.contacts {
    margin-top: 80px;
}

.contacts-box {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background-color: white;
    border-radius: 30px;
    padding: 29px;
    align-items: center;
}

.contacts-txt {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contacts-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 35px;
    column-gap: 20px;
}

.contacts-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-title {
    font-weight: 500;
    font-size: 1.2em;
}

.contact-hr {
    border: 1px solid #FF2527;
}

.contact-desc {
    font-weight: 300;
}

.contacts-socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contacts-iframe {
    border-radius: 8px;
}

/* product */
.product .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product {
    margin-top: 20px;
}

.product-box-image {
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
}

.product-box-image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.product-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breadcrumbs {
    background-color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 20px;
    flex-wrap: wrap;
}

.breadcrumbs p {
    font-size: 0.5em;
}

.breadcrumb {
    font-size: 0.8em;
}

.breadcrumb:hover {
    color: #FF2527;
}

.product-box-info {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title,
.product-price {
    font-size: 2em;
}

.product-price {
    font-weight: 500;
}

.product-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs .breadcrumb:last-child {
    max-width: 21ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.product-box-desc {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
}

.product-adv-btns {
    gap: 10px;
}

@media (max-width: 1430px) {
    .contacts-box {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }

    .contacts-iframe {
        width: 700px !important;
    }
}

@media (max-width: 1260px) {
    .bannerImg {
        opacity: 0.5;
        filter: brightness(1.2) opacity(0.5);
        right: 0;
    }

    .home-catalog-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .contacts-iframe {
        width: 500px !important;
    }
}

@media (max-width: 1110px) {
    .contacts-box {
        grid-template-columns: 1fr;
    }

    .contacts-iframe {
        width: 100% !important;
        height: 200px;
    }

    .product .container {
        flex-direction: column;
    }

    .product-box-image {
        height: 400px;
    }
}

@media (max-width: 1200px) {
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 30px;
        justify-items: center;
        align-items: center;
    }

    /* Распределяем элементы по ячейкам */
    .footer-nav :nth-child(1) {
        /* © 2026 Официальный сайт... */
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .footer-nav :nth-child(2) {
        /* Политика конфиденциальности */
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .footer-nav :nth-child(3) {
        /* Политика обработки данных */
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .footer-nav :nth-child(4) {
        /* Разработка и продвижение */
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .footer-nav :nth-child(5) {
        /* img copy */
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
        margin-top: 10px;
    }

    /* advantages */
    .advantages .container {
        flex-direction: column;
    }

    .adv-box-image {
        display: none;
    }

    .adv-txt-box {
        gap: 50px;
    }
}

@media (max-width: 1000px) {
    .home-cat-down {
        height: 150px;
    }
}

@media (max-width: 900px) {
    .home-catalog-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 785px) {
    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }

    .footer-nav p,
    .footer-nav a {
        text-align: center;
        width: 100%;
    }

    .footer-nav img {
        margin-top: 5px;
    }

    .adv-items {
        grid-template-columns: 1fr;
    }

    .adv-item {
        justify-content: start;
    }
}

@media (max-width: 600px) {
    .bannerImg {
        inline-size: 50%;
    }

    .popul-btn {
        margin-top: 20px;
    }
}

@media (max-width: 550px) {
    .home-catalog-cards {
        grid-template-columns: 1fr;
    }

    .home-catalog-card {
        height: 334px;
    }

    .home-cat-down {
        height: 140px;
    }

    .socials-btns {
        flex-direction: column;
        align-items: start;
    }

    .socials-btns .btn {
        width: 100%;
    }

    .socials-btns .adv-btn-desc {
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .btn,
    .h-btn {
        font-size: 1.2em;
    }

    .product-btns {
        flex-direction: column;
        align-items: start;
    }

    .product-adv-btns {
        width: 100% !important;
    }

    .product-adv-btns .h-btn {
        width: 100% !important;
    }

    .contacts-items {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .adv-btns {
        flex-direction: column;
        align-items: start;
    }

    .adv-btns .btn {
        width: 100%;
        max-width: 100%;
    }

    .adv-btn-desc {
        max-width: 100%;
    }

    .popul-title-up {
        flex-direction: column;
        align-items: start;
    }

    .slider-btn {
        padding: 16px;
        width: 100%;
    }

    .btn-banner {
        width: 100%;
    }

    .banner-box {
        padding: 40px 30px;
    }

    .ban-desc {
        max-width: 100%;
    }

    .bannerImg {
        inline-size: 85%;
    }

    .footer-nav a,
    .footer-nav p {
        font-size: 0.7em !important;
    }
}

@media (max-width: 375px) {
    .btn-popul-card {
        max-width: 100%;
        width: 100%;
    }
}