@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
    --primary-dark: #1a1d21;
    --secondary-dark: #23272d;
    --accent-steel: #4a90a4;
    --accent-orange: #e67e22;
    --text-light: #f5f5f5;
    --text-muted: #9ca3af;
    --border-color: #3d4249;
    --gradient-steel: linear-gradient(135deg, #2c3e50 0%, #1a1d21 100%);
    --gradient-accent: linear-gradient(135deg, #4a90a4 0%, #2c5364 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-steel);
    border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    font-weight: 400;
    color: var(--text-muted);
}

a {
    color: var(--accent-steel);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 29, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-light);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    background: var(--gradient-steel);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(74, 144, 164, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(74, 144, 164, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(74, 144, 164, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(74, 144, 164, 0.1) 75%);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 144, 164, 0.2);
    border: 1px solid var(--accent-steel);
    color: var(--accent-steel);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table of Contents */
.toc {
    padding: 4rem 2rem;
    background: var(--secondary-dark);
}

.toc-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc-item:hover {
    border-color: var(--accent-steel);
    transform: translateY(-2px);
}

.toc-num {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-steel);
}

.toc-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-dark {
    background: var(--primary-dark);
}

.section-light {
    background: var(--secondary-dark);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 1rem;
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.company-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.company-card:hover {
    border-color: var(--accent-steel);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.company-card.featured {
    border-color: var(--accent-orange);
    position: relative;
}

.company-card.featured::before {
    content: 'РЕКОМЕНДУЕМ';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-orange);
    color: var(--primary-dark);
    padding: 0.3rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 2;
}

.company-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--primary-dark);
}

.company-content {
    padding: 1.5rem;
}

.company-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.company-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.company-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-accent);
    color: var(--text-light);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.company-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(74, 144, 164, 0.4);
    color: var(--text-light);
}

/* Info Block */
.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.info-block.reverse {
    direction: rtl;
}

.info-block.reverse > * {
    direction: ltr;
}

.info-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
}

.info-text h2 {
    margin-bottom: 1.5rem;
}

.info-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.info-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-steel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--primary-dark);
    border-radius: 12px;
    border-left: 4px solid var(--accent-steel);
    transition: all 0.3s ease;
}

.step-item:hover {
    border-left-color: var(--accent-orange);
    transform: translateX(10px);
}

.step-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-steel);
    line-height: 1;
    opacity: 0.5;
}

.step-content h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary-dark);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background: var(--primary-dark);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.pricing-table td {
    color: var(--text-muted);
}

.pricing-table tr:hover td {
    background: rgba(74, 144, 164, 0.1);
}

.price-value {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-orange);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(26, 29, 33, 0.95));
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--primary-dark);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-steel);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-steel);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    background: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--accent-steel);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .info-block {
        grid-template-columns: 1fr;
    }
    
    .info-block.reverse {
        direction: ltr;
    }
    
    .info-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 1.5rem 60px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .info-features {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        font-size: 0.85rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}
