/* ============================================
   АВТОПРОФ — Auto Service
   Palette: Navy / Steel / Warning Yellow-Orange
   ============================================ */

:root {
    --navy: #0F1B2D;
    --navy-2: #16243B;
    --steel: #2C3E50;
    --steel-light: #3D5169;
    --accent: #FFB100;
    --accent-dark: #E09A00;
    --accent-light: #FFC940;
    --blue: #2E86DE;
    --concrete: #F5F6F8;
    --concrete-2: #EAEDF2;
    --white: #ffffff;
    --text-dark: #1A2332;
    --text-muted: #5A6B7D;
    --text-light: rgba(255, 255, 255, 0.92);
    --text-light-muted: rgba(255, 255, 255, 0.6);
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-light: rgba(15, 27, 45, 0.1);

    --font-display: 'Oswald', Impact, sans-serif;
    --font-sans: 'Roboto', -apple-system, sans-serif;

    --shadow-sm: 0 4px 12px rgba(15, 27, 45, 0.08);
    --shadow-md: 0 12px 32px rgba(15, 27, 45, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.18);

    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 8px;
    --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

em { font-style: normal; color: var(--accent); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 34px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--accent);
    color: var(--navy);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 177, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-nav {
    padding: 11px 24px;
    font-size: 12px;
    background: var(--accent);
    color: var(--navy);
}
.btn-nav:hover { background: var(--accent-dark); }

.btn-sm { padding: 12px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(15, 27, 45, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    transition: var(--transition);
    text-transform: uppercase;
}
.logo-icon { font-size: 24px; }
.logo-text em { color: var(--accent); }

.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 28px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920&q=85') center/cover no-repeat;
    background-color: var(--navy);
    overflow: hidden;
    padding: 120px 0 60px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(15,27,45,0.96) 0%, rgba(15,27,45,0.8) 50%, rgba(15,27,45,0.5) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 32px;
    margin: 0 auto;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 177, 0, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7.5vw, 88px);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
}
.hero-title em {
    color: var(--accent);
    display: inline-block;
}
.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    max-width: 560px;
    margin: 0 0 40px;
    color: var(--text-light);
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-dark);
}
.trust-item { display: flex; flex-direction: column; }
.trust-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}
.trust-item p {
    font-size: 12px;
    color: var(--text-light-muted);
    margin-top: 6px;
}
.trust-divider {
    width: 1px; height: 36px;
    background: var(--border-dark);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.section-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 120px 0; background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-image { position: relative; order: -1; }
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.image-badge {
    position: absolute;
    bottom: -24px; right: -24px;
    background: var(--accent);
    padding: 20px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
}
.badge-icon { font-size: 32px; }
.image-badge span:last-child {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    line-height: 1.3;
}
.about-features {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}
.feature span {
    width: 22px; height: 22px;
    background: var(--accent);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 120px 0; background: var(--concrete); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}
.service-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    font-size: 40px;
    margin-bottom: 18px;
    display: inline-block;
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.service-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 120px 0; background: var(--navy); }
.process .section-title { color: var(--white); }
.process .section-eyebrow { color: var(--accent); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.process-step {
    padding: 36px 28px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
    transition: var(--transition);
    position: relative;
}
.process-step:hover {
    background: rgba(255, 177, 0, 0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
}
.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.9;
}
.process-step h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.process-step p {
    font-size: 14px;
    color: var(--text-light-muted);
    line-height: 1.7;
}

/* ============================================
   PRICING TABLE
   ============================================ */
.pricing { padding: 120px 0; background: var(--concrete); }
.pricing-table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pricing-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
    padding: 18px 28px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.pricing-table thead th {
    background: var(--navy);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pricing-table thead th:nth-child(2),
.pricing-table thead th:nth-child(3) { text-align: center; }
.pricing-table tbody tr { transition: var(--transition); }
.pricing-table tbody tr:hover { background: var(--concrete); }
.pricing-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}
.pricing-table td:nth-child(2) {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.pricing-table td:nth-child(3) {
    text-align: center;
    color: var(--accent-dark);
    font-size: 16px;
}
.pricing-note {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { padding: 120px 0; background: var(--white); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.review-card {
    background: var(--concrete);
    padding: 36px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.stars {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}
.review-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
}
.author-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.author-meta { font-size: 13px; color: var(--text-muted); }

/* ============================================
   APPOINTMENT FORM
   ============================================ */
.appointment {
    position: relative;
    padding: 120px 0;
    background: var(--concrete);
}
.appointment-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c?w=1920&q=85') center/cover fixed no-repeat;
    opacity: 0.05;
}
.appointment-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}
.appointment-info {
    padding: 56px 44px;
    background: var(--navy);
    color: var(--white);
}
.appointment-info .section-title { color: var(--white); }
.appointment-info .section-eyebrow { color: var(--accent); }
.appointment-info .section-text { color: var(--text-light-muted); }
.appointment-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.appointment-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-light);
}
.appointment-list span {
    width: 24px; height: 24px;
    background: var(--accent);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.appointment-form { padding: 56px 44px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-dark);
    background: var(--concrete);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 177, 0, 0.15);
}
.form-group.full { margin-bottom: 20px; }
.form-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}
.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px;
    background: var(--accent);
    color: var(--navy);
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.form-success.show { display: block; animation: fadeIn 0.4s; }

/* ============================================
   CONTACTS
   ============================================ */
.contacts { padding: 120px 0; background: var(--white); }
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: stretch;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-card {
    background: var(--concrete);
    padding: 32px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--navy);
}
.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover a { color: var(--white); }
.contact-card:hover h3 { color: var(--accent); }
.contact-icon {
    font-size: 32px;
    margin-bottom: 14px;
}
.contact-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    transition: var(--transition);
}
.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    transition: var(--transition);
}
.contact-card a:hover { color: var(--accent); }
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-md);
    background: var(--concrete);
}
.map-container iframe { border: 0; min-height: 420px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: var(--text-light-muted);
    padding: 80px 0 32px;
    border-top: 3px solid var(--accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.7;
}
.social-links { display: flex; gap: 20px; }
.social-links a {
    font-size: 13px;
    color: var(--accent);
    transition: var(--transition);
}
.social-links a:hover { color: var(--white); }
.footer-col h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: var(--font-display);
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); opacity: 1; }
.footer-col > p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-link { color: var(--white); font-size: 17px; }
    .btn-nav { display: none; }
    .hamburger { display: flex; }

    .about-grid,
    .appointment-card,
    .contacts-grid { grid-template-columns: 1fr; }
    .about { padding: 80px 0; }
    .about-features { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .appointment-info,
    .appointment-form { padding: 40px 28px; }
    .hero-trust { gap: 20px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 620px) {
    .pricing-table th,
    .pricing-table td { padding: 14px 12px; font-size: 13px; }
    .pricing-table thead th { font-size: 13px; }
}

@media (max-width: 560px) {
    .container, .nav-container, .hero-content { padding: 0 20px; }
    .services-grid,
    .process-grid,
    .reviews-grid,
    .contact-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .trust-divider { display: none; }
    .hero-trust { gap: 24px; }
    .trust-num { font-size: 26px; }
}
