/* ============================================================
   about.css — страница «Обо мне» (профессиональный профиль)
   Дополняет inner_page.css, повторяя его палитру:
   #356ba2 — основной синий, #1a2d45 — тёмный, #f7fafd — фон панелей
   ============================================================ */

:root {
    --about-primary: #356ba2;
    --about-dark: #1a2d45;
    --about-panel: #f7fafd;
    --about-border: #dde8f4;
    --about-muted: #5c6b7d;
}

/* ────────────────────────────────────────────
   Шапка профиля
   ──────────────────────────────────────────── */
.about-hero {
    background: linear-gradient(135deg, #f4f8fc 0%, #eaf1f8 100%);
    border: 1px solid var(--about-border);
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 8px;
}

.about-hero-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--about-dark);
    margin-bottom: 4px;
}

.about-hero-role {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--about-primary);
    margin-bottom: 16px;
}

.about-hero-lead {
    max-width: 900px;
}

.inner-page-main .about-hero-lead p:last-child {
    margin-bottom: 0;
}

/* Быстрые факты */
.about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.about-fact {
    background: #fff;
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 14px 16px;
}

.about-fact-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--about-primary);
    line-height: 1.2;
}

.about-fact-label {
    display: block;
    font-size: 13px;
    color: var(--about-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Ссылки-кнопки: сертификаты, GitHub */
.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--about-primary);
    border-radius: 6px;
    color: var(--about-primary) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.about-link:hover {
    background: var(--about-primary);
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(53, 107, 162, 0.25);
}

.about-link i {
    font-size: 15px;
}

/* ────────────────────────────────────────────
   Технологии и навыки — карточки с тегами
   ──────────────────────────────────────────── */
.about-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.about-skill-card {
    background: var(--about-panel);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 18px 20px 20px;
}

.inner-page-main .about-skill-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--about-primary);
    display: flex;
    align-items: center;
    gap: 9px;
}

.about-skill-card h3 i {
    font-size: 15px;
    color: var(--about-primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.about-tag {
    display: inline-block;
    padding: 4px 11px;
    background: #fff;
    border: 1px solid var(--about-border);
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #2a4a6b;
    white-space: nowrap;
}

/* ────────────────────────────────────────────
   Блоки опыта
   ──────────────────────────────────────────── */
.about-exp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    /* Иначе короткая карточка растягивается до высоты соседней и пустеет */
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.about-exp-card {
    border: 1px solid var(--about-border);
    border-left: 4px solid var(--about-primary);
    border-radius: 8px;
    padding: 18px 22px 6px;
    background: #fff;
}

.inner-page-main .about-exp-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--about-dark);
}

.inner-page-main .about-exp-card ul {
    margin-bottom: 14px;
}

.inner-page-main .about-exp-card li {
    line-height: 1.65;
}

/* ────────────────────────────────────────────
   Продукты: модули Bitrix и приложения Битрикс24
   ──────────────────────────────────────────── */
.about-products {
    display: grid;
    /* auto-fill, а не auto-fit: две карточки модулей иначе растянутся
       на всю ширину и разъедутся с рядом приложений ниже */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.about-product {
    display: block;
    background: var(--about-panel);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.about-product:hover {
    border-color: var(--about-primary);
    box-shadow: 0 4px 18px rgba(53, 107, 162, 0.15);
    transform: translateY(-2px);
}

.about-product-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--about-primary);
    margin-bottom: 5px;
}

.about-product-note {
    display: block;
    font-size: 13px;
    color: var(--about-muted);
    line-height: 1.5;
}

/* ────────────────────────────────────────────
   Образование
   ──────────────────────────────────────────── */
.about-edu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 20px;
}

.about-edu-card {
    background: var(--about-panel);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 16px 20px 8px;
}

.inner-page-main .about-edu-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--about-primary);
}

.inner-page-main .about-edu-card ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.inner-page-main .about-edu-card li {
    font-size: 14px;
    line-height: 1.6;
}

/* ────────────────────────────────────────────
   Блок контактов
   ──────────────────────────────────────────── */
.about-cta {
    margin-top: 40px;
    background: var(--about-dark);
    border-radius: 10px;
    padding: 28px 30px;
    color: #dbe6f2;
}

.inner-page-main .about-cta h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

.inner-page-main .about-cta p {
    color: #c3d3e4;
    margin-bottom: 18px;
}

.about-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.inner-page-main .about-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-size: 15px;
}

.about-contacts i {
    width: 20px;
    text-align: center;
    color: #7fb2e0;
    flex-shrink: 0;
}

.about-contacts a {
    color: #99ccff !important;
    text-decoration: none !important;
}

.about-contacts a:hover {
    text-decoration: underline !important;
}

.about-cta-button {
    display: inline-block;
    padding: 11px 26px;
    background: var(--about-primary);
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.about-cta-button:hover {
    background: #4a83bd;
}

/* ────────────────────────────────────────────
   Адаптивность
   ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .about-hero {
        padding: 20px 18px;
    }

    .about-cta {
        padding: 22px 18px;
    }

    .about-facts {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .about-skills,
    .about-exp,
    .about-edu,
    .about-products {
        grid-template-columns: 1fr;
    }

    .about-link {
        width: 100%;
        justify-content: center;
    }

    .about-tag {
        white-space: normal;
    }
}
