/* =====================================================
   АВТО DROM
   MAIN STYLES
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0b0b0c;
    color: #ffffff;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ================= COLORS ================= */

:root {
    --red: #e21b23;
    --red-dark: #b90f16;
    --black: #080809;
    --black2: #101011;
    --gray: #999999;
    --light: #eeeeee;
    --border: rgba(255,255,255,0.10);
}


/* ================= HEADER — ИСПРАВЛЕНА ФИКСАЦИЯ ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(7,7,8,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    /* Убираем transform и will-change — они ломали fixed на мобильных */
    transform: none;
    -webkit-transform: none;
    will-change: auto;
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav a {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #c9c9c9;

    transition: 0.25s;
}

.nav a:hover {
    color: var(--red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-size: 14px;
    font-weight: 700;
}

.header-button {
    border: 1px solid var(--red);
    background: var(--red);

    color: white;

    padding: 12px 20px;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    transition: 0.25s;
}

.header-button:hover {
    background: transparent;
}


/* ===== УЛУЧШЕННЫЙ БУРГЕР С АККУРАТНЫМ КРЕСТИКОМ ===== */
.burger {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    display: block;
    position: absolute;
    height: 3px;
    background: #fff;
    width: 28px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 3px;
    transition: 0.3s ease;
    transform-origin: center;
}

.burger span:nth-child(1) {
    top: 12px;
}
.burger span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}
.burger span:nth-child(3) {
    bottom: 12px;
}

/* Анимация в крестик */
.burger.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}
.burger.active span:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}


/* ================= HERO ================= */

.hero {
    min-height: 850px;

    position: relative;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(5,5,6,0.98) 0%,
            rgba(5,5,6,0.85) 48%,
            rgba(5,5,6,0.35) 100%
        ),
        url("images/service-1.jpg");  /* Первая фотка оставлена */

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(226,27,35,0.10),
            transparent 40%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 80px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #bbb;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero-label span {
    width: 35px;
    height: 3px;
    background: var(--red);
}

.hero h1 {
    margin-top: 25px;

    max-width: 800px;

    font-family: 'Oswald', sans-serif;

    font-size: clamp(52px, 7vw, 92px);
    line-height: 1.15;

    letter-spacing: -2px;
}

.hero h1 strong {
    color: var(--red);
}

.hero-text {
    margin-top: 35px;

    max-width: 570px;

    color: #c0c0c0;

    font-size: 16px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 35px;
}

.button {
    border: none;

    min-height: 54px;

    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    transition: 0.25s;
}

.button-red {
    background: var(--red);
    color: white;
}

.button-red:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

.button-outline {
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
}

.button-outline:hover {
    border-color: white;
    background: white;
    color: black;
}

.hero-stats {
    margin-top: 75px;

    display: flex;
    gap: 60px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stats strong {
    font-family: 'Oswald', sans-serif;

    font-size: 32px;
}

.hero-stats span {
    color: #999;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down {
    position: absolute;

    right: 35px;
    bottom: 40px;

    color: #777;

    font-size: 10px;
    letter-spacing: 3px;

    writing-mode: vertical-rl;
}


/* ================= QUICK BOOKING ================= */

.quick-booking {
    position: relative;
    z-index: 10;

    margin-top: 0;
}

.quick-card {
    min-height: 110px;

    padding: 25px 35px;

    background: #161617;

    border-left: 4px solid var(--red);

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.quick-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.red-line {
    display: none;
}

.quick-title small {
    color: var(--red);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.quick-title h2 {
    margin-top: 5px;

    font-family: 'Oswald', sans-serif;

    font-size: 26px;
}


/* ================= SECTIONS ================= */

.section {
    padding: 120px 0;
}

.section-heading {
    margin-bottom: 55px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;
}

.section-heading > p {
    max-width: 420px;

    color: #929292;

    line-height: 1.7;
}

.section-number {
    color: var(--red);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

/* === Одинаковый межстрочный интервал как в HERO === */
.section-heading h2,
.about-content h2,
.contact-info h2 {
    margin-top: 15px;

    font-family: 'Oswald', sans-serif;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.15; /* было 0.98 */
}

.section-heading h2 span,
.about-content h2 span,
.contact-info h2 span {
    color: var(--red);
}


/* ================= SERVICES ================= */

.services {
    background: #0b0b0c;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.service-card {
    min-height: 430px;

    position: relative;

    overflow: hidden;

    background: #141415;

    border: 1px solid var(--border);
}

.service-image {
    height: 230px;

    background-size: cover;
    background-position: center;

    filter: grayscale(100%);

    transition: 0.5s;
}

.service-card:hover .service-image {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.image-1 {
    background-image:
        linear-gradient(
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.25)
        ),
        url("images/service-1.jpg");
}

.image-2 {
    background-image:
        linear-gradient(
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.25)
        ),
        url("images/service-2.jpg");
}

/* === ИЗМЕНЕНИЕ: service-3.jpg → tech.jpg === */
.image-3 {
    background-image:
        linear-gradient(
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.25)
        ),
        url("images/tech.jpg");
}

.image-4 {
    background-image:
        linear-gradient(
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.25)
        ),
        url("images/service-4.jpg");
}

.service-content {
    padding: 25px;
}

.service-number {
    color: var(--red);

    font-family: 'Oswald', sans-serif;
    font-size: 14px;
}

.service-content h3 {
    margin-top: 8px;

    font-family: 'Oswald', sans-serif;

    font-size: 27px;
    text-transform: uppercase;
}

.service-content p {
    margin-top: 10px;

    color: #8d8d8d;

    font-size: 14px;
    line-height: 1.5;
}

.service-bottom {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-bottom span {
    font-weight: 700;
}

.service-bottom button {
    width: 40px;
    height: 40px;

    border: 1px solid #444;
    background: transparent;

    color: white;

    font-size: 18px;

    transition: 0.25s;
}

.service-bottom button:hover {
    background: var(--red);
    border-color: var(--red);
}

.all-services {
    margin-top: 35px;
    text-align: center;
}

.text-button {
    border: 0;
    background: transparent;

    color: #aaa;

    font-size: 13px;

    border-bottom: 1px solid #444;

    padding-bottom: 5px;
}

.text-button:hover {
    color: white;
    border-color: var(--red);
}


/* ================= ABOUT ================= */

.about {
    background: #101011;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

/* === ИЗМЕНЕНИЕ: service-2.jpg → cars.jpg === */
.about-photo {
    min-height: 620px;

    position: relative;

    background:
        linear-gradient(
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.55)
        ),
        url("images/cars.jpg");

    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;

    border: 1px solid #29292a;
}

.about-badge {
    position: absolute;

    left: 20px;  
    top: 20px;     

    width: 90px; 
    height: 90px;  

    background: var(--red);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-badge strong {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    line-height: 1;
}

.about-badge span {
    margin-top: 8px;

    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
}

.about-content > p {
    margin-top: 25px;

    color: #999;

    line-height: 1.75;
}

.about-points {
    margin: 30px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.about-points div {
    color: #ddd;

    font-size: 13px;
}

.about-points span {
    margin-right: 8px;

    color: var(--red);
}


/* ================= WHY ================= */

.why {
    background: #0b0b0c;
}

.centered {
    display: block;
    text-align: center;
}

.centered h2 {
    margin-top: 15px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.advantage {
    min-height: 260px;

    padding: 35px 25px;

    border-right: 1px solid var(--border);
}

.advantage:last-child {
    border-right: none;
}

.advantage-icon {
    color: var(--red);

    font-family: 'Oswald', sans-serif;

    font-size: 40px;
}

.advantage h3 {
    margin-top: 30px;

    font-family: 'Oswald', sans-serif;

    font-size: 22px;
    text-transform: uppercase;
}

.advantage p {
    margin-top: 12px;

    color: #888;

    font-size: 13px;
    line-height: 1.6;
}


/* ================= PRICES ================= */

.prices {
    background: #101011;
}

.price-list {
    border-top: 1px solid var(--border);
}

.price-row {
    min-height: 90px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);

    display: grid;
    grid-template-columns: 1fr 150px 130px;

    align-items: center;

    gap: 20px;
}

.price-row div {
    display: flex;
    align-items: center;
    gap: 25px;
}

.price-row div span {
    color: var(--red);

    font-family: 'Oswald', sans-serif;
}

.price-row strong {
    font-size: 15px;
}

.price-row b {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
}

.price-row button {
    border: 1px solid #444;
    background: transparent;

    color: white;

    padding: 12px 10px;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.price-row button:hover {
    border-color: var(--red);
    background: var(--red);
}


/* ================= CTA ================= */

.cta {
    padding: 80px 0;

    background:
        linear-gradient(
            90deg,
            rgba(226,27,35,0.95),
            rgba(155,0,8,0.95)
        );
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.cta span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.cta h2 {
    margin-top: 10px;

    font-family: 'Oswald', sans-serif;

    font-size: 65px;
    line-height: 0.9;
}

.cta h2 strong {
    color: #111;
}

.button-white {
    background: white;
    color: black;
}

.button-white:hover {
    background: black;
    color: white;
}


/* ================= REVIEWS ================= */

.reviews {
    background: #0b0b0c;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.review {
    padding: 30px;

    background: #141415;

    border: 1px solid var(--border);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-top span {
    color: var(--red);

    letter-spacing: 2px;
}

.review p {
    margin-top: 25px;

    color: #aaa;

    font-size: 14px;
    line-height: 1.7;
}

.review small {
    display: block;

    margin-top: 25px;

    color: #666;
}


/* ================= CONTACTS ================= */

.contacts {
    background: #101011;
}

.contact-box {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    background: #151516;

    border: 1px solid var(--border);
}

.contact-info {
    padding: 60px;
}

.contact-items {
    margin: 45px 0;

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-items div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-items small {
    color: var(--red);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.contact-items strong,
.contact-items a {
    font-size: 15px;
}

.contact-items a:hover {
    color: var(--red);
}

.map-placeholder {
    min-height: 550px;

    position: relative;

    overflow: hidden;

    background: #202021;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ================= FOOTER ================= */

.footer {
    padding: 35px 0;

    background: #070708;

    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

.footer-logo span {
    color: #777;

    font-size: 10px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #777;

    font-size: 11px;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    color: #555;
    font-size: 11px;
}


/* ================= MODAL ================= */

.modal,
.success-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.active,
.success-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.82);

    backdrop-filter: blur(8px);
}

.modal-window {
    width: min(650px, 100%);

    max-height: 90vh;
    overflow-y: auto;

    position: relative;
    z-index: 2;

    padding: 45px;

    background: #151516;

    border: 1px solid #333;

    box-shadow: 0 30px 100px rgba(0,0,0,0.7);

    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 35px;
    height: 35px;

    border: 1px solid #444;

    background: transparent;

    color: white;

    font-size: 22px;
}

.modal-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.modal-header span {
    color: var(--red);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.modal-header h2 {
    margin-top: 12px;

    font-family: 'Oswald', sans-serif;

    font-size: 45px;
    line-height: 0.95;
}

.modal-header h2 strong {
    color: var(--red);
}

.modal-header p {
    margin-top: 15px;

    color: #888;

    font-size: 13px;
    line-height: 1.5;
}

#bookingForm {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #aaa;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #333;

    background: #0d0d0e;

    color: white;

    padding: 14px;

    outline: none;

    font-size: 13px;

    transition: 0.2s;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group select option {
    background: #111;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.submit-button {
    width: 100%;
}

.form-note {
    margin-top: 12px;

    color: #555;

    text-align: center;

    font-size: 9px;
}


/* ================= SUCCESS ================= */

.success-modal {
    z-index: 3000;

    background: rgba(0,0,0,0.85);
}

.success-window {
    width: min(440px, 100%);

    padding: 45px 35px;

    background: #151516;

    border: 1px solid #333;

    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: var(--red);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;
}

.success-window h2 {
    font-family: 'Oswald', sans-serif;

    font-size: 32px;
}

.success-window p {
    margin: 15px 0 25px;

    color: #888;

    line-height: 1.6;

    font-size: 13px;
}


/* ================= TOAST ================= */

.toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 5000;

    padding: 15px 20px;

    background: var(--red);

    color: white;

    font-size: 12px;
    font-weight: 700;

    transform: translateY(100px);

    opacity: 0;

    transition: 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .nav {
        position: fixed;

        top: 82px;
        right: 0;

        width: 100%;

        padding: 25px;

        background: #0b0b0c;

        border-bottom: 1px solid #333;

        display: none;

        flex-direction: column;
    }

    .nav.active {
        display: flex;
    }

    .header-right {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero {
        min-height: 760px;
    }

    .section {
        padding: 85px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-photo {
        min-height: 500px;
    }

    .advantages {
        grid-template-columns: 1fr 1fr;
    }

    .advantage:nth-child(2) {
        border-right: none;
    }

    .advantage:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        min-height: 400px;
    }

    .cta-inner {
        display: block;
    }

    .cta-inner .button {
        margin-top: 35px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 72px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .burger {
        margin-right: 10px;
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: 720px;
        padding-bottom: 20px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        margin-top: 50px;

        gap: 25px;
    }

    .hero-stats strong {
        font-size: 25px;
    }

    .quick-card {
        display: block;
        padding: 25px;
    }

    .quick-card .button {
        width: 100%;
        margin-top: 20px;
    }

    .section-heading h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 44px;
    }

    .service-image {
        height: 200px;
    }

    .advantages {
        grid-template-columns: 1fr;
    }

    .advantage {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .advantage:last-child {
        border-bottom: none;
    }

    .price-row {
        grid-template-columns: 1fr;
        gap: 10px;

        padding: 22px 0;
    }

    .price-row button {
        width: 100%;
    }

    .cta h2 {
        font-size: 52px;
    }

    .contact-info {
        padding: 30px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-window {
        padding: 30px 20px;
    }

    .modal-header h2 {
        font-size: 36px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}
.header-text {
    height: 70px;        /* подгоните под свой логотип */
    width: auto;
    margin-left: 10px;   /* отступ от логотипа */
    display: block;
}