/* CSS переменные */
:root {
    --about-primary: #2c3e50;
    --about-secondary: #3498db;
    --about-accent: #e74c3c;
    --about-light: #f8f9fa;
    --about-dark: #1a2530;
    --about-text: #4a5568;
    --about-text-light: #718096;
    --about-border: #e2e8f0;
    --about-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --about-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
    --about-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== ОСНОВНЫЕ СТИЛИ ========== */
.about-page {
    background: linear-gradient(135deg, var(--about-light) 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* ========== ГЕРОЙ СЕКЦИЯ ========== */
.about-hero {
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-dark) 100%);
    color: white;
    padding: clamp(40px, 8vw, 80px) 0 clamp(60px, 10vw, 100px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.about-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
}

.breadcrumbs {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span {
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.6;
}

/* ========== СТАТИСТИКА ========== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 25px 15px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--about-transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--about-secondary), #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.stat-number-sup {
    font-size: 1.2rem;
    background: inherit;
    background-clip: text;
    -webkit-background-clip: text;
    color: inherit;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== ИСТОРИЯ КОМПАНИИ ========== */
.company-story {
    padding: clamp(60px, 10vw, 100px) 0;
    background: white;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: start;
}

.story-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--about-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--about-secondary), #60a5fa);
    border-radius: 2px;
}

.story-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--about-text);
    margin: 30px 0 40px;
}

/* ========== ТАЙМЛАЙН ========== */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--about-secondary), #60a5fa, transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--about-secondary);
    border-radius: 50%;
    transition: transform 0.3s;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    background: var(--about-secondary);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--about-secondary), #60a5fa);
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.timeline-content h4 {
    color: var(--about-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--about-text-light);
    line-height: 1.6;
}

/* ========== ИЗОБРАЖЕНИЕ ========== */
.story-image {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--about-shadow);
    transition: var(--about-transition);
    aspect-ratio: 300 / 350;
}

.story-image:hover {
    transform: scale(1.02);
    box-shadow: var(--about-shadow-hover);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* ========== ЦЕННОСТИ ========== */
.company-values {
    padding: 80px 0;
    background: var(--about-light);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--about-primary);
    margin-bottom: 25px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 35px 25px;
    border-radius: 28px;
    text-align: center;
    transition: var(--about-transition);
    border: 1px solid var(--about-border);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--about-secondary), #60a5fa);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--about-shadow);
    border-color: transparent;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.value-card h3 {
    color: var(--about-primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.value-card p {
    color: var(--about-text-light);
    line-height: 1.6;
}

/* ========== БРЕНДЫ (БЕГУЩАЯ СТРОКА) ========== */
.brands-section {
    padding: 80px 0;
    background: white;
    overflow: hidden;
    position: relative;
}

.brands-section::before,
.brands-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.brands-section::before {
    left: 0;
    background: linear-gradient(90deg, white, transparent);
}

.brands-section::after {
    right: 0;
    background: linear-gradient(270deg, white, transparent);
}

.brands-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--about-primary);
    margin-bottom: 20px;
}

.brands-subtitle {
    text-align: center;
    color: var(--about-text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.brands-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-track {
    display: flex;
    animation: scrollBrands 35s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex: 0 0 auto;
    margin: 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.brand-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.08);
}

.brand-item img {
    max-height: 55px;
    max-width: 140px;
    object-fit: contain;
}

/* ========== CTA СЕКЦИЯ ========== */
.about-cta {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2), transparent);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--about-secondary);
    color: white;
    border: 2px solid var(--about-secondary);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(52, 152, 219, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--about-primary);
    transform: translateY(-2px);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .story-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-year {
        position: static;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 40px 0 60px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 12px;
    }
    
    .company-story, .company-values, .brands-section, .about-cta {
        padding: 60px 0;
    }
    
    .section-title, .brands-title {
        font-size: 1.8rem;
    }
    
    .values-grid {
        gap: 20px;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .brand-item {
        margin: 0 20px;
    }
    
    .brand-item img {
        max-height: 40px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-item {
        margin: 0 15px;
    }
    
    .brand-item img {
        max-height: 35px;
        max-width: 85px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ========== ДОСТУПНОСТЬ ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Фокус для клавиатуры */
a:focus-visible,
button:focus-visible,
.stat-card:focus-visible {
    outline: 3px solid var(--about-secondary);
    outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .stat-card {
        border: 2px solid currentColor;
    }
    
    .btn-primary, .btn-secondary {
        border-width: 2px;
    }
}