/* ===================================================================
   ABOUT PAGE — History Explorers
   Страница "О проекте"
   =================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

.about-page {
    padding: 16px;
}

.about-section {
    margin-bottom: 28px;
}

.about-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #1a1a1a);
    margin-bottom: 10px;
}

.about-lead {
    font-size: 16px;
    font-weight: 500;
    color: var(--tg-theme-text-color, #333);
    line-height: 1.5;
    margin-bottom: 8px;
}

.about-section p {
    font-size: 15px;
    color: var(--tg-theme-hint-color, #555);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* --- Блок «Как это работает» --- */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 520px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.about-feature {
    background: var(--tg-theme-secondary-bg-color, #f5f7fa);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
}

.about-feature-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.about-feature h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 13px;
    color: var(--tg-theme-hint-color, #666);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Платформы --- */
.about-platforms {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.about-platform {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    background: var(--tg-theme-secondary-bg-color, #f5f7fa);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.about-platform-icon {
    font-size: 1.4rem;
}

.about-platform-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-theme-link-color, #2481cc);
}

.about-platform-desc {
    font-size: 12px;
    color: var(--tg-theme-hint-color, #888);
}

.about-platform-soon {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #f87070;
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

/* --- Партнёр --- */
.about-partner-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--tg-theme-secondary-bg-color, #f5f7fa);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

@media (max-width: 520px) {
    .about-partner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.about-partner-logo {
    width: 110px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.about-partner-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333);
    margin-bottom: 6px;
}

.about-partner-info p {
    font-size: 14px;
    color: var(--tg-theme-hint-color, #555);
    line-height: 1.5;
    margin-bottom: 0;
}
