*{
    font-family: Inter, Sans-serif, serif;
}


/* Nav start */
/* Общие стили */
header.header {
    width: 100%;
    /*height: 128px;*/
    background: #fff;
    position: fixed;
    z-index: 10;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
}

header.header > div.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Лого */
header.header > div.header__inner > a.header__logo-link > img.header__logo-link-img {
    display: block;
    height: 80px;
}

/* Десктоп-меню */
header.header > div.header__inner > nav.header__nav--desktop {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    text-align: left;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location .header__location-phone-wrapper {
    margin-left: 20px;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location .header__location-phone-wrapper .header__location-phone:hover{
    color: #C74338;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location .header__location-phone-wrapper .header__location-phone {
    text-decoration: none;
    font-weight: 600;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location .header__address {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location .header__address .header__location-city {
    font-weight: 600;
    margin-bottom: 0;
}

body > header > div > nav > div.header__location.header__location--bobruysk > div.header__address > p.header__location-address{
    margin-bottom: 0;
}

header.header > div.header__inner > nav.header__nav--desktop > div.header__location .header__location-phone-wrapper {
    display: flex;
    flex-direction: column;
}

header.header > div.header__inner > nav.header__nav--desktop
> div.header__location > strong.header__location-city {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

header.header > div.header__inner > nav.header__nav--desktop
> div.header__location > span.header__location-address,
header.header > div.header__inner > nav.header__nav--desktop
> div.header__location > a.header__location-phone {
    font-size: 16px;
    line-height: 1.4;
}

/* Бургер-кнопка */
header.header > div.header__inner > button.header__burger {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: none; /* скрываем на десктопе */
}

/* Моб. меню */
header.header > nav.header__nav--mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 500px;
    height: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    z-index: 9;
}

/* Кнопка закрытия */
header.header > nav.header__nav--mobile > button.header__cross {
    align-self: flex-end;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* Появление моб. меню при .is-open */
header.header.is-open > nav.header__nav--mobile {
    transform: translateX(0);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
}

/* Локации в моб. меню */
header.header > nav.header__nav--mobile > div.header__location {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

header.header > nav.header__nav--mobile
> div.header__location > strong.header__location-city {
    font-size: 16px;
}

header.header > nav.header__nav--mobile
> div.header__location > span.header__location-address,
header.header > nav.header__nav--mobile
> div.header__location > a.header__location-phone {
    font-size: 16px;
}

header.header > nav.header__nav--mobile
> div.header__location > a.header__location-phone {
    font-weight: 600;
    text-decoration: none;
}


header.header > nav.header__nav--mobile
> div.header__location > a.header__location-phone:hover {
    color: #C74338;
}

/* Адаптив */
@media screen and (max-width: 1080px) {
    header.header {
        height: 92px;
    }

    header.header > div.header__inner > a.header__logo-link > img.header__logo-link-img {
        height: 60px;
    }

    header.header > div.header__inner > nav.header__nav--desktop {
        display: none;
    }

    header.header > div.header__inner > button.header__burger {
        display: block;
    }
}

/* Nav end */

/*We-Make start*/
.we-make {
    width: 85%;
    margin: 0 auto;
    padding: 48px 0;
    font-family: Inter, sans-serif;
}

/* ---------- контейнер ---------- */
.we-make .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- главный заголовок ---------- */
.we-make .content .block-header {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

/* ---------- секции («Корпусная / Мягкая мебель») ---------- */
.we-make .content .content-wrapper {
    width: 100%;
    border: 1px solid #d5d5d5;
    padding: 48px 32px;
    margin-bottom: 48px;
    box-sizing: border-box;
}

.we-make .content .content-wrapper h2 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 4px;
    letter-spacing: .4px;
}

.we-make .content .content-wrapper h3 {
    font-size: 24px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin: 0 0 32px;
    display: flex;
    justify-content: center;
}

.we-make .content .content-wrapper h3 a:hover,
.we-make .content .content-wrapper h3 a:hover svg rect,
.we-make .content .content-wrapper h3 a:hover svg path {
    stroke: #C74338;
    color: #C74338;
}

.we-make .content .content-wrapper h3 a {
    text-decoration: none;
    font-size: 20px;
    align-items: center;
    align-content: center;
    text-align: center;
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

/* ---------- сетка карточек ---------- */
.we-make .content .wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}


/* ---------- карточка ---------- */
.we-make .content .wrapper-item {
    position: relative;
    width: 31.5%; /* 3 шт. в строку + зазор */
    text-align: center;
    cursor: pointer;
}

/* ---------- круг-контейнер ---------- */
.we-make .content .wrapper-item .image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .3s;
}

.we-make .content .wrapper-item:hover .image {
    transform: scale(1.04);
}

/* фото */
.we-make .content .wrapper-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* полупрозрачный слой – блюрит ТОЛЬКО фото */
.we-make .content .wrapper-item .image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s;
}

.we-make .content .wrapper-item:hover .overlay {
    opacity: 1;
}

/* ---------- контент поверх круга ---------- */
.we-make .content .wrapper-item .wrapper-item-info {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.52);
    width: 100%;
    height: 100%;
    /*inset: 0;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 1;
}

.we-make .content .wrapper-item:hover .wrapper-item-info {
    transform: scale(1.04);
}

.we-make .content .wrapper-item:hover .wrapper-item-info {
    opacity: 1;
}

/* «Описание» */
.we-make .content .wrapper-item .wrapper-item-info .wrapper-item-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* кнопка */
.we-make .content .wrapper-item .wrapper-item-info .wrapper-item-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin-top: 30px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.we-make .content .wrapper-item .wrapper-item-info .wrapper-item-button:hover {
    background: rgba(199, 67, 56, .82);
}

/* подпись под кругом */
.we-make .content .wrapper-item > a {
    position: relative;
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin: 0 auto;
}

.we-make .content .wrapper-item .wrapper-item-header {
    font-size: 20px;
    font-weight: 600;
    margin-top: 16px;
}

/* ---------- общая кнопка «Оставить заявку» ---------- */
.we-make .content .btn.btn-dark {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.we-make .content .btn.btn-dark:hover {
    background: rgba(199, 67, 56, .82);
}

/* =====================================================================
   Адаптив
   ===================================================================== */

/* ≤ 1024 px — ноутбуки */
@media (max-width: 1024px) {
    .we-make .content .wrapper-item {
        width: 48%;
    }
}

/* ≤ 768 px — планшеты */
@media (max-width: 768px) {
    .we-make {
        width: 92%;
        padding: 40px 0;
    }

    .we-make .content .block-header {
        font-size: 30px;
        margin-bottom: 32px;
    }

    #our-works .block-header {
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 40px;
    }

    .we-make .content .wrapper-item {
        width: 47%;
    }

    .we-make .content .wrapper-item .wrapper-item-info .wrapper-item-button {
        max-width: 200px;
        padding: 14px 0;
        font-size: 20px;
    }
}

/* ≤ 480 px — телефоны */
@media (max-width: 480px) {
    .we-make {
        width: 95%;
        padding: 32px 0;
    }

    .we-make .content .block-header {
        font-size: 30px;
        margin-bottom: 24px;
    }

    #our-works .block-header {
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 40px;
    }

    .we-make .content .content-wrapper {
        padding: 32px 12px;
    }

    .we-make .content .wrapper {
        gap: 28px;
        justify-content: center;
    }

    .we-make .content .wrapper .wrapper-item {
        width: 88%;
    }

    .we-make .content .wrapper-item .wrapper-item-info .wrapper-item-header {
        font-size: 20px;
    }

    .we-make .content .wrapper-item .wrapper-item-info .wrapper-item-button {
        font-size: 20px;
    }

    .we-make .content .btn.btn-dark {
        width: 100%;
        font-size: 20px;
    }
}

/*We-Make end*/

/*Slider start*/
/* ---------- корневой блок ---------- */
#slider {
    position: relative;
    width: 100%;
    min-height: 650px;
    padding-top: 112px;
    overflow: hidden;
    font-family: Inter, sans-serif;
}

@media (max-width: 1080px) {
    #slider {
        padding-top: 92px;
    }
}

/* если уберёте inline-height из разметки – сохраняем высоту тут */
#slider .slider-parallax-inner {
    width: 100%;
    height: 100%;
}

/* ---------- Swiper-контейнер ---------- */
#slider .swiper-container,
#slider .swiper-wrapper,
#slider .swiper-slide {
    width: 100%;
    height: 100%;
}

/* каждый слайд – полноэкранный фон-картинка */
#slider .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- полупрозрачная вуаль ---------- */
#slider .swiper-slide .overfill {
    /*position: absolute;*/
    /*inset: 0;*/
    /*background: rgba(0, 0, 0, .45); !* чуть плотнее для читаемости *!*/
    /*z-index: 1;*/
    /*pointer-events: none;*/
}

/* ---------- центральный контент ---------- */
#slider .slider-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 1100px;
    text-align: center;
    color: #FFFFFF;
    z-index: 2; /* выше затемнения */
}

/* заголовок */
#slider .slider-caption h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
}

/* подзаголовок */
#slider .slider-caption p {
    font-size: 16px;
    margin: 0 auto 40px;
    max-width: 800px;
    font-weight: 600;
}

/* ---------- кнопка ---------- */
#slider .slider-caption .button {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    align-self: center;
    margin-top: 30px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#slider .slider-caption .button:hover {
    background: rgba(199, 67, 56, .82);
}

/* ---------- стрелки Swiper (если используются) ---------- */
#slider .swiper-button-prev,
#slider .swiper-button-next {
    color: #FFFFFF;
    width: 56px;
    height: 56px;
    margin-top: -28px;
}

#slider .swiper-button-prev:after,
#slider .swiper-button-next:after {
    font-size: 40px;
}

/* ---------- пагинация-точки ---------- */
#slider .swiper-pagination-bullets {
    bottom: 28px !important;
}

#slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, .55);
    opacity: 1;
    transition: transform .25s, background .25s;
}
#slider > div > div > div.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal > span.swiper-pagination-bullet.swiper-pagination-bullet-active{
    background: #C74338;
}


#our-works > div > div.works__mobile > div.swiper.works__carousel.swiper-initialized.swiper-horizontal > div.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal > span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #C74338;
}
/* планшеты ≤ 768 px */
@media (max-width: 768px) {
    #slider {
        min-height: 420px;
    }

    #slider .slider-caption h2 {
        font-size: 30px;
        margin-bottom: 18px;
    }

    #slider .slider-caption p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    #slider .slider-caption .button {
        max-width: 300px;
        font-size: 16px;
    }
}

/* телефоны ≤ 425 px */
@media (max-width: 425px) {
    #slider {
        min-height: 340px;
    }

    #slider .slider-caption h2 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    #slider .slider-caption p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    #slider .slider-caption .button {
        max-width: 100%;
        font-size: 16px;
    }

    #slider .swiper-button-prev,
    #slider .swiper-button-next {
        /*display: none;*/
    }

    /* стрелки убираем */
}

/*Slider end*/

/*Our advantages start*/
/* ---------- секция ---------- */
.advantages {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 70px 0 90px;
    font-family: Inter, sans-serif;
}

/* полупрозрачная вуаль поверх фон-картинки */
.advantages::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* ---------- контейнер ---------- */
.advantages .container {
    width: min(1140px, 90%);
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* заголовок */
.advantages .container .section-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 56px;
    color: #FFFFFF;
}

/* ---------- flex-сетка ---------- */
.advantages .container .adv-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 56px 40px;
    margin: 0 0 72px;
    padding: 0;
    list-style: none;
}

/* карточка */
.advantages .container .adv-grid .adv-item {
    flex: 0 1 calc(33.333% - 40px); /* 3-в-ряд */
    max-width: 320px;
}

/* круг-иконка */
.advantages .container .adv-grid .adv-item .adv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.advantages .container .adv-grid .adv-item .adv-icon svg {
    width: 46px;
    height: 46px;
}

.advantages .container .adv-grid .adv-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.advantages .container .adv-grid .adv-item p {
    font-size: 16px;
    line-height: 1.45;
    color: #FFFFFF;
    margin: 0 auto;
    max-width: 260px;
}

/* ---------- кнопка ---------- */
.advantages .container .btn-primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.advantages .container .btn-primary:hover {
    background: rgba(199, 67, 56, .82);
}

/* =====================================================================
   Адаптив
   ===================================================================== */

/* ≤ 992 px — две карточки */
@media (max-width: 992px) {
    .advantages .container .section-title {
        font-size: 30px;
        margin-bottom: 48px;
    }

    .advantages .container .adv-grid .adv-item {
        flex: 0 1 calc(45% - 40px);
    }
    #our-works .block-header {
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 40px;
    }
}

/* ≤ 600 px — одна карточка */
@media (max-width: 600px) {
    .advantages .container .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .advantages .container .adv-grid {
        gap: 40px;
    }

    .advantages .container .adv-grid .adv-item {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .advantages .container .btn-primary {
        width: 100%;
    }
}

/*Our advantages end*/

/*Works start*/
section.works {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

section.works .content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}


.content-wrapper svg:hover rect,
.content-wrapper svg:hover path {
    stroke: #C74338;
}

section.works .block-header {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
}



/* Скрываем версии по умолчанию */
section.works .works__desktop,
section.works .works__mobile {
    display: none;
}

/* Кнопка */
section.works .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

section.works .btn:hover {
    background-color: rgba(199, 67, 56, .82);
}

#our-works > div > div.works__mobile > div.works__carousel-nav > div > div.swiper-button-prev {
    color: #C74338;
}
#our-works > div > div.works__mobile > div.works__carousel-nav > div > div.swiper-button-next {
    color: #C74338;
}

/* ========== Desktop (grid) ========== */
@media (min-width: 992px) {
    section.works .works__desktop {
        display: block;
    }

    section.works .works__mobile {
        display: none;
    }

    /* Таб-лист */
    section.works .works__tabs-list {
        display: inline-flex;
        list-style: none;
        gap: 24px;
        margin-bottom: 32px;
        padding: 0;
        cursor: pointer;
    }

    section.works .works__tab {
        padding: 8px 16px;
        font-size: 20px;
        color: #666;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s, color 0.2s;
    }

    section.works .works__tab.active {
        color: #000;
        font-weight: 600;
        border-color: #333;
    }

    /* Grid */
    section.works .works__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 40px;
    }

    section.works .works__grid .swiper-slide {
        list-style: none;
    }

    section.works .works__grid .swiper-slide a.item {
        display: block;
        border-radius: 8px;
        overflow: hidden;
    }

    section.works .works__grid .swiper-slide a.item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    section.works .works__grid .swiper-slide a.item:hover img {
        transform: scale(1.05);
    }
}

/* ========== Mobile (Swiper) ========== */
@media (max-width: 991px) {
    section.works .works__desktop {
        display: none;
    }

    section.works .works__mobile {
        display: block;
    }

    /* Навигация категорий */
    section.works .works__categories-nav {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    section.works .works__categories-nav .swiper-slide {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        transition: border-color 0.2s, color 0.2s;
    }

    section.works .works__categories-nav .swiper-slide.active {
        color: #000;
        font-weight: 600;
    }


    /* Карусель */
    section.works .works__carousel {
        position: relative;
        margin-bottom: 32px;
    }

    section.works .works__carousel .swiper-wrapper {
        display: flex;
    }

    section.works .works__carousel .swiper-slide {
        flex: 0 0 100%;
        margin-right: 0;
    }

    /* Теперь картинки лежат прямо в слайде */
    section.works .works__carousel .swiper-slide img {
        width: 100%;
        height: 600px;
        object-fit: cover;
        transition: transform 0.3s ease;
        border-radius: 8px;
    }

    section.works .works__carousel .swiper-slide:hover img {
        transform: scale(1.03);
    }

    section.works .works__carousel .swiper-pagination {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 0;
    }

    section.works .works__carousel .swiper-button-next,
    section.works .works__carousel .swiper-button-prev {
        color: #333;
        top: 50%;
        width: 28px;
        height: 28px;
        margin-top: -14px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
    }
}

/*Works end*/


/**Contact start**/
/* Базовая обёртка */
.contacts-section {
    position: relative;
    width: 100%;
    height: fit-content;
    background-color: #f0f0f0;
    padding: 70px 30px;
    box-sizing: border-box;
    background-image: url("/assets/images/img.png");
}

/* Заголовок */
.contacts-section__title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    color: #FFFFFF;
}

/* Контейнер для трех карточек */
.contacts-section__cards {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Одинаковые стили для всех карточек */
.contacts-section__card {
    position: relative;
    width: 31%;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: center;
}

/* Иконка внутри карточки */
.contacts-section__card .card-icon {
    margin: 0 auto 12px auto;
    width: 48px;
    height: 48px;
}

/* Содержимое карточки */
.contacts-section__card .card-content {
    font-family: Inter, sans-serif;
    color: #666;
}

/* Подзаголовки внутри карточек */
.contacts-section__card .card-subtitle {
    font-size: 13px;
    font-weight: 400;
    margin: 4px 0;
    color: #999;
}

/* Основной текст (телефон, часы, email) */
.contacts-section__card .card-main-phone,
.contacts-section__card .card-main-text {
    font-size: 16px;
    font-weight: 600;
    margin: 2px 0 8px 0;
    color: #333;
}

.contacts-section__card .card-main-phone:hover {
    color: #C74338;
    cursor: pointer;
}

/* Текст более мелкий */
.contacts-section__card .card-text {
    font-size: 16px;
    margin: 2px 0 0 0;
}

/* Текст телефонов */
section.contacts-section > div.contacts-section__cards > div.contacts-section__card.contacts-section__card--phones > div.card-content .telephone-wrapper .wrapper-item a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

section.contacts-section > div.contacts-section__cards > div.contacts-section__card.contacts-section__card--phones > div.card-content .telephone-wrapper .wrapper-item a:hover {
    color: #C74338;
}

/* Ссылки внутри карточки email/social */
.contacts-section__card--email a {
    text-decoration: none;
}

.contacts-section__card--email a:hover {
    color: #C74338;
}

/* Блок соцсетей */
.contacts-section__card--email .social-links {
    margin-top: 8px;
}

.contacts-section__card--email .social-icon {
    display: inline-block;
    margin: 0 4px;
}

.contacts-section__card--email .social-icon:hover {
    .contacts-section__card--email .social-icon svg rect {
        fill: red;
    }
}

/* Обёртка для нижней части (карта + форма) */
.contacts-section__content-wrapper {
    margin: 16px auto 0 auto;
}

.contacts-section__content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: fit-content;
    margin: 60px auto 0 auto;
    box-sizing: border-box;
}

/* Карта */
.contacts-section__content-wrapper .map {
    width: 65.5%;
    /*height: 100%;*/
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contacts-section__content-wrapper .map.mobile{
    display: none;
}
.contacts-section__content-wrapper .map.desktop{
    display: block;
}

/* Форма обратной связи */
.contacts-section__content-wrapper .callback {
    width: 31%;
    height: fit-content;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

/* Заголовок формы */
.contacts-section__content-wrapper .callback h4 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #C74338;
    text-align: center;
}

/* Подзаголовок (описание) */
.contacts-section__content-wrapper .callback .subtitle {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: #666;
}

/* Каждый блок input/textarea */
.contacts-section__content-wrapper .callback .form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Сообщение об ошибке (если нужно) */
.contacts-section__content-wrapper .callback .error-message {
    left: 0;
    font-size: 14px;
    color: #cc0000;
    height: fit-content;
}

.social-icon:hover rect,
.social-icon:hover path {
    stroke: #C74338;
}

.social-wrapper-row .other:hover path {
    fill: #C74338;
}



/* Стили для полей ввода */
.contacts-section__content-wrapper .callback textarea {
    height: 90px;
}

.contacts-section__card .card-content .social-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}


.contacts-section__card .card-content .social-links .social-wrapper-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 90px;
}

.contacts-section__card .card-content .social-links .social-wrapper-column .social-icon {
    display: flex;
    gap: 5px;
    align-items: center;
    color: black;
}

.contacts-section__card .card-content .social-links .social-wrapper-row {
    display: flex;
    flex-direction: row;
}


.contacts-section__content-wrapper .callback .form-control {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

/* Текстовая подсказка (small) */
.contacts-section__content-wrapper .callback .consent-note {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.3;
}

/* Ссылка внутри small */
.contacts-section__content-wrapper .callback .consent-note a {
    width: 100%;
    color: #666;
    text-decoration: none;
}

.contacts-section__content-wrapper .callback .consent-note a:hover {
    color: #C74338;
}

/* Кнопка отправки */
.contacts-section__content-wrapper .callback button {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.contacts-section__content-wrapper .callback button:hover {
    background-color: rgba(199, 67, 56, .82);
}



@media screen and (max-width: 1024px) {

    /* Сжать контейнер карточек, чтобы они не были слишком широкими */
    .contacts-section__cards {
        max-width: 90%;
    }

    /* Форма и карта (нижний блок) тоже ограничим по ширине */
    .contacts-section__content-wrapper {
        max-width: 90%;
    }

    /* Уменьшим высоту контейнера для карты, чтобы на экранах поменьше было меньше пустого пространства */
    .contacts-section__content-wrapper {
        align-items: center;
    }

    .contacts-section__content-wrapper .map {
        width: 90%;
    }

    /* Уменьшим шрифт заголовка */
    .contacts-section__title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    /* Снизим размеры текста в карточках */
    .contacts-section__card .card-subtitle {
        font-size: 13px;
    }

    .contacts-section__card .card-main-phone,
    .contacts-section__card .card-main-text {
        font-size: 16px;
    }

    .contacts-section__cards {
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .contacts-section__card {
        width: 45%;
        margin-bottom: 16px;
    }

    /* Уменьшим контейнер нижней части */
    .contacts-section__content-wrapper {
        flex-direction: column;
        height: 100%;
        max-width: 90%;
    }

    .contacts-section__content-wrapper .map {
        height: 100%;
    }

    /* Сместим форму чуть ниже и уменьшить её ширину */
    .contacts-section__content-wrapper .callback {
        width: 90%;
    }

    /* Карта на всю ширину */
    .contacts-section__content-wrapper .map {
        height: 400px;
        width: 90%;
        margin-bottom: 60px;
    }
}

@media screen and (max-width: 768px) {
    .contacts-section__content-wrapper .map {
        height: 400px;
        width: 90%;
    }

    .contacts-section__content-wrapper .map.mobile{
        display: block;
    }
    .contacts-section__content-wrapper .map.desktop{
        display: none;
    }
    /* Карточки теперь будут по одной в строку */
    .contacts-section__cards {
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin: 0 auto;
    }

    .contacts-section__card {
        width: 90%;
        margin-bottom: 16px;
    }

    /* Сократим отступы у секции */
    .contacts-section {
        padding-top: 60px;
    }

    /* Текстовые размеры */
    .contacts-section__title {
        font-size: 30px;
    }

    .contacts-section__card .card-subtitle {
        font-size: 13px;
    }

    .contacts-section__card .card-main-phone,
    .contacts-section__card .card-main-text {
        font-size: 16px;
    }

    /* Уменьшим размеры формы: шрифты и поля */
    .contacts-section__content-wrapper .callback h4 {
        font-size: 24px;
    }

    .contacts-section__content-wrapper .callback .subtitle {
        font-size: 14px;
    }

    .contacts-section__content-wrapper .callback .form-control {
        font-size: 14px;
        padding: 6px 8px;
    }

    .contacts-section__content-wrapper .callback button {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {

    /* Секция: уберём лишние отступы, чтобы всё уплотнить */
    .contacts-section {
        padding-top: 40px;
    }

    /* Заголовок */
    .contacts-section__title {
        font-size: 30px;
    }

    /* Карточки — одна на всю ширину */
    .contacts-section__cards {
        flex-wrap: wrap;
        justify-content: space-evenly;
        max-width: 400px;
        width: 100%;
    }

    .contacts-section__card {
        width: 100%;
        margin-bottom: 12px;
        padding: 16px 12px;
    }

    /* Снижаем размеры элементов карточек */
    .contacts-section__card .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .contacts-section__card .card-subtitle {
        font-size: 13px;
    }

    .contacts-section__card .card-main-phone,
    .contacts-section__card .card-main-text {
        font-size: 16px;
    }

    .contacts-section__card .card-text {
        font-size: 16px;
    }

    /* Нижний блок: карта на всю ширину */
    .contacts-section__content-wrapper {
        max-width: 400px;
        width: 100%;
        height: 100%;
        margin: 40px auto 0 auto;
    }

    .contacts-section__content-wrapper .map {
        position: relative;
        width: 100%;
        height: 400px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Форма теперь под картой, тоже на всю ширину */
    .contacts-section__content-wrapper .callback {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 16px;
        padding: 30px 20px;
    }

    /* Снижаем размеры шрифта формы */
    .contacts-section__content-wrapper .callback h4 {
        font-size: 24px;
    }

    .contacts-section__content-wrapper .callback .subtitle {
        font-size: 14px;
    }

    .contacts-section__content-wrapper .callback .form-control {
        font-size: 14px;
        padding: 6px 8px;
    }

    .contacts-section__content-wrapper .callback .consent-note {
        font-size: 12px;
    }

    .contacts-section__content-wrapper .callback button {
        font-size: 20px;
    }
}

/**Contact start**/

/*Political start*/
.policial {
    padding-top: 140px;
    width: 80%;
    max-width: 1200px;
    align-content: center;
    margin: 0 auto;
}
@media (max-width: 1080px){
    padding-top: 92px;
}

/*Political end*/

/*Modal form start*/
/* Overlay background */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Modal container */
.modal-form {
    display: none;
    position: fixed;
    height: fit-content;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

/* Active state */
.overlay.active,
.modal-form.active {
    display: block;
    opacity: 1;
}

.modal-form.active {
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1002;
}

/* Form content */
.modal-form .callback {
    width: 100%;
    height: fit-content;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px 30px;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    margin: 0;
}

.modal-form .callback h4 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #C74338;
    text-align: center;
}

.modal-form .callback .subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.modal-form .callback .form-group {
    margin-bottom: 14px;
    position: relative;
}

.modal-form .callback .error-message {
    left: 0;
    font-size: 14px;
    color: #cc0000;
    height: fit-content;
}

.modal-form .callback .form-control {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-form .callback textarea {
    height: 90px;
}

.modal-form .callback .consent-note {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.3;
}

.modal-form .callback .consent-note a {
    color: #666;
    text-decoration: none;
}

body > div.modal-form.active > form > small > a:hover{
    color: #C74338;
}

.modal-form .callback button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px 0;
    background-color: #C74338;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.modal-form .callback button[type="submit"]:hover {
    background-color: rgba(199, 67, 56, .82);
}

@media screen and (max-width: 480px) {
    .modal-form .callback button[type="submit"]{
        font-size: 20px;
    }
    .modal-form .callback {
        padding: 16px 12px;
    }

    .modal-form .callback h4 {
        font-size: 24px;
    }

    .modal-form .callback .subtitle {
        font-size: 14px;
    }

    .modal-form .callback .form-control {
        font-size: 14px;
        padding: 6px 8px;
    }

    .modal-form .callback .consent-note {
        font-size: 12px;
    }
}

/*Modal form end*/

/*Footer start*/
#wrapper > footer > div > div > div.col-md-6.text-center.text-md-right > a{
    color: white;
    font-size: 16px;
    text-decoration: none;
}

#wrapper > footer > div > div > div.col-md-6.text-center.text-md-right > a:hover{
    color: #C74338;
    font-size: 16px;
    text-decoration: none;
}

#wrapper > footer > div > div > div.col-md-6.text-center.text-md-left.mb-4.mb-md-0 > a{
    display: block;
    width: fit-content;
    height: 80px;
}

@media (max-width: 1080px) {
    #wrapper > footer > div > div > div.col-md-6.text-center.text-md-left.mb-4.mb-md-0 > a {
        height: 60px;
    }
}

@media (max-width: 768px) {
    #wrapper > footer > div > div > div.col-md-6.text-center.text-md-left.mb-4.mb-md-0 > a {
        margin: 0 auto;
        height: 60px;
    }
}
/*Footer end*/