/* Логомастер — дизайн-система в духе Apple HIG */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-tint: rgba(0, 113, 227, 0.08);
  --hairline: rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --checker: #e8e8ed;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #161617;
    --surface: #1d1d1f;
    --ink: #f5f5f7;
    --ink-2: #86868b;
    --accent: #0a84ff;
    --accent-hover: #2492ff;
    --accent-tint: rgba(10, 132, 255, 0.14);
    --hairline: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.65);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --checker: #2c2c2e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #161617;
  --surface: #1d1d1f;
  --ink: #f5f5f7;
  --ink-2: #86868b;
  --accent: #0a84ff;
  --accent-hover: #2492ff;
  --accent-tint: rgba(10, 132, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.65);
  --nav-bg: rgba(22, 22, 23, 0.72);
  --checker: #2c2c2e;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 52px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { letter-spacing: -0.022em; }

button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

/* ── Навигация ─────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-mark { width: 24px; height: 24px; border-radius: 6px; }

.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── Кнопки ────────────────────────────────────────────────── */

.btn-primary {
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 11px 24px;
  font-size: 15px; font-weight: 500;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-secondary {
  background: var(--bg-alt); color: var(--ink);
  border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--hairline);
  transition: background 0.25s, transform 0.25s var(--ease);
}
.btn-secondary:hover:not(:disabled) { background: var(--hairline); }
.btn-secondary:active { transform: scale(0.97); }
.btn-secondary:disabled { opacity: 0.55; cursor: default; }

.btn-ghost {
  color: var(--accent); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: background 0.25s;
}
.btn-ghost:hover { background: var(--accent-tint); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink-2); transition: background 0.25s, color 0.25s;
}
.btn-icon:hover:not(:disabled) { background: var(--bg-alt); color: var(--ink); }
.btn-icon:disabled { opacity: 0.35; cursor: default; }

.link-arrow {
  color: var(--accent); text-decoration: none; font-size: 17px;
}
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ── Hero ──────────────────────────────────────────────────── */

.hero { text-align: center; padding: 110px 22px 64px; }

.hero h1 {
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.03;
}

.hero-sub {
  margin: 22px auto 0; max-width: 620px;
  font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; color: var(--ink-2);
}

.hero-cta {
  margin-top: 34px;
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
}

.continue-chip {
  margin-top: 30px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 14px; font-weight: 500;
  transition: background 0.25s;
}
.continue-chip:hover { background: var(--hairline); }

/* ── Витрина ───────────────────────────────────────────────── */

.showcase { overflow: hidden; padding: 22px 0 10px; }

.showcase-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 46s linear infinite;
}
.showcase:hover .showcase-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(calc(-50% - 9px)); }
}

.showcase-card {
  width: 258px; height: 148px; flex-shrink: 0;
  border-radius: 20px; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 30px;
  box-shadow: var(--shadow-sm);
}
.showcase-card svg { width: 100%; height: 100%; }

/* ── Секции ────────────────────────────────────────────────── */

.features, .how, .saved { padding: 88px 22px; }
.features h2, .how h2, .saved h2, .create h2 {
  text-align: center; font-size: clamp(32px, 5vw, 48px); font-weight: 700;
}
.section-sub { text-align: center; color: var(--ink-2); margin-top: 10px; font-size: 16px; }

.feature-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}

.feature-card {
  background: var(--bg-alt); border-radius: 26px; padding: 34px 30px;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.how-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.how-step { text-align: center; padding: 10px 18px; }
.how-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  font-size: 19px; font-weight: 600; margin-bottom: 16px;
}
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ── Мастер ────────────────────────────────────────────────── */

.create { padding: 40px 22px 110px; }

.wizard {
  max-width: 660px; margin: 40px auto 0;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 42px clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-md);
}
.wizard h2 { margin-bottom: 30px; }

.wiz-field { margin-bottom: 24px; }
.wiz-field > label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px;
}
.wiz-field em { font-style: normal; font-weight: 400; color: var(--ink-2); }

.wiz-field input[type="text"], .text-input {
  width: 100%; padding: 13px 16px; font-size: 16px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--bg-alt); color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.wiz-field input[type="text"]:focus, .text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-tint);
}

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid button {
  padding: 8px 15px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--hairline); color: var(--ink);
  transition: all 0.2s;
}
.chip-grid button:hover { border-color: var(--accent); color: var(--accent); }
.chip-grid button.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

#btn-generate { margin-top: 8px; }

.shake { animation: shake 0.4s; border-color: #ff3b30 !important; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.footer {
  border-top: 1px solid var(--hairline);
  padding: 30px 22px; text-align: center;
  color: var(--ink-2); font-size: 13px;
}

/* ── Результаты ────────────────────────────────────────────── */

#screen-results { padding: 40px 0 90px; }

.results-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 28px;
}
.results-head h2 { font-size: clamp(26px, 4vw, 36px); }
.results-head .section-sub { text-align: left; }
.results-actions { display: flex; gap: 10px; }

.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}

.variant-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  padding: 11% 13%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.variant-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md); }
.variant-card svg { width: 100%; height: 100%; }

.reveal-card { animation: cardIn 0.55s var(--ease) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
}

.skeleton {
  background: linear-gradient(100deg, var(--bg-alt) 40%, var(--hairline) 50%, var(--bg-alt) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border: none;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.saved-card { cursor: pointer; }
.saved-del {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 12px;
  opacity: 0; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.saved-card:hover .saved-del,
.saved-card:focus-within .saved-del,
.saved-del:focus-visible { opacity: 1; }
/* На таче hover нет — крестик виден всегда */
@media (hover: none) {
  .saved-del { opacity: 1; }
}

/* ── Редактор ──────────────────────────────────────────────── */

#screen-editor { min-height: calc(100vh - 52px); display: flex; flex-direction: column; }

.editor-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(22px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 52px; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.editor-actions { display: flex; align-items: center; gap: 8px; }

.editor-body {
  flex: 1;
  display: grid; grid-template-columns: 1fr 370px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}

.editor-stage { padding: 26px; min-width: 0; }

.editor-canvas {
  margin-top: 14px;
  border-radius: 24px; border: 1px solid var(--hairline);
  min-height: 400px; height: 46vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6% 9%;
  transition: background 0.3s;
}
.editor-canvas svg { width: 100%; height: 100%; }
.editor-canvas.checker {
  background-image:
    repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%);
  background-size: 18px 18px;
}

/* Мокапы */

.mockups {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.mockup label {
  display: block; text-align: center; margin-top: 9px;
  font-size: 12px; color: var(--ink-2);
}

.mockup-card {
  aspect-ratio: 17 / 10;
  border-radius: 12px; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.mockup-card .mockup-logo {
  width: 62%; height: 52%;
  display: flex; align-items: center; justify-content: center;
}
.mockup-card .mockup-logo svg { width: 100%; height: 100%; }
.mockup-card label { margin-top: 0; position: relative; top: calc(50% + 12px); display: none; }

.mockup-avatar-wrap {
  aspect-ratio: 17 / 10;
  background: var(--bg-alt); border-radius: 12px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.mockup-avatar { width: 46px; height: 46px; flex-shrink: 0; }
.mockup-avatar svg { width: 100%; height: 100%; display: block; }
.mockup-msg { flex: 1; }
.mockup-msg i {
  display: block; height: 9px; border-radius: 5px; background: var(--hairline);
}
.mockup-msg i + i { margin-top: 7px; width: 62%; }

.mockup-site {
  aspect-ratio: 17 / 10;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.site-chrome {
  display: flex; gap: 4px; padding: 6px 8px;
  background: var(--bg-alt); border-bottom: 1px solid var(--hairline);
}
.site-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
}
.site-logo { height: 20px; display: flex; align-items: center; }
.site-logo svg { height: 100%; width: auto; max-width: 90px; }
.site-nav { display: flex; gap: 6px; }
.site-nav i { width: 16px; height: 5px; border-radius: 3px; background: var(--hairline); }
.site-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
}
.site-hero b { width: 55%; height: 10px; border-radius: 5px; background: var(--hairline); }
.site-hero u { width: 38%; height: 7px; border-radius: 4px; background: var(--hairline); opacity: 0.7; }
.site-hero-btn { width: 52px; height: 16px; border-radius: 8px; margin-top: 3px; }

/* Панель настроек */

.editor-panel {
  border-left: 1px solid var(--hairline);
  padding: 20px 20px 40px;
  overflow-y: auto;
  max-height: calc(100vh - 52px - 55px);
  position: sticky; top: 107px;
}

.tabs {
  display: flex; background: var(--bg-alt); border-radius: 11px; padding: 3px;
  margin-bottom: 20px;
}
.tabs button {
  flex: 1; padding: 8px 4px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all 0.2s;
}
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.ctl-label {
  display: block; font-size: 13px; font-weight: 600;
  margin: 20px 0 9px; color: var(--ink);
}
.tab-pane > .ctl-label:first-child { margin-top: 4px; }

.segmented {
  display: flex; background: var(--bg-alt); border-radius: 10px; padding: 3px; gap: 2px;
}
.segmented button {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 7px 8px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  transition: all 0.2s;
}
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented svg { width: 30px; height: 18px; }

.seg-layout svg { width: 36px; height: 20px; }

/* Слайдеры */

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--hairline);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  margin-top: -7.5px;
}
input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 2px; background: var(--hairline);
}
input[type="range"]::-moz-range-thumb {
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

/* Переключатели */

.ctl-switch {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; margin: 18px 0 4px; cursor: pointer; user-select: none;
}
.ctl-switch input { display: none; }
.ctl-switch span {
  width: 38px; height: 23px; border-radius: 999px;
  background: var(--hairline); position: relative; flex-shrink: 0;
  transition: background 0.25s;
}
.ctl-switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}
.ctl-switch input:checked + span { background: #34c759; }
.ctl-switch input:checked + span::after { transform: translateX(15px); }

/* Знак */

.mono-row { display: flex; gap: 8px; align-items: stretch; }
.mono-row input {
  width: 64px; text-align: center; font-size: 16px; font-weight: 600;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink); outline: none;
}
.mono-row input:focus { border-color: var(--accent); }
.mono-row .segmented { flex: 1; }
.mono-row .segmented svg { width: 20px; height: 20px; }

.select {
  width: 100%; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink); outline: none;
  margin-bottom: 10px;
}
.select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-tint);
}

.icon-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px;
}
.icon-grid button {
  aspect-ratio: 1; border-radius: 10px;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all 0.15s;
}
.icon-grid button:hover { border-color: var(--accent); }
.icon-grid button.active { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.icon-grid svg { width: 24px; height: 24px; }
.no-icon { font-size: 17px; color: var(--ink-2); }

/* Шрифты */

.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.font-list button {
  padding: 11px 8px; border-radius: 10px; font-size: 15px;
  border: 1px solid var(--hairline); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all 0.15s;
}
.font-list button:hover { border-color: var(--accent); }
.font-list button.active { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }

/* Цвета */

.palette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.palette-grid button {
  aspect-ratio: 1; border-radius: 10px;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; gap: 3px;
  transition: all 0.15s;
}
.palette-grid button.active { box-shadow: 0 0 0 2px var(--accent); }
.palette-grid i { width: 9px; height: 9px; border-radius: 50%; display: block; }

.color-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; font-size: 14px;
}
.color-row input[type="color"] {
  -webkit-appearance: none; appearance: none;
  width: 42px; height: 28px; border: 1px solid var(--hairline);
  border-radius: 8px; padding: 0; background: none; cursor: pointer;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.color-row input[type="color"]::-moz-color-swatch { border: none; border-radius: 6px; }

/* ── Модал экспорта ────────────────────────────────────────── */

.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn { from { opacity: 0; } }

.modal-card {
  position: relative;
  background: var(--surface); border-radius: 24px;
  padding: 28px; width: min(540px, 94vw);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } }

.modal-close { position: absolute; top: 16px; right: 16px; font-size: 14px; }
.modal-card h3 { font-size: 22px; margin-bottom: 16px; }

.export-preview {
  border-radius: 16px; border: 1px solid var(--hairline);
  height: 150px; display: flex; align-items: center; justify-content: center;
  padding: 4% 8%; margin-bottom: 12px;
}
.export-preview svg { width: 100%; height: 100%; }

.export-status { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; min-height: 18px; }

.export-list { margin-bottom: 18px; }
.export-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
}
.export-row:last-child { border-bottom: none; }
.export-row b { display: block; font-size: 14px; font-weight: 600; }
.export-row span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.export-row .btn-secondary { padding: 7px 16px; font-size: 13px; }

/* ── Тост ──────────────────────────────────────────────────── */

.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 300;
  transform: translate(-50%, 16px);
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-md);
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Появление при прокрутке ───────────────────────────────── */

.reveal { opacity: 0; transform: translateY(26px); transition: all 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .showcase-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 980px) {
  .editor-body { grid-template-columns: 1fr; }
  .editor-panel {
    border-left: none; border-top: 1px solid var(--hairline);
    position: static; max-height: none;
  }
  .editor-canvas { height: 38vh; min-height: 300px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero { padding-top: 70px; }
  .results-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .mockups { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .icon-grid { grid-template-columns: repeat(6, 1fr); }
  .palette-grid { grid-template-columns: repeat(8, 1fr); }
  .results-head { flex-direction: column; align-items: stretch; }

  /* Топбар редактора не должен вылезать за экран */
  .editor-topbar { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .editor-actions { gap: 5px; flex-wrap: wrap; }
  .editor-topbar .btn-ghost { padding: 8px 8px; font-size: 14px; }
  .editor-topbar .btn-primary, .editor-topbar .btn-secondary { padding: 8px 14px; font-size: 13px; }
}

/* Тач-цели: на устройствах без точного указателя — минимум ~44px */
@media (pointer: coarse) {
  .chip-grid button { min-height: 44px; padding: 10px 16px; }
  .tabs button, .segmented button { min-height: 40px; }
  .color-row input[type="color"] { width: 52px; height: 36px; }
  .ctl-switch { min-height: 44px; }
  .font-list button { min-height: 44px; }
}
