/* Premium Light Yellow Theme for "Эх, прокачу!" Car Rental */
:root {
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-warm: #FFFDF0;
    --primary: #FFB800;
    --primary-hover: #E6A600;
    --accent: #FF8C00;
    --accent-light: #FFF3D6;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-soft: 0 10px 30px rgba(255, 184, 0, 0.12);
    --shadow-hover: 0 20px 40px rgba(255, 184, 0, 0.22);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 184, 0, 0.2);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    background: var(--bg-warm);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.45);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-main) 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFF0C2;
    color: #B26B00;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title span {
    background: linear-gradient(135deg, #E6A600, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 4px solid #FFFFFF;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-tag-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag-badge strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.hero-tag-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Booking Bar */
.booking-bar {
    background: #FFFFFF;
    border: 2px solid #FFE082;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.booking-bar-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--bg-warm);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}

/* Catalog Section */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Filters */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.car-card {
    background: #FFFFFF;
    border: 1px solid #FFE8A3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.car-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #F3F4F6;
}

.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-card-img img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 184, 0, 0.9);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.car-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.car-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.car-price {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.car-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Calculator Card */
.calculator-card {
    background: linear-gradient(135deg, #FFFDF0 0%, #FFFFFF 100%);
    border: 2px solid #FFE082;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 850px) {
    .calculator-card {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-result-box {
    background: var(--text-dark);
    color: #FFFFFF;
    padding: 35px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.calc-result-title {
    font-size: 1.1rem;
    color: #FFD54F;
    margin-bottom: 20px;

}

.calc-total-price {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.calc-breakdown {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #D1D5DB;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F3F4F6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #FFFFFF;
    border-left: 5px solid #10B981;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.advantage-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #FFF3D6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

/* Footer */
.footer {
    background: #111827;
    color: #9CA3AF;
    padding: 50px 0 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #1F2937;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo {
    color: #FFFFFF;
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary);
}
