/* ===========================
   ABOUT SECTION STYLES
   Секция "О нас" на главной странице
   =========================== */

.about-section {
    position: relative;
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* Левая часть - заголовки */
.about-left {
    flex: 0 0 auto;
    width: 50%;
}

/* Правая часть - описание и кнопка */
.about-right {
    flex: 1;
    max-width: 50%;
}

/* Зеленая черточка */
.about-divider {
    width: 60px;
    height: 2px;
    background: var(--color-button-primary);
    margin-bottom: 15px;
    border-radius: 2px;
}

/* Подзаголовок */
.section-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-button-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Основной заголовок */
.about-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    color: var(--color-heading);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Описание */
.about-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 35px;
}

.about-description p {
    margin-bottom: 15px;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* Ссылка (как текст с иконкой) */
.about-button-wrapper {
    margin-top: 30px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: var(--color-hover);
    text-decoration: none;
}

.about-link img {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.about-link:hover img {
    transform: translateX(3px);
}

/* Фоновое изображение */
.about-image {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    max-width: 240px;
    height: auto;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(20%);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-section {
        padding: 60px 0;
    }

    .about-left {
        min-width: 250px;
    }

    .about-image {
        width: 45%;
    }
}

@media screen and (max-width: 992px) {
    .about-divider {
        display: none;
    }

}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-left {
        min-width: auto;
        width: 100%;
    }

    .about-right {
        max-width: 100%;
    }

    .about-image {
        width: 60%;
    }

    .about-divider {
        width: 50px;
        height: 2px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .about-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .about-link {
        font-size: 15px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }

    .about-content {
        gap: 25px;
    }

    .about-image {
        width: 70%;
    }

    .about-divider {
        width: 40px;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .about-title {
        margin-bottom: 0;
    }

    .about-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .about-link {
        font-size: 14px;
        gap: 5px;
    }

    .about-link img {
        width: 14px;
        height: 14px;
    }
}

/* Специальные стили для темной темы (если потребуется) */
/* @media (prefers-color-scheme: dark) {
    .about-section {
        background-color: #1a1a1a;
    }

    .about-title {
        color: #fff;
    }

    .about-description {
        color: #ccc;
    }

    .section-subtitle {
        color: #999;
    }

    .about-link {
        color: #fff;
    }

    .about-link:hover {
        color: #7CB342;
    }
} */

/* Анимации при скролле (если используется Intersection Observer) */
.about-section.animate-in .about-left {
    animation: slideInLeft 0.8s ease-out;
}

.about-section.animate-in .about-right {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.about-section.animate-in .about-image {
    animation: fadeIn 1.2s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.1;
    }
}

/* Улучшенная типографика */
.about-title strong {
    color: #7CB342;
    font-weight: 700;
}

.about-description strong {
    color: #333;
    font-weight: 600;
}

.about-description em {
    color: #7CB342;
    font-style: normal;
    font-weight: 500;
}

/* Focus states для доступности */
.about-link:focus {
    outline: 2px solid #7CB342;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Стили для печати */
@media print {
    .about-section {
        padding: 20px 0;
        background: white !important;
    }

    .about-image {
        display: none;
    }

    .about-link {
        display: none;
    }

    .about-title,
    .about-description,
    .section-subtitle {
        color: black !important;
    }

    .about-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Высокий контраст для пользователей с нарушениями зрения */
@media (prefers-contrast: high) {
    .about-title {
        color: #000;
    }

    .about-description {
        color: #333;
    }

    .section-subtitle {
        color: #000;
    }

    .about-link {
        color: #000;
    }

    .about-link:hover {
        color: #7CB342;
    }

    .about-divider {
        background: #000;
    }
}

/* Уменьшенная анимация для пользователей с чувствительностью к движению */
@media (prefers-reduced-motion: reduce) {

    .about-link,
    .about-link img,
    .about-section.animate-in .about-left,
    .about-section.animate-in .about-right,
    .about-section.animate-in .about-image {
        animation: none;
        transition: none;
    }

    .about-link:hover img {
        transform: none;
    }
}

/* Дополнительные утилитарные классы */
.about-section.no-image .about-image {
    display: none;
}

.about-section.full-width .about-right {
    max-width: 100%;
}

/* Стили для RTL языков */
[dir="rtl"] .about-section {
    direction: rtl;
}

[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-image {
    right: auto;
    left: 0;
}

[dir="rtl"] .about-link img {
    transform: scaleX(-1);
}

[dir="rtl"] .about-link:hover img {
    transform: scaleX(-1) translateX(-3px);
}