        :root {
            --primary: #0f172a;
            --secondary: #1e293b;
            --accent: #f59e0b;
            --accent-hover: #d97706;
            --text: #f8fafc;
            --text-muted: #94a3b8;
            --bg: #ffffff;
            --success: #10b981;
            --danger: #ef4444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            line-height: 1.6;
            color: var(--primary);
            overflow-x: hidden;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.3s;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: var(--accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            color: white;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--accent);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .mobile-menu {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
        }

        .mobile-menu span {
            width: 25px;
            height: 3px;
            background: var(--text);
            transition: 0.3s;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 80px;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(245,158,11,0.1)" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
            background-size: 50px 50px;
            opacity: 0.3;
            animation: gridMove 20s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-content h1 {
            font-size: 3rem;
            color: var(--text);
            margin-bottom: 1rem;
            line-height: 1.2;
            animation: slideUp 0.8s ease-out;
        }

        .hero-content .highlight {
            color: var(--accent);
        }

        .hero-content p {
            font-size: 1.25rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            animation: slideUp 0.8s ease-out 0.2s both;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            animation: slideUp 0.8s ease-out 0.4s both;
        }

        .btn {
            padding: 1rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--primary);
        }

        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text);
            border: 2px solid var(--text);
        }

        .btn-secondary:hover {
            background: var(--text);
            color: var(--primary);
        }

        .hero-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            animation: slideUp 0.8s ease-out 0.6s both;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent);
            display: block;
        }

        .stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Sections General */
        section {
            padding: 5rem 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .section-header p {
            color: var(--text-muted);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Services */
        .services {
            background: var(--bg);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;
            border: 1px solid #e2e8f0;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--accent);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            color: white;
        }

        .service-card h3 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }

        .service-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .service-features {
            list-style: none;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #e2e8f0;
        }

        .service-features li {
            padding: 0.25rem 0;
            color: var(--secondary);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .service-features li::before {
            content: '✓';
            color: var(--success);
            font-weight: bold;
        }

/* Calculator - Mobile First */
.calculator {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
}

@media (min-width: 640px) {
    .calc-container {
        padding: 2.5rem;
    }
}

.calc-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .calc-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

.calc-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .calc-form {
        gap: 1.5rem;
    }
}

/* Главное исправление - одна колонка по умолчанию, две на десктопе */
.calc-row {
    display: grid;
    grid-template-columns: 1fr; /* Мобильная версия - одна колонка */
    gap: 1rem;
}

@media (min-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr 1fr; /* Десктоп - две колонки */
        gap: 1.5rem;
    }
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0; /* Предотвращает переполнение */
}

.calc-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.calc-group select,
.calc-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px; /* Важно! Минимум 16px чтобы iOS не зумил */
    transition: border-color 0.3s;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.calc-group select {
    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.calc-group select:focus,
.calc-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.calc-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Удобный размер для пальца */
}

.calc-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-result {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
    display: none;
    animation: slideUp 0.5s ease-out;
    width: 100%;
    word-wrap: break-word;
}

@media (min-width: 640px) {
    .calc-result {
        margin-top: 2rem;
        padding: 2rem;
    }
}

.calc-result.active {
    display: block;
}

.calc-result h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .calc-result h3 {
        font-size: 1.2rem;
    }
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .price-tag {
        font-size: 2.5rem;
    }
}

.price-details {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 1rem 0;
    line-height: 1.6;
}

.calc-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
    line-height: 1.4;
}

/* Фикс для очень маленьких экранов */
@media (max-width: 380px) {
    .calc-container {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .calc-title {
        font-size: 1.3rem;
    }
    
    .price-tag {
        font-size: 1.8rem;
    }
}

        /* About Section */
        .about {
            background: #f1f5f9;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .about-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .about-content .lead {
            font-size: 1.25rem;
            color: var(--secondary);
            margin-bottom: 1.5rem;
            font-weight: 500;
        }

        .about-content p {
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .features-list {
            list-style: none;
            margin-top: 2rem;
        }

        .features-list li {
            padding: 0.75rem 0;
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--primary);
        }

        .features-list li span {
            width: 30px;
            height: 30px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        .about-image {
            position: relative;
        }

        .about-image-placeholder {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            position: relative;
            overflow: hidden;
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 100px;
            height: 100px;
            background: var(--accent);
            border-radius: 12px;
            z-index: -1;
        }

        .about-image::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: -20px;
            width: 100px;
            height: 100px;
            border: 4px solid var(--accent);
            border-radius: 12px;
            z-index: -1;
        }

        /* Requisites Section */
        .requisites {
            background: white;
        }

        .requisites-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .requisites-card {
            background: #f8fafc;
            padding: 2rem;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .requisites-card h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.2rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 0.5rem;
        }

        .req-item {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid #e2e8f0;
            font-size: 0.95rem;
        }

        .req-item:last-child {
            border-bottom: none;
        }

        .req-label {
            color: var(--text-muted);
            font-weight: 500;
        }

        .req-value {
            color: var(--primary);
            font-weight: 600;
            text-align: right;
            max-width: 60%;
        }

        /* Contact */
        .contact {
            background: var(--primary);
            color: var(--text);
        }

        .contact .section-header h2,
        .contact .section-header p {
            color: var(--text);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .contact-info h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--accent);
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .contact-item-icon {
            width: 50px;
            height: 50px;
            background: rgba(245, 158, 11, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .contact-item-content h4 {
            margin-bottom: 0.25rem;
            color: var(--text);
        }

        .contact-item-content p {
            color: var(--text-muted);
        }

        .contact-item-content a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.05);
            padding: 2rem;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: var(--text-muted);
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        /* Footer */
        footer {
            background: #020617;
            color: var(--text-muted);
            padding: 3rem 0 1.5rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
            margin-bottom: 3rem;
            align-items: start;
        }

        @media (max-width: 968px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            .footer-grid {
                grid-template-columns: 1fr;
            }
        }

        .footer-section h4 {
            color: var(--text);
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .footer-section p,
        .footer-section a {
            color: var(--text-muted);
            text-decoration: none;
            line-height: 1.8;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 1.5rem;
            text-align: center;
            font-size: 0.9rem;
        }

        /* Responsive */
                .mobile-nav {
            display: none !important;
        }

@media (max-width: 968px) {
            .hero-container,
            .about-grid,
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .hero-content h1 {
                font-size: 2.5rem;
            }

            .nav-links {
                display: none;
            }

            .mobile-menu {
                display: flex;
            }

            .mobile-nav {
                position: fixed;
                top: 70px;
                left: 0;
                right: 0;
                background: var(--primary);
                padding: 2rem;
                display: none !important;
                flex-direction: column;
                gap: 1rem;
                z-index: 999;
                box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            }

            .mobile-nav.active {
                display: flex !important;
            }

            .mobile-nav a {
                color: var(--text);
                text-decoration: none;
                padding: 1rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
        }

        @media (max-width: 640px) {
            .hero-content h1 {
                font-size: 2rem;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .hero-stats {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .section-header h2 {
                font-size: 1.75rem;
            }

            .calc-row {
                grid-template-columns: 1fr;
            }
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Emergency Button */
        .emergency-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
            z-index: 999;
            animation: pulse 2s infinite;
            text-decoration: none;
            font-size: 0.8rem;
            text-align: center;
            line-height: 1.2;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .emergency-btn:hover {
            background: #dc2626;
        }

        /* Success message */
        .success-message {
            display: none;
            background: var(--success);
            color: white;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            text-align: center;
        }

        .success-message.show {
            display: block;
            animation: slideUp 0.3s ease-out;
        }