/* ══════════════════════════════════════════════════════════════════════
   SEO-страницы: статьи про электронное меню и бесплатный генератор QR.
   Палитру и кнопки берут из landing.css (класс .lp); здесь только вёрстка
   статьи. Один шрифт — Fixel, подключён в tokens.css.
   ══════════════════════════════════════════════════════════════════════ */

.seo {
  background: var(--bg);
  color: var(--on-bg);
  font-family: "Fixel Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.seo-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.seo-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.seo-brand {
  font-family: "Fixel Display", "Fixel Text", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-deep);
  text-decoration: none;
}
.seo-head__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.seo-head__link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.seo-head__link:hover {
  text-decoration: underline;
}
.seo-head__cta {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 0.95rem;
}
@media (max-width: 639px) {
  .seo-head__link {
    display: none;
  }
  .seo-head__cta {
    padding-inline: 12px;
    font-size: 0.9rem;
  }
}

.seo-main {
  flex: 1;
  padding-block: 20px 56px;
}

.seo-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.seo-crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--ink-soft);
}
.seo-crumbs a {
  color: var(--accent-strong);
}

.seo-article {
  max-width: 760px;
  min-width: 0;
}
.seo-article h1 {
  font-family: "Fixel Display", "Fixel Text", system-ui, sans-serif;
  font-size: clamp(1.7rem, 5.4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--green-deep);
  overflow-wrap: anywhere;
}
.seo-article h2 {
  font-family: "Fixel Display", "Fixel Text", system-ui, sans-serif;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  line-height: 1.25;
  margin: 40px 0 12px;
  color: var(--green-deep);
  overflow-wrap: anywhere;
}
.seo-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.seo-article p,
.seo-article li {
  overflow-wrap: break-word;
}
.seo-article p {
  margin: 0 0 14px;
}
.seo-article ul,
.seo-article ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}
.seo-article li {
  margin-bottom: 8px;
}
.seo-article a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}
.seo-article a.btn {
  color: var(--on-accent);
  text-decoration: none;
}

.seo-steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}
.seo-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.seo-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.seo-steps strong,
.seo-steps span {
  display: block;
}
.seo-steps strong {
  margin-bottom: 4px;
}

.seo-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-strong);
  background: var(--success-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.seo-note p {
  margin: 0;
}

.seo-table {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.seo-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.95rem;
}
.seo-table th,
.seo-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.seo-table thead th {
  background: var(--bg-deep);
}
.seo-table tbody th {
  font-weight: 600;
}
.seo-table tr:last-child th,
.seo-table tr:last-child td {
  border-bottom: 0;
}

.seo-cta {
  margin: 44px 0 8px;
  padding: 24px 20px;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--card-radius);
}
.seo-article .seo-cta h2 {
  margin: 0 0 8px;
  color: #fff;
}
.seo-cta p {
  color: var(--mint);
}
.seo-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px;
  margin-bottom: 10px;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  min-height: 44px;
}
.seo-faq details p {
  margin: 0 0 14px;
}
.seo-related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.seo-related li {
  margin: 0;
}
.seo-related a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  background: var(--surface);
}
.seo-related a:hover {
  border-color: var(--accent-strong);
}

.seo-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: 28px;
  font-size: 0.95rem;
}
.seo-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.seo-foot__title {
  font-weight: 700;
  margin: 0 0 8px;
}
.seo-foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.seo-foot a {
  color: var(--accent-strong);
}
.seo-foot__legal {
  display: grid;
  gap: 6px;
  align-content: start;
}

/* ─── Генератор QR-кода ─── */

.qr-tool {
  margin: 8px 0 12px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}
.qr-tool__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.qr-field {
  min-width: 0;
}
.qr-field--wide {
  grid-column: 1 / -1;
}
.qr-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.qr-field input[type="url"],
.qr-field input[type="text"],
.qr-field select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.qr-field input[type="color"] {
  width: 100%;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}
.qr-hint {
  margin: 6px 0 0 !important;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.qr-contrast {
  margin: 12px 0 0 !important;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.qr-contrast[data-state="bad"] {
  color: var(--danger);
  font-weight: 600;
}
.qr-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.qr-error {
  margin: 12px 0 0 !important;
  color: var(--danger);
  font-weight: 600;
}
.qr-preview {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.qr-preview[hidden] {
  display: none;
}
.qr-preview img {
  width: 160px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.qr-preview figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (max-width: 479px) {
  .qr-tool__fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .qr-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* На телефоне предпросмотр кода остаётся на экране, пока заполняют длинную форму. */
@media (max-width: 639px) {
  .qr-preview {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }
  .qr-preview img {
    width: 88px;
    flex: none;
  }
  .qr-preview figcaption {
    font-size: 0.8rem;
  }
}
