/**
 * ------------------------------------------------------------------------------------------------------
 * Custom styles goes here
 * ------------------------------------------------------------------------------------------------------
**/

.grecaptcha-badge { visibility: hidden; }


.search-suggest-item-more {
    text-align: center;
    background-color: #ba0048;
    border-top: 1px #ba0048 solid;
}

.search-suggest-item-more:hover {
    text-align: center;
    background-color: #de0051;
    border-top: 1px #ba0048 solid;
}

.search-suggest-item-more div {
    width: 100%;
    color: #ffffff;
}




@media only screen and (max-width: 767px) {
	.tcent {
		text-align: center !important;
		line-height: 14px;
		margin-top: 5px;
	}
}

/* Карточка товара: фото на всю ширину карточки, лейбл «Знижка» не обрезается */
.product-media {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.product-media picture {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.product-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}
.product .product-label {
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
}
.product-body {
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.product-title, .product-title a {
    line-height: 2.2rem;
}

/* Одна ссылка на всю карточку */

a.w-article-card-link
 {
    display: flex;
}
a.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
a.w-blog-card-link,
a.w-blog-aside-link,
a.w-article-aside-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.product-card-link:hover,
a.product-card-link:focus,
a.w-blog-card-link:hover,
a.w-blog-card-link:focus,
a.w-blog-aside-link:hover,
a.w-blog-aside-link:focus,
a.w-article-card-link:hover,
a.w-article-card-link:focus,
a.w-article-aside-link:hover,
a.w-article-aside-link:focus {
    color: inherit;
    text-decoration: none;
}
a.product-card-link .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}
a.w-blog-card-link .w-blog-media img,
a.w-blog-aside-link .w-blog-aside-media img {
    display: block;
    width: 100%;
}
.product-single-media a {
    outline: none;
}

.sync-slider-media .slick-slide > a {
    display: block;
}

.sync-slider-media .slick-slide img,
.product-gallery-main img,
.sync-slider-media .slick-slide picture,
.product-gallery-main picture {
    display: block;
    width: 90%;
}

@media (max-width: 991.98px) {
    .product-single-media {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .product-gallery {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .product-gallery-main {
        order: 1;
        width: 100% !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-gallery-main .sync-slider-media,
    .product-gallery-main .product-gallery-static {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .product-gallery-main a {
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .product-gallery-thumbs {
        order: 2;
        width: 100% !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
    }

    .product-gallery-thumbs .sync-slider-nav,
    .product-gallery-thumbs .sync-slider-nav .slick-list {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .product-gallery-thumbs-item {
       /* width: 4.5rem !important;
        height: 4.5rem !important;*/
        width: 64px !important;
        height: 64px !important;
        margin: 0 0.35rem !important;
    }

    .product-gallery:not(.product-gallery--single) .product-gallery-thumbs-item {
        width: 72px !important;
        height: 72px !important;
        margin: 0 0.3rem !important;
    }

    .product-gallery:not(.product-gallery--single) .product-gallery-thumbs .slick-track {
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .product-gallery-thumbs .slick-vertical .slick-slide {
        height: auto;
    }

    .sync-slider-media .slick-slide img,
    .product-gallery-main img,
    .sync-slider-media .slick-slide picture,
    .product-gallery-main picture {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .sync-slider-media .slick-slide > a {
        margin-left: auto;
        margin-right: auto;
    }

    .product-single.product-single--single-gallery .product-single-body {
        width: 100%;
        /* margin-top: 15rem; */
    }

    .product-gallery.product-gallery--single {
         flex-direction: column;
         align-items: center;
    }

    .product-gallery.product-gallery--single .product-gallery-main {
        order: 0;
        width: 100% !important;
        align-items: center;
    }

    .product-gallery.product-gallery--single .product-gallery-main img,
    .product-gallery.product-gallery--single .product-gallery-main picture {
        width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .product-video-button_single {
        margin-top: 16px;
        text-align: center;
    }
}

.sync-slider-media .slick-slide picture img,
.product-gallery-main picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* FAQ: без JS усі <details> мають open (додає PHP); з JS — акордеон */
.faq-section details > *:not(summary) {
    display: block !important;
}

html.js .faq-section details:not([open]) > *:not(summary) {
    display: none !important;
}

.page-404 {
    padding: 40px 15px 20px;
}

.page-404__code {
    margin: 0 0 10px;
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 600;
    line-height: 1;
    color: #D54B40;
    letter-spacing: -0.02em;
}

.page-404__title {
    margin: 0 0 15px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #343a40;
}

.page-404__text {
    max-width: 480px;
    margin: 0 auto 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Семантичні списки: ul/li з існуючими класами карток */
ul.grid-view,
ul.catalog-grid,
ul.list-branches,
ul:has(> li.w-article),
ul:has(> li.w-blog-aside) {
    list-style: none;
    padding: 0;
}

ul:has(> li.w-article),
ul:has(> li.w-blog-aside) {
    margin: 0;
}

ul.list-branches > li {
    break-inside: avoid;
}

.review-card {
    height: 100%;
    padding: 24px;
    border-radius: 24px;
    background: #f5f6f8;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

    .review-card-avatar {
        width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5eaf0;
    color: #2a2f36;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.review-card-name {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.review-card-date {
    margin-top: 3px;
    font-size: 12px;
    color: #b8b8b8;
    font-weight: 600;
}

.review-card-stars {
    margin-top: 8px;
}

.review-star {
    color: #f1be2c;
    font-size: 16px;
    line-height: 1;
}

.review-star_muted {
    color: #d7d7d7;
}

.review-card-text {
    font-size: 16px;
    line-height: 1.32;
}

.product-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.product-rating-stars .review-star {
    font-size: 1.2rem;
}

.site-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1;
}

.site-rating__stars .review-star {
    font-size: 1.3rem;
}

.site-rating__value {
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 600;
    color: #23303B;
    letter-spacing: -0.02em;
}

.product-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.8rem 1rem;
    font-size: 1.4rem;
    line-height: 1;
    color: #23303B;
    max-width: 100%;
}

.product-meta-bar_mobile {
    justify-content: space-between;
}

.product-subheader-row {
    flex-wrap: nowrap;
}

.product-subheader-nav {
    min-width: 0;
}

.product-subheader-meta {
    display: none;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
    font-size: 1.4rem;
    line-height: 1;
    color: #23303B;
}

@media (min-width: 992px) {
    .product-meta-bar__rating .site-rating__value {
        margin-top: 2px;
    }
    .product-subheader-row {
        display: flex;
        align-items: center;
    }

    .product-subheader-nav {
        width: 50rem;
        flex: 0 0 50rem;
        max-width: 50rem;
    }

    .product-subheader-meta {
        display: flex;
        flex: 1 1 auto;
        width: auto;
    }

    .product-meta-bar__code {
        padding-left: 4.4rem;
        padding-right: 16.9rem;
    }
}

.product-single-body .product-single-button .product-single-button__line + .product-single-button__line::before {
    content: ' ';
}

/* Планшеты (md) */
@media (min-width: 576px) and (max-width: 992px) {
    .nav-list-link.active {
        margin-left: 14px;
    }
}
@media (min-width: 992px) {
    .nav-list-link.active{
        margin-left: 14px;
    }
    span.product-single-button__line{
        transform: translateY(-1px);
    }
    .product-single-body .product-single-button a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 18rem;
        padding: 0.5rem 2.4rem;
 
        line-height: 1.25;
        text-align: center;
        color: #D54B40;
        background-color: #fff;
        border: 2px solid #D54B40;
        border-radius: 1.6rem;
        box-shadow: none;
    }

    .product-single-body .product-single-button .product-single-button__line + .product-single-button__line::before {
        content: none;
    }

    .product-single-body .product-single-button a:hover,
    .product-single-body .product-single-button a:focus,
    .product-single-body .product-single-button a:active {
        color: #fff;
        background-color: #D54B40;
        border-color: #D54B40;
        box-shadow: none;
    }
}

/* Мобильные */
@media (max-width: 479.98px) {
    .w-category-media {
        height: 34.5rem;
        min-height: 30.5rem;
    }
}

/* Планшеты */
@media (min-width: 576px) and (max-width: 991.98px) {
    .w-category-media {
        height: 30.5rem;
        min-height: 30.5rem;
    }
}

/* Десктоп */
@media (min-width: 992px) {
    .w-category-media {
        height: 22.5rem;
        min-height: 22.5rem;
    }
}
.w-category-media picture,
.w-category-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
.w-article-media {
    max-width: 100%;
    overflow: hidden;
}
.w-article-media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.w-article-media img,
a.w-article-card-link .w-article-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.post-single-media {
    max-width: 100%;
    overflow: hidden;
}
.post-single-media picture,
.post-single-media img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}
@media (max-width: 767.98px) {
    .w-article-media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-bottom: 1.8rem;
    }
}
@media (min-width: 1200px) {
    .product-subheader-nav {
        width: 63.5rem;
        flex-basis: 63.5rem;
        max-width: 63.5rem;
    }
}

.product-meta-bar__code {
    white-space: nowrap;
    flex-shrink: 0;
}

.product-meta-bar__rating.site-rating {
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.product-meta-bar__rating .site-rating__stars {
    display: inline-flex;
    flex-shrink: 0;
}

.product-meta-bar__rating .site-rating__stars .review-star {
    font-size: 2.1rem;
}

.product-meta-bar__rating .site-rating__value {
    font-size: 1.4rem;
    font-weight: 400;
    flex-shrink: 0;
}

.product-rating-vote .js-rate-star {
    display: inline-block;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    color: #f1be2c;
    transition: transform 0.15s ease, color 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.product-rating-vote .js-rate-star.review-star_muted {
    color: #d7d7d7;
}

.product-rating-vote:not(.is-rated) .js-rate-star:hover,
.product-rating-vote:not(.is-rated) .js-rate-star.is-hover {
    color: #f1be2c;
    transform: scale(1.12);
}

.product-rating-vote.is-rated .js-rate-star,
.product-rating-vote.is-loading .js-rate-star {
    cursor: default;
    transform: none;
}

.product-rating-vote.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.category-rating-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.4rem 3rem;
    border-radius: 2.4rem;
    background: #f5f6f8;
}

.category-rating-card__label {
    font-size: 1.6rem;
    line-height: 1.9rem;
    font-weight: 600;
    color: #23303B;
}

.category-rating-card__text {
    margin-top: 0.4rem;
    font-size: 1.4rem;
    line-height: 1.8rem;
    color: #6c757d;
}

.category-rating-card__score.site-rating {
    flex: 0 0 auto;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    border-radius: 1.6rem;
    background: #fff;
}

.category-rating-card__score .site-rating__stars .review-star {
    font-size: 1.6rem;
}

.category-rating-card__score .site-rating__value {
    font-size: 2rem;
    line-height: 1;
}

.product-card-rating {
    margin: 0.6rem 0 0.8rem;
}

.product-card-rating__score.site-rating {
    gap: 0.5rem;
}

.product-card-rating__score .site-rating__stars .review-star {
    font-size: 2.1rem;
}

.product-card-rating__score .site-rating__value {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 2px;
}

.product .product-title {
    padding-bottom: 0;
}

.carousel-reviews{
    margin-bottom: 5rem;
}
@media (max-width: 767px) {
    .product-button {
        margin-top: 1.7rem;
    }

    .product-button--regular {
        margin-top: 0!important;
    }
    .product-button span.btn{
        font-size: 1.7rem;
    }
    .product-button span.btn.btn-link:after{
        top: 52%!important;
        font-size: 2rem!important;
    }
 
    .product-meta {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .catalog-grid .grid-item{
        width: 100%;
        max-width: 100%;
    }
    .nav-list-item:first-child {
        margin-left: 1.5rem;
    }
    a.w-article-card-link {
        display: flex;
        flex-direction: column;
    }

    .review-card {
        padding: 16px;
        border-radius: 16px;
    }

    .review-card-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .review-card-avatar {
        width: 4rem;
        height: 4rem;
        font-size: 1.6rem;
    }

    .review-card-name {
        font-size: 1.6rem;
        line-height: 1.9rem;
    }

    .review-card-date {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }

    .review-card-stars {
        margin-top: 6px;
    }

    .review-star {
        font-size: 1.4rem;
    }

    .review-card-text {
        font-size: 1.6rem;
        line-height: 2.1rem;
    }

    .product-meta-bar_mobile {
        justify-content: space-between;
    }

    .product-meta-bar__rating .site-rating__stars .review-star {
        font-size: 2.1rem;
    }

    .product-meta-bar__rating .site-rating__value {
        font-size: 1.3rem;
        font-weight: 400;
    }

    .category-rating-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.6rem;
        border-radius: 1.6rem;
    }

    .category-rating-card__score.site-rating {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.2rem;
    }

    .category-rating-card__score .site-rating__stars .review-star {
        font-size: 1.4rem;
    }

    .category-rating-card__score .site-rating__value {
        font-size: 1.8rem;
    }

    .product-rating-stars .review-star {
        font-size: 1.1rem;
    }
}

/* Footer meta + social */
.footer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 0;
    align-items: start;
    margin-top: 2.4rem;
    text-align: left;
}

.footer-meta__brand {
    min-width: 0;
}

.footer-meta .footer-logo {
    margin-top: 0;
}

.footer-meta .footer-logo img {
    width: 14rem;
    max-width: 100%;
    height: auto;
}

.footer-meta .footer-phones {
    margin-top: 1.2rem;
    text-align: left;
}

.footer-social {
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-top: 0;
    padding: 0;
    text-align: left;
}

.footer-social__title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: left;
}

.footer-social__icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
}

.footer-social__icons a {
    display: inline-flex;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.footer-social__icons a:hover {
    opacity: 0.85;
}

.footer-social__icons img {
    display: block;
    width: 3.6rem;
    height: 3.6rem;
}

@media only screen and (min-width: 992px) {
    .footer-meta {
        display: block;
        text-align: center;
        margin-top: 0;
    }

    .footer-meta__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-meta .footer-phones {
        order: -1;
        margin-top: 0;
        text-align: center;
    }

    .footer-meta .footer-logo {
        margin-top: 4rem;
    }

    .footer-meta .footer-logo img {
        width: 18rem;
    }

    .footer-social {
        max-width: none;
        width: 100%;
        margin-top: 3rem;
        text-align: center;
    }

    .footer-social__title {
        font-size: 1.2rem;
        line-height: 1.45;
        margin-bottom: 1.2rem;
        text-align: center;
        letter-spacing: 0.04em;
    }

    .footer-social__icons {
        justify-content: center;
        gap: 1.2rem;
    }

    .footer-social__icons img {
        width: 4rem;
        height: 4rem;
    }
}

/* Header social (desktop) */
.header-social {
    display: none;
}

.header-social a {
    display: inline-flex;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.header-social a:hover {
    opacity: 0.85;
}

.header-social img {
    display: block;
    width: 3.6rem;
    height: 3.6rem;
}

/* Mobile menu social */
.navbar-social {
    display: none;
    text-align: center;
    padding: 2.4rem 1.5rem 1.5rem;
}

.navbar-social__title {
    margin: 0 0 1.4rem;
    color: #4A4A4A;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: right;
}

.navbar-social__icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
}

.navbar-social__icons a {
    display: inline-flex;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.navbar-social__icons a:hover {
    opacity: 0.85;
}

.navbar-social__icons img {
    display: block;
    width: 4.4rem;
    height: 4.4rem;
}

@media only screen and (min-width: 992px) {
    .header-search {
        width: auto;
        max-width: 34rem;
        flex: 1 1 auto;
        margin-left: auto;
        margin-right: auto;
    }

    .header-social {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 1rem;
        margin-left: 0;
        margin-right: 2.4rem;
    }

    .navbar-social {
        display: none !important;
    }
}

@media only screen and (min-width: 1200px) {
    .header-search {
        max-width: 40rem;
    }
}

@media only screen and (max-width: 991px) {
    .navbar-social {
        display: block;
    }
}
/* Shared desktop and mobile contact menu. */
.header-contact { position: relative; flex-shrink: 0; z-index: 1020; }
.header-contact-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 68px; height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 24px; background: #d54b40; color: #fff; cursor: pointer; }
.header-contact-toggle:hover, .header-contact-toggle[aria-expanded="true"] { background: #bd3c32; }
.header-contact-toggle svg { width: 22px; height: 22px; }
.header-contact-toggle .header-contact-chevron { width: 12px; height: 8px; }
.header-contact-toggle[aria-expanded="true"] .header-contact-chevron { transform: rotate(180deg); }
.header-contact-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 278px; max-width: calc(100vw - 24px); padding: 12px 16px; border: 1px solid #f1f1f1; border-radius: 9px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.header-contact-panel[hidden] { display: none; }
.header-contact-panel::before { content: ''; position: absolute; top: -7px; right: 24px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-top: 1px solid #f1f1f1; border-left: 1px solid #f1f1f1; }
.header-contact-panel a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; color: #444; font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.header-contact-panel a:hover { color: #d54b40; }
.header-contact-separated { border-top: 1px solid #e3e3e3; margin-top: 4px; }
.header-contact-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 50%; }
.header-contact-icon svg { width: 20px; height: 20px; }
.header-contact-icon--phone { color: #75bd37; background: #eff9e5; }
.header-contact-icon--viber { color: #9361c9; background: #f4eafa; }
.header-contact-icon--chat { color: #22b7dd; background: #e5f8fd; }
.header-contact-toggle:focus-visible, .header-contact-panel a:focus-visible { outline: 2px solid #23303b; outline-offset: 3px; }
@media only screen and (max-width: 991px) {
    .header-contact { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); }
    .header-contact-toggle { width: 54px; gap: 5px; padding: 8px; }
    .header-logo { left: 45%; width: min(21rem, calc(100vw - 190px)); }
}

/* Header proportions and search field from the supplied layout. */
.header-wrapper { background: #fff; }
.header.container {
    display: grid;
    grid-template-columns: 220px minmax(220px, 300px) auto 68px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 106px;
    padding: 0 24px;
    max-width: 1100px;
}
.header .header-logo, .header .header-search, .header .header-contact {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 0;
    width: 100%;
    min-width: 0;
}
.header .header-logo img { width: 100%; height: auto; }
.header .header-search { max-width: 300px; height: auto; z-index: 1010; }
.header-search .search-dropdown > .dropdown-toggle { display: none; }
.header-search .search-dropdown > .dropdown-menu {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    float: none;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}
.header-search .form-control {
    height: 36px;
    border: 2px solid #dedede;
    border-radius: 22px;
    background: #fff;
    padding: 0 60px 0 20px;
    font-size: 14px;
    color: #444;
}
.header-search .form-control::placeholder { color: #a5a5a5; opacity: 1; }
.header-search .form-control:focus { border-color: #999; box-shadow: 0 0 0 2px rgba(35,48,59,.08); }
.header-search-form-submit { width: 56px; }
.header-search .header-search-form-submit::before { content: none; }
.header-search-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.header-search-form-submit { display: flex; align-items: center; justify-content: center; color: #555; }
.header-search-form-submit:hover { color: #23303b; }
.header-search-form-submit .header-search-icon { width: 22px; height: 22px; }
.header-search-form-submit::after { height: 24px; background: #dedede; }
.header .header-social { margin: 0; gap: 12px; justify-content: flex-end; }
.header-social img { width: 38px; height: 38px; }
.header-contact-toggle { height: 40px; border: 0; }
.header-contact-panel { right: -24px; width: 260px; }
.header-contact-panel::before { right: 48px; }
.navbar-wrapper { border-top-color: #bcbcbc; }
.navbar-toggler span { background: #23303b; }
@media only screen and (max-width: 991px) {
    .header-wrapper { border-bottom: 1px solid #a6a5a5; }
    .header.container {
        grid-template-columns: minmax(0, 1fr) 50px 68px;
        grid-template-rows: 1fr;
        gap: 16px;
        height: 94px;
        padding: 0 24px 0 82px;
        max-width: 100%;
    }
    .header .header-logo { width: min(220px, 100%); grid-column: 1; grid-row: 1; }
    .header .header-search { position: static; grid-column: 2; grid-row: 1; max-width: none; }
    .header .header-contact { grid-column: 3; grid-row: 1; }
    .header .header-social { display: none; }
    .header-contact-toggle { width: 68px; height: 40px; }
    .header-contact-panel { right: -12px; max-width: calc(100vw - 24px); }
    .header-contact-panel::before { right: 34px; }
    .header-search .search-dropdown { position: static; }
    .header-search .search-dropdown > .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 40px;
        padding: 0;
        border: 1px solid #bcbcbc;
        border-radius: 22px;
        color: #23303b;
        background: #fff;
    }
    .header-search .search-dropdown > .dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 12px;
        right: 12px;
        width: auto;
        padding: 12px;
        background: #fff;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 12px rgba(0,0,0,.14);
        z-index: 1010;
    }
    .header-search .search-dropdown > .dropdown-menu.show { display: block; }
    .header-search .form-control { font-size: 16px; height: 40px; }
    .navbar-wrapper { height: 94px; left: 24px; right: auto; }
    .navbar-toggler { width: 32px; height: 26px; }
    .navbar-toggler span { height: 3px; }
}
@media only screen and (max-width: 399px) {
    .header.container { height: 80px; padding: 0 12px 0 54px; gap: 10px; grid-template-columns: minmax(0, 1fr) 44px 58px; }
    .header-search .search-dropdown > .dropdown-toggle { width: 44px; }
    .header-contact-toggle { width: 58px; }
    .navbar-wrapper { height: 80px; left: 12px; }
    .navbar-toggler { width: 28px; }
    .header-contact-panel { right: 0; }
    .header-contact-panel::before { right: 23px; }
}

/* Compact mobile menu icon with a comfortable touch target. */
@media only screen and (max-width: 991px) {
    .navbar-wrapper { left: 18px; }
    .main-navigation .navbar-toggler { width: 44px; height: 44px; border-radius: 8px; }
    .main-navigation .navbar-toggler span {
        width: 24px;
        height: 2px;
        left: 10px;
        border-radius: 2px;
        background: #23303b;
        transition: transform .2s ease, top .2s ease, opacity .2s ease;
    }
    .main-navigation .navbar-toggler span:nth-child(1) { top: 14px; }
    .main-navigation .navbar-toggler span:nth-child(2) { top: 21px; }
    .main-navigation .navbar-toggler span:nth-child(3) { top: 28px; }
    .main-navigation .navbar-toggler[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    .main-navigation .navbar-toggler[aria-expanded="true"] span:nth-child(2) { left: 10px; opacity: 0; }
    .main-navigation .navbar-toggler[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
    .main-navigation .navbar-toggler:focus-visible { outline: 2px solid #23303b; outline-offset: 2px; }
}
@media only screen and (max-width: 399px) {
    .navbar-wrapper { left: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .main-navigation .navbar-toggler span { transition: none; }
}

/* Keep the header in flow so fixing it does not shift page content. */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030;
}
@media only screen and (min-width: 992px) {
    .header-wrapper { transition: transform .22s ease; }
    .header-wrapper.header-scroll-hidden { transform: translateY(-100%); }
    .header-wrapper:has(:focus-visible) { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .header-wrapper { transition: none; }
}

/* Keep the handset visible in every interaction state. */
.header-contact .header-contact-toggle,
.header-contact .header-contact-toggle:hover,
.header-contact .header-contact-toggle:focus,
.header-contact .header-contact-toggle:active { color: #fff; }
.header-contact .header-contact-toggle svg { color: #fff; }

/* Paired banner actions on the home and city pages. */
.main-slider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; max-width: 100%; }
.main-slider-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 9px 18px; border: 2px solid #d54b40; border-radius: 28px; font-size: 15px; font-weight: 600; line-height: 1.4; white-space: normal; }
.main-slider-actions .btn-primary { background: #d54b40; color: #fff; }
.main-slider-actions .btn-primary span { font-size: 24px; line-height: 1; }
.main-slider-actions .main-slider-consultation { background: transparent; color: #d54b40; }
.main-slider-actions .main-slider-consultation:hover { background: #d54b40; color: #fff; }
.main-slider-actions .btn:focus-visible { outline: 2px solid #23303b; outline-offset: 3px; }
@media only screen and (max-width: 767px) {
    .main-slider-actions { justify-content: center; gap: 10px; }
    .main-slider-actions .btn { font-size: 14px; padding: 8px 16px; }
}
.main-slider-image-slide { position: relative; }
.main-slider-image-actions { position: absolute; bottom: 80px; left: 24px; right: 24px; justify-content: center; }
.main-slider-image-actions .main-slider-consultation { background: #fff; }
