:root{
  --bg:#fff;
  --text:#111827;
  --muted:#6B7280;
  --line:#E5E7EB;
  --card:#F7F8FA;
  --primary:#2563EB;
  --primary2:#1D4ED8;
  --ring: rgba(37, 99, 235, .22);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a{color:inherit}
.container{max-width:640px;margin:0 auto;padding:16px}
.muted{color:var(--muted)}
.top{
  position:sticky;top:0;z-index:5;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.topInner{max-width:640px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:12px}
.brand{font-weight:900;text-decoration:none;display:flex;align-items:center;gap:10px}
.logoMark{
  width:22px;height:22px;border-radius:6px;
  background:linear-gradient(135deg, var(--primary), #60A5FA);
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}
.logoText{letter-spacing:-.2px}
.topActions{margin-left:auto;display:flex;gap:10px;align-items:center}
.topTitle{font-size:18px;font-weight:800;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iconBtn{
  border:1px solid transparent;background:transparent;
  font-size:18px;padding:6px 10px;border-radius:10px;cursor:pointer;
}
.iconBtn:hover{background:#F3F4F6}
.btn{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btnBig{padding:12px 16px;border-radius:14px}
.btn:focus{outline: none; box-shadow: 0 0 0 4px var(--ring);}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btnPrimary{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}
.btnPrimary:hover{background:var(--primary2);border-color:var(--primary2)}
.btnGhost{background:#fff}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hero2{
  padding:22px 0 10px;
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
}
.hero2Text h1{font-size:32px;line-height:1.08;margin:0 0 12px;letter-spacing:-.5px}
.hero2Text{text-align:center}
.hero2Text .row{justify-content:center}
.hero2Text .chips{justify-content:center}
.accent{color:var(--primary)}
.hero2Art{
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg, #FFFFFF, #F6F9FF);
  overflow:hidden;
}
.hero2Art img{display:block;width:100%;height:auto}
.hero2ArtMobileFirst{
  /* make illustration visible above the fold on mobile */
  order: -1;
  max-height:260px;
}
.hero2ArtMobileFirst img{
  width:100%;
  height:260px;
  object-fit:cover;
  object-position: 68% center;
}
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.chip2{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;border:1px solid var(--line);
  background:#fff;font-weight:800;font-size:12px;color:var(--muted);
}
.dot{width:8px;height:8px;border-radius:999px}
.dotBlue{background:#2563EB}
.dotGreen{background:#16A34A}
.dotIndigo{background:#4F46E5}
.panel{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}
.panelTop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.panelTop .h2{flex:1;min-width:0}
.h2{font-size:22px;font-weight:800;overflow-wrap:anywhere;word-break:break-word}

@media (max-width: 520px){
  .panelTop{flex-direction:column;align-items:stretch}
  .panelTop .row{width:100%;justify-content:flex-start}
  .panelTop .row .btn{flex:1 1 220px;justify-content:center}
}
.h3{font-size:16px;font-weight:800;margin-bottom:8px}
.form{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.label{font-size:12px;font-weight:800;color:var(--muted)}
.input{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 12px;
  font-size:16px;
  outline:none;
}
.seg{display:flex;gap:10px}
.radio{display:flex;gap:8px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;flex:1}
.cards{display:grid;grid-template-columns:1fr;gap:10px;margin:10px 0 22px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px}
.cardIcon{font-size:18px;margin-bottom:8px}
.cardTitle{font-weight:800;margin-bottom:6px}
.use{margin:6px 0 22px}
.useHero{
  position:relative;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg, #FFFFFF, #F6F9FF);
  overflow:hidden;
}
.useHeroImg{
  display:block;
  width:100%;
  height:260px;
  object-fit:cover;
  object-position: left 35%;
}
.useIntro{
  padding:14px 16px 0;
}
.useIntro h2{margin:0 0 6px;font-size:18px}
.useGrid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.useStep{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg, #FFFFFF, #F7F8FA);
}
.useBubble{
  width:38px;height:38px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
  font-size:18px;
  margin-bottom:10px;
}
.useTitle{font-weight:900;margin-bottom:6px}
.faq h2{margin:0 0 10px;font-size:18px}
.qa{padding:10px 0;border-top:1px solid var(--line)}
.qa:first-of-type{border-top:none}
.q{font-weight:800}
.faq .a{
  font-size:16px;
  line-height:1.5;
  margin-top:6px;
}
.footer{border-top:1px solid var(--line);padding:18px 0;margin-top:24px}
.list{display:flex;flex-direction:column;gap:10px}
.listItemWrap{
  display:flex;align-items:center;gap:8px;
  border:1px solid var(--line);border-radius:14px;
  background:#fff;overflow:hidden;
}
.listItemWrap.listItemActive{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.listItem{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 12px;
  text-decoration:none;color:inherit;
  cursor:pointer;flex:1;min-width:0;
}
.listItem:hover{background:rgba(0,0,0,.02)}
.listItemLink{display:flex;flex:1;min-width:0}
.listItemLink .listTitle,.listItemLink .listSub,.listItemLink .statusBadge{color:inherit}
.listItem:hover{border-color:#D1D5DB}
.listItemWrap .listItem{border:none;border-radius:0}
.listItemWrap:hover{border-color:#D1D5DB}
.list > .listItem{border:1px solid var(--line);border-radius:14px}
.listItemActive,.list > .listItem.listItemActive{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.listTitle{font-weight:800}
.listSub{margin-top:4px}
.listRight{display:flex;align-items:center;gap:10px}
.statusBadge{
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}
.statusDot{width:8px;height:8px;border-radius:999px;background:#9CA3AF}
.statusReady{background:rgba(22,163,74,.08);border-color:rgba(22,163,74,.25);color:#166534}
.statusReady .statusDot{background:#16A34A}
.statusProcessing{background:rgba(37,99,235,.08);border-color:rgba(37,99,235,.25);color:#1D4ED8}
.statusProcessing .statusDot{background:#2563EB}
.statusError{background:rgba(220,38,38,.08);border-color:rgba(220,38,38,.25);color:#B91C1C}
.statusError .statusDot{background:#DC2626}
.statusRecording{background:rgba(107,114,128,.08);border-color:rgba(107,114,128,.25);color:#374151}
.statusRecording .statusDot{background:#6B7280}
.statusDraft{background:rgba(107,114,128,.08);border-color:rgba(107,114,128,.25);color:#374151}
.statusDraft .statusDot{background:#6B7280}
.menuBtn{
  border:1px solid var(--line);
  background:#fff;
  width:34px;height:34px;
  border-radius:12px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.menuBtn:hover{background:#F3F4F6}
.empty{padding:24px 12px;text-align:center}
.emptyIcon{font-size:34px;color:#9CA3AF;margin-bottom:10px}
.emptyTitle{font-weight:900;margin-bottom:12px}
.modal{
  position:fixed;inset:0;display:none;align-items:flex-end;justify-content:center;
  background:rgba(0,0,0,.35);padding:16px;z-index:10;
}
.modal.open{display:flex}
.modalCard{
  width:100%;
  max-width:640px;
  background:#fff;border-radius:16px;padding:14px;border:1px solid var(--line);
}
.modalTitle{font-weight:900;font-size:16px}
.drawer{
  position:fixed;top:0;left:0;bottom:0;width:280px;
  transform:translateX(-100%);
  transition:transform .2s ease;
  background:#fff;border-right:1px solid var(--line);
  z-index:20;
}
.drawer.open{transform:translateX(0)}
.drawerInner{padding:16px;display:flex;flex-direction:column;gap:6px;height:100%}
.drawerItem{padding:10px 12px;border-radius:12px;text-decoration:none}
.drawerItem.active{color:var(--primary)}
.drawerItem:hover{background:#F3F4F6}
.drawerSpacer{flex:1}
.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.25);display:none;z-index:15}
.backdrop.open{display:block}
.note{background:var(--card);border:1px solid var(--line);padding:12px;border-radius:14px;margin:12px 0}
.noteTitle{font-weight:900;margin-bottom:6px}
.pitchNote{
  margin-top:14px;
  text-align:left;
  background:linear-gradient(180deg, #FFFFFF, #F6F9FF);
  width:100%;
}
.hero2 .pitchNote{grid-column: 1 / -1;}
.pitchGrid{
  display:grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "art"
    "copy";
  gap:12px;
  align-items:center;
}
.pitchCopy{grid-area:copy}
.pitchArt{grid-area:art}
.pitchHead{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
}
.pitchTitle{
  font-weight:900;
  color:var(--text);
  letter-spacing:-.2px;
}
.pitchSub{
  font-weight:900;
  color:var(--primary);
  letter-spacing:-.2px;
}
.pitchBody{margin-top:6px}

@media (max-width: 819px){
  .pitchTitle{display:none}
}
.pitchArt{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  position:relative;
}
.pitchOverlay{
  position:absolute;
  left:14px;
  top:54px;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:260px;
  pointer-events:none;
}
/* На мобильных: тот же стиль шрифта, что в первом блоке (герой), текст только в светлой зоне */
@media (max-width: 819px){
  .pitchOverlay{
    max-width:min(42%, 155px);
    top:50%;
    transform:translateY(-50%);
    left:10px;
    padding-right:6px;
  }
  .pitchOverlayQ{
    font-size:clamp(12px, 3.8vw, 16px);
    line-height:1.08;
    letter-spacing:-.5px;
    word-wrap:break-word;
    overflow-wrap:break-word;
  }
  .pitchImg{
    object-position: 50% center;
  }
}
.pitchOverlayQ{
  font-weight:900;
  color:var(--text);
  letter-spacing:-.2px;
  background:transparent;
  border:none;
  border-radius:0;
  padding:0;
  box-shadow:none;
  backdrop-filter:none;
  text-shadow: 0 2px 10px rgba(17,24,39,.18), 0 0 1px rgba(255,255,255,.85);
}
.pitchImg{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
  object-position: 60% center;
}
.pitchList{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-weight:500;
}
.pitchList li{margin:6px 0}
.pitchBottom{margin-top:10px}
.chip{border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-weight:800;color:var(--muted);font-size:12px}
.recBox{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;margin:12px 0}
.recTime{font-size:28px;font-weight:900;margin-bottom:6px}
.procBox{
  display:flex;align-items:center;gap:12px;
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:14px;margin:12px 0;
}
.procTitle{font-weight:900}
.spinner{
  width:18px;height:18px;border-radius:999px;
  border:2px solid rgba(37,99,235,.25);
  border-top-color: var(--primary);
  animation: spin 900ms linear infinite;
  flex:0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.block{margin:14px 0}
/* iOS-like segmented control */
.tabs{
  display:flex;
  gap:6px;
  margin-top:12px;
  background:#F3F4F6;
  border:1px solid #E5E7EB;
  border-radius:16px;
  padding:6px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
.tab{
  flex:1 1 0;
  min-width:0;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  font-weight:800;
  font-size:14px;
  line-height:1.15;
  cursor:pointer;
  text-decoration:none;
  color:#111827;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal;
}
.tab:hover{background:rgba(255,255,255,.55)}
.tab.active{
  background:#fff;
  border-color:#E5E7EB;
  box-shadow: 0 1px 2px rgba(17,24,39,.08);
  color:#111827;
}
.md{
  white-space:pre-wrap;
  word-break:break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:13px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}

@media (min-width: 820px){
  .container, .topInner{max-width:980px}
  .hero2{grid-template-columns: 1.05fr .95fr;align-items:center;padding:30px 0 12px}
  .hero2Text{text-align:left}
  .hero2Text .row{justify-content:flex-start}
  .hero2Text .chips{justify-content:flex-start}
  .hero2ArtMobileFirst{max-height:none}
  .hero2ArtMobileFirst img{height:auto;object-fit:contain;object-position:center}
  .hero2ArtMobileFirst{order: 0;}
  .hero2Text h1{font-size:44px}
  .cards{grid-template-columns: repeat(3, 1fr)}
  .useGrid{grid-template-columns: repeat(3, 1fr);margin-top:14px}
  .useHeroImg{height:520px}
  .useIntro{
    position:absolute;
    right:22px;
    top:50%;
    transform:translateY(-50%);
    width:min(520px, 45%);
    padding:0;
  }
  .useIntro h2{font-size:26px;letter-spacing:-.3px}
  .useIntro .muted{font-size:18px;line-height:1.35}
  .pitchGrid{
    grid-template-columns: 1.25fr .75fr;
    grid-template-areas:"copy art";
    gap:16px;
  }
  .pitchImg{height:260px}
  .pitchOverlay{display:none}
}

