/* css/about.css */

.about-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 20px 6rem;
}

/* Hero */
.about-hero {
    text-align: center;
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}
.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--magenta);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--platinum);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Статистика */
.about-stats-container { margin-bottom: 5rem; position: relative; z-index: 20; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--platinum);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 56px; height: 56px;
    background: var(--magenta-light-bg);
    color: var(--magenta);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 1rem;
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--brand-dark); margin-bottom: 5px; }
.stat-label { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* === История (Светлая тема под темный логотип) === */
.about-history { margin-bottom: 6rem; }
.history-content {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 4rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--platinum);
    display: flex; gap: 4rem; align-items: center;
    transition: var(--transition);
}

.history-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-light-blue);
}

.history-text h2 { 
    font-size: 2.5rem; font-weight: 900; 
    text-transform: uppercase; margin-bottom: 1.5rem; 
    color: var(--brand-dark); 
}
.history-text h2 span { color: var(--magenta); }
.history-text p { 
    font-size: 1.1rem; line-height: 1.7; 
    color: var(--text-main); 
    margin-bottom: 1.2rem; 
}
.history-text strong { color: var(--brand-dark); }
.history-btn { margin-top: 1rem; }

.history-image { 
    flex: 1; min-width: 300px; 
    text-align: center;
}

/* Обертка для логотипа Планты (светло-серый стенд) */
.planta-link-wrapper {
    display: block;
    background: #f8fafc; /* Очень мягкий светло-серый фон, чтобы отделить от белой карточки */
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--platinum);
    padding: 2.5rem; /* Даем логотипу много "воздуха" */
}

/* Сам логотип */
.planta-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на логотип */
.planta-link-wrapper:hover {
    border-color: var(--magenta);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(236, 0, 140, 0.08); 
}

.planta-link-wrapper:hover .planta-logo-img {
    transform: scale(1.05); /* Логотип плавно увеличивается */
}

/* Подпись-ссылка */
.history-content .img-caption {
    display: block;
    margin-top: 15px;
    color: var(--text-muted); font-weight: 500; font-size: 0.85rem;
}
.history-content .img-caption a {
    color: var(--magenta);
    text-decoration: none;
    font-weight: 800;
}
.history-content .img-caption a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 1024px) {
    .history-content { flex-direction: column; padding: 2rem; gap: 2.5rem; }
    .history-image { width: 100%; max-width: 500px; margin: 0 auto; }
}

/* Компетенции */
.about-competences { margin-bottom: 6rem; }
.section-title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; color: var(--brand-dark); }
/* Базовая сетка: 4 карточки в линию на десктопе */
.competences-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
}

/* Планшеты: сетка 2+2 */
@media (max-width: 1100px) {
    .competences-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Мобильные телефоны: 1 в ряд */
@media (max-width: 650px) {
    .competences-grid { 
        grid-template-columns: 1fr; 
    }
}
.comp-card {
    background: var(--white);
    border-radius: 16px; padding: 2rem;
    box-shadow: var(--shadow-sm); border: 1px solid var(--platinum);
    display: flex; flex-direction: column; position: relative;
    transition: var(--transition);
}
.comp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--border-light-blue); }
.comp-icon { width: 48px; height: 48px; background: var(--gray-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; border: 1px solid var(--platinum); }
.comp-icon.highlight { background: var(--magenta-light-bg); border-color: #ffd1e8; }
.comp-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--magenta); color: var(--white); font-size: 0.7rem; font-weight: 900; padding: 4px 8px; border-radius: 4px; }
.comp-card h3 { font-size: 1.3rem; font-weight: 900; color: var(--brand-dark); margin-bottom: 1rem; }
.comp-card p { font-size: 0.95rem; color: var(--text-main); line-height: 1.6; margin-bottom: 2rem; flex-grow: 1; }
.comp-link { display: block; text-align: center; padding: 12px; background: transparent; border: 1px solid var(--platinum); border-radius: 8px; color: var(--brand-dark); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; text-decoration: none; transition: 0.3s;    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important; /* Убирает вертикальный перекос текста */ }
.comp-card:hover .comp-link { border-color: var(--magenta); color: var(--magenta); }

/* B2B Секция */
.about-b2b { margin-bottom: 6rem; }
.b2b-container {
    background: var(--brand-dark);
    border-radius: 24px; padding: 4rem;
    display: flex; gap: 4rem; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.b2b-content { flex: 2; position: relative; z-index: 10; }
.b2b-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(236,0,140,0.15); color: #ff80bf; font-size: 0.75rem; font-weight: 900; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(236,0,140,0.3); margin-bottom: 1.5rem; text-transform: uppercase;}
.b2b-tag .dot { width: 8px; height: 8px; background: var(--magenta); border-radius: 50%; animation: pulse 2s infinite; }
.b2b-content h2 { font-size: 2.5rem; font-weight: 900; color: var(--white); margin-bottom: 1.5rem; text-transform: uppercase; }
.b2b-content h2 span { color: var(--magenta); }
.b2b-desc { color: #cbd5e1; font-size: 1.3rem; line-height: 1.6; margin-bottom: 2rem; }
.b2b-feature-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; display: flex; gap: 1rem; margin-bottom: 2rem; }
.feature-icon { font-size: 1.5rem; background: var(--magenta); width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;}
.feature-text h4 { color: var(--white); font-size: 1.3em; margin-bottom: 0.5rem; }
.feature-text p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; }
.b2b-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.5rem;}
.b2b-list-item { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 1.1rem; font-weight: 500; }

.b2b-partners { flex: 1; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 3rem; display: flex; flex-direction: column; justify-content: center; }
.partners-title { color: #64748b; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 1.5rem; }
.logo-txt { font-size: 2.5rem; font-weight: 900; color: var(--white); opacity: 0.8; margin-bottom: 1rem; }
.logo-mag { font-size: 2rem; font-weight: 900; color: var(--magenta); background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 12px; display: inline-block; }

/* Вакансии */
.about-careers { margin-bottom: 2rem; }
.careers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.careers-header h2 { font-size: 2.5rem; font-weight: 900; color: var(--brand-dark); }
.careers-subtitle { font-size: 1.1rem; color: var(--text-main); margin-bottom: 2rem; max-width: 700px; }
.careers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1rem; }
.job-card { background: var(--white); border: 1px solid var(--platinum); border-radius: 16px; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition); }
.job-card:hover { border-color: var(--magenta); box-shadow: var(--shadow-sm); transform: translateX(5px); }
.job-card h3 { font-size: 1.2rem; font-weight: 900; color: var(--brand-dark); margin-bottom: 0.5rem; transition: 0.3s; }
.job-card:hover h3 { color: var(--magenta); }
.job-tags { display: flex; gap: 10px; }
.job-tags span { background: var(--gray-bg); color: var(--text-muted); font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.job-arrow { color: var(--border-light-blue); font-size: 1.5rem; font-weight: bold; transition: 0.3s; }
.job-card:hover .job-arrow { color: var(--magenta); }

/* Стилизация текста внутри модалки вакансий */
.job-section { margin-bottom: 1.5rem; }
.job-section h4 { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.job-section p { font-size: 0.95rem; color: var(--brand-dark); line-height: 1.6; }
.job-section ul { list-style: none; padding: 0; margin: 0; }
.job-section ul li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--brand-dark); }
.job-section ul li::before { content: "•"; position: absolute; left: 0; color: var(--magenta); font-weight: bold; font-size: 1.2rem; line-height: 1; }

/* Адаптив */
@media (max-width: 1024px) {
    .history-content { flex-direction: column; padding: 2rem; gap: 2rem; }
    .b2b-container { flex-direction: column; padding: 2rem; gap: 2rem; }
    .b2b-partners { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 2rem; flex-direction: row; align-items: center; justify-content: space-around; }
    .partners-title { margin-bottom: 0; margin-right: 1rem; }
}
@media (max-width: 768px) {
    .about-hero { padding: 1.5rem 0; }
    .history-text h2, .section-title, .b2b-content h2, .careers-header h2 { font-size: 1.8rem; }
    .b2b-partners { flex-direction: column; text-align: center; }
    .partners-title { margin-right: 0; margin-bottom: 1rem; }
}