:root {
    --ffj-blue-01: #1c5371;
    --ffj-blue-02: #00334e;
    --ffj-red-01: #ed4941;
    --ffj-red-02: #af0800;
    --ffj-grey-01: #f7f7f7;
    --ffj-grey-02: #f6f9fc;
    --ffj-green-01: #05a677;
    --ffj-green-02: #03805c;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #4a5073;
    text-align: left;
    background-color: #fff;
}

a {
    color: var(--ffj-blue-01);
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: var(--ffj-blue-02);
    text-decoration: none;
}

.text-white a:not(.btn) {
    color: #fff;
}

:focus {
    outline: none !important;
}

.text-black,
.text-black:hover {
    color: #24262b;
}

.bg-blue {
    background: var(--ffj-blue-01);
}

.bg-grey {
    background: var(--ffj-grey01);
}

img {
    max-width: 100%;
    height: auto;
}

main {
    overflow: hidden;
}

figcaption,
figure,
main {
    display: block;
    margin: 0;
}

.pattern {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-image: url(../images/patterns/wave.svg);
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 1450px 160px;
    height: 0;
    padding: 0;
    padding-bottom: 140px;
}

.pattern-soft {
    background-image: url(../images/patterns/wave-soft.svg);
}

.pattern.top {
    top: -10px;
}

.pattern.bottom {
    bottom: -10px;
    transform: rotate(180deg);
}

.hero-section {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background: var(--ffj-grey-02);
}

.hero-section h1 {
    color: var(--ffj-red-01);
}

.section-intro {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.section-intro p:last-child {
    margin-bottom: 0;
}

.section {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.article ol li,
.article p,
.article ul li {
    font-size: 1rem;
}

.article blockquote,
.article ol,
.article p,
.article ul {
    margin-bottom: 20px;
}

.table-contacts td,
.table-contacts th {
    vertical-align: middle;
}

.table-contacts img {
    max-width: 170px;
}

@media (min-width: 992px) {

    .pl-lg-10,
    .px-lg-10 {
        padding-left: 4rem !important;
    }
}

.breadcrubs div {
    display: inline-block;
    margin-right: 10px;
}

.breadcrubs div:not(:last-child)::after {
    content: "/";
    font-size: 13px;
    margin-left: 10px;
}

.breadcrumbs {
    font-size: 13px;
    color: #4a5073;
    margin-bottom: 12px;
}

.breadcrumbs a {
    color: var(--ffj-blue-01);
}

.breadcrumbs a:hover {
    color: var(--ffj-blue-02);
}

.btn.see-more-cat {
    display: none;
}

@media (max-width: 750px) {
    .btn.see-more-cat {
        display: block;
    }
}

.prod-tab-text {
    display: none;
}

@media (min-width: 767px) {
    .prod-tab-text {
        z-index: 111;
        position: absolute;
        width: 350px;
        max-width: 100%;
        color: #fff;
        background: #ed4941;
        right: 2%;
        top: 50%;
        transform: translate(0, -50%);
        padding: 20px 35px;
        display: block;
    }
}

.video-block {
    width: 320px;
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.video-block div {
    padding: 5px;
}

.gall-vid {
    width: 100%;
    height: 280px;

}

.videos-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.navbar-nav>.nav-item {
    position: relative;
}

.child-item-list {
    display: none;
    list-style: none;
    position: absolute;
    background: #fff;
    padding-left: 0;
}

.navbar-nav>.nav-item:hover .child-item-list {
    display: block;
}

.child-item-list>li {
    padding-bottom: 10px;
}

.navbar-nav>.nav-item>.nav-link {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .child-item-list {
        display: block;
        position: relative;
        margin-left: 10px;
    }
}

.prod-price-f {
    color: #ed4941;
    font-size: 1.3rem;
}

#product-tab .nav-link.active {
    border-radius: 0;
    border-top: 3px solid #ed4941;
}

#product-tab .nav-link:not(.active):hover {
    border: none;
}

.advantages-prod {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.advantages-prod>div {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    margin-bottom: 15px;
    text-align: center;
}

.advantages-prod p {
    font-size: 14px;
    margin: 10px 0 0;
}

.advantages-prod img {
    width: 70px;
    display: inline-block;
}

@media (max-width: 767px) {
    .advantages-prod>div {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Series advantages: a title plus a sentence, so three per row and ranged left */
.advantages-prod--detailed {
    justify-content: flex-start;
    margin: 0 -12px 25px;
}

.advantages-prod--detailed>div {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 12px;
    margin-bottom: 25px;
    text-align: left;
}

.advantages-prod--detailed .bold-text {
    margin-bottom: 6px;
}

.advantages-prod--detailed p {
    margin: 0;
    line-height: 1.5;
}

.advantages-prod--detailed img {
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .advantages-prod--detailed>div {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .advantages-prod--detailed>div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.lined-title {
    font-size: 21px;
    margin: 65px 0 35px 0;
    border-bottom: 1px solid #dee2e6;
    line-height: 5px;
}

.lined-title span {
    background-color: #fff;
    padding: 5px 5px 5px 0px;
}

.object-photo {
    height: 210px;
    max-width: 100%;
    margin: 3px;
    display: inline-block;
}

#mygallery .slick-slide {
    padding: 0 10px;
}

#mygallery .slick-slide a {
    display: block;
}

/* Ширина фото при variableWidth — естественная при заданной высоте, и панорама
   (1600×441 на /projects/europa-9/) выходила шире контента даже текущим слайдом.
   max-width — ширина контента контейнера Bootstrap (container − 30px):
   проценты здесь не работают, слайд сам по ширине фото. Лишнее обрезает
   object-fit, целиком фото открывается в lightbox. */
#mygallery .slick-slide img {
    cursor: zoom-in;
    display: block;
    width: auto;
    max-width: 1110px;
    height: 420px;
    object-fit: cover;
}

@media (max-width: 1199.98px) {
    #mygallery .slick-slide img {
        max-width: 930px;
    }
}

@media (max-width: 991px) {
    #mygallery .slick-slide img {
        max-width: 690px;
        height: 360px;
    }
}

/* На телефоне slick ставит одно фото на всю ширину ленты (variableWidth выключен
   в js/sliders.js). #mygallery сдвинут на -10px только влево (css/ux.css),
   и лента на -10px вправо даёт фото ровно ширину контента при тех же
   10px отступа слайда с каждой стороны. */
@media (max-width: 767px) {
    #mygallery .slick-list {
        margin-right: -10px;
    }

    #mygallery .slick-slide img {
        width: 100%;
        max-width: none;
        height: 280px;
    }
}

/* Стрелки галереи — от слайдера проектов на главной и стоят снаружи, на -4rem
   (css/home.css). Уже ниже ~1260px полей контейнера им не хватает, и они
   уезжают за край экрана, поэтому здесь они переносятся на само фото. */
@media (max-width: 1279.98px) {
    #mygallery .home-projects-slider-button {
        background: hsla(0, 0%, 100%, .75) !important;
        border-radius: 50%;
    }

    #mygallery .home-projects-slider-button.previous {
        left: 1rem;
    }

    #mygallery .home-projects-slider-button.next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .advantages-prod {
        justify-content: center;
    }
}

@media (max-width: 375px) {
    #product-tab .nav-item {
        width: 100%;
    }

    #product-tab .nav-item a.active {
        border-bottom: 1px solid #dee2e6;
    }
}

.instruct-block>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.instruct-block>div img {
    height: 60px;
}

.instruct-block>div a {
    font-size: 17px;
}

.instruct-block>div p {
    font-size: 14px;
    color: #666;
}

._choose_offer_form.mt-3 {
    width: 360px;
    max-width: 100%;
    padding: 1px 15px 15px;
    background: var(--ffj-grey-02);
}

.prod-price-f {
    color: #ed4941;
    font-size: 1.6rem;
}

._choose_offer_form.mt-3 .mb-5 {
    margin-bottom: 1rem !important;
}

@media (max-width: 375px) {
    .prod-price-f {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .prod-price-f {
        font-size: 1.1rem;
    }

    ._choose_offer_form.mt-3 {
        padding: 1px 0px 15px;
    }
}

.emp-block {
    margin: 15px 0;
}

.emp-list p,
.emp-inner-block p {
    margin-bottom: 5px;
}

.empl-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5px;
    background: var(--ffj-grey-02);
}

.empl-info>div {
    width: 650px;
    max-width: 100%;
}

.empl-info>div:first-child {
    padding: 20px;
}

.empl-info>div:last-child {
    width: 350px;
}

.emp-link {
    display: block;
    width: 350px;
    margin: auto;
    max-width: 100%;
    background: #fff;
    padding: 25px;
}

.emp-name {
    font-size: 27px;
    font-weight: 600;
    margin: 20px 0 40px;
}

.emp-ask {
    width: 300px;
    max-width: 100%;
}

.emp-name::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    border-bottom: 3px solid #1c5371;
}

.emp-inner-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.emp-inner-img {
    width: 400px;
    max-width: 100%;
}

.emp-inner-info {
    width: 600px;
    max-width: 100%;
}

.emp-quot {
    background: var(--ffj-grey-02);
    padding: 15px;
    font-style: italic;
}

.emp-cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.our_office {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px auto;
}

.our_office img {
    width: 250px;
    max-width: 100%;
    margin-bottom: 20px;
}

.our-serts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.our-serts>div {
    width: 400px;
    text-align: center;
    max-width: 100%;
}

.news-prev-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

.news-prevt img {
    margin-bottom: 10px;
}

.news-prevt {
    width: 100%;
    margin: 10px;
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-prevt .news-title {
    font-weight: bold;
    font-size: 1.1em;
}

.emp-name a {
    color: #24262b;
}

.news-prev-img {
    height: 160px;
    width: 220px;
    overflow: hidden;
}

.news-prev-cont {
    width: 800px;
    max-width: 100%;
}

.mt-3.mb-5.btn.btn-block.btn-blue.animate-up-2.read_more {
    width: 220px;
}

@media (max-width: 768px) {
    .news-prev-cont {
        width: 400px;
        max-width: 100%;
    }
}

.main-slider__item .banner-1 span:first-child {
    font-weight: bold;
}

.banner-1 ul {
    list-style-type: none !important;
    padding-left: 0;
}

.main-slider__item .banner-1 ul li:not(:last-child) {
    margin-bottom: 17px;
}

.ffj-main .ffj-carousel {
    height: initial;
}

.main-slider__bg {
    height: initial !important;
}

.main-slider__item .banner-1 p {
    margin-bottom: 0;
    margin-left: 17px;
}

.main-slider__item .banner-1 img {
    height: 24px;
}

.main-slider__item .banner-2 p,
.main-slider__item .banner-3 p {
    margin-left: 17px;
}

.main-slider__item .slider-content {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
}

.main-slider__item .main-slider__bg {
    min-height: 635px !important;
}

.main-slider__item .banner-3 img {
    width: 24px;
    height: 24px;
}

.main-slider__item .main-slider__bg .hasbg {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.main-slider__item .main-slider__bg .hasbg {
    color: #303030 !important;
}

/* The container caps the slide column at 1110px no matter how wide the screen
   gets, so the longest slogan runs to three lines at the stock 4.5rem. */
@media (min-width: 1200px) {
    .main-slider__item .slider-content .display-3 {
        font-size: 4rem;
        text-wrap: balance;
    }
}

/* Below 1200px the slide column is only 930px wide, so the full 4.5rem heading
   spills onto a third line and pushes the CTAs out of the slide. */
@media (max-width: 1199.98px) and (min-width: 959px) {
    .main-slider__item .slider-content .display-3 {
        font-size: 3.5rem;
    }
}

/* The container drops to 720px at 992px, not at 768px, so the column is down to
   690px for the whole 768-992 band -- 3rem still wraps to three lines there.
   Declared after the 959px rule above so it wins in the 959-992 overlap. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-slider__item .slider-content .display-3 {
        font-size: 2.5rem;
        text-wrap: balance;
    }
}

/* 510px of column from 576px up. This range used to stop at 750px, which left
   751-768px on the 3rem rule above and four lines of heading. */
@media (min-width: 576px) and (max-width: 767.98px) {
    .main-slider__item .slider-content .display-3 {
        font-size: 1.875rem;
        text-wrap: balance;
    }
}

@media (max-width: 480px) {
    .main-slider__item .slider-content .display-3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 375px) {
    .main-slider__item .slider-content .display-3 {
        font-size: 1.2rem;
    }

    .slider-content-first.slider-content {
        padding-top: 1rem;
    }

    .main-slider__item .main-slider__bg {
        min-height: inherit !important;
    }

    .main-slider__item .banner-1 span:last-child {
        display: none;
    }

    .main-slider__item .slider-content {
        padding-top: 3rem;
    }

    .main-slider__item .main-slider__text p {
        font-size: .825rem;
    }
}

@media (max-width: 320px) {
    .main-slider__item .slider-content {
        padding-top: 1rem;
    }
}

@media (max-width: 767px) {
    .main-slider__item .slider-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.more_proj {
    width: 225px;
    max-width: 100%;
    margin: 15px 0 15px auto;
}

.prev-next-art {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.consult-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cons-cont {
    width: 700px;
    max-width: 100%;
}

.cons-cont .emp-name {
    margin: 20px 0 20px;
}

.cons-cont .inl-b p {
    margin-bottom: 10px;
}

.inl-b {
    display: inline-block;
    vertical-align: top;
    width: 350px;
    max-width: 100%;
}

.tel-ico-cons,
.mail-ico-cons {
    display: block;
    position: relative;
    padding-left: 20px;
}

.tel-ico-cons::before {
    content: '';
    display: block;
    width: 15px;
    height: 20px;
    background: url(/themes/ffj/assets/images/phone-icon.svg) no-repeat center;
    position: absolute;
    top: 0;
    left: 0;
}

.mail-ico-cons::before {
    content: '';
    display: block;
    width: 22px;
    height: 20px;
    background: url(/themes/ffj/assets/images/mail-icon.svg) no-repeat center;
    position: absolute;
    top: 0px;
    left: -3px;
}

.cons-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.consult-block .cons-btns>div {
    width: 300px;
    height: 38px;
    margin: 10px;
}

.ptes-cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.ptes-video {
    width: 300px;
    max-width: 100%;
    height: 300px;
}

.ptes-list {
    width: 700px;
    max-width: 100%;
}

.ptes-block p {
    margin-bottom: 5px;
}

.ptes-list>div {
    padding-left: 60px;
    position: relative;
    margin: 15px 0;
}

.ptes-list>div::before {
    content: '';
    width: 50px;
    height: 50px;
    display: inline-block;
    margin-left: -60px;
    position: absolute;
}

.ptes-list>div.ptes-l-1::before {
    background: url(/themes/ffj/assets/images/1_6434153.png);
    background-size: contain;
}

.ptes-list>div.ptes-l-2::before {
    background: url(/themes/ffj/assets/images/2_6434153.png);
    background-size: contain;
}

.ptes-list>div.ptes-l-3::before {
    background: url(/themes/ffj/assets/images/3_6434153.png);
    background-size: contain;
}

.ptes-list>div.ptes-l-4::before {
    background: url(/themes/ffj/assets/images/4_6434153.png);
    background-size: contain;
}

.ptes-list>div p:first-child {
    font-weight: 600;
}

.ptes-block {
    margin: 35px 0;
}

.ptes-name {
    font-size: 27px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.btn.dsdemo {
    width: 450px;
    margin: 15px auto;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .ptes-cont {
        justify-content: space-around;
    }
}

.ptes-block,
.consult-block {
    border: 4px solid var(--ffj-grey-02);
    padding: 25px;
    border-radius: 30px;
    width: 100%;
}

.container .text-default {
    color: #4a5073;
}

.container .text-default h2 {
    color: #24262b;
}

.b_lh1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.deliv-m {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    margin: 25px 0;
}

.deliv-m>div {
    width: 310px;
    max-width: 100%;
    margin: 25px 0;
}

.deliv-m>div p {
    margin-top: 15px;
}

.blue_line {
    border-bottom: 2px solid var(--ffj-grey-02);
    margin: 25px 0;
    height: 2px;
}

@media (min-width: 1023px) {
    .paydev-block .desc-wrap {
        height: 75px;
    }
}

.paydev-block .flex-item-numb .numb-wrap {
    min-width: 85px;
    width: auto;
}

.mid-text {
    font-size: 1.5rem;
    margin: 20px 0;
}

.blue-block {
    background: var(--ffj-grey-02);
    padding: 45px;
}

.title-log {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.log-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.log-block div {
    width: 48%;
    margin: 15px 0;
    position: relative;
    padding-left: 30px;
}

@media (max-width: 768px) {
    .log-block div {
        width: 100%;
    }
}

.log-block div::before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    background: url(/themes/ffj/assets/images/check-do.png);
    position: absolute;
    left: 0;
}

.payment-m {
    display: flex;
    flex-wrap: wrap;
}

.payment-m>div {
    width: 420px;
    max-width: 100%;
    margin: 15px 0;
}

@media (max-width: 568px) {
    .payment-m>div {
        text-align: center;
    }
}

.payment-m>div div,
.payment-m>div p {
    display: inline-block;
    vertical-align: middle;
}

.payment-m>div p {
    font-weight: bold;
    width: 300px;
    margin: 10px;
    max-width: 100%
}

.do-end-text {
    margin: 40px 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Ряды карточек переносит сетка Bootstrap, вертикального отступа между ними у
   неё нет: без row-gap следующий ряд начинался вплотную к подписям предыдущего. */
.docs_row {
    row-gap: 40px;
}

.docs_row .doc {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*
 * Рамка обложки одного размера у всех карточек ряда. Высоту задаёт пропорция, а
 * не сама картинка: у обложек каталогов и у страниц манулов пропорции разные, и
 * пока рамка тянулась под содержимое (flex: auto), карточки в ряду разъезжались
 * — подписи вставали на разной высоте и читались как чужие.
 */
.docs_row .doc a {
    width: 100%;
    display: flex;
    background: var(--ffj-grey-02);
    padding: 30px;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
}

/* .img-fluid ограничивает только ширину, поэтому высокая обложка вылезала бы за
   рамку: max-height вписывает в неё страницу целиком, хоть портретную, хоть
   альбомную. */
.docs_row .doc img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

@media (max-width: 575.98px) {
    .docs_row {
        row-gap: 28px;
    }

    /* На телефоне карточки идут по две в ряд, и поля в 30px съедали бы обложку. */
    .docs_row .doc a {
        padding: 16px;
    }
}

.mt-60 {
    margin-top: 60px;
}

/* Where to Buy */
.wtb-intro {
    color: #4a5073;
    max-width: 720px;
    margin: 15px auto 0;
}

.wtb-block .wtb-map-section {
    margin-bottom: 20px;
}

.wtb-map {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ffj-grey-02);
    box-shadow: 0 6px 24px rgba(28, 83, 113, 0.08);
    padding: 20px;
}

.wtb-hint {
    text-align: center;
    color: #4a5073;
    margin-bottom: 14px;
}

.wtb-hint i {
    color: var(--ffj-red-01);
    margin-right: 6px;
}

.wtb-svg {
    display: block;
    width: 100%;
    height: auto;
}

.wtb-region {
    fill: #dbe6ef;
    stroke: #fff;
    stroke-width: 1.2;
    cursor: pointer;
    transition: fill 0.2s ease;
    fill-rule: evenodd;
    outline: none;
}

.wtb-region:hover,
.wtb-region:focus-visible {
    fill: #6da3c2;
}

.wtb-region.is-active {
    fill: var(--ffj-red-01);
}

/* stroke-based focus ring: survives .is-active (which only overrides fill) */
.wtb-region:focus-visible {
    stroke: var(--ffj-blue-02);
    stroke-width: 3;
}

.wtb-region-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    fill: var(--ffj-blue-02);
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 3px;
}

.wtb-region-label--sm {
    font-size: 15px;
}

.wtb-region-label.is-active {
    fill: #fff;
    stroke: none;
}

/* Ceuta/Melilla labels sit beside their dot on the light map background,
   so white-on-active would vanish — keep them red with the halo instead */
.wtb-region-label--dot.is-active {
    fill: var(--ffj-red-01);
    stroke: rgba(255, 255, 255, 0.75);
}

.wtb-inset-box {
    fill: #fff;
    stroke: #c8d6e2;
    stroke-width: 1;
    stroke-dasharray: 5 4;
}

.wtb-reset {
    display: none;
    margin-top: 14px;
}

.wtb-reset.is-visible {
    display: inline-block;
}

.wtb-title-region {
    color: var(--ffj-red-01);
}

.representative-col.is-hidden {
    display: none;
}

/* SVG text scales with rendered width (viewBox is 1000 units wide), so label
   sizes must grow as the map shrinks to stay readable: rendered px ≈
   font-size × (map width / 1000). */
@media (max-width: 767.98px) {
    .wtb-region-label {
        font-size: 26px;
    }

    .wtb-region-label--sm {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .wtb-map {
        padding: 10px;
    }

    .wtb-region-label {
        font-size: 30px;
    }

    /* Мелкие подписи на телефоне не помещаются, но у регионов с представителем
       они остаются (класс has-dealer ставит скрипт template-where_to_buy.php по
       карточкам дилеров) — иначе непонятно, куда нажимать. Размер — тот же,
       что на планшете: при общих 30px соседние подписи на севере налезают
       друг на друга. */
    .wtb-region-label--sm:not(.has-dealer) {
        display: none;
    }

    .wtb-region-label--sm.has-dealer {
        font-size: 20px;
    }
}

.representatives-row {
    margin-top: 10px;
}

.representative-col {
    display: flex;
    margin-bottom: 24px;
}

.representative-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.representative-card:hover {
    box-shadow: 0 12px 28px rgba(28, 83, 113, 0.12);
    border-color: #dce6ee;
}

.representative-card .rep-image {
    background: var(--ffj-grey-02);
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.representative-card .rep-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.representative-card .rep-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.representative-card .rep-city {
    color: var(--ffj-red-01);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.representative-card .rep-name {
    font-size: 16px;
    font-weight: 700;
    color: #24262b;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 12px;
}

.representative-card .rep-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--ffj-blue-01);
    border-radius: 2px;
}

.representative-card .rep-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4a5073;
    margin-bottom: 8px;
    line-height: 1.45;
}

.representative-card .rep-line i {
    color: var(--ffj-blue-01);
    width: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    text-align: center;
}

.representative-card .rep-line a {
    color: #4a5073;
    word-break: break-word;
}

.representative-card .rep-line a:hover {
    color: var(--ffj-blue-01);
}

.representative-card .rep-btn {
    margin-top: auto;
    width: 100%;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 18px;
}

.representative-card .rep-btn:hover {
    transform: none;
}

@media (max-width: 575px) {
    .representative-card .rep-image {
        height: 150px;
    }
}
