* {
    font-family: "Inter", sans-serif;
}

body {
    background-color: #080808;
    color: white;
    font-family: sans-serif;
}

header {
    background-color: #080808;
    padding: 40px 0 20px;
    border-top: 1px solid #1e1e1e;
}

.title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}

.header-logo img {
    height: 50px;
}

.car-card img {
    width: 100%;
    border-radius: 8px;
}

.header-nav a {
    color: #9A9494;
    margin: 0 10px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.subtitle_hero {
    color: #B3B3B3;
}

.header-nav {
    align-items: center;
    display: flex;
    justify-content: left;
    flex-direction: row;
    white-space: nowrap;
    margin-left: -50px;
    margin-right: 50px;
}

.hero_block {
    background-image: url("https://automir-vdk.ru/wp-content/themes/automir/pic/hero_block.webp");
    min-height: 334px;
    background-size: contain;
    background-repeat: no-repeat;
}

.title_hero {
    padding-top: 60px;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    line-height: 1.3;
    font-weight: 600;
    font-size: 34px;
}

.header-social img {
    height: 20px;
    margin-bottom: 2px;
}

.header-social {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: end;
}

.header-contact {
    color: white;
    font-weight: bold;
    text-align: end;
}

.header-contact {
    white-space: nowrap;
}
.email {
    font-size: 14px;
}
.team_subtitle {
    color: #989898;
}
.header_link_item {
    white-space: nowrap;
    color: white;
    text-decoration: underline;
    margin-left: 5px;
    font-size: 13px;
    font-weight: 200;
    padding-bottom: 1px;
}

.btn-gray {
    background-color: transparent;
    border: 2px solid #3F3F3F;
    color: #989898;
    padding: 8px 40px;
    text-transform: uppercase;
    height: 42px;
    font-family: "Inter", sans-serif;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.second_wrapper {
    display: flex;
    flex-direction: column;
}

.slider_descr {
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.car-card p {
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: white;
}

.btn-gray:hover {
    background-color: #3F3F3F;
    color: #989898;
}


.car-card img {
    width: 100%;
    height: auto;
}

.icon-text img {
    margin-bottom: 10px;
}

footer {
    padding: 40px 0 20px;
}

.footer-logo img {
    height: 50px;
}
.footer-cont a {
    color: #B3B3B3;
}
.footer-nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    white-space: nowrap;
}
.footer-cont {
    display: flex;
    flex-direction: column;
    margin-left: -40px;
    margin-right: 40px;
}

.footer-social img {
    height: 20px;
    margin-bottom: 2px;
}

.footer-contact {
    color: #F49619;
    font-weight: bold;
    font-style: italic;
}

.footer-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}

.features_cont img {
    width: 66px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.overlay.active {
    display: block;
}
.background_second-block {
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #080606;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
}

#mobile_header {
    display: none !important;
}

.btn-close img {
    width: 30px;
    height: 30px;
}

.link_overlay {
    color: white;
    margin: 10px;
}


.second_block .header_link_item img, .second_block .header_link_item {
    margin: 0px;
}

.price_desc {
    font-size: 14px;
    font-weight: 200;
    max-width: 615px;
    color:#B3B3B3;
    font-family: "Inter", sans-serif;
    line-height: 160%;
    margin-top:20px;
}
.col-md-2-4 {
    width: 20%;
}
.team_title {
    color:#B3B3B3;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0!important;
    margin-top: 10px!important;
}
.team_description {
    color: #B3B3B3;
}

.last_block_wrapper {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.header_link_item img {
    margin-right: 4px;
}

.second_container {
    padding: 52px 0;
}
.price_bottom_button {
    font-size: 12px;
    text-align: center;
    margin-top:10px;
}
.last_container_block {
    margin-top: 4rem;
    margin-bottom:4rem;
}
@media (max-width: 1400px) {
    footer, header {
        font-size: 14px;
    }
    .header-nav {
        margin-left: -10px;
        margin-right: 10px;
    }
    .header_link_item j {
        display: none;
    }
    .footer-cont {
        display: flex;
        flex-direction: column;
        margin-left: 9px;
        margin-right: -9px;
    }
}

@media (max-width: 1200px) {
    .footer-social img, header-social img {
        height: 15px;
    }

    .header-social {
        gap: 5px;
    }

}

@media (max-width: 1100px) {
    .team-carousel .col-md-2-4 {
        width: 100%;
    }
    .btn-gray {
        padding: 8px 7px;
    }
}


@media (max-width: 1000px) {
    .footer-content, .header-content {
        flex-direction: column;
        justify-content: left;
    }

    nav, .footer-contact {
        display: none !important;
    }

    .burger {
        display: block;
    }

    #pc_header {
        display: none !important;
    }

    #mobile_header {
        display: flex !important;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .btn-gray {
        width: 100%;
    }
    .team_text {
        max-width: 80%;
    }
    .title_hero {
        padding-top: 100px;
    }
    .header-nav {
        justify-content: center;
    }
    .last_block_wrapper {
        flex-direction: column;
    }
    .footer-cont {
        display: flex;
        flex-direction: column;
        margin-left: 0px;
        margin-right: 0px;
    }
    .second_container {
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        margin: 0!important;
        padding-top: 0;
        padding-bottom: 20px;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.team-grid img {
    width: 100%;
    height: auto;
    display: block;
}
.car-card  img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ── MODAL ── */
.calc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(200, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.calc-modal-overlay.active {
    display: flex;
}
.calc-modal {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    width: min(460px, 92vw);
    padding: 0;
    position: relative;
    animation: modalIn .28s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.calc-modal-header {
    padding: 28px 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calc-modal-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.calc-modal-logo img {
    height: 36px;
}
.calc-modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .2s;
}
.calc-modal-close:hover { color: #fff; }
.calc-modal-body {
    padding: 24px 32px 36px;
}
.calc-modal-body h2 {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.calc-modal-body p.modal-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}
.calc-modal-body .form-field {
    margin-bottom: 12px;
    position: relative;
}
.calc-modal-body .form-field label {
    display: block;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.calc-modal-body .form-field input {
    width: 100%;
    background: #161616;
    border: 1px solid #252525;
    color: #fff;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    border-radius: 0;
}
.calc-modal-body .form-field input:focus {
    border-color: #e31c23;
}
.calc-modal-body .form-field input::placeholder {
    color: #3a3a3a;
}
.calc-modal-body .btn-modal-submit {
    width: 100%;
    background: #e31c23;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
    font-family: inherit;
}
.calc-modal-body .btn-modal-submit:hover {
    background: #c0151c;
}
.calc-modal-body .modal-agree {
    font-size: 11px;
    color: #444;
    text-align: center;
    margin-top: 12px;
}
.calc-modal-body .modal-agree a {
    color: #666;
    text-decoration: underline;
}
/* success state */
.calc-modal-success {
    display: none;
    text-align: center;
    padding: 20px 0 10px;
}
.calc-modal-success .success-icon {
    width: 56px; height: 56px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}
.calc-modal-success h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}
.calc-modal-success p {
    color: #666;
    font-size: 14px;
}

/* team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}
.team-grid img {
    width: 100%;
    height: auto;
    display: block;
}
.rev-card img{
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rev-card img{
        width: 100%;
        height: auto;
        object-fit: contain;
    }

}
