@font-face {
    font-family: 'Russo';
    src: url('fonts/RussoOne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-Regular.woff2') format('woff2');

}

.russo {
    font-family: 'Russo', sans-serif;
}
.onest {
    font-family: 'Onest', sans-serif;
}

/* Color Variables */
:root {
    --primary-blue: #4B8DCA;
    --secondary-orange: #FF5F1B;
    --light-blue: #EBF4FF;
    --dark-blue: #1E3A8A;
    --light-gray: #F8F9FA;
    --dark-gray: #6B7280;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
}

/* Header Styles */
.phone i {
    color: var(--secondary-orange);
}

.nav-btn {
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    border: 2px solid #F6841F;
    text-decoration: none;
    color: black;
    font-family: Onest;
    font-size: 20px;
    text-align: center;
}
.nav-btn:hover {
    background: #ff9a3a33;
    transform: translateY(-1px);
}

/* Product cards with nav-btn border style */
.card {
    border: 2px solid #F6841F !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(246, 132, 31, 0.3);
}

.custom-head-btn {
    width: auto;
    height: 70px;
}

@media (max-width: 768px) {
    .address {
        font-size: 17px !important;
    }
    .phone {
        font-size: 17px !important;
    }

    .nav-btn {
        background: var(--primary-blue);
    }
    .nav-btn:hover {
        background: #3A7BC8;
    }
}

/* Hero Section */
.hero-background {
    inset: 0;
    z-index: -2;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.slide.active {
    opacity: 0.3;
}

.hero-overlay {
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.8) 0%, 
        rgba(74, 144, 226, 0.6) 50%, 
        rgba(255, 107, 53, 0.4) 100%);
    z-index: -1;
}
.hero-title{
    font-size: 145px;
}
.title-re, .title-car {
    color: var(--secondary-orange);
}

.feature-icon img {
    width: 50px;
    height: 50px;
}

.feature-icon + p {
    font-size: 17px;
    font-family: Onest;
    font-weight: bold;
}

.btn-order {
    background: var(--secondary-orange);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-order:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Car Animation */
.car-image {
    filter: blur(2px) brightness(0.7);
}

/*.pixel-overlay {
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 8px,
        rgba(0, 0, 0, 0.8) 8px,
        rgba(0, 0, 0, 0.8) 16px,
        transparent 16px,
        transparent 24px,
        rgba(255, 255, 255, 0.9) 24px,
        rgba(255, 255, 255, 0.9) 32px
    );
    animation: pixelWalk 3s linear infinite;
}
*/
@keyframes pixelWalk {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 70px;
    }
    .hero-description {
        font-size: 17px !important;
    }
    .hero-avto {
        width: 400px !important;
        margin-bottom: 20px;
        margin-left: 45px !important;
        z-index: -1;
    }
    .btn-order {
        font-size: 20px !important;
        z-index: 100;
    }
    .feature-icon img {
        width: 30px;
        height: 30px;
    }

    .feature-icon + p {
        font-size: 10px;
    }
}
/* Quiz/Constructor Section */
.card.transparent {
    background: transparent;
    border: 0;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-radius: 30px;
    object-fit: cover;
    height: 250px;
}
.card-title {
    position: absolute;
    text-transform: uppercase;
    color: white;
    font-size: 20px;
    bottom: -8px;
    left: 0;
    width: 100%;
    padding: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: -webkit-gradient(linear, left top, left bottom, from(transparent), to #141414);
    background: linear-gradient(transparent, #141414);
}

#constructor {
    background-size: cover;
    background-position: top center;
}

/* Labels and Radio Buttons */
.quiz-form label {
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-blue);
}
.quiz-form input:checked + .radio-style {
    background: var(--secondary-orange);
}
.quiz-form input:checked + .radio-style svg circle {
    stroke: var(--white);
    stroke-width: 50;
}
.radio-style {
    display: flex;
    width: 20px;
    height: 20px;
    border-radius: 50rem;
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid #999;
}

.form-check-input:checked {
    background-color: var(--secondary-orange);
}

/* Final Settings */
.quiz-cost p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-orange);
}

#quiz-inp-tel {
    padding: 0.75rem;
    background-color: #e6e6e6;
}

.quiz__submit-button {
    background: var(--secondary-orange);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.quiz__submit-button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

@media (max-width: 768px) {
    .const-row {
        gap: 20px;
    }

    .quiz-title {
        font-size: 39px !important;
    }
    .quiz-description {
        font-size: 19px !important;
    }

    .quiz-cost {
        font-size: 13px !important;
    }
    .quiz-cost p {
        font-size: 18px !important;
    }

    #quiz-inp-tel {
        padding: 0.3rem;
        font-size: 15px !important;
    }

    .quiz__submit-button {
        padding: 0.3rem;
        font-size: 15px !important;
    }

    .picture-col {
        height: 406px !important;
    }

    label.onest {
        font-size: 10px !important;
    }

    .underline-text {
        font-size: 12px !important;
    }

    .txt {
        font-size: 15px !important;
    }

    .mobile-clean-button {
        padding: 0.2rem 0 !important;
    }

    .radio-style {
        width: 16px;
        height: 16px;
    }

    .row.g-2 {
        white-space: nowrap;
    }

    .col-left-m {
        margin-left: 8px;
    }

    .col-right-m {
        margin-right: 8px;
    }

    .accordion-mobile {
        width: 90vw !important;
    }

    .quiz-form label.mobile-clean-button {
        background: transparent !important;
        padding: 0 !important;
        border-color: var(--secondary-orange) !important;
    }

    .accordion-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .rotate[aria-expanded="true"] .accordion-icon {
        transform: rotate(180deg);
    }

    .accordion-wrapper {
        position: relative;
    }

    .accordion-content {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        width: 100%;
        background-color: white;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .accordion-content.show {
        opacity: 1;
        max-height: 300px; /* Максимальная высота при раскрытии */
        pointer-events: auto;
    }
}

/* Work Scheme Section */
.work-title {
    color: #163577;
    font-size: 70px;
}

.step-header {
    color: var(--secondary-orange);
    font-size: 50px;
}

.work-step-number {
    position: absolute;
    right: 24px;
    bottom: 10px;
    font-size: 8rem;
    color: var(--secondary-orange);
    opacity: 0.33;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

@media (max-width: 768px) {
    .work-title {
        font-size: 39px;
    }
    .step-header {
        font-size: 25px;
    }
    .step-description {
        font-size: 20px !important;
    }
}

/* Products Section */
.products-title {
    font-size: 70px;
}

.products-slide {
    display: none;
}
.products-slide.active {
    display: block;
}

.product-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--secondary-orange);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background: #E55A2B;
    transform: scale(1.1);
}

/* Products Pagination */
.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}
.pagination-dot.active {
    background: var(--secondary-orange);
    transform: scale(1.2);
}
.pagination-dot:hover {
    background: rgba(255, 107, 53, 0.7);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .products-title{
        font-size: 39px;
    }
    .product-description {
        font-size: 18px !important;
    }

    .invisible-row {
        display: none !important;
    }

    .visible-row {
        display: flex !important;
        flex-direction: column;
        gap: 10px; /* расстояние между карточками */
    }

    .visible-row .product-item img {
        height: 400px !important;
        border-radius: 12px;
    }

    .visible-row .col-md-4 {
        width: 100% !important;
        display: flex;
        justify-content: center;
    }

    .visible-row .product-item {
        width: 90%;
    }

    .pagination-dot {
        width: 15px;
        height: 15px;
    }
    .dots {
        padding: 20px;
    }
}

/* Reviews Section */
.reviews-slide {
    flex: 1;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.8s ease-in-out;
}
.reviews-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.review-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    height: 300px;
    width: 570px;
}

.review-image {
    width: 200px;
    height: 260px;
    border-radius: 30px;
    overflow: hidden;
}
.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.review-content h4 {
    font-family: Onest;
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 10px;
}

.review-content p {
    line-height: 1.4;
    font-size: 24px;
}

@media (max-width: 768px) {
    .work-description {
        font-size: 18px !important;
    }

    .carousel-btn {
        width: 35px;
        height: 30px;
    }

    .review-card {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        width: 100%;
    }

    .review-image {
        width: 100%;
        height: 130px;
        border-radius: 15px;
    }

    .review-content {
        justify-content: start;
        gap: 0px;
    }

    .review-content h4 {
        font-size: 14px;
    }

    .review-content p {
        font-size: 12px;
    }
}

/* Map Section */
.map-section {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
    filter: grayscale(1) brightness(0.8);
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #888;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.map-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

.map-logo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.map-details {
    flex: 1;
    text-align: center;
}

.map-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.map-details p {
    font-size: 14px;
    margin-bottom: 2px;
}

.map-contacts {
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: var(--secondary-orange);
    transform: scale(1.1);
}

.contacts-balloon {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contacts-balloon .icons {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.contacts-balloon .icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ececec;
    color: #222;
    font-size: 18px;
}

.map-left-panel {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
    width: 340px;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
}

.map-left-content {
    padding: 28px 28px 20px 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-left-title {
    font-size: 30px;
}

.map-left-phones, .map-left-address {
    font-size: 19px;
}

.map-left-icons {
    display: flex;
    gap: 15px;
}

.map-left-icons .icon {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ececec;
    color: #222;
    font-size: 20px;
}

.map-left-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 18px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s;
}

.map-left-link:hover {
    background: #e3e3e3;
    color: #0d47a1;
}

@media (max-width: 768px) {
    .map-section {
        height: 600px;
    }

    .map-left-panel {
        top: 5px;
        left: 5px;
        width: 250px;
    }

    .map-left-content {
        padding: 15px 15px 10px 15px;
        gap: 5px;
    }

    .map-left-title {
        font-size: 20px;
    }

    .map-left-phones, .map-left-address {
        font-size: 14px;
    }

    .map-left-icons {
        gap: 5px;
    }

    .map-left-link {
        font-size: 15px;
    }
}

/* Modal Styles */
.modal-title {
    color: var(--secondary-orange);
    font-size: 24px;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.privacy-notice {
    font-size: 12px;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.modal-open {
    padding: 0px !important;
}

@media (max-width: 767.98px) {
    .modal-open {
        padding: 0 !important;
    }
}

.modal-dialog {
    overflow-y: auto; /* Включаем вертикальный скролл только для модального окна */
}

@media (max-width: 768px) {
    .modal-number {
        font-size: 18px !important;
        font-family: Onest;
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .address, .phone {
        font-size: 15px !important;
    }
    .hero-row {
        min-height: 80vh !important;
    }
    .hero-title {
        font-size: 63px;
    }
    .quiz-description, .step-description, .product-description, .work-description {
        font-size: 16px !important;
    }
    .picture-col {
        height: 350px !important;
    }
    .txt {
        font-size: 13px !important;
    }
    .quiz-cost p {
        font-size: 16px !important;
    }
    .underline-text, .callback-text {
        font-size: 11px !important;
    }
    html, body {
        overflow-x: hidden;
    }
}

/* Для значкев телеги, вотсапа и тд, чтобы не было полос */
.contact-icon, .icon {
    text-decoration: none !important;
}

/* Чтобы гиперссылка не светилась синим и при наведении ничего не менялось */
.address:hover, .address:active, .address:visited {
    color: inherit !important;
    text-decoration: none !important;
}

a.address {
    text-decoration: none !important;
    color: inherit !important;
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

html, body {
    max-width: 100%;
/*    overflow-x: hidden;*/
}

.modal,
.modal-backdrop {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Chat-style FAQ */
.chat-style-faq {
    max-width: 1200px;
    margin: 0 auto;
}

.chat-message {
    margin-bottom: 50px;
    display: flex;
}

.chat-right {
    justify-content: flex-end;
}

.chat-bubble {
    font-size: 28px;
    padding: 20px 10px 10px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: var(--white);
}

.chat-bubble-left {
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: var(--white);
}

.chat-left .chat-bubble {  
    border-radius: 20px 20px 20px 0px;
    width: 80%;
}

.chat-right .chat-bubble {
    border-radius: 20px 20px 0px 20px;
    max-width: 90%;
}

@media (max-width: 576px) {
    .chat-message {
        margin-bottom: 20px;
    }

    .chat-bubble {
        font-size: 18px;
        padding: 10px 10px 0px 20px;
    }
}

/*Политика*/
.page-content {
    display: flex;
    flex-direction: column;
}

.policy-container {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 0px 20px 40px 20px;
    font-family: Onest;
    font-size: 22px;
}
.policy-title {
    text-align: center;
    font-family: Russo;
    font-size: 70px;
    font-weight: bold;
}
.policy-subtitle {
    text-align: center;
    font-family: Russo;
    font-size: 58px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-bottom {
    width: 100%;
    background: #888;
    color: #fff;
    text-align: center;
    padding: 20px;
}

@media (max-width: 576px) {
    .policy-container {
        font-size: 18px;
    }
    .policy-title {
        font-size: 28px;
    }
    .policy-subtitle {
        font-size: 25px;
    }
    .map-info {
        flex-direction: column;
        gap: 10px;
    }
}