
:root {
    --main-red: #FF0000;
    --main-red-hover: #990000;
    --main-darck: #454545;
    --main-darck-hover: #2B2B2B;
    --text-white: #ffffff;
    --text-darck-opacity: #45454580;
    --drop-shadow: #0000000F;
    --light-gray: #f5f5f5;
    --button-gray-bg: #E6E6E6;
    --light-gray-bg: rgba(198, 198, 198, 0.15);
    --border-color: #ccc;
    --section-color: #F9F9F9;
    --transition-speed: 0.4s;
    --input-boder-color: #FFFFFF80;
    --grade-color: #F5E831;

    --slider-percent: 0%;
    --slider-fill-color: var(--main-red);
    --slider-track-color: #e0e0e0;
    --grey-buton-bg: #C6C6C61A;
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p, h1, .h1, h2, .h2, h3, .h3 {
    margin: 0;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
    outline: none;
    outline-offset: 0;
}

button {
    border: 0;
    outline: 0;
    cursor: pointer;
    background: transparent;
}

label {
    margin: 0;
}

ul {
    list-style: none;
    margin: 0;
}

.d-none {
    display: none;
}

.no-scroll {
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif!important;
}

.main-container {
    margin: 0 auto;
    max-width: 1160px;
}

.red-button {
    border-radius: 6px;
    padding: 18px 20px;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    color: var(--text-white);
    background-color: var(--main-red);
    transition: all ease var(--transition-speed);
}

.red-button:hover {
    color: var(--text-white);
    background-color: var(--main-red-hover);
    transition: all ease var(--transition-speed);
}

.swiper-pagination {
    z-index: 1 !important;
}

div.mobile, .mobile {
    display: none;
}

.whitespace-nowrap {
    white-space: nowrap;
}

input[type="checkbox"], input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    background-color: white;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color: var(--main-red);
    border-color: var(--main-red);
}

input[type="checkbox"]:checked::after, input[type="radio"]:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-40%, -75%) rotate(45deg);
}

.bitrix-loader-overlay {
    position: absolute;
    inset: 0;
    background: var(--light-gray-bg);
    backdrop-filter: blur(3px);
    z-index: 2;
    border-radius: 6px;
}

.bitrix-loader-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 4px solid #ddd;
    border-top-color: var(--main-red);
    border-radius: 50%;
    animation: bxs-spin .8s linear infinite;
    z-index: 3;
}


/* Custom styles for the dark, adaptive layout */
.popup-overlay {
    /* Flex layout to center the modal */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.popup-content {
    /* Responsive width, max 90% of screen, but capped at 500px */
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Dark Theme Input Styles - Minimalist bottom border */
.input-group input,
.input-group textarea {
    padding: 12px 0; /* Padding top/bottom, 0 left/right for minimalist look */
    background-color: transparent;
    color: white; /* White text for contrast */
    border: none; /* Remove all default borders */
    border-bottom: 1px solid #4b5563; /* Subtle gray bottom border */
    border-radius: 0; /* No rounded corners on inputs */
    width: 100%;
    transition: border-color 0.2s;
    /* New: Ensure no user resizing is possible */
    resize: none !important;
}

/* Textarea specific height limit */
.input-group textarea {
    max-height: 300px;
}

/* Placeholder text color */
.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #9ca3af; /* Light gray placeholder */
}

/* Red focus effect for minimalist style */
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--main-red); /* Red underline on focus */
}
/* Ensure the input text aligns with the example image (no rounded corners for minimalist look) */
.input-group input {
    line-height: normal;
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
     outline: unset!important;
     outline-offset: unset!important;
}

@keyframes bxs-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 1025px) {
    .main-container {
        padding: 0 24px;
        max-width: 100%;
    }

    .red-button {
        font-size: 14px;
    }

}

@media (max-width: 767px) {
    .main-container {
        padding: 0 20px;
    }

    div.desktop, .desktop {
        display: none;
    }

    div.mobile, .mobile {
        display: flex;
    }
}
