/* Frontend CSS - Moderní tmavý design */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0d0f14;
    --bg-darker: #080a0e;
    --bg-card: #161921;
    --bg-hover: #1e212b;
    
    --text-primary: #f5f5f7;
    --text-secondary: #a8a9ad;
    --text-muted: #6e6f73;
    
    --accent: #115577;
    --accent-bright: #1a7799;
    --accent-glow: rgba(17, 85, 119, 0.3);
    
    --success: #00ff88;
    --warning: #ffbb00;
    
    --border: #2a2d37;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Header */
.main-header {
    background: var(--bg-darker);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(8, 10, 14, 0.9);
}

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

.logo-link {
    display: block;
    line-height: 0;
}

.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}

.hero-decoration {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Vehicles Section */
.vehicles-section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.1);
}

.vehicle-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    stroke: var(--text-muted);
    opacity: 0.5;
}

.vehicle-info {
    padding: 2rem;
}

.vehicle-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.spec-icon {
    flex-shrink: 0;
    stroke: var(--text-secondary);
}

.vehicle-equipment {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.equipment-badge {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-bright);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.toll-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.toll-badge {
    background: var(--bg-hover);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.vehicle-price {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-bright);
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Car Detail */
.car-detail-section {
    padding: 3rem 0 5rem;
}

.car-detail-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
}

.car-gallery {
    margin-bottom: 2rem;
}

.main-gallery-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.main-gallery-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.gallery-thumbs img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.gallery-thumbs img:hover {
    border-color: var(--accent);
}

.car-detail-info {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.car-detail-info h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-hover);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.spec-box .spec-icon {
    flex-shrink: 0;
    stroke: var(--accent);
}

.spec-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.car-description,
.car-equipment-detail,
.toll-detail {
    margin-top: 2rem;
}

.car-description h3,
.car-equipment-detail h3,
.toll-detail h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-bright);
}

.equipment-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.equipment-list li {
    padding: 0.5rem;
    color: var(--text-secondary);
}

.toll-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toll-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.toll-country-badge {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
}

.toll-validity {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reservation Box */
.reservation-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.reservation-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.price-display {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-hover);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.price-display .price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-bright);
    display: block;
}

.price-display .price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.days-display {
    text-align: center;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-bright);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-bright);
}

.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-option:hover,
.radio-option:hover {
    border-color: var(--accent);
}

.checkbox-option input,
.radio-option input {
    width: auto;
    margin-right: 1rem;
}

.option-content {
    flex: 1;
}

.option-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.option-price {
    color: var(--accent-bright);
    font-weight: 600;
}

.price-breakdown {
    background: var(--bg-hover);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.price-breakdown h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-bright);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
}

.breakdown-total span:last-child {
    color: var(--accent-bright);
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--bg-card);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-bright);
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent-bright);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Success Page */
.success-section {
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.success-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon svg {
    stroke: var(--bg-dark);
}

.success-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.reservation-summary {
    background: var(--bg-hover);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: left;
}

.reservation-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent-bright);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
}

.price-highlight {
    color: var(--accent-bright);
    font-size: 1.25rem;
}

.next-steps {
    text-align: left;
    margin-bottom: 2rem;
}

.next-steps h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-bright);
}

.next-steps ol {
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .car-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-list {
        grid-template-columns: 1fr;
    }
}
