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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    padding-top: 80px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #4c63d2;
}

.main-nav {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #667eea;
}

.nav-link.active {
    background: #667eea;
    color: white;
}

/* Кнопка меню (гамбургер) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #667eea;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


/* Responsive Header */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 15px;
    }
    
    .logo-text {
        font-size: 18px;
        color: #4c63d2;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        gap: 10px;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    margin: 20px auto;
}

h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.car-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.car-type {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.car-type:hover {
    border-color: #667eea;
    background: #f0f0ff;
    transform: translateY(-2px);
}

.car-type input[type="radio"] {
    display: none;
}

.car-type input[type="radio"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

.car-type:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f0ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.car-type label {
    cursor: pointer;
    font-size: 14px;
    color: #555;
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select:hover {
    border-color: #667eea;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select option {
    padding: 10px;
}

.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="tel"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="date"]:hover,
.form-group input[type="time"]:hover,
.form-group input[type="tel"]:hover,
.form-group input[type="text"]:hover,
.form-group textarea:hover {
    border-color: #667eea;
}

.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-group label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

.checkbox-group label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.checkbox-group label .optional {
    color: #999;
    font-size: 0.9em;
    font-weight: normal;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-top: 8px;
}

.contact-methods .checkbox-group {
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

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

.price-display {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0ff;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
    display: none;
}

.price-display.show {
    display: block;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h2 {
        font-size: 24px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Стили для главной страницы */
.main-page {
    text-align: center;
    padding: 60px 40px;
}

.main-page h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 20px;
}

.main-page p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.order-link {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.order-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.contacts {
    margin-top: 40px;
    margin-bottom: 30px;
}

.contacts-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon-link.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
}

.contact-icon-link.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.contact-icon-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-icon-link .icon {
    width: 32px;
    height: 32px;
}

.phone-contact {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.phone-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
}

.phone-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.phone-copy-btn:active {
    transform: translateY(0);
}

.phone-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

.phone-number {
    user-select: none;
}

.copy-indicator {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-indicator.show {
    opacity: 1;
}

.copy-indicator::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

.features {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature {
    padding: 20px;
}

.feature h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 20px;
}

.feature p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 600px) {
    .main-page {
        padding: 40px 25px;
    }

    .main-page h1 {
        font-size: 32px;
    }

    .main-page p {
        font-size: 16px;
    }

    .contact-links {
        gap: 15px;
    }

    .contact-icon-link {
        width: 50px;
        height: 50px;
    }

    .contact-icon-link .icon {
        width: 28px;
        height: 28px;
    }

    .phone-copy-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}
