/* ==========================================================
   MADELSON — HEADER
   header.css
   ========================================================== */


/* ==========================================================
   TOP BAR
   ========================================================== */

/* ==========================================================
   TOP BAR
   ========================================================== */

/* =========================================================
   FIX — телефон и время в верхней панели
   ========================================================= */

.top-bar {
    position: relative;
    height: 48px;
    min-height: 48px;
    overflow: visible;
    padding-top: 10px;
}

.top-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    min-height: 48px;
}

.top-bar-contacts {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;

    width: auto !important;
    height: 48px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;

    transform: none !important;
}

.top-bar-phone {
    display: block !important;
    position: static !important;

    margin: 0 0 2px 0 !important;
    padding: 0 !important;

    font-size: 18px !important;
    line-height: 22px !important;
    height: 22px !important;
font-weight: 800;
    transform: none !important;
}

.top-bar-worktime {
    display: block !important;
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 18px !important;
    height: 18px !important;

    transform: none !important;
}


/* ==========================================================
   TOP BAR NAVIGATION
   ========================================================== */

.top-bar-nav {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    gap: 30px;
}

.top-bar-nav a {
    display: block;

    margin: 0;
    padding: 0;

    color: rgb(109, 120, 133);

    font-size: 14px;
    line-height: 20px;
    font-weight: 400;

    text-decoration: none;

    white-space: nowrap;

    transition: color .2s ease;
}

.top-bar-nav a:hover {
    color: #375793;
}



/* ==========================================================
   TOP BAR RESPONSIVE
   ========================================================== */

@media (max-width: 1199px) {

    .top-bar-nav {
        gap: 20px;
    }

    .top-bar-phone {
        font-size: 16px;
    }

}


@media (max-width: 991px) {

    .top-bar {
        display: none;
    }

}

/* ==========================================================
   MAIN HEADER
   ========================================================== */

.main-header {
    width: 100%;

    background: #fff;
}

.main-header-inner {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 116px;
}


/* ==========================================================
   LOGO
   ========================================================== */

.header-logo {
    flex: 0 0 auto;
min-width: 180px;
    margin-right: 30px;
}

.site-logo {
    display: block;
}

.site-logo img {
    display: block;

    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 15px 0;
   
}


/* ==========================================================
   CATALOG
   ========================================================== */

.header-catalog {
    position: relative;

    flex: 0 0 auto;

    margin-right: 55px;
}


/* Кнопка каталога */

.catalog-opener {
    display: flex;
    align-items: center;

    width: 246px;
    height: 58px;

    padding: 0 18px;

    border: 0;
    border-radius: 30px;

    background: #f3f4f7;
    color: #222;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color .2s ease;
}

.catalog-opener:hover,
.catalog-opener:focus {
    background: #eceef2;
    color: #222;

    outline: none;
}


/* Гамбургер */

.catalog-opener-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 20px;
    height: 20px;

    margin-right: 24px;
}

.catalog-opener-icon span {
    display: block;

    width: 18px;
    height: 1.5px;

    margin: 2.5px 0;

    background: #222;
}


/* Текст */

.catalog-opener-text {
    flex: 1 1 auto;

    text-align: left;

    font-size: 14px;
}


/* Стрелка */

.catalog-opener-arrow {
    position: relative;

    display: block;

    width: 10px;
    height: 10px;

    margin-left: 10px;
}

.catalog-opener-arrow::before {
    content: "";

    position: absolute;

    top: 2px;
    left: 1px;

    width: 7px;
    height: 7px;

    border-right: 1px solid #333;
    border-bottom: 1px solid #333;

    transform: rotate(45deg);
}

.catalog-opener.is-open .catalog-opener-arrow::before {
    top: 5px;

    transform: rotate(225deg);
}


/* ==========================================================
   CATALOG DROPDOWN
   ========================================================== */

.catalog-dropdown {
    position: absolute;

    top: calc(100% + 2px);
    left: 0;

    z-index: 1000;

    width: 300px;

    padding: 0;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);

    

    visibility: hidden;
    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* Открытый каталог */

.header-catalog.is-open .catalog-dropdown {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);
}


/* Список */

.catalog-menu {
    margin: 0;
    padding: 0;

    list-style: none;
}

.catalog-menu-item {
    position: relative;

    margin: 0;
    padding: 0;
}

.catalog-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
font-weight: 600;
    min-height: 46px;

    padding: 0 22px;

    color: #333;

    font-size: 14px;

    text-decoration: none;
}

.catalog-menu-item > a:hover {
    background: #f6f6f6;
    color: #375793;
}


/* Стрелка подкатегории */

.catalog-menu-arrow {
    font-size: 20px;
    line-height: 1;
}


/* ==========================================================
   CATALOG SUBMENU
   ========================================================== */

.catalog-submenu {
    position: absolute;

    top: -8px;
    left: 100%;

    z-index: 1001;

    width: 255px;

    margin: 0;
    padding: 0;

    list-style: none;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    transform: translateX(0);

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.catalog-menu-item-has-children:hover > .catalog-submenu {
    visibility: visible;
    opacity: 1;
}


.catalog-submenu li {
    margin: 0;
    padding: 0;
}

.catalog-submenu a {
    display: block;

    padding: 10px 20px;
font-weight: 600;
    color: #333;

    font-size: 14px;

    text-decoration: none;
}

.catalog-submenu a:hover {
    background: #f6f6f6;
    color: #375793;
}


/* ==========================================================
   SEARCH
   ========================================================== */

.header-search {
    flex: 1 1 auto;

    min-width: 200px;
}

.header-search-form {
    width: 100%;
    margin: 0;
}

.header-search-input-wrap {
    position: relative;

    width: 100%;
}

.header-search-input {
    display: block;

    width: 100%;
    height: 58px;

    padding: 0 65px 0 20px;

    border: 0;
    border-radius: 30px;

    outline: none;

    background: #f3f4f7;
    color: #333;

    font-size: 14px;

    box-shadow: none;
}

.header-search-input::placeholder {
    color: #9297a1;
}

.header-search-input:focus {
    background: #eef0f4;
}


/* ==========================================================
   SEARCH BUTTON
   ========================================================== */

.header-search-submit {
    position: absolute;

    top: 50%;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    transform: translateY(-50%);

    cursor: pointer;
}

.header-search-submit:hover {
    background: #e7e9ed;
}


/* Иконка лупы */

.search-icon {
    position: relative;

    display: block;

    width: 20px;
    height: 20px;

    border: 2px solid #607080;
    border-radius: 50%;
}

.search-icon::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 2px;

    right: -6px;
    bottom: -3px;

    background: #607080;

    transform: rotate(45deg);
}


/* ==========================================================
   SEARCH CLEAR
   ========================================================== */

.header-search-clear {
    position: absolute;

    top: 50%;
    right: 58px;

    display: none;

    width: 22px;
    height: 22px;

    padding: 0;

    border: 0;

    background: transparent;

    transform: translateY(-50%);

    cursor: pointer;
}

.header-search.has-value .header-search-clear {
    display: block;
}

.header-search-clear::before,
.header-search-clear::after {
    content: "";

    position: absolute;

    top: 10px;
    left: 3px;

    width: 16px;
    height: 1px;

    background: #777;
}

.header-search-clear::before {
    transform: rotate(45deg);
}

.header-search-clear::after {
    transform: rotate(-45deg);
}


/* ==========================================================
   HEADER ACTIONS
   ========================================================== */

.header-actions {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    margin-left: 48px;
}

.header-action {
    position: relative;

    margin-left: 28px;
}

.header-action:first-child {
    margin-left: 0;
}


/* Круглая кнопка */

.header-action > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid #e3e4e7;
    border-radius: 50%;

    background: #fff;
    color: #222;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.header-action > a:hover {
    border-color: #d5d7dc;
    background: #f7f8fa;
}


/* ==========================================================
   ACCOUNT ICON
   ========================================================== */

.header-account-icon {
    position: relative;

    display: block;

    width: 20px;
    height: 22px;
}

.header-account-icon::before {
    content: "";

    position: absolute;

    top: 0;
    left: 6px;

    width: 8px;
    height: 8px;

    border: 1.5px solid #222;
    border-radius: 50%;
}

.header-account-icon::after {
    content: "";

    position: absolute;

    left: 2px;
    bottom: 0;

    width: 16px;
    height: 9px;

    border: 1.5px solid #222;
    border-radius: 9px 9px 3px 3px;
}


/* ==========================================================
   WISHLIST ICON
   ========================================================== */

.header-wishlist-icon {
    position: relative;

    display: block;

    width: 25px;
    height: 25px;
}

.header-wishlist-icon::before {
    content: "♡";

    position: absolute;

    top: -4px;
    left: 0;

    font-size: 29px;
    line-height: 29px;
}


/* ==========================================================
   CART
   ========================================================== */

.header-cart > a {
    border-color: #375793;

    background: #375793;
    color: #fff;
}

.header-cart > a:hover {
    border-color: #2f4b7d;

    background: #2f4b7d;
}


/* Иконка корзины */

.header-cart-icon {
    position: relative;

    display: block;

    width: 25px;
    height: 24px;
}

.header-cart-icon::before {
    content: "";

    position: absolute;

    top: 5px;
    left: 3px;

    width: 18px;
    height: 11px;

    border: 2px solid currentColor;
    border-top: 0;

    transform: skew(-7deg);
}

.header-cart-icon::after {
    content: "••";

    position: absolute;

    left: 6px;
    bottom: -7px;

    font-size: 13px;
    letter-spacing: 5px;
}


/* ==========================================================
   COUNTERS
   ========================================================== */

.header-counter {
    position: absolute;

    top: -7px;
    right: -7px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    border-radius: 50%;

    background: #fff;
    color: #607080;

    font-size: 10px;
    line-height: 18px;

    box-shadow: 0 0 0 1px #f0f0f0;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1199px) {

    .header-logo {
        margin-right: 30px;
    }

    .site-logo img {
        max-width: 170px;
    }

    .header-catalog {
        margin-right: 25px;
    }

    .catalog-opener {
        width: 210px;
    }

    .header-actions {
        margin-left: 25px;
    }

    .header-action {
        margin-left: 15px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 991px) {

    .main-header {
        display: none;
    }

}


/* =========================================================
   HOME — LEADERS
   ========================================================= */

.home-leaders, .home-new, .home-sale {
    padding: 45px 0 0;
}

.home-section-head {
    margin-bottom: 22px;
}

.home-section-head h2 {
    margin: 0;
    color: #071f4d;
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
}

.home-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
}

.home-product {
    min-width: 0;
}

.home-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f6fa;
}

.home-product-image > a {
    display: block;
}

.home-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.home-product-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    height: 30px;
    padding: 0 10px;

    color: #fff;
    background: #f3b900;
    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;
}

.home-product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;

    width: 38px;
    height: 38px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #233f72;

    font-size: 25px;
    line-height: 38px;

    cursor: pointer;
}

.home-product-content {
    padding-top: 15px;
}

.home-product-content h3 {
    min-height: 44px;
    margin: 0 0 10px;
    padding: 0;

    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.home-product-content h3 a {
    color: #071f4d;
    text-decoration: none;
}

.home-product-params {
    min-height: 55px;
    color: #777f8c;
    font-size: 13px;
    line-height: 19px;
}

.home-product-params span {
    color: #30343a;
}

.home-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-top: 10px;

    font-size: 16px;
}

.home-product-price del {
    color: #9297a1;
    font-size: 14px;
}

.home-product-price strong {
    color: #071f4d;
    font-size: 18px;
    font-weight: 700;
}

.home-product-buy {
    display: block;

    margin-top: 14px;
    padding: 11px 15px;

    color: #fff;
    background: #375793;
    border-radius: 8px;

    text-align: center;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: background .2s ease;
}

.home-product-buy:hover {
    color: #fff;
    background: #29477d;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 15px;
    }

}

@media (max-width: 575px) {

    .home-leaders {
        padding-top: 35px;
    }

    .home-section-head h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .home-products {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   HOME — ABOUT
   ========================================================= */

.home-about {
    padding: 70px 0 20px;
}

.home-about-inner {
    max-width: 100%;
}

.home-about-title {
    margin: 0 0 25px;
    padding: 0;

    color: #071f4d;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
}

.home-about-text {
    max-width: 100%;
}

.home-about-text p {
    margin: 0 0 18px;
    padding: 0;

    color: #555b65;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
}

.home-about-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .home-about {
        padding: 50px 0 15px;
    }

    .home-about-title {
        margin-bottom: 20px;
        font-size: 24px;
        line-height: 31px;
    }

    .home-about-text p {
        font-size: 15px;
        line-height: 1.65;
    }

}


/* =========================================================
   HOME — ADVANTAGES
   ========================================================= */

.home-advantages {
    padding: 45px 0 65px;
}

.home-advantages-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 25px;
}

.home-advantage {
    min-width: 0;
    text-align: center;
}

.home-advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
}

.home-advantage-icon-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #375793;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
}

.home-advantage:nth-child(1) .home-advantage-icon-symbol,
.home-advantage:nth-child(2) .home-advantage-icon-symbol,
.home-advantage:nth-child(3) .home-advantage-icon-symbol {
    position: relative;
}

.home-advantage:nth-child(1) .home-advantage-icon-symbol::after,
.home-advantage:nth-child(2) .home-advantage-icon-symbol::after,
.home-advantage:nth-child(3) .home-advantage-icon-symbol::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #f2be05;
}

.home-advantage:nth-child(1) .home-advantage-icon-symbol::after {
    right: 8px;
    bottom: 8px;
}

.home-advantage:nth-child(2) .home-advantage-icon-symbol::after {
    right: 7px;
    bottom: 7px;
}

.home-advantage:nth-child(3) .home-advantage-icon-symbol::after {
    right: 8px;
    top: 8px;
}

.home-advantage-title {
    max-width: 180px;
    margin: 0 auto;

    color: #071f4d;
    font-size: 15px;
    line-height: 21px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {

    .home-advantages {
        padding: 40px 0 55px;
    }

    .home-advantages-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 40px;
    }

}

@media (max-width: 767px) {

    .home-advantages {
        padding: 35px 0 45px;
    }

    .home-advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 15px;
    }

    .home-advantage-icon,
    .home-advantage-icon-symbol {
        width: 54px;
        height: 54px;
    }

    .home-advantage-icon-symbol {
        font-size: 34px;
    }

    .home-advantage-title {
        font-size: 14px;
        line-height: 20px;
    }

}

@media (max-width: 400px) {

    .home-advantages-grid {
        grid-template-columns: 1fr;
    }

}

.home-questions {
    padding: 55px 0 70px;
}

.home-questions-inner {
    /*text-align: center;*/
}

.home-questions-title {
    margin: 0 0 22px;
    padding: 0;
    color: #071f4d;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
}

.home-questions-phone {
    margin-bottom: 25px;
}

.home-questions-phone a {
    color: #375793;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    text-decoration: none;
}

.home-questions-phone a:hover {
    color: #29477d;
}

.home-questions-online {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 18px;
}

.home-questions-online-text {
    color: #555b65;
    font-size: 16px;
    line-height: 24px;
}

.home-questions-online-text strong {
    color: #071f4d;
    font-weight: 700;
}

.home-questions-messengers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-questions-messenger {
    display: block;
    width: 54px;
    height: 54px;
    text-decoration: none;
    transition: transform .2s ease;
}

.home-questions-messenger:hover {
    transform: translateY(-2px);
}

.home-questions-messenger-icon {
    display: block;
    width: 54px;
    height: 54px;
}

.home-questions-messenger-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .home-questions {
        padding: 45px 0 55px;
    }

    .home-questions-title {
        margin-bottom: 18px;
        font-size: 24px;
        line-height: 31px;
    }

    .home-questions-phone {
        margin-bottom: 22px;
    }

    .home-questions-phone a {
        font-size: 21px;
        line-height: 28px;
    }

    .home-questions-online {
        flex-direction: column;
        gap: 12px;
    }

    .home-questions-online-text {
        font-size: 15px;
    }
}