/* ===== HERO ===== */
.page-hero {
    background-color: var(--bg-light-gray);
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== ОСНОВНАЯ СЕКЦИЯ ===== */
.about-main-section {
    background-color: var(--bg-white);
    padding: 80px 0 120px;
    position: relative;
}

/* Отступ контенту сверху, чтобы текст не прилипал к волне */
.about-main-section .container {
    position: relative;
    z-index: 3;
    padding-top: 50px;
}

.wave-top, .wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; transform: rotate(180deg); }

.wave-top svg, .wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-top .shape-fill { fill: var(--bg-light-gray); }
.wave-bottom .shape-fill { fill: var(--text-dark); }

/* ===== ОБТЕКАНИЕ ТЕКСТОМ ===== */
.about-grid {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 3;
}

.about-text-col h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.about-text-col p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-gray);
    margin-bottom: 18px;
}

.about-text-col ul {
    margin: 10px 0 20px 20px;
    padding: 0;
}
.about-text-col li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: 6px;
}

/* ===== МАГИЯ ОБТЕКАНИЯ ===== */
.about-image-col {
    float: right;
    width: 45%;
    max-width: 400px;
    margin: 5px 0 30px 40px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #f5f5f5;
    position: relative;
    z-index: 4;
}

.about-image-col img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    object-fit: cover;
}

.about-image-col:hover img {
    transform: scale(1.03);
}

.formatted-content::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 3;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-dark);
    color: var(--bg-light-gray);
    border-radius: 50%;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

/* ===== АДАПТИВ: ПЛАНШЕТ (≤992px) ===== */
@media (max-width: 992px) {
    .about-main-section .container { padding-top: 40px; }
    .about-grid { max-width: 100%; }
    .about-image-col { width: 50%; margin-left: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ===== АДАПТИВ: ТЕЛЕФОН (≤768px) ===== */
@media (max-width: 768px) {
    .page-hero { padding: 40px 0; }
    .page-title { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 10px; }
    .page-subtitle { font-size: 14px; padding: 0 15px; }

    .about-main-section { padding: 60px 0 90px; }
    .about-main-section .container { padding-top: 30px; }

    .about-text-col h2 { font-size: 24px; margin-bottom: 20px; padding-bottom: 12px; }
    .about-text-col p, .about-text-col li { font-size: 15px; line-height: 1.75; }

    .about-image-col { float: none; width: 100%; max-width: 100%; margin: 0 0 30px 0; border-radius: 10px; }

    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 25px 20px; display: flex; flex-direction: row; align-items: center; text-align: left; }
    .feature-icon { width: 50px; height: 50px; min-width: 50px; margin: 0 20px 0 0; }
    .feature-icon svg { width: 24px; height: 24px; }
    .feature-card h3 { font-size: 15px; margin: 0; line-height: 1.4; }

    .wave-top svg, .wave-bottom svg { height: 40px; }
}

/* ===== АДАПТИВ: МАЛЕНЬКИЙ ТЕЛЕФОН (≤480px) ===== */
@media (max-width: 480px) {
    .page-hero { padding: 30px 0; }
    
    .about-main-section { padding: 40px 0 70px; }
    .about-main-section .container { padding-top: 25px; }

    .about-text-col h2 { font-size: 22px; }
    .about-text-col p, .about-text-col li { font-size: 14px; line-height: 1.7; }
    .formatted-content { word-break: break-word; overflow-wrap: break-word; }
    .feature-card { padding: 20px 15px; }
    .feature-icon { width: 44px; height: 44px; min-width: 44px; margin-right: 15px; }
    .feature-icon svg { width: 22px; height: 22px; }
    .feature-card h3 { font-size: 14px; }
}