:root{
  --lp-bg:#ffffff;
  --lp-text:#111827;
  --lp-muted:#6B7280;
  --lp-line:#E5E7EB;
  --lp-card:#ffffff;
  --lp-accent:#5B5AF7;
  --lp-accent2:#4F46E5;
  --lp-radius:18px;
  --lp-shadow: 0 10px 30px rgba(17,24,39,.08);
  --lp-shadow2: 0 6px 18px rgba(17,24,39,.06);
  --lp-max: 1500px;
}

.lp-poet *{box-sizing:border-box}
.lp-poet{color:var(--lp-text); background:var(--lp-bg); line-height:1.45}
.lp-poet img{max-width:100%; display:block}
.lp-container{width:min(var(--lp-max), calc(100% - 40px)); margin:0 auto}
.lp-poet a{color:inherit; text-decoration:none}

/* Buttons */
.lp-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 18px;
  border-radius:999px;
  border:1px solid var(--lp-line);
  background:#fff;
  font-weight:600; cursor:pointer;
  transition:.2s; user-select:none; white-space:nowrap;
}
.lp-btn:hover{transform:translateY(-1px)}
.lp-btn--primary{
  background: transparent;
  border-color: var(--lp-accent);
  color:#fff;
  box-shadow: 0 12px 26px rgba(91,90,247,.22);
}
.lp-btn--primary:hover{background:var(--lp-accent2)}
.lp-btn--ghost{background:rgba(255,255,255,.8); backdrop-filter: blur(10px)}
.lp-btn--light{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.lp-btn--light:hover{background:transparent}

/* Topbar */
.lp-topbar{padding:16px 0 10px}
.lp-topbar__row{display:flex; align-items:center; justify-content:space-between; gap:16px}
.lp-brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px}
.lp-brand__logo{
  width:28px; height:28px; border:2px solid var(--lp-text);
  border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:14px;
}
.lp-topbar__actions{display:flex; gap:10px; align-items:center}

/* Hero */
.lp-hero{padding:8px 0 22px}
.lp-hero__box{
  position:relative; border-radius:20px; overflow:hidden;
  min-height:280px; box-shadow:var(--lp-shadow); background:#0b1220;
}
.lp-hero__bg{position:absolute; inset:0; background:center/cover no-repeat; transform:scale(1.02)}
.lp-hero__overlay{position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.20) 60%, rgba(0,0,0,.05) 100%)}
.lp-hero__content{position:relative; padding:42px 44px; max-width:720px; color:#fff}
.lp-hero h1,.lp-hero h2{margin:0 0 12px; color:#fff; font-size:clamp(28px, 3.4vw, 44px); line-height:1.12; letter-spacing:-.02em}
.lp-hero p{margin:0 0 18px; color:rgba(255,255,255,.86); font-size:15.5px; max-width:560px}
.lp-hero__cta{display:flex; gap:12px; flex-wrap:wrap}

/* Sections */
.lp-section{padding:28px 0}
.lp-section h2{margin:0 0 18px; font-size:22px; letter-spacing:-.01em}

/* Cards */
.lp-card{background:var(--lp-card); border:1px solid var(--lp-line); border-radius:var(--lp-radius); box-shadow:var(--lp-shadow2)}
.lp-grid-4{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px}
.lp-problem{padding:18px; display:flex; gap:12px; align-items:flex-start; min-height:90px}
.lp-icon{
  width:38px; height:38px; border-radius:12px;
  background: rgba(91,90,247,.12);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.lp-icon svg{width:20px; height:20px; fill:var(--lp-accent)}
.lp-problem__title{margin:2px 0 0; font-weight:700; font-size:13.5px}

/* Platform */
.lp-platform{display:grid; grid-template-columns:1.2fr 1fr; gap:18px; align-items:stretch}
.lp-platform__image{
  border-radius:var(--lp-radius); overflow:hidden; border:1px solid var(--lp-line);
  box-shadow:var(--lp-shadow2); background:#0b1220; min-height:360px;
}
.lp-platform__image img{width:100%; height:100%; object-fit:cover}

.lp-benefits{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px}
.lp-benefit{
  padding:16px; border-radius:var(--lp-radius);
  background: rgba(91,90,247,.07);
  border:1px solid rgba(91,90,247,.16);
  min-height:96px; display:flex; flex-direction:column; gap:10px;
}
.lp-benefit__check{
  width:34px; height:34px; border-radius:999px;
  background:#fff; border:1px solid rgba(91,90,247,.22);
  display:flex; align-items:center; justify-content:center;
}
.lp-benefit__check svg{width:18px; height:18px; fill:var(--lp-accent)}
.lp-benefit__text{margin:0; font-weight:600; font-size:13.5px; color:#111827}

/* Comparison blocks */
.lp-section__lead{
  max-width:820px;
  margin:-6px 0 18px;
  color:var(--lp-muted);
  font-size:14px;
}
.lp-compare-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid var(--lp-line);
  border-radius:var(--lp-radius);
  background:#fff;
  box-shadow:var(--lp-shadow2);
  -webkit-overflow-scrolling:touch;
}
.lp-compare{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  font-size:13.5px;
  line-height:1.45;
}
.lp-poet .lp-compare th,
.lp-poet .lp-compare td{
  /* Parent/theme table rules may reset cell padding with !important.
     Keep comparison tables comfortably readable on every landing. */
  padding:15px 18px !important;
  border-bottom:1px solid var(--lp-line);
  text-align:left;
  vertical-align:top;
}
.lp-poet .lp-compare thead th{
  background:rgba(91,90,247,.07);
  color:var(--lp-text);
  font-size:12.5px;
  font-weight:800;
}
.lp-poet .lp-compare tbody th{
  width:18%;
  font-weight:800;
  white-space:nowrap;
}
.lp-poet .lp-compare tbody tr:last-child th,
.lp-poet .lp-compare tbody tr:last-child td{
  border-bottom:0;
}
.lp-poet .lp-compare tbody tr:hover{
  background:rgba(91,90,247,.025);
}

/* Mid CTA */
.lp-cta-mid{display:grid; grid-template-columns:1fr 1.25fr; gap:18px; align-items:center}
.lp-cta-mid__left{padding:22px 0}
.lp-cta-mid__left h3{margin:0 0 10px; font-size:26px; letter-spacing:-.02em; line-height:1.1}
.lp-cta-mid__left p{margin:0 0 16px; color:var(--lp-muted)}
.lp-cta-mid .lp-btn--primary{color:var(--lp-accent2); background:#fff}
.lp-cta-mid .lp-btn--primary:hover{color:#fff; background:var(--lp-accent2)}
.lp-cta-mid__right{
  border-radius:var(--lp-radius); overflow:hidden; border:1px solid var(--lp-line);
  box-shadow:var(--lp-shadow2); min-height:240px; background:#0b1220;
}
.lp-cta-mid__right img{width:100%; height:100%; object-fit:cover}

/* Steps */
.lp-steps{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px}
.lp-step{
  padding:18px; border-radius:var(--lp-radius); border:1px solid var(--lp-line);
  background:#fff; box-shadow:var(--lp-shadow2); min-height:98px;
}
/* 2) Цифры шагов: Sen, 36px */
.lp-step__num{
  font-family: "Sen", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--lp-accent);
  margin-bottom: 10px;
  letter-spacing: 0; /* чтобы не выглядело криво на крупном кегле */
}

.lp-step__title{margin:0 0 6px; font-weight:800; font-size:14px}
.lp-step__hint{margin:0; color:var(--lp-muted); font-size:13px}

/* Contextual entry to the Author Workshop */
.lp-section--workshop{padding:32px 0}
.lp-workshop-entry{
  display:grid;
  grid-template-columns:minmax(230px,.8fr) minmax(0,2fr);
  gap:24px;
  padding:28px;
  border:1px solid rgba(91,90,247,.18);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(91,90,247,.09), rgba(255,255,255,.96) 58%, rgba(79,70,229,.05));
  box-shadow:var(--lp-shadow2);
}
.lp-workshop-entry__copy > span{
  display:inline-flex;
  margin-bottom:10px;
  padding:5px 9px;
  color:var(--lp-accent2);
  background:#fff;
  border:1px solid rgba(91,90,247,.18);
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.lp-workshop-entry__copy h2{margin:0 0 9px; font-size:22px; line-height:1.18}
.lp-workshop-entry__copy p{margin:0; color:var(--lp-muted); font-size:13.5px}
.lp-workshop-entry__links{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
.lp-workshop-entry__links a{
  position:relative;
  display:flex;
  min-width:0;
  min-height:142px;
  padding:18px 42px 18px 18px;
  background:#fff;
  border:1px solid var(--lp-line);
  border-radius:16px;
  box-shadow:0 4px 14px rgba(17,24,39,.04);
  flex-direction:column;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.lp-workshop-entry__links a:hover{
  transform:translateY(-2px);
  border-color:rgba(91,90,247,.35);
  box-shadow:0 9px 22px rgba(91,90,247,.09);
}
.lp-workshop-entry__links strong{margin-bottom:7px; font-size:14px; line-height:1.25}
.lp-workshop-entry__links span{color:var(--lp-muted); font-size:12.5px; line-height:1.45}
.lp-workshop-entry__links i{
  position:absolute;
  top:16px;
  right:16px;
  color:var(--lp-accent);
  font-size:20px;
  font-style:normal;
  line-height:1;
}

/* FAQ */
.lp-faq{border-top:1px solid var(--lp-line)}
.lp-faq-item{border-bottom:1px solid var(--lp-line)}

.lp-faq-q{
  width:100%;
  padding:16px 0;
  display:flex;
  align-items:center;
  justify-content:flex-start;  /* важно: без space-between */
  gap:12px;
  background:none;
  border:0;
  text-align:left;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
}

/* Текст вопроса — только первый span (а не все span внутри) */
.lp-faq-q > span:first-child{
  flex: 1 1 auto;
  min-width: 0; /* чтобы корректно переносился */
}

/* Стрелка — фиксируем справа */
.lp-chev{
  width:24px;
  height:24px;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center; /* НЕ space-between */
  margin-left:auto;       /* прижимает вправо */
  flex: 0 0 24px;         /* фикс ширина — не "гуляет" */
  transition: transform .2s ease;
  transform-origin: 50% 50%;
}

.lp-chev svg{
  width:18px;
  height:18px;
  fill: var(--lp-muted);
  display:block;
}

.lp-faq-a{max-height:0; overflow:hidden; transition:max-height .25s ease}
.lp-faq-a__inner{padding:0 0 16px; color:var(--lp-muted); font-size:13.5px}
.lp-faq-item.is-open .lp-faq-a{max-height:220px}
.lp-faq-item.is-open .lp-chev{transform:rotate(180deg)}


/* Final CTA */
.lp-cta-final{padding:34px 0 40px}
.lp-cta-final__box{
  position:relative; border-radius:20px; overflow:hidden;
  min-height:220px; box-shadow:var(--lp-shadow); background:#0b1220;
}
.lp-cta-final__bg{position:absolute; inset:0; background:center/cover no-repeat}
.lp-cta-final__overlay{position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.08) 100%)}
.lp-cta-final__content{position:relative; padding:34px 44px; color:#fff; max-width:760px}
.lp-cta-final__content h3{margin:0 0 10px; font-size:clamp(22px, 2.8vw, 34px); line-height:1.12; letter-spacing:-.02em}
.lp-cta-final__content p{margin:0 0 16px; color:rgba(255,255,255,.86); max-width:560px}
.lp-cta-final__actions{display:flex; gap:12px; flex-wrap:wrap}

/* Responsive */
@media (max-width:980px){
  .lp-grid-4{grid-template-columns:repeat(2, minmax(0,1fr))}
  .lp-platform{grid-template-columns:1fr}
  .lp-platform__image{min-height:280px}
  .lp-cta-mid{grid-template-columns:1fr}
  .lp-cta-mid__right{min-height:210px}
  .lp-steps{grid-template-columns:1fr}
  .lp-hero__content, .lp-cta-final__content{padding:28px 22px}
  .lp-hero__box{min-height:250px}
  .lp-workshop-entry{grid-template-columns:1fr}
}
@media (max-width:720px){
  .lp-poet .lp-compare th,
  .lp-poet .lp-compare td{padding:12px 14px !important}
  .lp-workshop-entry{padding:20px}
  .lp-workshop-entry__links{grid-template-columns:1fr}
  .lp-workshop-entry__links a{min-height:0}
}
@media (max-width:520px){
  .lp-container{width:min(var(--lp-max), calc(100% - 28px))}
  .lp-topbar__actions .lp-btn{height:40px; padding:0 14px}
  .lp-grid-4{grid-template-columns:1fr}
  .lp-benefits{grid-template-columns:1fr}
  .lp-problem{min-height:auto}
}

/* 1) Белые заголовки на баннерах */
.lp-hero h2,
.lp-cta-final__content h3{
  color:#fff !important;
}

/* Скрываем стандартный H1 от темы на всех лендингах */
.page-template-page-landing-poets .entry-title,
.page-template-page-landing-poets h1.entry-title,
.page-template-page-landing-writers .entry-title,
.page-template-page-landing-writers h1.entry-title,
.page-template-page-landing-artists .entry-title,
.page-template-page-landing-artists h1.entry-title{
  display: none !important;
}

/* Сохраняем текст CTA внутри первого экрана на узких экранах.
 * Базовая .lp-btn использует nowrap, а баннер скрывает overflow. */
@media (max-width: 720px) {
  .lp-poet .lp-hero__cta,
  .lp-poet .lp-cta-final__actions { min-width: 0; }
  .lp-poet .lp-hero__cta .lp-btn,
  .lp-poet .lp-cta-final__actions .lp-btn {
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 44px;
    padding: 11px 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
    text-align: center;
  }
  .lp-poet .lp-hero__cta .lp-btn { width: 100%; }
}
