.bread-crumbs-search {
    border-bottom: 1px solid var(--border);
}

main {
    position: relative;
    background:   var(--background-gradient-section);
    z-index: 1;
    padding-bottom: 190px;
}

.background-image {
    position: absolute;
    content: '';
    background-image: url(../content/img/background-main.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 800px;
    z-index: -2;
    top: 0;
    left: 0;

}

main::before {
    position: absolute;
    content: '';
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 0px 8px 0px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.contacts-about-us-wrapper {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.contacts-about-us-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 32px;
    line-height: 80px;
    letter-spacing: 0%;
}

.contacts-about-us-info-list {
    max-width: 500px;
}

.contacts-about-us-info-list li {
    margin-bottom: 35px;
}


.contacts-about-us-info-list li span:first-child {
    font-weight: 800;
    font-size: 18px;
}

/* Представительства */

h2{
    font-weight: 700;
    font-style: Bold;
    font-size: 32px;
    line-height: 80px;
    letter-spacing: 0%;
}

.rus-representatives-item {
    margin-bottom: 15px;
    font-size: 16px;
}

.sng-representatives-item {
    margin-bottom: 15px;
    font-size: 16px;  
}

/* Форма обратной связи */

#feedback-form {
    max-width: 1000px;
}

.feedback-label-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 32px;
    line-height: 80px;
    letter-spacing: 0%;
}

.feedback-label-text {
    max-width: 500px;
    line-height: 35px;
    margin-bottom: 45px;
}

.feedback-form-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-bottom: 35px;
}

.feedback-form-content-wrapper input {
    height: 60px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 10px;
    font-size: 18px;
    color: black;
}

.feedback-form-content-wrapper input:focus, textarea:focus {
    outline: 2px solid var(--background-alt-red);
}

#feedback-message-textarea {
    height: 300px;
    resize: none;
    background: transparent;
    font-size: 18px;
    padding: 30px 15px 15px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.feedback-consent-personal-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-consent-item {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 15px;
    align-items: center;
}

#feedback-consent-personal-data-checkbox,
#feedback-privacy-policy-acknowledged-checkbox {
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    margin: 0;
}

.feedback-consent-item label {
    font-size: 18px;
}

.feedback-consent-item label a {
    border-bottom: 1px solid black;
}

.feedback-form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feedback-captcha-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.feedback-captcha-wrapper > label {
    font-size: 18px;
    font-weight: 600;
}

.feedback-captcha-control {
    display: grid;
    grid-template-columns: 240px minmax(220px, 360px);
    gap: 16px;
    align-items: center;
}

.feedback-captcha-control .captcha {
    display: block;
    width: 240px;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: 5px;
    object-fit: contain;
    background-color: #ffffff;
}

.feedback-captcha-control input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.feedback-captcha-refresh {
    min-width: 160px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--background-alt-red);
    border-radius: 5px;
    background: transparent;
    color: var(--background-alt-red);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.feedback-captcha-refresh:hover,
.feedback-captcha-refresh:focus-visible {
    background: var(--background-alt-red);
    color: #ffffff;
}

.feedback-captcha-refresh:focus-visible {
    outline: 2px solid var(--background-alt-red);
    outline-offset: 2px;
}

.feedback-captcha-refresh:disabled {
    cursor: wait;
    opacity: 0.6;
}

.feedback-captcha-error {
    margin: 0;
    color: var(--background-alt-red);
    font-size: 14px;
    font-weight: 600;
}

.feedback-form-submit-btn {
    width: 360px;
    height: 100px;
    border-radius: 16px;
    background: #9F0000;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.feedback-form-submit-btn:hover {
    background: transparent;
    color: black;
    border: 1px solid #9F0000;
    transition: 0.7s;
}

/* Модальное окно подтверждения отправки проекта */

.modal-success {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.success_send_form {
    width: 50vw;
    height: max-content;
    background: white;
    margin: 0 auto;
    margin-top: 150px;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.modal-label {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    
}

.close-button-modal {
    font-size: 22px;
    font-weight: 600;
}

.close-button-modal:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: 0.7s;
}

.success_send_form p {
    padding-top: 75px;
    padding-bottom: 75px;
    font-size: 18px;
}

/* География продаж секция */

.middle-block-section {
    background-image: var(--background-gradient-section);
}

.middle-block-title {
    font-weight: 600;
    font-size: 32px;
    margin: 0;
    padding-top: 55px;
    margin-bottom: 60px;
    line-height: 80px;
}

/* Карта продаж */

.rf-map,
.rf-map * {
    box-sizing: border-box;
}

.rf-map {
    position: relative;
    margin: auto;
    padding: 24px;
    border-radius: 28px;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 242, 248, 0.96)); */
    /* box-shadow: 0 18px 40px rgba(10, 22, 33, 0.12); */
}

.rf-map__canvas,
.rf-map svg {
    width: 100%;
}

.rf-map__canvas {
    position: relative;
    aspect-ratio: 1000 / 600;
    min-height: 320px;
}

svg.rf-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    filter: none;
    pointer-events: none;
}

.rf-map__overlay [data-code] {
    pointer-events: auto;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.rf-map svg .rf-map__overlay {
    pointer-events: none;
}

.rf-map__cities {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.rf-map__city {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.rf-map__city-dot {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: #1d4567;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.rf-map__city-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: #0a1621;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rf-map svg .rf-map__cities {
    pointer-events: none;
}

.rf-map svg .rf-map__city-marker-dot {
    fill: #1d4567;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 3;
}

.rf-map svg .rf-map__city-marker-label {
    fill: #0a1621;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2px;
    stroke-linejoin: round;
}

.rf-map svg {
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(10, 22, 33, 0.16));
}

.rf-map .district b {
    position: absolute;
    z-index: 5;
    width: 12px;
    height: 12px;
    background: var(--background-alt-red);
    border-radius: 50%;
    left: 28px;
    top: 32px;
    transition: all 0.3s;
}

.rf-map .district span {
    position: absolute;
    z-index: 5;
    top: 28px;
    left: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: Tahoma, sans-serif;
    line-height: 1;
    color: #0a1621;
}

.rf-map .district {
    display: none;
}

.rf-map.open .district b {
    box-shadow: 0 0 0 6px rgba(254, 133, 91, 0.18);
}

.rf-map.open .district span {
    color: var(--background-alt-red);
}

.rf-map path {
    stroke: #ffffff;
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.rf-map [data-code] {
    fill: rgb(138, 143, 147);
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.rf-map [data-code].region-active {
    fill: #B70101 !important;
}

.rf-map [data-code].region-current {
    fill: #1d4567 !important;
}

.rf-map .district-text {
    display: none;
    position: absolute;
    z-index: 6;
    left: 18px;
    right: 18px;
    top: 64px;
    bottom: 18px;
    padding: 24px;
    overflow: auto;
    color: var(--background-alt-red);
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 36px rgba(10, 22, 33, 0.18);
}

.rf-map .close-district {
    opacity: 0;
    z-index: 6;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    line-height: 1;
    font-size: 32px;
    color: rgba(105, 0, 0, 1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(10, 22, 33, 0.16);
    cursor: pointer;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rf-map.open .close-district {
    opacity: 1;
    pointer-events: initial;
}

.rf-map .district-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rf-map .district-links div {
    padding: 8px 12px;
    font-size: 13px;
    font-family: Verdana, sans-serif;
    color: #0a1621;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(10, 22, 33, 0.08);
    border-radius: 999px;
    cursor: pointer;
}

@media (min-width:768px){
    .rf-map {
        padding: 30px;
    }

    .rf-map__canvas {
        min-height: 420px;
    }

    .rf-map .district b {
        width: 14px;
        height: 14px;
        left: 34px;
        top: 40px;
    }

    .rf-map .district span {
        top: 36px;
        left: 60px;
        font-size: 20px;
    }

    .rf-map .district-text {
        left: 28px;
        right: 28px;
        top: 84px;
        bottom: 28px;
        font-size: 16px;
    }

    .rf-map .close-district {
        width: 52px;
        height: 52px;
        font-size: 40px;
    }
    
}

.rf-map .district-links {
        display: none;
}
/* Цвета регионов */

.rf-map [data-select="true"] {
    fill: #B70101;
    cursor: pointer;
}

.rf-map [data-hover="true"]:hover {
    fill: #6e0202;
}
