/* about.css - стили для страницы "О сайте" */

/* Базовые стили страницы */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero-блок */
.about-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 2rem;
    color: white;
}

.about-hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-hero-badge i {
    color: #ff6b6b;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #cee7f7;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Блок истории */
.about-history {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-history-text {
    flex: 1;
    min-width: 250px;
}

.about-history-icon {
    font-size: 3rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.about-history-text h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-history-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a1a2e 0%, #667eea 100%);
    margin-bottom: 1.5rem;
}

.about-history-text p {
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-history-text p:last-of-type {
    margin-top: 1rem;
}

/* Цитата */
.about-quote {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.about-quote i:first-child {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.about-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.about-quote-footer {
    margin-top: 1rem;
}

.about-quote-footer i {
    color: #667eea;
}

.about-quote-footer span {
    color: #888;
    font-size: 0.9rem;
}

/* Модули проекта */
.about-modules {
    background: #f8f9fa;
    border-radius: 2rem;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
}

.about-modules-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-modules-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #667eea;
}

.about-modules h2 {
    color: #1a1a2e;
    margin-top: 1rem;
    font-size: 2rem;
}

.about-modules-subtitle {
    color: #6c757d;
}

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

.module-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-icon i {
    color: #667eea;
}

.module-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.module-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Планы на будущее */
.about-plans {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 2rem;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    color: white;
    text-align: center;
}

.about-plans-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-plans h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #cee7f7;
}

.about-plans-divider {
    width: 80px;
    height: 3px;
    background: #667eea;
    margin: 0 auto 1.5rem auto;
}

.about-plans p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-plans a {
    color: #cee7f7;
}

.plans-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.plans-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Контактный блок */
.about-contact-wrapper {
    text-align: center;
}

.about-contact {
    display: inline-block;
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    max-width: 500px;
    width: 100%;
}

.about-contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-contact-icon i {
    color: #667eea;
}

.about-contact h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.about-contact p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26,26,46,0.3);
    color: white;
}

/* ========================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .about-page {
        padding: 1.5rem 0.75rem;
    }
    
    .about-hero {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .about-modules {
        padding: 2rem 1.5rem;
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .about-page {
        padding: 0.5rem 0.5rem;
    }
    
    /* Hero-блок */
    .about-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .about-hero-badge {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .about-hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .about-hero p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Блок истории */
    .about-history {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-history-text {
        min-width: auto;
    }
    
    .about-history-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .about-history-text h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .about-history-divider {
        width: 40px;
        height: 3px;
        margin-bottom: 1rem;
    }
    
    .about-history-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .about-history-text p:last-of-type {
        margin-top: 0.75rem;
    }
    
    /* Цитата */
    .about-quote {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }
    
    .about-quote i:first-child {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .about-quote p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .about-quote-footer {
        margin-top: 0.75rem;
    }
    
    .about-quote-footer span {
        font-size: 0.8rem;
    }
    
    /* Модули проекта */
    .about-modules {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .about-modules-header {
        margin-bottom: 1.25rem;
    }
    
    .about-modules-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.7rem;
    }
    
    .about-modules h2 {
        font-size: 1.3rem;
        margin-top: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .about-modules-subtitle {
        font-size: 0.8rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .module-card {
        padding: 1rem;
        border-radius: 0.875rem;
    }
    
    .module-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .module-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .module-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Планы на будущее */
    .about-plans {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .about-plans-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .about-plans h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .about-plans-divider {
        width: 50px;
        height: 2px;
        margin-bottom: 1rem;
    }
    
    .about-plans p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .plans-badges {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
    
    .plans-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .plans-badge i {
        font-size: 0.7rem;
    }
    
    /* Контактный блок */
    .about-contact {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }
    
    .about-contact-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .about-contact h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .about-contact p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .contact-button i {
        font-size: 0.8rem;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .about-page {
        padding: 0.25rem 0.35rem;
    }
    
    .about-hero h1 {
        font-size: 1.2rem;
    }
    
    .about-hero p {
        font-size: 0.75rem;
    }
    
    .about-history-text h2 {
        font-size: 1.2rem;
    }
    
    .about-history-text p {
        font-size: 0.8rem;
    }
    
    .about-quote p {
        font-size: 0.85rem;
    }
    
    .about-modules h2 {
        font-size: 1.2rem;
    }
    
    .module-card h3 {
        font-size: 0.95rem;
    }
    
    .module-card p {
        font-size: 0.7rem;
    }
    
    .about-plans h2 {
        font-size: 1.2rem;
    }
    
    .about-plans p {
        font-size: 0.75rem;
    }
    
    .plans-badges {
        flex-direction: column;
        align-items: stretch;
    }
    
    .plans-badge {
        text-align: center;
    }
    
    .about-contact h3 {
        font-size: 0.95rem;
    }
    
    .contact-button {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
    }
}

/* Промежуточный размер (телефоны побольше) */
@media (min-width: 481px) and (max-width: 640px) {
    .about-page {
        padding: 0.5rem 0.6rem;
    }
    
    .about-hero h1 {
        font-size: 1.6rem;
    }
    
    .about-modules h2 {
        font-size: 1.5rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}