/* ===== ТОМСК СТРОИТЕЛЬНЫЙ - Минималистичный дизайн ===== */
/* Цвета: голубой, белый, серый */

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

:root {
    /* Основная палитра */
    --primary-blue: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --accent-blue: #0D47A1;
    
    /* Серые оттенки */
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #404058;
    --gray-600: #555566;
    --gray-500: #6e6e80;
    --gray-400: #9e9eab;
    --gray-300: #c4c4d0;
    --gray-200: #e8e8ee;
    --gray-100: #f5f5f8;
    
    /* Фон */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(33, 150, 243, 0.08);
    --shadow-md: 0 8px 32px rgba(33, 150, 243, 0.12);
    --shadow-lg: 0 16px 48px rgba(33, 150, 243, 0.16);
    --shadow-glow: 0 0 40px rgba(33, 150, 243, 0.2);
    
    /* Градиенты */
    --gradient-blue: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    --gradient-light: linear-gradient(135deg, #64B5F6 0%, #2196F3 100%);
    --gradient-subtle: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    
    /* Шрифты */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Переходы */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--gray-700);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-medium);
}

.header.scrolled {
    padding: 0.75rem 5%;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.logo-text span {
    color: var(--primary-blue);
}

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

nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: var(--transition-fast);
}

nav a:hover {
    color: var(--primary-blue);
}

nav a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
    background: var(--gradient-subtle);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.08) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-5%, 5%) scale(1.1); opacity: 0.8; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(33, 150, 243, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '★';
    color: var(--primary-blue);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

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

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

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-shape {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.hero-shape-inner {
    position: absolute;
    inset: 10%;
    background: var(--gradient-blue);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 10s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-shape-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-shape-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-shape-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===== SECTION COMMON ===== */
section {
    padding: 80px 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* ===== TABLE OF CONTENTS ===== */
.toc-section {
    background: var(--bg-primary);
    padding: 60px 5%;
}

.toc-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toc-title::before {
    content: '📋';
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.toc-list li {
    position: relative;
    padding-left: 1.5rem;
}

.toc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-blue);
    border-radius: 50%;
}

.toc-list a {
    font-size: 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-fast);
}

.toc-list a:hover {
    color: var(--primary-blue);
}

/* ===== COMPANIES SECTION ===== */
.companies-section {
    background: var(--bg-secondary);
    position: relative;
}

.companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.companies-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.company-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition-medium);
}

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

.company-card.featured {
    grid-column: span 2;
    background: var(--gradient-blue);
    color: white;
    border: none;
}

.company-card.featured .card-header {
    background: rgba(255, 255, 255, 0.1);
}

.company-card.featured .card-rank {
    background: white;
    color: var(--primary-dark);
}

.company-card.featured .card-title,
.company-card.featured .card-description {
    color: white;
}

.company-card.featured .card-description {
    opacity: 0.9;
}

.company-card.featured .card-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.company-card.featured .service-tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.company-card.featured .card-link {
    background: white;
    color: var(--primary-dark);
}

.company-card.featured .card-link:hover {
    background: var(--gray-100);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.company-card.featured .card-footer {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.card-rank {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    box-shadow: var(--shadow-sm);
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.card-badge {
    padding: 0.35rem 0.75rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.service-tag:hover {
    border-color: var(--primary-light);
    color: var(--primary-blue);
}

.card-footer {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid var(--gray-200);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-blue);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.card-link:hover svg {
    transform: translateX(3px);
}

/* ===== SEO TEXT SECTION ===== */
.seo-section {
    background: var(--bg-primary);
}

.seo-section.alt {
    background: var(--bg-secondary);
}

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

.seo-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.seo-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 2rem 0 0.75rem;
}

.seo-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    text-align: justify;
}

/* ===== STEPS SECTION ===== */
.steps-section {
    background: var(--bg-secondary);
}

.steps-container {
    max-width: 1100px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gradient-blue);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    background: var(--bg-primary);
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-table thead {
    background: var(--gradient-blue);
    color: white;
}

.pricing-table th {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: var(--bg-secondary);
}

.pricing-table td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.pricing-table td:first-child {
    font-weight: 600;
    color: var(--gray-900);
}

.pricing-table td:last-child {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

.pricing-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(33, 150, 243, 0.08);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 12px 12px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: var(--bg-secondary);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    color: var(--gray-400);
    font-size: 3rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--bg-primary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--gray-500);
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    background: var(--primary-blue);
}

.faq-item.active .faq-icon svg {
    stroke: white;
    transform: rotate(180deg);
}

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

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

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer a:hover {
    color: white;
}

.footer p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-copy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-700);
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .company-card.featured {
        grid-column: span 1;
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .company-card.featured {
        grid-column: span 1;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}
