/* About page */
.about-page {
    color: #333;
}

.about-hero-section {
    padding: 56px 0 64px;
    background-color: #fff;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(26, 54, 93, 0.16);
}

.about-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-text-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.about-content h1 {
    margin: 0 0 15px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.12;
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.65;
}

.about-content .about-role {
    margin-bottom: 28px;
    padding: 14px 18px;
    color: var(--primary-color);
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

.about-content .about-lead {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.expertise-list,
.site-help-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.expertise-list li,
.site-help-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 34px;
    line-height: 1.55;
}

.expertise-list li::before,
.site-help-list li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--primary-color);
    background-color: var(--accent-color);
    border-radius: 50%;
    content: '✓';
    font-size: 0.78rem;
    font-weight: 700;
}

.credentials-section {
    padding: 64px 0;
    background-color: #f8f9fa;
}

.about-section-heading {
    max-width: 850px;
    margin-bottom: 30px;
}

.about-section-heading h2,
.training-heading h2 {
    margin: 0 0 14px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 600;
}

.about-section-heading p,
.training-heading p {
    margin: 0;
    color: #4b5563;
    font-size: 1.04rem;
    line-height: 1.65;
}

.about-section-heading-centered {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.credential-copy {
    max-width: 980px;
    margin: 26px 0 0;
    padding: 20px 24px;
    background-color: #fff;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(26, 54, 93, 0.07);
}

.credential-copy p {
    margin: 0;
    line-height: 1.65;
}

.credential-copy p + p {
    margin-top: 16px;
}

.credential-copy .credential-heading {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
}

.credentials-section .diploma-gallery {
    max-width: 980px;
}

.about-value-section {
    padding: 64px 0;
    background-color: #fff;
}

.about-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-value-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background-color: #f8f9fa;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(26, 54, 93, 0.08);
}

.about-value-card h2 {
    position: relative;
    margin: 0 0 18px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 600;
}

.about-value-card p {
    position: relative;
    margin-bottom: 0;
    line-height: 1.65;
}

.about-card-number {
    position: absolute;
    top: 10px;
    right: 20px;
    color: rgba(26, 54, 93, 0.07);
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-value-card-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.about-value-card-primary h2 {
    color: #fff;
}

.about-value-card-primary .about-card-number {
    color: rgba(255, 255, 255, 0.08);
}

.about-value-card-site h2 {
    font-size: 1.3rem;
    line-height: 1.45;
}

.about-value-card .site-help-list {
    position: relative;
    margin: 18px 0;
}

.about-value-card .about-value-note {
    color: var(--primary-color);
    font-weight: 700;
}

.support-section {
    padding: 64px 0 72px;
    background-color: #f8f9fa;
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    margin-top: 34px;
}

.support-card {
    padding: 32px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.1);
}

.support-card-primary {
    color: #fff;
    background-color: var(--primary-color);
}

.support-card h3 {
    margin: 0 0 16px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 600;
}

.support-card-primary h3 {
    color: #fff;
}

.support-card p {
    margin-bottom: 14px;
    line-height: 1.65;
}

.about-contact-panel {
    margin-top: 24px;
    padding: 20px;
    color: #333;
    background-color: #fff;
    border-radius: 10px;
}

.about-contact-heading {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 700;
}

.about-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.about-contact-row > div:last-child {
    min-width: 0;
}

.about-contact-row + .about-contact-row {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6e9ee;
}

.about-contact-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    background-color: #f4f6f8;
    border-radius: 50%;
}

.about-contact-icon img {
    width: 21px;
    height: 21px;
}

.about-contact-label {
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-contact-panel a {
    color: var(--primary-color);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.about-phone-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.messenger-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 20px;
}

.about-contact-panel .messenger-action {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.14);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    overflow-wrap: normal;
    transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.about-contact-panel .messenger-action:hover,
.about-contact-panel .messenger-action:focus-visible {
    color: #fff;
    box-shadow: 0 7px 16px rgba(26, 54, 93, 0.2);
    filter: brightness(1.07);
    transform: translateY(-2px);
}

.messenger-action:focus-visible {
    outline: 3px solid rgba(198, 160, 82, 0.55);
    outline-offset: 2px;
}

.messenger-action img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.messenger-action span {
    white-space: nowrap;
}

.messenger-action-max {
    background: linear-gradient(135deg, #9500ff, #471aff 58%, #00bfff);
}

.messenger-action-vk {
    background-color: #3a65e4;
}

.messenger-action-ok {
    background-color: #ee8208;
}

.messenger-action-telegram {
    background-color: #4e83f0;
}

.messenger-action-whatsapp {
    background-color: #31a66f;
}

.support-card-training {
    align-self: stretch;
    border-top: 4px solid var(--accent-color);
}

.training-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin: 54px 0 24px;
}

.training-heading h2 {
    flex-shrink: 0;
    margin-bottom: 0;
}

.training-heading p {
    max-width: 540px;
    text-align: right;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.training-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 28px;
    background-color: #fff;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(26, 54, 93, 0.08);
}

.training-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    content: '';
}

.training-card h3 {
    margin: 0 0 14px;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.training-card p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.training-card p:last-child {
    margin-bottom: 0;
}

.training-card .training-audience {
    color: var(--accent-text-color);
    font-weight: 700;
}

.training-note {
    padding: 14px 16px;
    color: #475569;
    background-color: #f5f7fa;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 6px 6px 0;
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-photo {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .support-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .about-hero-section,
    .credentials-section,
    .about-value-section,
    .support-section {
        padding: 44px 0;
    }

    .about-content h1 {
        font-size: 2.15rem;
    }

    .about-value-grid,
    .training-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .training-heading {
        display: block;
        margin-top: 44px;
    }

    .training-heading h2 {
        margin-bottom: 10px;
    }

    .training-heading p {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .about-content h1 {
        font-size: 1.9rem;
    }

    .about-content .about-role {
        padding: 13px 15px;
        font-size: 0.98rem;
    }

    .about-content .about-lead {
        font-size: 1.23rem;
    }

    .expertise-list li,
    .site-help-list li {
        padding-left: 31px;
    }

    .credential-copy,
    .about-value-card,
    .support-card,
    .training-card {
        padding: 20px;
    }

    .about-value-card h2,
    .support-card h3 {
        font-size: 1.4rem;
    }

    .about-contact-panel {
        padding: 16px;
    }

    .messenger-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .messenger-action-ok {
        grid-column: 1 / -1;
    }

}

@media (max-width: 380px) {
    .messenger-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .messenger-action-ok {
        grid-column: auto;
    }
}
