main {
    width: 1024px;
    margin: 0 auto;
    @media (max-width: 700px) {
        width: 100%;
    }
    h1 {
        font-size: 32px;
        color: var(--secondary-text);
        margin: 75px 0 30px 0;
        font-family: "VTB Group Demi Bold", sans-serif;
        @media (max-width: 700px) {
            margin-top: 30px;
            margin-inline: 25px;
        }
    }
    .inline_select {
        font-size: 16px;
        display: flex;
        gap: 15px;
        align-items: center;
        margin-bottom: 30px;
        @media (max-width: 700px) {
            margin-inline: 25px;
        }
        .info {
            color: var(--hover-text);
        }
        .select {
            position: relative;
            &:hover {
                .popup {
                    display: flex;
                    animation: header_actions_show_popup_language 0.3s forwards;
                    .text:hover {
                        color: var(--hover-text);
                    }
                }
                > .text {
                    color: var(--hover-text);
                }
            }
            span {
                color: var(--primary-text);
            }
            > .text {
                color: var(--hover-text);
            }
            .text {
                display: flex;
                align-items: flex-end;
                gap: 5px;
                line-height: 16px;
                cursor: pointer;
                transition: all 0.5s;
            }
            .popup {
                display: none;
                position: absolute;
                top: 100%;
                right: 0;
                background: #fff;
                padding: 8px 16px 10px 16px;
                border-radius: var(--border-radius);
                flex-direction: column;
                gap: 10px;
                box-shadow: var(--box-shadow-light);
            }
        }
    }
    .toggle {
        display: flex;
        margin-bottom: 60px;
        @media (max-width: 700px) {
            margin-inline: 10px;
            margin-bottom: 20px;
        }
        .toggle_button {
            padding: 10px 20px;
            font-size: 16px;
            border-top: 1px solid var( --secondary-text);
            border-bottom: 1px solid var( --secondary-text);
            cursor: pointer;
            @media (max-width: 700px) {
                font-size: 14px;
                padding-inline: 15px;
            }
            &:first-child {
                border-left: 1px solid var( --secondary-text);
            }
            &:last-child {
                border-right: 1px solid var( --secondary-text);
            }
            &.active {
                background-color: #fff;
                border: 2px solid var(--primary-blue);
            }
        }
    }
    .toggle_target {
        > * {
            display: none;
            &.active {
                display: block;
                animation: show_toggle_target 0.5s forwards;
            }
        }
    }
    .map {
        width: 100%;
        position: relative;
        margin-bottom: 44px;
        @media (max-width: 700px) {
            margin-bottom: 20px;
        }
        .overlay {
            position: absolute;
            top: 32px;
            left: 32px;
            background: #fff;
            padding: 18px 13px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow-light);
            width: 300px;
            @media (max-width: 700px) {
                position: relative;
                top: unset;
                left: unset;
                background: unset;
                box-shadow: unset;
                padding-inline: 25px;
            }
        }
        .map_container {
            height: 600px;
            background: gray;
            @media (max-width: 700px) {
                height: 350px;
            }
        }
    }
    .input {
        label {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            > span {
                margin-bottom: 5px;
                font-family: "VTB Group Demi Bold", sans-serif;
                font-size: 14px;
                color: var(--secondary-text);
            }
            input:not([type=range]), select {
                padding: 10px 20px;
                border: 1px solid var(--secondary-text);
                border-radius: var(--border-radius);
                font-size: 16px;
                outline: none;
                &:focus {
                    border-color: var(--primary-blue);
                }
            }
            input {
                font-family: "VTB Group Demi Bold", sans-serif;
            }
            select {
                font-family: "VTB Group Book", sans-serif;
            }
            .detail {
                margin-top: 5px;
                font-size: .85em;
            }
            .range {
                display: flex;
                flex-direction: column;
                input[type="range"] {
                    -webkit-appearance: none;
                    appearance: none;
                    width: calc(100% - 10px);
                    background: transparent;
                    --thumb-position: 50%;
                    --fill-color: var(--hover-text);
                    --track-color: var(--placeholder-gray);
                    align-self: center;
                }
                input[type="range"]::-webkit-slider-runnable-track {
                    background: linear-gradient(to right,
                    var(--fill-color) 0%,
                    var(--fill-color) var(--thumb-position),
                    var(--track-color) var(--thumb-position),
                    var(--track-color) 100%
                    );
                    border-radius: 4px;
                    height: 4px;
                }
                input[type="range"]::-webkit-slider-thumb {
                    -webkit-appearance: none;
                    background: #fff;
                    border: 4px solid var(--hover-text);
                    border-radius: 50%;
                    width: 25px;
                    height: 25px;
                    cursor: pointer;
                    transform: translateY(calc(-50% + 2px));
                }

                input[type="range"]::-moz-range-track {
                    background: linear-gradient(to right,
                    var(--fill-color) 0%,
                    var(--fill-color) var(--thumb-position),
                    var(--track-color) var(--thumb-position),
                    var(--track-color) 100%
                    );
                    border-radius: 4px;
                    height: 4px;
                }
                input[type="range"]::-moz-range-thumb {
                    background: #fff;
                    border: 4px solid var(--hover-text);
                    border-radius: 50%;
                    width: 25px;
                    height: 25px;
                    cursor: pointer;
                    transform: translateY(calc(-50% + 2px));
                }
                .detail {
                    display: flex;
                    justify-content: space-between;
                    span {
                        font-size: 12px;
                    }
                }
            }
        }
        .checkbox {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 0;
            &:has(:checked) {
                .checkmark {
                    &::before {
                        border-color: var(--hover-text);
                    }
                    &::after {
                        opacity: 1;
                    }
                }
            }
            .checkmark {
                width: 20px;
                height: 20px;
                position: relative;
                &::before {
                    content: "";
                    display: block;
                    width: 20px;
                    height: 20px;
                    border: 1px solid var(--secondary-text);
                    border-radius: var(--border-radius);
                    box-sizing: border-box;
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 1;
                    transition: all .5s;
                }
                &::after {
                    content: "";
                    display: block;
                    width: 14px;
                    height: 14px;
                    opacity: 0;
                    position: absolute;
                    inset: 0;
                    margin: auto;
                    z-index: 2;
                    border-radius: var(--border-radius);
                    background: var(--hover-text);
                    transition: all .5s;
                }
            }
            input {
                display: none;
            }
            span {
                font-size: 16px;
                font-family: "VTB Group Light", sans-serif;
            }

        }
    }
    .offices {
        width: 1024px;
        margin: 42px auto 60px auto;
        @media (max-width: 700px) {
            width: 100%;
            margin-top: 20px;
            overflow: clip;
        }
        h2 {
            font-size: 32px;
            color: var(--secondary-text);
            font-family: "VTB Group Demi Bold", sans-serif;
            margin-bottom: 35px;
        }
        .carousel {
            overflow: clip;
            overflow-clip-margin: 10px;
            .slides {
                display: grid;
                grid-template: 1fr / 1fr;
                margin-bottom: 20px;
                .slide {
                    grid-area: 1 / 1;
                    position: relative;
                    &.animating {
                        transition: all .5s;
                    }
                    &.active {
                        transform: translateX(0);
                        z-index: 2;
                        opacity: 1;
                    }
                    &.next {
                        opacity: 0;
                        transform: translateX(calc(100% + 20px));
                    }
                    &.prev {
                        opacity: 0;
                        transform: translateX(calc(-100% - 20px));
                    }
                    .grid {
                        display: grid;
                        grid-template-columns: 1fr 1fr;
                        gap: 20px 50px;
                        justify-content: center;
                        @media (max-width: 700px) {
                            grid-template-columns: 1fr;
                            padding-inline: 25px;
                        }
                        .card {
                            background: #fff;
                            padding: 20px;
                            border-radius: var(--border-radius);
                            box-shadow: var(--box-shadow-light);
                            transition: all .5s;
                            display: flex;
                            gap: 20px;
                            position: relative;
                            @media (max-width: 700px) {
                                &:nth-child(n+2) {
                                    display: none;
                                }
                            }
                            &:hover {
                                box-shadow: var(--box-shadow-dark);
                                .link {
                                    svg {
                                        path {
                                            fill: var(--hover-text);
                                        }
                                    }
                                }
                            }
                            &.big {
                                grid-row: span 2;
                            }
                            .text {
                                display: flex;
                                flex-direction: column;
                                flex: 1;
                                h3 {
                                    font-size: 22px;
                                    margin-bottom: 16px;
                                    font-family: "VTB Group Demi Bold", sans-serif;
                                }
                                h4 {
                                    font-family: "VTB Group Demi Bold", sans-serif;
                                    font-size: 14px;
                                    margin-bottom: 10px;
                                    color: var(--secondary-text);
                                }
                                p {
                                    font-size: 15px;
                                    color: var(--secondary-text);
                                    line-height: 24px;
                                    &:not(:last-child) {
                                        margin-bottom: 20px;
                                    }
                                    a:not(:hover) {
                                        color: var(--secondary-text);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .controls {
                display: flex;
                align-items: center;
                gap: 10px;
                @media (max-width: 700px) {
                    padding-inline: 25px;
                }
                .control {
                    width: 10px;
                    height: 10px;
                    border-radius: 10px;
                    background: var(--carousel-dot-gray);
                    cursor: pointer;
                    transition: all .5s;
                    &.active {
                        background: var(--primary-blue);
                        width: 60px;
                    }
                }
            }
        }
    }
    .contact {
        @media (max-width: 700px) {
            padding-inline: 25px;
        }
        h2 {
            font-family: "VTB Group Demi Bold", sans-serif;
            font-size: 32px;
            margin-bottom: 60px;
            color: var(--secondary-text);
            @media (max-width: 700px) {
                font-size: 24px;
                margin-bottom: 10px;
            }
        }
        .table {
            display: grid;
            grid-template-columns: repeat(var(--columns, 4), 1fr);
            margin: 60px 0 20px 0;
            @media (max-width: 700px) {
                margin-block: 30px;
                grid-template-columns: 1fr;
            }
            &.nbsp {
                * {
                    white-space: nowrap;
                }
            }
            .thead, .tcell {
                padding: 20px 20px 20px 0;
                border-bottom: 2px solid var(--placeholder-gray);
                @media (max-width: 700px) {
                    strong {
                        font-weight: normal;
                    }
                }
            }
            .thead {
                font-family: "VTB Group Demi Bold", sans-serif;
                font-size: 18px;
                @media (max-width: 700px) {
                    font-size: 12px;
                }
            }
            .tcell {
                font-size: 18px;
                color: var(--secondary-text);
                @media (max-width: 700px) {
                    font-size: 12px;
                    &:nth-child(odd) {
                        color: var(--primary-text);
                        border: none;
                        padding-bottom: 0;
                    }
                }
                &.col_span_all {
                    grid-column: 1 / -1;
                }
            }
            .table {
                margin: -20px 0;
                .tcell {
                    border: none;
                }
            }
            span {
                &.lower {
                    font-size: 0.75em;
                }
            }
        }
    }
}