/* ===== EVO — Эвакуатор 24/7 ===== */

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-lighter: #1c2333;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --accent: #f0b429;
    --accent-hover: #f7c948;
    --accent-dim: rgba(240, 180, 41, 0.12);
    --card-border: rgba(240, 180, 41, 0.15);
    --danger: #e53e3e;
    --road-gradient: linear-gradient(180deg, #0d1117 0%, #131922 50%, #0d1117 100%);
    --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 180, 41, 0.08);
    transition: box-shadow var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header__logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header__logo .accent { color: var(--accent); }

.header__nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header__nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition);
}

.header__nav a:hover { color: var(--accent); }

.header__phone {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 26px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
    color: var(--text-main);
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    background: var(--road-gradient);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 40px, transparent 40px, transparent 80px);
    opacity: 0.5;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero__content { z-index: 2; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__title .highlight {
    color: var(--accent);
    position: relative;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 460px;
}

.hero__features {
    display: flex;
    gap: 24px;
    margin: 24px 0 36px;
    flex-wrap: wrap;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__feature svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    flex-shrink: 0;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.hero__cta:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240, 180, 41, 0.3);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    animation: hero-float 6s ease-in-out infinite;
}

.hero__img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.hero__img-decor {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-dim) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--bg-lighter);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 60px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 180, 41, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.service-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.service-card__desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card__price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 180, 41, 0.3);
}

.advantage-card__icon {
    width: 72px;
    height: 72px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-card__icon svg {
    width: 34px;
    height: 34px;
    fill: var(--accent);
}

.advantage-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.advantage-card__desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== GALLERY PREVIEW ===== */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-preview__item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    aspect-ratio: 4/3;
    transition: all var(--transition);
    position: relative;
}

.gallery-preview__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(240, 180, 41, 0.3);
}

.gallery-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-preview__item:hover img {
    transform: scale(1.05);
}

.work-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px 16px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    transform: translateY(0);
    transition: transform var(--transition);
}

/* ===== GALLERY PAGE ===== */
.gallery-page {
    padding-top: 100px;
    min-height: 100vh;
}

.gallery-page .section-title {
    margin-bottom: 12px;
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color var(--transition);
}

.gallery-back:hover {
    color: var(--accent-hover);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid__item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-grid__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(240, 180, 41, 0.3);
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    cursor: default;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    line-height: 1;
    transition: color var(--transition);
}

.lightbox__close:hover {
    color: var(--accent);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 1001;
}

.lightbox__nav:hover {
    background: rgba(240, 180, 41, 0.3);
    color: var(--accent);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ===== CONTACTS ===== */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts__map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 460px;
    border: 1px solid var(--card-border);
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contacts__form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
}

.contacts__form h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contacts__form-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 24px;
    opacity: 0.8;
}

.contacts__form input,
.contacts__form textarea {
    width: 100%;
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 14px;
    transition: border-color var(--transition);
    outline: none;
    font-family: inherit;
}

.contacts__form input:focus,
.contacts__form textarea:focus {
    border-color: var(--accent);
}

.contacts__form input::placeholder,
.contacts__form textarea::placeholder {
    color: var(--text-muted);
}

.contacts__form textarea {
    resize: vertical;
    min-height: 90px;
}

.contacts__submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition);
}

.contacts__submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(240, 180, 41, 0.3);
}

.contacts__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contacts__info {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contacts__info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contacts__info-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
    flex-shrink: 0;
}

.contacts__info-item a { color: var(--text-main); }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--card-border);
    padding: 32px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer__logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__logo .accent { color: var(--accent); }

.footer__nav {
    display: flex;
    gap: 28px;
}

.footer__nav a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer__nav a:hover { color: var(--accent); }

.footer__copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Road line animation in hero */
@keyframes road-dash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -60; }
}

/* Beacon flash */
@keyframes beacon {
    0%, 100% { opacity: 0.2; }
    15% { opacity: 1; }
    30% { opacity: 0.2; }
    45% { opacity: 1; }
    60% { opacity: 0.2; }
}

/* Wheel rotation */
@keyframes wheel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__features { justify-content: center; }
    .hero__visual svg { max-width: 400px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }

    .contacts__inner { grid-template-columns: 1fr; }
    .contacts__map { min-height: 340px; }

    .gallery-preview { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header__nav { display: none; }
    .burger { display: flex; }

    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero__title { font-size: 2rem; }
    .hero__visual svg { max-width: 300px; }

    .section { padding: 70px 0; }

    .services-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }

    .gallery-preview { grid-template-columns: 1fr; }

    .contacts__form-wrap { padding: 28px 20px; }

    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer__nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header__inner { padding: 0 16px; }
    .header__logo { font-size: 1.1rem; letter-spacing: 1px; }
    .header__phone { font-size: 0.9rem; letter-spacing: 0; }
    
    .hero__features { flex-direction: column; align-items: center; }
    .hero__cta { width: 100%; justify-content: center; }
    .advantages-grid { grid-template-columns: 1fr; }
    .hero__badge { font-size: 0.72rem; }

    .gallery-grid { grid-template-columns: 1fr; }

    .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
