* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --secondary-color: #1d1d1f;
    --text-color: #1d1d1f;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --border-color: #d2d2d7;
    --success-color: #34c759;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.device-selector h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.device-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.device-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.device-icon {
    font-size: 40px;
}

.device-card span {
    font-weight: 600;
    font-size: 14px;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--bg-white);
}

.benefits h2, .services h2, .reviews h2, .about h2, .contact h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--secondary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.price {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 14px;
}

/* Complex Works */
.complex-works {
    padding: 100px 0;
    background: var(--secondary-color);
    color: white;
}

.complex-works h2 {
    color: white;
}

.complex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.complex-item h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.complex-item p, .complex-item li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

.complex-item ul {
    list-style: none;
    padding-left: 0;
}

.complex-item li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.complex-item li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* Diagnostics */
.diagnostics {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077ed 100%);
    color: white;
}

.diagnostics-content {
    text-align: center;
}

.diagnostics h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
}

.diagnostics p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.diagnostics .btn-primary {
    background: white;
    color: var(--primary-color);
}

.diagnostics .btn-primary:hover {
    background: var(--bg-light);
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.2s;
}

.review-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.review-stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-text {
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    color: var(--text-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    color: var(--text-light);
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item a, .contact-item p {
    color: var(--text-light);
    font-size: 16px;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 48px 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 16px;
}

.modal-content .btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 968px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-contacts .btn {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefits h2, .services h2, .reviews h2, .about h2, .contact h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid, .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .complex-grid {
        grid-template-columns: 1fr;
    }
}