/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
    --primary: #2A9DF4;
    --primary-dark: #1A6BB0;
    --secondary: #00D4AA;
    --dark: #0F172A;
    --darker: #0A0F1F;
    --light: #F8FAFC;
    --gray: #94A3B8;
    --gray-dark: #475569;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border: #1E293B;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: white;
}

.section-title i {
    color: var(--primary);
    margin-right: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    text-decoration: none;
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(42, 157, 244, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.highlight {
    color: var(--secondary);
}

/* ===== ШАПКА ===== */
.header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== СЕКЦИЯ ГЕРОЙ ===== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 30% 20%, rgba(42, 157, 244, 0.15) 0%, transparent 50%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.globe-animation i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: var(--primary);
    z-index: 2;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(42, 157, 244, 0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.orbit:nth-child(2) {
    width: 200px;
    height: 200px;
}

.orbit:nth-child(3) {
    width: 300px;
    height: 300px;
    animation-duration: 25s;
    animation-direction: reverse;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== МОНИТОРИНГ СЕРВЕРОВ ===== */
.monitoring {
    background-color: var(--dark);
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.server-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 25px;
    border-left: 4px solid var(--success);
    transition: var(--transition);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.server-card.warning {
    border-left-color: var(--warning);
}

.server-card.danger {
    border-left-color: var(--danger);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.server-name {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.server-status.wired i {
    color: var(--success);
}

.server-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item h4 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: white;
}

.server-load {
    margin-top: 15px;
}

.load-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.load-fill {
    height: 100%;
    background-color: var(--success);
    border-radius: 4px;
    width: 50%;
    transition: width 1s ease;
}

.load-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== КАЛЬКУЛЯТОР ===== */
.calculator-section {
    background-color: var(--darker);
    padding: 60px 0; /* Уменьшено с 80px */
}

.calc-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px; /* Уменьшено с 10px */
    margin-bottom: 25px; /* Уменьшено с 40px */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calc-tab {
    padding: 10px 20px; /* Уменьшено с 12px 24px */
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem; /* Уменьшено с 0.95rem */
}

.calc-tab:hover {
    background-color: rgba(42, 157, 244, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.calc-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.calculator-card {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 25px; /* Уменьшено с 40px */
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    display: none;
    border: 1px solid var(--border);
}

.calculator-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-card h3 {
    font-size: 1.5rem; /* Уменьшено с 1.8rem */
    margin-bottom: 8px; /* Уменьшено с 10px */
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-card h3 i {
    color: var(--primary);
}

.calc-subtitle {
    color: var(--gray);
    margin-bottom: 20px; /* Уменьшено с 30px */
    font-size: 1rem; /* Уменьшено с 1.1rem */
}

.calc-controls {
    margin-bottom: 15px;
}

.calc-controls > div {
    margin-bottom: 15px !important; /* Уменьшено с 20px */
}

.calc-label {
    display: block;
    margin-bottom: 6px; /* Уменьшено с 8px */
    font-weight: 500;
    color: white;
    font-size: 0.95rem; /* Уменьшено с 1rem */
}

.calc-select {
    width: 100%;
    padding: 10px 15px; /* Уменьшено с 12px 15px */
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
    font-size: 0.95rem; /* Уменьшено с 1rem */
    transition: var(--transition);
    height: 42px;
}

.calc-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 244, 0.2);
}

.calc-select option {
    background-color: var(--dark);
    color: white;
}

.calc-period-info {
    margin: 15px 0; /* Уменьшено с 20px */
}

.period-display {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Уменьшено с 10px */
    padding: 10px 15px; /* Уменьшено с 12px 20px */
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    color: var(--gray);
    font-size: 0.95rem; /* Уменьшено с 1rem */
}

.period-display i {
    color: var(--primary);
}

.period-display strong {
    color: white;
}

.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Уменьшено с minmax(250px, 1fr) */
    gap: 10px; /* Уменьшено с 15px */
    margin-top: 10px;
}

.package-option {
    position: relative;
    cursor: pointer;
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.package-content {
    padding: 12px; /* Уменьшено с 15px */
    background-color: rgba(30, 41, 59, 0.7);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.package-option input[type="radio"]:checked + .package-content {
    border-color: var(--primary);
    background-color: rgba(42, 157, 244, 0.1);
}

.package-option:hover .package-content {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.package-name {
    font-weight: 600;
    color: white;
    margin-bottom: 3px; /* Уменьшено с 5px */
    font-size: 1rem; /* Уменьшено с 1.1rem */
}

.package-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem; /* Уменьшено с 1.2rem */
}

.package-features {
    margin: 20px 0; /* Уменьшено с 25px */
    padding: 15px; /* Уменьшено с 20px */
    background-color: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.package-features h4 {
    color: white;
    margin-bottom: 12px; /* Уменьшено с 15px */
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-features h4 i {
    color: var(--success);
}

.package-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.package-features li {
    color: var(--gray);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Уменьшено с 30px */
    padding-top: 20px; /* Уменьшено с 30px */
    border-top: 1px solid var(--border);
    margin-top: 20px; /* Уменьшено с 30px */
}

.result-box {
    flex: 1;
}

.result-box h4 {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 8px; /* Уменьшено с 10px */
    font-weight: 500;
}

.price {
    font-size: 2.2rem; /* Уменьшено с 3rem */
    font-weight: 800;
    color: white;
    line-height: 1;
}

.price-note {
    color: var(--gray);
    margin-top: 3px; /* Уменьшено с 5px */
    font-size: 0.9rem; /* Уменьшено с 1rem */
}

.price-note span {
    color: var(--primary);
    font-weight: 600;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #0da371;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--gray);
}

/* ===== ПРЕВЬЮ ПРОДУКТОВ ===== */
.products-preview {
    background-color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.product-price span {
    font-size: 1rem;
    color: var(--gray);
}

.product-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: var(--gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.product-card .btn {
    width: 100%;
}

.section-footer {
    text-align: center;
}

/* ===== СТАТИСТИКА ===== */
.stats-overview {
    background-color: var(--darker);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ===== CTA ===== */
.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.cta-card h2 {
    font-size: 2.0rem;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background-color: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-about {
    color: var(--gray);
    margin: 20px 0;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-bottom p:first-child {
    margin-bottom: 10px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (min-width: 768px) {
    .monitoring-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Для мониторинга на планшетах */
    .monitoring-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .benefits-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-card {
        padding: 20px 15px; /* Уменьшено для мобильных */
    }
    
    .calc-result {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Для мониторинга на мобильных */
    .monitoring-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Уменьшаем размер цены на мобильных */
    .price {
        font-size: 1.8rem; /* Уменьшено для мобильных */
    }
}



/* Для мобильной версии */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        padding: 10px 15px;
        border-left: none;
        border-radius: 8px;
        margin-bottom: 5px;
    }
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ (Добавить в существующие стили) ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark);
    min-width: 260px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(42, 157, 244, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== МОБИЛЬНОЕ ВЫПАДАЮЩЕЕ МЕНЮ ===== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 20px;
        display: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        padding: 12px 20px;
        border-left: 3px solid rgba(42, 157, 244, 0.3);
        margin-bottom: 5px;
        background-color: rgba(30, 41, 59, 0.3);
    }
    
    .dropdown-item:hover {
        background-color: rgba(42, 157, 244, 0.15);
        border-left-color: var(--primary);
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Улучшаем видимость активного состояния */
    .nav-links a.active,
    .mobile-menu a.active {
        background-color: rgba(42, 157, 244, 0.15) !important;
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }
}

/* ===== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ===== */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.order-modal .modal-content {
    background-color: var(--dark);
    border-radius: var(--radius);
    max-width: 700px;
    max-height: 700px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.order-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.order-modal .modal-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-modal .modal-header h3 i {
    color: var(--primary);
}

.order-modal .modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: var(--transition);
}

.order-modal .modal-close:hover {
    color: white;
}

.order-details {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.order-detail-item {
    margin-bottom: 15px;
}

.order-detail-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.order-detail-value {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.order-features {
    padding: 15px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--success);
    margin: 15px 0;
}

.order-features ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.order-features li {
    margin-bottom: 5px;
}

.order-total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.order-fast-badge {
    padding: 8px 15px;
    background-color: rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    color: var(--success);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-actions .btn {
    flex: 1;
}

.modal-security-notice {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Анимации */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalSlideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-50px); opacity: 0; }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .order-modal .modal-content {
        padding: 20px;
        margin: 0px;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .order-total {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .order-total-amount {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

#calculator-section {
    scroll-margin-top: 40px; /* Подберите значение под высоту вашей навигации */
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ===== */
.language-switcher {
    position: relative;
    margin-left: 15px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 12px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: var(--primary);
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.language-option:hover {
    background-color: rgba(42, 157, 244, 0.1);
    color: white;
}

.language-option.active {
    background-color: rgba(42, 157, 244, 0.15);
    color: var(--primary);
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .language-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .language-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        display: none;
        padding: 10px 0 0 0;
    }
    
    .language-switcher.active .language-dropdown {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .language-option {
        padding: 12px 20px;
        background-color: rgba(30, 41, 59, 0.3);
        border-radius: 8px;
        margin-bottom: 8px;
        border-left: 3px solid rgba(42, 157, 244, 0.3);
    }
    
    .language-option:hover {
        background-color: rgba(42, 157, 244, 0.15);
        border-left-color: var(--primary);
    }
}
/* Стили для мобильного переключателя языков */
.mobile-language-switcher {
    margin: 20px 0;
    padding: 0 20px;
}

.mobile-language-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94A3B8;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-language-toggle:hover {
    background-color: rgba(42, 157, 244, 0.1);
    color: white;
    border-color: #2A9DF4;
}

.mobile-language-dropdown {
    display: none;
    margin-top: 10px;
}

.mobile-language-switcher.active .mobile-language-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(42, 157, 244, 0.3);
    margin-bottom: 5px;
}

.mobile-language-option:hover,
.mobile-language-option.active {
    background-color: rgba(42, 157, 244, 0.15);
    color: white;
    border-left-color: #2A9DF4;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ БЕСПЛАТНОГО ТЕСТА ===== */

.test-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 30% 20%, rgba(42, 157, 244, 0.15) 0%, transparent 50%);
}

.test-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.test-hero .hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.test-content {
    background-color: var(--dark);
}

.test-container {
    max-width: 900px;
    margin: 0 auto;
}

.test-info-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.test-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-info-card h3 i {
    color: var(--primary);
}

.test-info-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.test-info-card li {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.test-info-card li:before {
    content: "•";
    color: var(--primary);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.test-info-card p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.my_link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px dashed var(--primary);
}

.my_link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.test-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.test-feature-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.test-feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.test-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.test-feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.test-feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.test-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-test-primary {
    background-color: var(--secondary);
    color: var(--dark);
    font-weight: 600;
}

.btn-test-primary:hover {
    background-color: #00c29a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-test-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-test-outline:hover {
    background-color: rgba(42, 157, 244, 0.1);
}

/* Адаптивность для страницы теста */
@media (max-width: 768px) {
    .test-hero .hero-title {
        font-size: 2.3rem;
    }
    
    .test-info-card {
        padding: 25px 20px;
    }
    
    .test-info-card h3 {
        font-size: 1.5rem;
    }
    
    .test-info-card li {
        font-size: 1.1rem;
    }
    
    .test-actions {
        flex-direction: column;
    }
    
    .test-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .test-features {
        grid-template-columns: 1fr;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ 404 ОШИБКИ ===== */

.error-404-section {
    padding: 100px 0;
    background-color: var(--darker);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.error-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.error-number {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 2;
}

.error-digit {
    font-size: 12rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 10px 30px rgba(42, 157, 244, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    }
}

.error-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.error-orbits .orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(42, 157, 244, 0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.error-orbits .orbit:nth-child(1) {
    width: 350px;
    height: 350px;
}

.error-orbits .orbit:nth-child(2) {
    width: 450px;
    height: 450px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.error-orbits .orbit:nth-child(3) {
    width: 550px;
    height: 550px;
    animation-duration: 30s;
}

.error-text {
    flex: 1;
    max-width: 600px;
}

.error-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.error-description {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.error-suggestions {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--warning);
}

.error-suggestions h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-suggestions h3 i {
    color: var(--warning);
}

.suggestions-list {
    list-style: none;
}

.suggestions-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: var(--transition);
}

.suggestions-list li:hover {
    background-color: rgba(42, 157, 244, 0.1);
    transform: translateX(5px);
}

.suggestions-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.suggestions-list li span {
    color: var(--gray);
    font-size: 1rem;
}

.suggestions-list li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px dashed transparent;
}

.suggestions-list li a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.error-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Секция популярных страниц */
.popular-pages {
    background-color: var(--dark);
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    display: block;
    text-align: center;
}

.page-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.page-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.page-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.page-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Адаптивность для страницы 404 */
@media (max-width: 992px) {
    .error-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .error-visual {
        min-height: 300px;
    }
    
    .error-digit {
        font-size: 9rem;
    }
    
    .error-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 2.3rem;
    }
    
    .error-actions {
        justify-content: center;
    }
    
    .suggestions-list li {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .error-404-section {
        padding: 60px 0;
    }
    
    .error-digit {
        font-size: 7rem;
        gap: 20px;
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .error-orbits .orbit:nth-child(1) {
        width: 280px;
        height: 280px;
    }
    
    .error-orbits .orbit:nth-child(2) {
        width: 360px;
        height: 360px;
    }
    
    .error-orbits .orbit:nth-child(3) {
        width: 440px;
        height: 440px;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .error-digit {
        font-size: 5rem;
        gap: 15px;
    }
    
    .error-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .error-orbits .orbit:nth-child(1) {
        width: 220px;
        height: 220px;
    }
    
    .error-orbits .orbit:nth-child(2) {
        width: 280px;
        height: 280px;
    }
    
    .error-orbits .orbit:nth-child(3) {
        width: 340px;
        height: 340px;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ "О СЕРВИСЕ" ===== */

.about-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 30% 20%, rgba(42, 157, 244, 0.15) 0%, transparent 50%);
}

.about-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.about-hero .hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Секция Наша история */
.story-section {
    background-color: var(--dark);
}

.story-timeline {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}

.story-timeline:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-year {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    margin-right: 30px;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(42, 157, 244, 0.3);
}

.timeline-content {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 25px 30px;
    border: 1px solid var(--border);
    flex: 1;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Секция преимуществ */
.advantages-section {
    background-color: var(--darker);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.advantage-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.advantage-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Секция принципов работы */
.principles-section {
    background-color: var(--dark);
}

.principles-content {
    max-width: 900px;
    margin: 50px auto 0;
}

.principle-item {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.principle-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.principle-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.principle-header h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.principle-item p {
    color: var(--gray);
    line-height: 1.7;
    padding-left: 75px;
}

/* Секция команды */
.team-section {
    background-color: var(--darker);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.team-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Адаптивность для страницы "О сервисе" */
@media (max-width: 992px) {
    .about-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .principle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .principle-item p {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .about-hero .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .about-hero .hero-subtitle {
        text-align: center;
    }
    
    .about-hero .hero-actions {
        justify-content: center;
    }
    
    .story-timeline:before {
        left: 25px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .advantages-grid,
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .advantage-card,
    .team-card {
        padding: 25px 20px;
    }
    
    .principle-item {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .about-hero .hero-title {
        font-size: 2.3rem;
    }
    
    .about-hero .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-hero .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .timeline-year {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПРАВИЛ ===== */

.rules-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 30% 20%, rgba(42, 157, 244, 0.15) 0%, transparent 50%);
}

.rules-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.rules-hero .hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Секция правил */
.rules-section {
    background-color: var(--dark);
}

.rules-accordion {
    max-width: 900px;
    margin: 50px auto 0;
}

.rule-item {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.rule-question {
    width: 100%;
    padding: 22px 25px;
    background-color: rgba(30, 41, 59, 0.8);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.rule-question:hover {
    background-color: rgba(42, 157, 244, 0.15);
}

.rule-question span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-question i:first-child {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.rule-icon {
    transition: transform 0.3s ease;
    color: var(--gray);
}

.rule-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background-color: rgba(15, 23, 42, 0.7);
}

.rule-answer.active {
    padding: 30px;
    max-height: 5000px;
}

.rule-answer p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

.rule-answer h4 {
    color: white;
    margin: 25px 0 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.rule-answer .my_link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px dashed var(--primary);
}

.rule-answer .my_link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Стили для списков правил */
.rule-list {
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.rule-list-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background-color: rgba(30, 41, 59, 0.3);
    transition: var(--transition);
}

.rule-list-item:hover {
    background-color: rgba(42, 157, 244, 0.05);
}

.rule-list-item:last-child {
    border-bottom: none;
}

.rule-number {
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
    min-width: 25px;
    font-size: 1.1rem;
}

.rule-list-item span:last-child {
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
}

/* Стили для таблиц ограничений */
.limits-table, .slowmode-table {
    margin: 25px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.limit-row, .slowmode-row {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.limit-row:last-child, .slowmode-row:last-child {
    border-bottom: none;
}

.limit-range, .slowmode-violations {
    flex: 1;
    padding: 15px 20px;
    background-color: rgba(30, 41, 59, 0.5);
    font-weight: 600;
    color: white;
    border-right: 1px solid var(--border);
}

.limit-value, .slowmode-time {
    flex: 2;
    padding: 15px 20px;
    color: var(--gray);
    display: flex;
    align-items: center;
}

/* Секция принятия правил */
.rules-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.rules-acceptance {
    background: linear-gradient(135deg, rgba(42, 157, 244, 0.1), rgba(0, 212, 170, 0.1));
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--primary);
}

.rules-acceptance h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rules-acceptance h3 i {
    color: var(--success);
}

.rules-acceptance p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Адаптивность для страницы правил */
@media (max-width: 992px) {
    .rules-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .rule-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .rule-answer.active {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .rules-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .rules-hero .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .rules-hero .hero-subtitle {
        text-align: center;
    }
    
    .rules-hero .hero-actions {
        justify-content: center;
    }
    
    .rule-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .rule-question span i:first-child {
        font-size: 1rem;
    }
    
    .limit-row, .slowmode-row {
        flex-direction: column;
    }
    
    .limit-range, .slowmode-violations,
    .limit-value, .slowmode-time {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .limit-range, .slowmode-violations {
        border-bottom: none;
    }
    
    .rule-list-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .rule-number {
        margin-right: 0;
    }
    
    .rules-acceptance {
        padding: 30px 20px;
    }
    
    .rules-acceptance h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .rules-acceptance p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .rules-hero .hero-title {
        font-size: 2.3rem;
    }
    
    .rules-hero .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .rules-hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .rules-hero .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .rule-question {
        font-size: 0.9rem;
        padding: 14px 16px;
    }
    
    .rule-answer.active {
        padding: 20px 16px;
    }
    
    .rule-answer p {
        font-size: 0.95rem;
    }
}

/* Добавьте эти стили в конец файла main.css */

/* Исправление для страницы 404 на мобильных устройствах */
@media (max-width: 768px) {
    .error-404-section {
        overflow-x: hidden;
    }
    
    .error-content {
        width: 100%;
        padding: 0 15px;
    }
    
    .error-visual {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .error-text {
        width: 100%;
        padding: 0 0px;
    }
    
    .suggestions-list li {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .error-404-section {
        padding: 40px 15px !important;
    }
    
    .error-content {
        padding: 0 10px !important;
    }
    
    .error-digit {
        font-size: 4rem !important;
        gap: 10px !important;
    }
    
    .error-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
    
    .error-orbits .orbit:nth-child(1) {
        width: 200px !important;
        height: 200px !important;
    }
    
    .error-orbits .orbit:nth-child(2) {
        width: 260px !important;
        height: 260px !important;
    }
    
    .error-orbits .orbit:nth-child(3) {
        width: 320px !important;
        height: 320px !important;
    }
    
    .error-title {
        font-size: 2.3rem !important;
        text-align: center;
    }
    
    .error-description {
        font-size: 1rem !important;
        text-align: center;
    }
    
    .error-suggestions {
        padding: 20px 15px;
    }
    
    .error-suggestions h3 {
        font-size: 1.1rem;
        text-align: center;
        justify-content: center;
    }
    
    .suggestions-list li {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* ===== ИСПРАВЛЕНИЕ ШИРИНЫ МОДАЛЬНОГО ОКНА ДЛЯ ПК ===== */

@media (min-width: 769px) {
    .order-modal .modal-content {
        max-width: 900px; /* Увеличиваем максимальную ширину для ПК */
        width: 90%; /* Используем процентную ширину */
        padding: 40px; /* Увеличиваем отступы */
    }
    
    .order-details-grid {
        grid-template-columns: repeat(3, 1fr); /* Меняем на 3 колонки для лучшего заполнения */
        gap: 25px; /* Увеличиваем отступы */
    }
    
    .modal-actions {
        gap: 20px; /* Увеличиваем отступы между кнопками */
    }
    
    .modal-actions .btn {
        padding: 15px 30px; /* Увеличиваем отступы кнопок */
        font-size: 1.1rem; /* Увеличиваем размер текста */
    }
}

@media (min-width: 1200px) {
    .order-modal .modal-content {
        max-width: 950px; /* Еще немного увеличиваем для больших экранов */
        padding: 50px; /* Еще больше отступов */
    }
    
    .order-details-grid {
        gap: 30px; /* Увеличиваем отступы между элементами */
    }
}

/* ===== ИСПРАВЛЕНИЕ ШИРИНЫ КНОПОК В МОДАЛЬНОМ ОКНЕ ===== */

@media (min-width: 769px) {
    .modal-actions {
        display: flex;
        gap: 20px;
        width: 100%;
    }
    
    .modal-actions .btn {
        flex: 1; /* Делаем кнопки одинаковой ширины */
        min-width: 200px; /* Минимальная ширина для нормального отображения текста */
        white-space: nowrap; /* Запрещаем перенос текста на новую строку */
        justify-content: center; /* Центрируем текст */
        padding: 16px 25px; /* Увеличиваем внутренние отступы */
    }
    
/* Для очень больших экранов */
@media (min-width: 1200px) {
    .modal-actions .btn {
        min-width: 220px;
        padding: 18px 30px;
        font-size: 1.15rem;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 991px) {
    .modal-actions .btn {
        min-width: 180px;
        padding: 15px 20px;
    }
}

/* Для мобильных устройств оставляем как есть, но добавляем запрет переноса текста */
@media (max-width: 768px) {
    .modal-actions {
        flex-direction: column; /* Вертикальное расположение на мобильных */
    }
    
    .modal-actions .btn {
        width: 100%; /* Полная ширина на мобильных */
        white-space: nowrap; /* Запрещаем перенос текста */
        justify-content: center; /* Центрируем текст */
        padding: 14px 20px;
    }
}

/* На очень маленьких экранах немного уменьшаем отступы */
@media (max-width: 480px) {
    .modal-actions .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    /* Уменьшаем иконки в кнопках для мобильных */
    .modal-actions .btn i {
        font-size: 0.9em;
        margin-right: 6px;
    }
}

/* Дополнительная защита от переноса текста в кнопках */
.modal-actions .btn span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Улучшаем отображение иконок в кнопках */
.modal-actions .btn i {
    flex-shrink: 0; /* Запрещаем иконкам уменьшаться */
}

/* ===== УМЕНЬШЕНИЕ ТЕКСТА В КНОПКАХ МОДАЛЬНОГО ОКНА ===== */

@media (min-width: 769px) {
    .modal-actions .btn {
        font-size: 0.95rem; /* Уменьшаем размер текста на ПК */
        padding: 14px 20px; /* Немного уменьшаем отступы для баланса */
    }
    
    .modal-actions .btn i {
        font-size: 0.9em; /* Уменьшаем иконки */
        margin-right: 6px;
    }
}

@media (min-width: 1200px) {
    .modal-actions .btn {
        font-size: 1rem; /* Чуть больше на больших экранах, но меньше чем было */
        padding: 15px 25px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .modal-actions .btn {
        font-size: 0.92rem; /* Еще чуть меньше на планшетах */
        padding: 13px 18px;
    }
}

/* Для мобильных тоже уменьшаем */
@media (max-width: 768px) {
    .modal-actions .btn {
        font-size: 0.92rem;
        padding: 12px 16px;
    }
    
    .modal-actions .btn i {
        font-size: 0.85em;
        margin-right: 5px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .modal-actions .btn {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .modal-actions .btn i {
        font-size: 0.8em;
        margin-right: 4px;
    }
}

/* ===== ИСПРАВЛЕНИЕ ВЫРАВНИВАНИЯ КНОПОК ===== */

.modal-actions {
    justify-content: center; /* Центрируем кнопки по горизонтали */
    align-items: center; /* Выравниваем по вертикали */
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 769px) {
    .modal-actions {
        flex-direction: row; /* Горизонтальное расположение на ПК */
        gap: 15px; /* Уменьшаем отступ между кнопками */
    }
    
    .modal-actions .btn {
        flex: 0 1 auto; /* Отменяем растягивание на всю ширину */
        min-width: 180px; /* Делаем кнопки меньше */
        max-width: 220px; /* Ограничиваем максимальную ширину */
        width: auto; /* Автоматическая ширина по содержимому */
        padding: 12px 20px; /* Уменьшаем отступы */
        font-size: 0.9rem; /* Уменьшаем текст */
        margin: 0; /* Убираем внешние отступы */
    }
    
    /* Делаем кнопки одинакового размера */
    .modal-actions .btn:first-child {
        min-width: 180px;
    }
    
    .modal-actions .btn:last-child {
        min-width: 200px; /* Для второй кнопки чуть больше, т.к. текст длиннее */
    }
}

/* Для больших экранов */
@media (min-width: 1200px) {
    .modal-actions .btn {
        min-width: 190px;
        max-width: 240px;
        padding: 13px 22px;
        font-size: 0.92rem;
    }
    
    .modal-actions .btn:first-child {
        min-width: 190px;
    }
    
    .modal-actions .btn:last-child {
        min-width: 210px;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .modal-actions {
        flex-direction: column; /* Вертикальное расположение */
        gap: 12px; /* Уменьшаем отступ между кнопками */
    }
    
    .modal-actions .btn {
        width: 100%; /* Полная ширина на мобильных */
        max-width: 300px; /* Ограничиваем максимальную ширину */
        padding: 12px 16px;
        font-size: 0.9rem;
        margin: 0 auto; /* Центрируем кнопки */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .modal-actions .btn {
        max-width: 280px;
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

/* Гарантируем, что текст не переносится */
.modal-actions .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Уменьшаем иконки в кнопках */
.modal-actions .btn i {
    font-size: 0.85em;
    margin-right: 6px;
}

/* Альтернативный вариант - если нужно сделать кнопки одинаковой ширины */
@media (min-width: 769px) {
    .modal-actions.equal-width .btn,
    .modal-actions .btn.equal-width {
        min-width: 190px !important;
        max-width: 190px !important;
        flex: 0 0 190px !important;
    }
}