/* about.css */
.about-page {
    padding: 40px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

/* История основателя */
.founder-story {
    margin-bottom: 60px;
}

.founder-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.founder-image {
    text-align: center;
}

.founder-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.founder-info {
    flex: 1;
}

.founder-name {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.founder-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.founder-history {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.history-paragraph {
    margin-bottom: 1.5rem;
}

/* Стили для HTML-элементов внутри истории */
.history-paragraph p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.history-paragraph strong,
.history-paragraph b {
    font-weight: 700;
    color: var(--dark);
}

.history-paragraph em,
.history-paragraph i {
    font-style: italic;
    color: var(--text-light);
}

.history-paragraph u {
    text-decoration: underline;
}

.history-paragraph a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.history-paragraph a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Списки в истории */
.history-paragraph ul,
.history-paragraph ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.history-paragraph li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.history-paragraph ul li {
    list-style-type: disc;
}

.history-paragraph ol li {
    list-style-type: decimal;
}

/* Цитаты */
.history-paragraph blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
    background-color: var(--primary-light);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Заголовки внутри истории */
.history-paragraph h3,
.history-paragraph h4,
.history-paragraph h5 {
    color: var(--dark);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.history-paragraph h3 {
    font-size: 1.3rem;
}

.history-paragraph h4 {
    font-size: 1.2rem;
}

.history-paragraph h5 {
    font-size: 1.1rem;
}

/* Выделение важных моментов */
.history-paragraph .highlight {
    background-color: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Блок контактов (соцсети + реквизиты) */
.contacts-section {
    margin-bottom: 60px;
}

.contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Соцсети */
.social-block {
    order: 1; /* На мобильном первыми */
}

.social-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Реквизиты */
.details-block {
    order: 2; /* На мобильном вторыми */
}

.details-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.details-content {
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.details-text {
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.details-text a {
    color: var(--primary);
    font-weight: 600;
}

.details-text a:hover {
    text-decoration: underline;
}

/* CTA баннер для страницы "О компании" */
.section--cta-about {
    margin: 60px 0;
}

.cta-banner--about {
    background-position: center center;
    background-size: cover;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.cta-banner--about h2 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 0;
}

.cta-banner--about .btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-banner--about .btn-secondary:hover {
    background-color: var(--light);
    transform: translateY(-2px);
}

/* Адаптация для планшетов */
@media (min-width: 768px) {
    .about-page {
        padding: 60px 0;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .founder-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .founder-image {
        flex: 0 0 300px;
    }

    .founder-name {
        font-size: 1.75rem;
    }

    .social-icon {
        width: 60px;
        height: 60px;
    }

    .cta-banner--about {
        padding: 3rem;
    }

    .founder-history {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .history-paragraph {
        margin-bottom: 1.75rem;
    }

    .history-paragraph h3 {
        font-size: 1.4rem;
    }

    .history-paragraph h4 {
        font-size: 1.3rem;
    }
}

/* Адаптация для десктопа */
@media (min-width: 1024px) {
    .about-page {
        padding: 80px 0;
    }

    .founder-image {
        flex: 0 0 350px;
    }

    /* На десктопе - горизонтальное расположение */
    .contacts-grid {
        flex-direction: row;
        gap: 60px;
        align-items: flex-start;
    }

    .social-block {
        order: 0; /* Сбрасываем порядок */
        flex: 1;
    }

    .details-block {
        order: 0; /* Сбрасываем порядок */
        flex: 1;
    }

    .social-title,
    .details-title {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .details-content {
        text-align: left;
    }

    .social-icon {
        width: 70px;
        height: 70px;
    }

    .cta-banner--about {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 3rem 4rem;
    }

    .cta-banner--about .cta-content {
        flex: 1;
        max-width: 60%;
    }

    .founder-history {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .history-paragraph {
        margin-bottom: 2rem;
    }

    .history-paragraph blockquote {
        margin: 2rem 0;
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }
}