/* assets/css/blocks/dzen-landing.css
   Стили лендинга услуги «Массовая генерация текстов на Яндекс.Дзен» (страница /dzen).
   Вынесено из инлайн <style> в page-dzen-landing.php. */

/* ===== RESET ===== */
.dzen-lp *, .dzen-lp *::before, .dzen-lp *::after { box-sizing: border-box; margin: 0; padding: 0; }
.dzen-lp { font-family: 'Onest', sans-serif; background: #fff; color: #1a1a1a; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.dzen-lp a { text-decoration: none; }
.dzen-lp img { max-width: 100%; display: block; border-radius: 12px; }
.dzen-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== PLACEHOLDER IMAGE ===== */
.dzen-img-wrap { position: relative; overflow: hidden; border-radius: 14px; background: #e8e4de; }
.dzen-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.dzen-img-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: #b0a99e; font-size: 13px;
    background: #e8e4de;
    border: 2px dashed #d4cec6;
    border-radius: 14px;
    pointer-events: none;
}
.dzen-img-placeholder svg { opacity: 0.5; }
.dzen-img-placeholder span { font-size: 11px; opacity: 0.7; text-align: center; padding: 0 16px; }
.has-image .dzen-img-placeholder { display: none; }

/* ===== HERO =====
   Hero использует общие классы .hero/.hero--premium из assets/css/blocks/hero.css
   (те же, что на главной) — здесь отдельных стилей больше не нужно. */

/* Универсальный сброс ".dzen-lp *{margin:0}" выше по файлу заодно обнулял
   margin:0 auto у реальной шапки сайта (.header__inner) — из-за этого меню
   и логотип уезжали влево. Возвращаем центрирование. */
.dzen-lp .header__inner {
    margin: 0 auto !important;
}

/* Ensure media containers keep their shape even if images fail to load */
.dzen-case-screenshot { min-height: 180px; }
.proof-screenshot { min-height: 260px; }
.result-chart { min-height: 220px; }

/* ===== SECTIONS ===== */
.dzen-section { padding: 88px 24px; }
.dzen-section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #ff6b35; margin-bottom: 14px; }
.dzen-section-title { font-family: 'Unbounded', sans-serif; font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; color: #1a1a1a; line-height: 1.18; margin-bottom: 14px; letter-spacing: -0.02em; }
.dzen-section-sub { font-size: 16px; color: #777; line-height: 1.75; max-width: 580px; margin-bottom: 56px; }

/* ===== CASES ===== */
.dzen-cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dzen-case {
    background: #faf9f7; border: 1px solid #ede9e2; border-radius: 20px; padding: 32px;
    position: relative; overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dzen-case:hover { border-color: #ff6b35; transform: translateY(-4px); box-shadow: 0 20px 60px rgba(255,107,53,0.1); }
.dzen-case-screenshot { margin-bottom: 24px; height: auto; }
.dzen-case-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 5px 14px; border-radius: 100px; margin-bottom: 16px; letter-spacing: 0.05em; }
.tag-orange { background: #fff0e8; color: #b84210; }
.tag-teal   { background: #e0f7f2; color: #0b7a5c; }
.tag-purple { background: #eeecfd; color: #4940b8; }
.dzen-case h3 { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.35; margin-bottom: 12px; }
.dzen-case p  { font-size: 13.5px; color: #777; line-height: 1.7; margin-bottom: 24px; }
.dzen-case-result { display: flex; align-items: baseline; gap: 10px; }
.result-num { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 900; color: #ff6b35; }
.result-text { font-size: 12px; color: #aaa; line-height: 1.4; }

/* ===== HOW ===== */
.dzen-how {
    background:
        linear-gradient(180deg, #fff 0%, #f7f3ed 100%);
    overflow: hidden;
}
.dzen-how-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.dzen-how-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 32px;
    align-items: end;
    margin-bottom: 42px;
}
.dzen-how-intro .dzen-section-sub { margin-bottom: 0; }
.dzen-how-visual {
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 70px rgba(17,17,17,0.16);
    position: relative;
    overflow: hidden;
}
.dzen-how-visual::before {
    content: '';
    position: absolute;
    inset: auto -40px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,107,53,0.22);
    filter: blur(24px);
}
.how-visual-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
}
.how-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
}
.how-metric {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 12px;
}
.how-metric strong {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #ffb06f;
    margin-bottom: 7px;
}
.how-metric span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255,255,255,0.68);
}
.dzen-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    position: relative;
    padding: 74px 0 18px;
}
.dzen-steps::before {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 106px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,107,53,0.16), rgba(255,107,53,0.9), rgba(247,147,32,0.16));
    box-shadow: 0 10px 32px rgba(255,107,53,0.18);
}
.dzen-step {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,246,0.96));
    border: 1px solid #eadfd4;
    border-radius: 20px;
    padding: 30px 22px 24px;
    min-height: 244px;
    position: relative;
    box-shadow: 0 16px 44px rgba(36,28,18,0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.dzen-step:nth-child(even) {
    margin-top: 56px;
}
.dzen-step:hover {
    transform: translateY(-6px);
    border-color: rgba(255,107,53,0.38);
    box-shadow: 0 26px 70px rgba(255,107,53,0.14);
}
.dzen-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -38px;
    width: 2px;
    height: 38px;
    background: linear-gradient(180deg, rgba(255,107,53,0), rgba(255,107,53,0.75));
    transform: translateX(-50%);
}
.dzen-step:nth-child(even)::before {
    top: -94px;
    height: 94px;
}
.dzen-step::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -50px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6b35;
    border: 5px solid #fff;
    box-shadow: 0 0 0 6px rgba(255,107,53,0.16), 0 12px 26px rgba(255,107,53,0.26);
    transform: translateX(-50%);
}
.dzen-step:nth-child(even)::after {
    top: -106px;
}
.step-circle {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #f79320);
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 12px 26px rgba(255,107,53,0.22);
    margin-bottom: 18px;
}
.step-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b76b3a;
    margin-bottom: 8px;
}
.step-body h4 {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 10px;
}
.step-body p  {
    font-size: 13.5px;
    color: #666;
    line-height: 1.68;
}
.how-bar-item { margin-bottom: 18px; }
.how-bar-item:last-child { margin-bottom: 0; }
.how-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 7px; }
.how-bar-label span:last-child { font-weight: 600; color: #1a1a1a; }
.how-bar-track { background: #f0ede8; border-radius: 100px; height: 8px; overflow: hidden; }
.how-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #ff6b35, #f79320); width: 0; transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }

/* ===== PROOF ===== */
.dzen-proof { background: #fff; }
.dzen-proof-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 380px);
  gap: 32px 40px;
  align-items: start;
  margin-top: 8px;
  margin-bottom: 4px;
}
.dzen-proof-split__media { min-width: 0; }
.dzen-proof-split__media .proof-screenshot { margin-top: 0; }
.dzen-proof-split__cards { min-width: 0; }
.dzen-proof-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.proof-card {
  background: #faf9f7;
  border: 1px solid #e8e4dc;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px 20px;
  text-align: left;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.proof-card:hover {
  border-color: rgba(255,107,53,0.35);
  box-shadow: 0 10px 32px rgba(255,107,53,0.1);
  transform: translateY(-2px);
}
.proof-big {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: #111;
  display: block;
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
  min-width: 3em;
}
.proof-small {
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}
.proof-screenshot { margin-top: 28px; height: auto; }
.proof-conv {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 20px;
  padding: 26px 28px 28px;
  margin-top: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon body"
    "stats stats";
  gap: 18px 24px;
  align-items: start;
}
.conv-icon-box {
  grid-area: icon;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #fff8f4 0%, #ffece3 100%);
  border: 1px solid rgba(255,107,53,0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.conv-body { grid-area: body; min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.conv-body h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.35;
}
.conv-body p {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin: 0;
}
.conv-sources {
  grid-area: stats;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.conv-source {
  text-align: center;
  background: #faf9f7;
  border: 1px solid #ede9e2;
  border-radius: 14px;
  padding: 16px 10px 14px;
}
.conv-source-num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  display: block;
  margin-bottom: 6px;
  line-height: 1.1;
}
.conv-source-label {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.02em;
}
.src-dzen   { color: #e85d10; }
.src-google { color: #1a73e8; }
.src-yandex { color: #c47a00; }

@media (min-width: 960px) {
  .proof-conv {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon body stats";
    align-items: center;
    gap: 22px 32px;
  }
  .conv-sources {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    min-width: 0;
    max-width: 320px;
  }
}

/* ===== RESULT / флагманский кейс ===== */
.dzen-result { background: #f5f3ef; }
.dzen-result-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.dzen-result-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8e4dc;
  padding: 32px 36px 28px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.05);
}
.dzen-result-top {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 40%);
  gap: 32px 40px;
  align-items: start;
}
.dzen-result-text { min-width: 0; }
.dzen-result-card .dzen-section-label { margin-bottom: 14px; }
.result-quote {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 18px;
  padding: 0 0 0 20px;
  border-left: 4px solid #ff6b35;
}
.result-desc {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #111;
  line-height: 1.7;
  margin: 0 0 20px;
}
.result-meta {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  line-height: 1.55;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #ece8e2;
}
.dzen-result-chart-col { min-width: 0; }
.dzen-result-chart-caption {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.3;
}
.result-chart { margin-top: 0; height: auto; }
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ece8e2;
}
.result-stat-card {
  background: #faf9f7;
  border-radius: 14px;
  padding: 20px 14px;
  border: 1px solid #ede9e2;
  text-align: center;
  min-width: 0;
}
.result-stat-card .big {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  color: #ff6b35;
  display: block;
  margin-bottom: 6px;
  line-height: 1.1;
}
.result-stat-card .small {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #111;
  line-height: 1.4;
}

/* ===== FAQ ===== */
.dzen-faq { background: #fff; }
.dzen-faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid #f0ede8; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; font-size: 15px; font-weight: 500; color: #1a1a1a; gap: 16px; user-select: none; }
.faq-q:hover { color: #ff6b35; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: #f5f3ef; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; color: #ff6b35; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 14px; color: #888; line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ===== BOTTOM CTA =====
   Тот же тёмный фон + orb-подсветки, что и в .hero (см. hero.css .hero__bg/.hero__glow) */
.dzen-bottom-cta { background: #0b0b0f; padding: 96px 24px; text-align: center; position: relative; overflow: hidden; }
.dzen-bottom-cta .dzen-wrap { position: relative; z-index: 2; }
.dzen-bottom-cta h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: #fff !important; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.dzen-bottom-cta > .dzen-wrap > p { font-size: 18px; color: rgba(255, 255, 255, 0.72) !important; margin-bottom: 44px; line-height: 1.75; }
.cta-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.dzen-footer { background: #0d0d0d; padding: 32px 24px; text-align: center; }
.dzen-footer p { font-size: 12px; color: rgba(255,255,255,0.3); }
.dzen-footer a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.dzen-footer a:hover { color: #ff6b35; }

/* ===== ANIMATIONS ===== */
@keyframes dzenFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.dzen-fade { opacity: 0; }
.dzen-fade.visible { animation: dzenFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.dzen-step.dzen-fade { transform: translateY(36px) scale(0.96); }
.dzen-step.dzen-fade.visible { animation: dzenMapStep 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes dzenMapStep {
    from { opacity: 0; transform: translateY(36px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .dzen-how-intro { grid-template-columns: 1fr; align-items: start; }
    .dzen-steps {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 10px 0 0 58px;
    }
    .dzen-steps::before {
        left: 22px;
        right: auto;
        top: 0;
        bottom: 18px;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, rgba(255,107,53,0.16), rgba(255,107,53,0.9), rgba(247,147,32,0.16));
    }
    .dzen-step,
    .dzen-step:nth-child(even) {
        margin-top: 0;
        min-height: auto;
    }
    .dzen-step::before,
    .dzen-step:nth-child(even)::before {
        left: -36px;
        top: 34px;
        width: 36px;
        height: 2px;
        background: linear-gradient(90deg, rgba(255,107,53,0.78), rgba(255,107,53,0));
        transform: none;
    }
    .dzen-step::after,
    .dzen-step:nth-child(even)::after {
        left: -45px;
        top: 25px;
        transform: none;
    }
    .dzen-result-top { grid-template-columns: 1fr; gap: 24px; }
    .dzen-result-card { padding: 24px 22px 22px; }
    .dzen-proof-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    .result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .dzen-cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dzen-section { padding: 64px 20px; }
    .dzen-how-intro { gap: 24px; margin-bottom: 28px; }
    .dzen-how-visual { padding: 22px; }
    .how-metrics { grid-template-columns: 1fr; }
    .dzen-steps { padding-left: 44px; }
    .dzen-steps::before { left: 16px; }
    .dzen-step { padding: 24px 18px 22px; }
    .dzen-step::before,
    .dzen-step:nth-child(even)::before { left: -28px; width: 28px; }
    .dzen-step::after,
    .dzen-step:nth-child(even)::after { left: -37px; }
    .proof-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .proof-big { min-width: 0; }
}
