/* =============================================
   СТРАНИЦА "О МАГАЗИНЕ" – ОСНОВНЫЕ СТИЛИ
============================================= */

.about-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.about-page-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    text-align: center;
}

/* ===== Вступительный текст ===== */
.about-intro-text {
    text-align: center;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 0 20px;
}
.about-intro-text p:last-child {
    margin-bottom: 0;
}

/* ===== Меню-якоря ===== */
.about-menu-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.about-anchor-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.about-anchor-link:hover {
    color: #818181;
}
.about-anchor-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #818181;
    transition: width 0.3s;
}
.about-anchor-link:hover::after {
    width: 100%;
}

/* ===== Общие блоки ===== */
.about-block {
    margin-bottom: 50px;
}
.about-block-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    text-align: center;
}

/* ===== Сетка для колонок (3 колонки) – новое расположение ===== */
.about-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.about-column-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px 20px 25px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
    gap: 10px 15px;
}
.about-column-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.about-column-content {
    flex: 1 1 60%;
    min-width: 150px;
}
.about-column-icon {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}
.about-column-icon img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
}
.about-column-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}
.about-column-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== Блок "Логистика" ===== */
.about-logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-logistics-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.about-logistics-content .about-block-title {
    text-align: left;
    margin-top: 0;
}
.about-logistics-text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}
.about-logistics-text p:last-child {
    margin-bottom: 0;
}

/* ===== Блок "Цель" ===== */
.about-goal-text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
.about-goal-text p:last-child {
    margin-bottom: 0;
}

/* ===== Блок "Команда" ===== */
.about-team-image {
    margin-bottom: 20px;
}
.about-team-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.about-team-text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}
.about-team-text p:last-child {
    margin-bottom: 0;
}

/* ===== Блок "История" ===== */
.about-history-image {
    margin-bottom: 20px;
    text-align: center;
}
.about-history-image img {
    max-width: 200px;
    height: auto;
    display: inline-block;
}
.about-history-text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
.about-history-text p:last-child {
    margin-bottom: 0;
}

.about-history-btn-wrap {
    text-align: center;
    margin-top: 25px;
    overflow: visible;
}

.about-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 50px 12px 30px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    font-weight: 300;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
    width: max-content;
    max-width: none;
    min-width: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.about-history-btn:hover {
    background: #444;
}
.about-history-btn-icon {
    max-height: 20px;
    max-width: 20px;          /* добавляем ограничение по ширине */
    width: auto;
    height: auto;             /* чтобы пропорции сохранялись */
    display: inline-block;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    flex-shrink: 0;           /* чтобы иконка не сжималась, но и не мешала */
    object-fit: contain;      /* если используется как img – впишется в размер */
}

/* ===== Нижний текст ===== */
.about-bottom-text {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.about-bottom-text p:last-child {
    margin-bottom: 0;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
    .about-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .about-logistics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-logistics-content .about-block-title {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .about-page-wrapper {
        padding: 15px;
    }
    .about-columns-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .about-column-item {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }
    .about-column-content {
        flex: 1 1 auto;
    }
    .about-column-icon {
        margin-left: 0;
        align-self: flex-end;
        width: 50px;
        height: 50px;
    }
    .about-column-icon img {
        max-width: 50px;
        max-height: 50px;
    }
    .about-menu-anchors {
        gap: 10px 15px;
        padding: 10px 0;
    }
    .about-anchor-link {
        font-size: 14px;
    }
    .about-block-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .about-column-title {
        font-size: 16px;
    }
    .about-column-desc {
        font-size: 13px;
    }
    .about-logistics-text,
    .about-goal-text,
    .about-history-text,
    .about-team-text {
        font-size: 14px;
    }
    .about-history-image img {
        max-width: 150px;
    }
    .about-intro-text {
        font-size: 14px;
        padding: 0 10px;
    }
}
@media (max-width: 480px) {
    .about-page-title {
        font-size: 24px;
    }
    .about-anchor-link {
        font-size: 13px;
    }
    .about-column-icon {
        width: 40px;
        height: 40px;
    }
    .about-column-icon img {
        max-width: 40px;
        max-height: 40px;
    }
}