:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #ebe9e4;
  --text: #171717;
  --muted: #676767;
  --line: #d9d6cf;
  --black: #111111;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
button, input, select { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(245,244,241,.88); border-bottom: 1px solid rgba(0,0,0,.06); }
.topbar__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.hero { padding: 72px 0 46px; }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #555; }
h1,h2,h3 { line-height: 1.05; letter-spacing: -.045em; margin-top: 0; }
h1 { max-width: 720px; font-size: clamp(44px, 7vw, 82px); margin-bottom: 22px; }
h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.lead { max-width: 710px; font-size: clamp(18px, 2vw, 22px); color: #4e4e4e; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--black); text-decoration: none; cursor: pointer; font-weight: 800; transition: transform .15s ease, opacity .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--black); color: #fff; }
.button--ghost { background: transparent; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.trust-list { display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--black); font-weight: 800; }
.hero__preview { display: flex; justify-content: center; }
.portrait-demo { width: min(390px, 100%); aspect-ratio: 4/5; border-radius: 34px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 34%, #dedad4 0 16%, transparent 16.5%), radial-gradient(circle at 50% 30%, #8a837c 0 17%, transparent 17.5%), linear-gradient(155deg,#e8e6e1,#c9c5bd); box-shadow: var(--shadow); }
.portrait-demo::after { content:""; position:absolute; left:20%; right:20%; bottom:-8%; height:56%; border-radius: 50% 50% 0 0; background: #3d3b39; }
.portrait-demo__ribbon { position: absolute; width: 56%; height: 42px; background: linear-gradient(180deg,#202020,#050505); right: -8%; bottom: 13%; transform: rotate(-42deg); z-index: 4; box-shadow: 0 7px 16px rgba(0,0,0,.24); }
.editor-section { padding: 36px 0 64px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 24px; }
.section-heading p { color: var(--muted); margin: 0 0 8px; }
.editor-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.panel, .workspace { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.035); }
.controls { padding: 18px; position: sticky; top: 82px; }
.control-group { padding: 16px 0; border-bottom: 1px solid #eceae6; }
.control-group:first-child { padding-top: 0; }
.control-group:last-child { border-bottom: 0; padding-bottom: 0; }
.control-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 9px; color: #404040; }
.upload-zone { border: 1.5px dashed #aaa69f; border-radius: 16px; min-height: 124px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; background: #faf9f7; }
.upload-zone:hover, .upload-zone.is-dragover { border-color: #111; background: #f2f0eb; }
.upload-zone__icon { width: 34px; height: 34px; border-radius: 50%; display:grid; place-items:center; background:#111; color:#fff; margin-bottom:10px; font-size:22px; }
.upload-zone span:last-child { color: var(--muted); font-size: 12px; margin-top: 3px; }
.segmented { display: grid; gap: 7px; }
.segmented--2 { grid-template-columns: 1fr 1fr; }
.segmented button { border: 1px solid var(--line); background: #faf9f7; padding: 10px 9px; border-radius: 11px; cursor:pointer; font-size: 13px; }
.segmented button.is-active { background: #111; color:#fff; border-color:#111; }
.text-button { border:0; padding:8px 0 0; background:transparent; cursor:pointer; text-decoration:underline; text-underline-offset:3px; color:#555; font-size:12px; }
select, input[type="text"] { width: 100%; min-height: 43px; border:1px solid var(--line); background:#fff; border-radius:11px; padding: 0 11px; color:var(--text); }
input[type="text"] + input[type="text"], input[type="text"] + select { margin-top:8px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
input[type="range"] { width:100%; accent-color:#111; }
.switches { display:grid; gap:4px; }
.switch-row { display:flex; gap:14px; justify-content:space-between; align-items:center; padding:8px 0; cursor:pointer; }
.switch-row span { display:flex; flex-direction:column; }
.switch-row small { color:var(--muted); font-size:11px; }
.switch-row input { width:20px; height:20px; accent-color:#111; }
.workspace { padding: 18px; min-width: 0; }
.workspace__head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.workspace__head > div { display:flex; flex-direction:column; }
.workspace__head span { color:var(--muted); font-size:12px; }
.icon-button { border:1px solid var(--line); border-radius:10px; min-height:38px; padding:0 12px; background:#fff; cursor:pointer; }
.canvas-shell { position:relative; min-height: 500px; display:grid; place-items:center; overflow:hidden; border-radius:18px; background: repeating-conic-gradient(#e8e6e2 0% 25%, #f1efeb 0% 50%) 50% / 22px 22px; border:1px solid var(--line); touch-action:none; }
#editorCanvas { max-width:100%; max-height:72vh; width:auto; height:auto; display:block; opacity:0; transition:opacity .2s; }
#editorCanvas.is-ready { opacity:1; }
.empty-state { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:30px; background:rgba(250,249,247,.92); }
.empty-state.is-hidden { display:none; }
.empty-state__symbol { font-size:38px; margin-bottom:8px; }
.empty-state h3 { font-size:26px; margin-bottom:7px; }
.empty-state p { max-width:430px; color:var(--muted); margin:0 0 18px; }
.result-note { font-size:13px; color:#555; background:#f6f5f2; border-radius:12px; padding:11px 13px; margin-top:12px; }
.export-bar { display:flex; justify-content:space-between; gap:14px; align-items:end; padding-top:14px; }
.export-options { display:flex; gap:9px; }
.export-options label { color:var(--muted); font-size:11px; }
.export-options select { display:block; margin-top:4px; min-width:116px; min-height:39px; }
.info-strip { padding: 0 0 72px; }
.info-strip__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.info-strip article { border-top:1px solid #c8c5be; padding:18px 2px 0; display:flex; flex-direction:column; gap:4px; }
.info-strip span { color:var(--muted); font-size:14px; }
.content-section { padding: 72px 0; background:#fff; }
.content-section--muted { background:#eae8e2; }
.content-section p { font-size:18px; color:#4d4d4d; }
.steps { padding-left:22px; display:grid; gap:16px; font-size:18px; }
.faq { display:grid; gap:10px; }
.faq details { border:1px solid var(--line); border-radius:15px; padding:16px 18px; background:#fff; }
.faq summary { cursor:pointer; font-weight:800; }
.faq p { margin:10px 0 0; font-size:15px; }
.footer { background:#111; color:#fff; padding:38px 0; }
.footer__inner { display:flex; justify-content:space-between; gap:20px; align-items:end; }
.footer p { margin:5px 0 0; color:#b8b8b8; }
.footer a { color:#fff; }
.noscript { position:fixed; bottom:0; left:0; right:0; padding:12px 20px; background:#6b1111; color:#fff; z-index:99; text-align:center; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width: 980px) {
  .hero__grid, .section-heading, .editor-layout { grid-template-columns:1fr; }
  .hero__preview { display:none; }
  .controls { position:static; }
  .canvas-shell { min-height:420px; }
  .section-heading { gap:10px; }
}
@media (max-width: 680px) {
  .container, .narrow { width:min(100% - 20px, 1180px); }
  .nav { display:none; }
  .hero { padding:44px 0 30px; }
  h1 { font-size:44px; }
  h2 { font-size:36px; }
  .hero__actions .button { width:100%; }
  .trust-list { display:grid; gap:7px; }
  .workspace { padding:10px; border-radius:16px; }
  .canvas-shell { min-height:340px; border-radius:13px; }
  .export-bar { align-items:stretch; flex-direction:column; }
  .export-options { display:grid; grid-template-columns:1fr 1fr; }
  .export-options select { min-width:0; }
  .button--download { width:100%; }
  .info-strip__grid { grid-template-columns:1fr; }
  .grid-2 { grid-template-columns:1fr; }
  .content-section { padding:50px 0; }
  .footer__inner { align-items:flex-start; flex-direction:column; }
}


/* Final Yandex audit additions */
.field-status {
  min-height: 1.25rem;
  margin: .55rem 0 0;
  font-size: .84rem;
  line-height: 1.4;
  color: var(--muted);
}
.field-status.is-error { color: #9b2c2c; }
.field-status.is-success { color: #45614f; }

.control-help {
  display: block;
  margin-top: .5rem;
  color: var(--muted);
  line-height: 1.45;
}

.intent-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.intent-strip__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.intent-strip__inner span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem .72rem;
  color: var(--muted);
  font-size: .84rem;
  background: var(--surface);
}
.inline-action {
  display: inline-flex;
  margin-top: .25rem;
  font-weight: 700;
  color: var(--text);
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .intent-strip__inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .intent-strip__inner::-webkit-scrollbar { display: none; }
  .intent-strip__inner span { flex: 0 0 auto; }
}


/* Search-render completeness audit */
.render-note {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.result-summary {
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}
.result-summary strong { color: var(--text); }
.noscript {
  position: static;
  margin: 0;
  padding: 14px 20px;
  background: #2b2323;
  color: #fff;
  text-align: center;
  line-height: 1.45;
}

.hero__preview { margin: 0; flex-direction: column; align-items: center; gap: 12px; }
.hero__preview figcaption {
  width: min(390px, 100%);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.guide-section { padding: 72px 0; background: var(--bg); }
.guide-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 24px;
}
.guide-heading p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.guide-card--wide { grid-column: 1 / -1; }
.guide-card__number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.guide-card h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); }
.guide-card p { margin: 0 0 12px; color: #4d4d4d; line-height: 1.65; }
.guide-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 4px;
}
@media (max-width: 980px) {
  .guide-heading { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  .guide-section { padding: 50px 0; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card--wide { grid-column: auto; }
  .guide-card { padding: 20px; }
}
