/* =========================================
   ABOUT PAGE
   Restored to the reference design
========================================= */

.about-page {
    background: var(--color-background, #f8f5fc);
    color: var(--color-text, #333);
    padding-bottom: 0;
}

.about-page .layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.about-page .breadcrumb {
    margin: 0;
    padding: 24px 0 18px;
}

/* Hero */
.about-hero {
    max-width: 860px;
    margin: 28px auto 76px;
    padding: 54px 72px;
    text-align: center;
    background: rgba(250, 247, 253, .92);
    border: 1px solid rgba(143, 120, 189, .07);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(77, 54, 110, .035);
}

.about-hero__content {
    max-width: 720px;
    margin: 0 auto;
}

.about-hero h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 500;
    color: #2f2a2d;
}

.about-hero p {
    margin: 0 auto 24px;
    max-width: 700px;
    font-size: 17px;
    line-height: 1.65;
    color: #777276;
}

.about-hero .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
}

/* Values */
.about-values {
    margin-bottom: 78px;
}

.about-page .section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.about-page .section-heading h2 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 500;
    color: #2f2a2d;
}

.about-page .section-heading p {
    margin: 0;
    color: #777276;
    font-size: 16px;
}

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

.about-value-card {
    min-height: 185px;
    padding: 28px 20px 24px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(70, 50, 90, .08);
}

.about-value-card__icon {
    height: 46px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.about-value-card h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    color: #342f32;
}

.about-value-card p {
    margin: 0;
    color: #777276;
    font-size: 14px;
    line-height: 1.55;
}

/* Contact panel */
.about-contact {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
    margin: 0 0 72px;
    padding: 48px;
    background: rgba(250, 247, 253, .9);
    border: 1px solid rgba(143, 120, 189, .06);
    border-radius: 22px;
}

.about-contact__content h2 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 500;
    color: #342f32;
}

.about-contact__content p {
    max-width: 520px;
    margin: 0;
    color: #777276;
    font-size: 15px;
    line-height: 1.6;
}

.about-contact__details {
    color: #4a4548;
    font-size: 14px;
}

.about-contact__details p {
    margin: 0 0 12px;
    line-height: 1.5;
}

.about-contact__details a {
    color: inherit;
    text-decoration: none;
}

.about-contact__details a:hover {
    color: var(--color-primary, #8f78bd);
}

.about-contact__phone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 5px;
}

/* Messenger icons */
.contact-messengers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    vertical-align: middle;
}

.contact-messengers__link {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .15s ease, filter .15s ease;
}

.contact-messengers__link:hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}

.contact-messengers__link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.contact-messengers__link--viber {
    background: #7360a8;
}

.contact-messengers__link--telegram {
    background: #229ed9;
}

.contact-messengers__link--whatsapp {
    background: #25d366;
}

/* Keep footer contact row consistent with the same icons */
.footer-contact-phone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-contact-phone .contact-messengers {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-values__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-contact {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 576px) {
    .about-page .layout-container {
        padding: 0 18px;
    }

    .about-hero {
        margin: 20px auto 52px;
        padding: 38px 22px;
        border-radius: 18px;
    }

    .about-hero h2,
    .about-page .section-heading h2 {
        font-size: 30px;
    }

    .about-hero p {
        font-size: 15px;
    }

    .about-values {
        margin-bottom: 52px;
    }

    .about-values__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-value-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .about-contact {
        margin-bottom: 48px;
        padding: 30px 22px;
        border-radius: 18px;
    }

    .about-contact__content h2 {
        font-size: 27px;
    }

    .contact-messengers {
        margin-left: 8px;
        gap: 6px;
    }

    .contact-messengers__link {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .contact-messengers__link svg {
        width: 17px;
        height: 17px;
    }
}
