/* why.css — страница "Почему мы" */

/* ===== HERO ===== */
.why-hero {
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.why-hero-inner {
    max-width: 820px;
    position: relative;
    z-index: 2;
}
.why-hero-label {
    display: inline-block;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(37,99,235,0.15);
    margin-bottom: 28px;
}
.why-hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.why-hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 40px;
}
.why-hero-cta {
    display: flex;
    align-items: center;
    gap: 36px;
}
.why-hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.why-hero-bg { position: absolute; inset: 0; z-index: 1; }
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.bg-orb-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.bg-orb-2 { width: 400px; height: 400px; bottom: -100px; left: 60%; opacity: 0.07; }

/* ===== BADGE ===== */
.section-badge {
    display: inline-block;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid rgba(37,99,235,0.15);
    margin-bottom: 16px;
}

/* ===== ПОЧЕМУ САМОМУ НЕ ПОЛУЧИТСЯ ===== */
.why-not-diy { padding: 30px 0; background: #ffffff; }
.diy-problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.diy-problem-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}
.diy-problem-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}
.diy-problem-card:hover {
    border-color: rgba(239,68,68,0.3);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}
.diy-problem-card.featured-problem {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: transparent;
    color: white;
}
.diy-problem-card.featured-problem h3 { color: white; }
.diy-problem-card.featured-problem p { color: rgba(255,255,255,0.75); }
.problem-icon {
    width: 52px; height: 52px;
    background: rgba(239,68,68,0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #ef4444;
    margin-bottom: 20px;
}
.featured-problem .problem-icon { background: rgba(255,255,255,0.1); color: #60a5fa; }
.diy-problem-card h3 { font-size: 18px; margin-bottom: 12px; }
.diy-problem-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.problem-quote {
    font-size: 13px; color: var(--text-tertiary); font-style: italic;
    padding: 10px 14px; background: rgba(0,0,0,0.04);
    border-radius: 10px; border-left: 3px solid #e2e8f0;
}
.featured-problem .problem-quote { display: none; }
.problem-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; font-size: 13px; font-weight: 600;
    padding: 8px 18px; border-radius: 100px; margin-top: 8px;
}

/* ===== ПАЙПЛАЙН ===== */
.our-tech { padding: 30px 0; background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.pipeline { max-width: 800px; margin: 60px auto 0; display: flex; flex-direction: column; }
.pipeline-step {
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}
.pipeline-step.visible { opacity: 1; transform: translateX(0); }
.step-connector {
    position: absolute; left: 40px; top: 100%;
    width: 2px; height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    z-index: 1;
}
.pipeline-step-inner {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 24px; align-items: flex-start;
    background: white; border-radius: 28px; padding: 32px;
    border: 1px solid rgba(37,99,235,0.1);
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.06);
    margin-bottom: 40px; transition: all 0.3s ease;
}
.pipeline-step-inner:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 35px -15px rgba(37,99,235,0.18);
    transform: translateX(6px);
}
.step-number { font-size: 40px; font-weight: 800; color: rgba(37,99,235,0.08); line-height: 1; min-width: 50px; }
.step-icon-wrap {
    width: 60px; height: 60px;
    background: rgba(37,99,235,0.08);
    border-radius: 18px; display: flex;
    align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary); flex-shrink: 0;
}
.step-icon-wrap.accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; box-shadow: 0 8px 16px -4px rgba(37,99,235,0.35);
}
.step-content h3 { font-size: 20px; margin-bottom: 10px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.step-tags span {
    background: rgba(37,99,235,0.07); color: var(--primary);
    font-size: 12px; font-weight: 500; padding: 5px 12px;
    border-radius: 100px; border: 1px solid rgba(37,99,235,0.12);
}

/* ===== ТАБЛИЦА СРАВНЕНИЯ ===== */
.comparison-section { padding: 30px 0; background: #ffffff; }
.comparison-table-wrap {
    margin-top: 50px; border-radius: 24px; overflow-x: auto;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08);
    -webkit-overflow-scrolling: touch;
}
.comparison-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.comparison-table thead tr { background: linear-gradient(135deg, #0f172a, #1e293b); }
.comparison-table th {
    padding: 20px 28px; text-align: left;
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 0.3px;
}
.comparison-table th.col-feature { color: rgba(255,255,255,0.6); }
.comparison-table th.col-us { color: #60a5fa; }
.comparison-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
.comparison-table tbody tr:hover { background: #f8fafc; }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table td { padding: 18px 28px; font-size: 15px; color: var(--text-primary); }
.comparison-table td.bad { color: #ef4444; font-weight: 500; }
.comparison-table td.good { color: #10b981; font-weight: 600; background: rgba(16,185,129,0.03); }
.comparison-table td.neutral { color: #f59e0b; font-weight: 500; }
.comparison-table td i { margin-right: 8px; font-size: 14px; }

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages { padding: 30px 0; background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.advantage-card {
    background: white; border-radius: 28px; padding: 36px 30px;
    border: 1px solid rgba(37,99,235,0.1);
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.05);
    transition: all 0.3s ease; opacity: 0; transform: translateY(20px);
}
.advantage-card.visible { opacity: 1; transform: translateY(0); }
.advantage-card:hover {
    transform: translateY(-6px); border-color: var(--primary);
    box-shadow: 0 25px 40px -15px rgba(37,99,235,0.18);
}
.advantage-card.advantage-large { grid-column: span 2; }
.advantage-card.advantage-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: transparent; color: white;
}
.advantage-card.advantage-dark h3 { color: white; }
.advantage-card.advantage-dark p { color: rgba(255,255,255,0.75); }
.adv-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white; margin-bottom: 24px;
    box-shadow: 0 8px 16px -4px rgba(37,99,235,0.3);
}
.advantage-card h3 { font-size: 20px; margin-bottom: 12px; }
.advantage-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0; }
.adv-detail { margin-top: 16px; font-size: 13px; color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.5px; }
.adv-cta-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 20px; color: #60a5fa; font-size: 14px;
    font-weight: 600; text-decoration: none; transition: gap 0.2s;
}
.adv-cta-link:hover { gap: 12px; }

/* ===== ВИДЕО ДЛЯ СОЦСЕТЕЙ ===== */
.social-video-section { padding: 30px 0; background: #ffffff; }
.social-video-grid {
    display: grid; grid-template-columns: 1fr 420px;
    gap: 70px; align-items: center;
}
.social-video-content h2 { font-size: 38px; line-height: 1.2; margin-bottom: 20px; }
.social-video-content > p { font-size: 17px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 32px; }
.social-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.social-feature { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-primary); }
.social-feature i {
    width: 22px; height: 22px;
    background: rgba(16,185,129,0.1); color: #10b981;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}
.social-video-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.phone-mockup {
    width: 220px; background: #0f172a;
    border-radius: 40px; padding: 12px;
    box-shadow: 0 40px 60px -20px rgba(0,0,0,0.35);
    border: 2px solid #1e293b;
}
.phone-screen { background: linear-gradient(135deg, #1e293b, #0f172a); border-radius: 30px; overflow: hidden; aspect-ratio: 9/16; position: relative; }
.phone-content { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px 12px; }
.phone-badge {
    align-self: flex-start; background: rgba(255,255,255,0.15);
    color: white; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(10px);
}
.phone-product-area { flex: 1; display: flex; align-items: center; justify-content: center; }
.phone-product-icon { font-size: 60px; color: rgba(255,255,255,0.1); }
.phone-overlay-text { text-align: center; color: white; margin-bottom: 12px; }
.phone-overlay-text span { display: block; font-size: 15px; font-weight: 600; }
.phone-overlay-text small { font-size: 11px; opacity: 0.6; }
.phone-controls { display: flex; flex-direction: column; gap: 14px; align-self: flex-end; color: white; font-size: 18px; }
.platform-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.platform-badge {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 100px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    display: flex; align-items: center; gap: 6px;
}
.platform-badge i { color: var(--primary); }

/* ===== CTA ===== */
.why-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 30px 0; position: relative; overflow: hidden;
}
.why-cta::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 60% 50%, rgba(37,99,235,0.12) 0%, transparent 60%);
}
.why-cta-inner { text-align: center; max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.why-cta-inner h2 { font-size: 42px; color: white; margin-bottom: 20px; line-height: 1.2; }
.why-cta-inner p { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 40px; line-height: 1.6; }
.why-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.why-cta-actions .btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.why-cta-actions .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .diy-problems-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-card.advantage-large { grid-column: span 2; }
    .social-video-grid { grid-template-columns: 1fr; }
    .social-video-visual { display: none; }
}
@media (max-width: 768px) {
    .why-hero-title { font-size: 34px; }
    .why-hero-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
    .diy-problems-grid { grid-template-columns: 1fr; }
    .pipeline-step-inner { grid-template-columns: auto 1fr; }
    .step-number { display: none; }
    .advantages-grid { grid-template-columns: 1fr; }
    .advantage-card.advantage-large { grid-column: span 1; }
    .comparison-table td, .comparison-table th { padding: 14px 16px; font-size: 13px; }
    .why-cta-inner h2 { font-size: 30px; }
}
