/* ============================================
   ABOUT PAGE 2026 - MINIMALIST DESIGN
   ============================================ */

/* Base */
.about-page {
    --about-spacing-xs: 0.5rem;
    --about-spacing-sm: 1rem;
    --about-spacing-md: 2rem;
    --about-spacing-lg: 4rem;
    --about-spacing-xl: 6rem;
    --about-spacing-2xl: 8rem;
    
    --about-gray-50: #fafafa;
    --about-gray-100: #f5f5f5;
    --about-gray-200: #e5e5e5;
    --about-gray-300: #d4d4d4;
    --about-gray-400: #a3a3a3;
    --about-gray-500: #737373;
    --about-gray-600: #525252;
    --about-gray-700: #404040;
    --about-gray-800: #262626;
    --about-gray-900: #171717;
    
    --about-primary: #0f172a;
    --about-accent: #3b82f6;
    
    color: var(--about-gray-700);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    
    /* ⭐ Фикс горизонтального скролла */
    overflow-x: hidden;
    max-width: 100%;
}

/* ⭐ Все секции тоже должны скрывать переполнение */
.about-page section {
    overflow-x: hidden;
    max-width: 100%;
}

/* Typography */
.about-page h1,
.about-page h2,
.about-page h3 {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--about-gray-900);
}

.about-page .section-title {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--about-gray-900);
}

.about-page .section-subtitle {
    font-size: 1.125rem;
    color: var(--about-gray-500);
    max-width: 600px;
}

/* ⭐ Текст слева — убираем возможный выход за пределы */
.about-page .text-left {
    text-align: left;
}

/* Hero */
.about-hero {
    padding: var(--about-spacing-xl) var(--about-spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--about-gray-200);
}

.about-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--about-gray-900);
}

.about-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--about-gray-900) 0%, var(--about-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* ⭐ Добавлено для корректного отображения градиента */
}

.about-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--about-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.about-page .container {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    /* ⭐ Фикс: контейнер не должен вылезать за пределы */
    box-sizing: border-box;
    width: 100%;
}

/* Mission */
.about-mission {
    padding: var(--about-spacing-2xl) 0;
    background: white;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: var(--about-spacing-xl);
}

.mission-text {
    flex: 1;
}

.mission-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--about-gray-600);
    margin-bottom: 1.25rem;
}

.mission-text p:first-of-type {
    font-size: 1.25rem;
    color: var(--about-gray-800);
}

.mission-visual {
    flex-shrink: 0;
}

.mission-icon {
    width: 120px;
    height: 120px;
    background: #f5f7ff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.3s ease;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
}

.mission-icon:hover {
    transform: scale(1.02);
    background: var(--about-gray-100);
}

/* ⭐ Фикс для изображений внутри иконок */
.mission-icon img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Offer Grid */
.about-offer {
    padding: var(--about-spacing-2xl) 0;
    background: var(--about-gray-50);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--about-spacing-md);
    margin-top: var(--about-spacing-xl);
}

.offer-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border: 1px solid var(--about-gray-200);
    /* ⭐ Фикс: карточки не должны вылезать за пределы грида */
    min-width: 0;
    overflow-wrap: break-word;
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--about-gray-300);
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.08);
}

.offer-icon {
    margin-bottom: var(--about-spacing-md);
}

.offer-icon img {
    width: 90px;
    height: 90px;
    max-width: 100%;
    height: auto;
}

.offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.offer-card > p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--about-gray-500);
    margin-bottom: 1.25rem;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-features li {
    font-size: 0.875rem;
    color: var(--about-gray-500);
    padding: 0.375rem 0;
    border-top: 1px solid var(--about-gray-100);
}

.offer-features li:first-child {
    border-top: none;
}

/* Advantages */
.about-advantages {
    padding: var(--about-spacing-2xl) 0;
    background: white;
}

.advantages-grid {
    max-width: 880px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    gap: var(--about-spacing-lg);
    padding: var(--about-spacing-lg) 0;
    border-bottom: 1px solid var(--about-gray-200);
}

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

.advantage-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--about-accent);
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.advantage-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.advantage-content p {
    color: var(--about-gray-500);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Stats */
.about-stats {
    padding: var(--about-spacing-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--about-spacing-lg);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* Audience */
.about-audience {
    padding: var(--about-spacing-2xl) 0;
    background: white;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--about-spacing-md);
    margin-top: var(--about-spacing-xl);
}

.audience-card {
    text-align: center;
    padding: 2rem;
    background: var(--about-gray-50);
    border-radius: 20px;
    transition: all 0.3s ease;
    /* ⭐ Фикс: карточки не должны вылезать за пределы */
    min-width: 0;
    overflow-wrap: break-word;
}

.audience-card:hover {
    background: var(--about-gray-100);
    transform: translateY(-2px);
}

.audience-icon {
    margin-bottom: var(--about-spacing-md);
}

.audience-icon img {
    width: 84px;
    height: 84px;
    max-width: 100%;
    height: auto;
}

.audience-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.audience-card p {
    font-size: 0.875rem;
    color: var(--about-gray-500);
    line-height: 1.6;
}

/* Team */
.about-team {
    padding: var(--about-spacing-2xl) 0;
    background: var(--about-gray-50);
}

.team-content {
    display: flex;
    gap: var(--about-spacing-xl);
    align-items: flex-start;
}

.team-text {
    flex: 2;
}

.team-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--about-gray-600);
    margin-bottom: 1rem;
}

.team-contact {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-top: var(--about-spacing-lg);
    border: 1px solid var(--about-gray-200);
}

.team-contact h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.team-contact p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.team-visual {
    flex: 1;
}

.team-quote {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.team-quote p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--about-gray-700);
    margin-bottom: 1rem;
}

.quote-author {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--about-gray-500);
    letter-spacing: 0.02em;
}

/* CTA */
.about-cta {
    padding: var(--about-spacing-2xl) 0;
    background: white;
}

.cta-block {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-block h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-block p {
    color: var(--about-gray-500);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cta-note {
    font-size: 0.8125rem !important;
    color: var(--about-gray-400) !important;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

/* ⭐ Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* ⭐ Кнопка "Связаться с нами" в секции Team */
.team-contact .btn-primary {
    background: var(--about-accent);
    color: white;
}

.team-contact .btn-primary:hover {
    background: var(--about-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .offer-grid,
    .stats-grid,
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-content {
        flex-direction: column;
    }
    
    .team-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .about-page .section-title {
        font-size: 2rem;
    }
    
    .about-hero-title {
        font-size: 2.5rem;
    }
    
    .about-hero-subtitle {
        font-size: 1rem;
    }
    
    .offer-grid,
    .stats-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        flex-direction: column;
        gap: var(--about-spacing-sm);
        text-align: center;
    }
    
    .advantage-number {
        min-width: 150px;
    }
    
    .stats-grid {
        gap: var(--about-spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-mission,
    .about-offer,
    .about-advantages,
    .about-stats,
    .about-audience,
    .about-team,
    .about-cta {
        padding: var(--about-spacing-xl) 0;
    }

    /* ⭐ Фикс: на мобильных карточки занимают всю ширину */
    .offer-card,
    .audience-card {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 2rem;
    }
    
    .offer-card {
        padding: var(--about-spacing-md);
    }
    
    .cta-block h2 {
        font-size: 1.5rem;
    }

    /* ⭐ Фикс: отступы на совсем маленьких экранах */
    .about-page .container {
        padding: 0 0.75rem;
    }

    .about-hero {
        padding: var(--about-spacing-lg) var(--about-spacing-sm);
    }

    .mission-icon {
        width: 80px;
        height: 80px;
    }
}