* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c5dff;
    --primary-dark: #5b3fd7;
    --secondary-color: #00d4ff;
    --accent-color: #ff7edb;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-dark: #040b1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-panel: rgba(15, 23, 42, 0.85);
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.6);
    --shadow-lg: 0 45px 65px -20px rgba(14, 21, 37, 0.8);
    --gradient: linear-gradient(135deg, #141728 0%, #412176 45%, #571089 100%);
    --gradient-2: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(124, 93, 255, 0.4));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 11, 25, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Главная секция */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(124, 93, 255, 0.25), rgba(4, 11, 26, 0.9));
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #f8fafc, rgba(148, 163, 184, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(120deg, #7c5dff, #00d4ff);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Секции */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Возможности */
.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    display: block;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 93, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

.feature-details {
    padding-top: 0;
    padding-bottom: 5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: rgba(4, 9, 20, 0.9);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(124, 93, 255, 0.15);
    color: var(--secondary-color);
    display: grid;
    place-items: center;
    font-size: 1.75rem;
}

.detail-label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.detail-card p {
    color: var(--text-light);
}

.detail-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-card ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(120deg, #7c5dff, #00d4ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.detail-cta {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.detail-cta:hover {
    opacity: 0.8;
}

/* Module pages */
.module-hero {
    padding: 8rem 0 4rem;
    background: radial-gradient(circle at top, rgba(124, 93, 255, 0.25), rgba(4, 11, 26, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 0.5rem;
}

.module-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.module-hero p {
    max-width: 720px;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.module-hero .hero-buttons {
    margin-bottom: 1.75rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.module-card {
    background: rgba(7, 12, 24, 0.9);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.module-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.module-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-list li {
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-light);
}

.module-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(120deg, #7c5dff, #00d4ff);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-table td {
    padding: 0.75rem 0;
    color: var(--text-light);
}

.spec-table td:first-child {
    color: var(--text-dark);
    font-weight: 600;
    padding-right: 1rem;
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-tags span {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 93, 255, 0.3);
    color: var(--text-light);
    font-size: 0.9rem;
}

.proposal-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.85);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.proposal-modal.active {
    opacity: 1;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
}

.proposal-dialog {
    position: relative;
    width: min(640px, 100%);
    background: rgba(6, 11, 25, 0.95);
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--text-dark);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.proposal-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.proposal-summary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.proposal-summary strong {
    color: var(--text-dark);
}

.modal-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    background: rgba(4, 7, 18, 0.6);
    color: var(--text-dark);
    font-size: 1rem;
}

.modal-form textarea {
    resize: vertical;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.breadcrumb.small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

/* Калькулятор */
.calculator {
    background: linear-gradient(180deg, rgba(9, 13, 28, 0.9), rgba(12, 22, 45, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.option-group {
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.option-heading {
    margin-bottom: 1rem;
}

.option-heading h3 {
    margin-bottom: 0.35rem;
}

.option-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.option-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(4, 7, 18, 0.6);
    color: var(--text-dark);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.input-group span {
    font-weight: 500;
    color: var(--text-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background: rgba(124, 93, 255, 0.08);
    border-color: rgba(124, 93, 255, 0.3);
    transform: translateX(5px);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    flex: 1;
    color: var(--text-dark);
}

.summary-card {
    background: radial-gradient(circle at top, rgba(124, 93, 255, 0.9), rgba(5, 10, 22, 0.95));
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-breakdown {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-item.total {
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Контакты */
.contact {
    background: rgba(2, 6, 14, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-status.success {
    color: #34d399;
}

.form-status.error {
    color: #f87171;
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: rgba(4, 7, 18, 0.6);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form textarea {
    resize: vertical;
}

/* Футер */
.footer {
    background: rgba(1, 3, 9, 0.95);
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Анимации при скролле */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.option-group {
    animation: slideIn 0.6s ease forwards;
}

