@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #161826;
  --card: #232532;
  --card-border: color-mix(in srgb, #e9e9ed 16%, transparent);
  --accent: #9184d9;
  --accent-dark: #796cbf;
  --accent-tint: #d2cefd;
  --text: #e9e9ed;
  --text-muted: color-mix(in srgb, #e9e9ed 55%, transparent);
  --neutral-100: #f3f5fe;
  --neutral-300: #cfd3e5;
  --neutral-400: #b2b6ca;
  --neutral-500: #9397ab;
  --neutral-600: #75798c;
  --neutral-700: #595d6c;
  --neutral-800: #3f424d;
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Inter", system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow-wrap: break-word;
}

p, span, a, li { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header, section, footer { position: relative; z-index: 1; }

/* nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.logo-text { white-space: nowrap; }
.logo span.accent-text { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--text-muted);
  margin-right: auto;
  margin-left: 12px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
}
.menu-backdrop.open { display: block; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 300px);
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  border-left: 1px solid var(--card-border);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  margin-bottom: 20px;
}
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
  padding: 14px 4px;
  font-size: 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
}
.mobile-menu-links a:last-child { border-bottom: none; }
.mobile-menu-links a.is-active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 12px;
  padding: 6px 11px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--card-border); }
a.lang-btn:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.lang-btn.active {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  cursor: default;
}
.nav-cta .cta-icon { display: none; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-heading);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { color: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border);
}
.btn-outline:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }

/* hero */
.hero {
  padding: 110px 0 90px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin: 0 auto 22px;
}
.hero p {
  font-size: 18px;
  color: var(--neutral-300);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* home catalog */
.catalog {
  padding: 20px 0 100px;
}
.catalog-group + .catalog-group {
  margin-top: 64px;
}
.catalog-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.catalog-group-head h2 {
  font-size: 26px;
  margin: 0;
}
.catalog-group-note {
  font-size: 13px;
  color: var(--neutral-500);
  margin: 0;
}
.catalog-group-rule {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 8px;
}
.catalog-group-rule.is-muted { background: var(--neutral-700); }

.catalog-list { display: flex; flex-direction: column; }
.catalog-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 4px;
  border-top: 1px solid var(--card-border);
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.catalog-list > :last-child { border-bottom: 1px solid var(--card-border); }
a.catalog-row:hover .catalog-row-title { color: var(--accent); }
a.catalog-row:hover .catalog-row-arrow { transform: translateX(3px); }
.catalog-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-600);
  padding-top: 3px;
}
.catalog-row.is-soon .catalog-num { color: var(--neutral-700); }
.catalog-row-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}
.catalog-row-head { display: flex; flex-direction: column; gap: 6px; }
.catalog-row-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}
.catalog-row.is-soon .catalog-row-title { color: var(--neutral-400); }
.catalog-row-tagline { font-size: 12px; color: var(--neutral-500); }
.catalog-row.is-soon .catalog-row-tagline { color: var(--neutral-600); }
.catalog-row-desc {
  font-size: 14px;
  color: var(--neutral-400);
  max-width: 46ch;
}
.catalog-row.is-soon .catalog-row-desc { color: var(--neutral-600); }
.catalog-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.catalog-row-arrow {
  font-size: 15px;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 6px;
}
.tag-available { background: var(--neutral-800); color: var(--neutral-100); }
.tag-soon { border: 1px solid var(--neutral-700); color: var(--neutral-500); }

/* home product sections */
.kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-tint);
  margin-bottom: 14px;
}
.chess {
  display: flex;
  align-items: center;
  gap: 64px;
}
.chess.reverse { flex-direction: row-reverse; }
.chess-text { flex: 1; min-width: 0; }
.chess-media { flex: 1; min-width: 0; }
.chess-text h2 { font-size: 30px; margin-bottom: 16px; }
.chess-text > p.scene {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.benefits { list-style: none; margin-bottom: 28px; }
.benefits li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.placeholder {
  aspect-ratio: 2 / 1;
  border: 1.5px dashed var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.chess-media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* product page sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
}
.section.alt { background: rgba(23, 18, 32, 0.4); }
.section h2 { font-size: 28px; margin-bottom: 16px; }
.section-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-intro h2 { margin-bottom: 0; }
.scene-block { margin-bottom: 26px; }
.scene-block:last-child { margin-bottom: 0; }
.scene-block h3 { font-size: 18px; margin-bottom: 8px; }
.scene-block p { color: var(--text-muted); font-size: 15px; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 36px;
  max-width: 900px;
  margin: 0 auto;
}
.benefits-grid .item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  text-align: left;
}
.benefits-grid .item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.device-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.device-box p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 18px 0;
}
.device-highlight {
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}
.template-productpage .hero h1 {
  font-size: 42px;
  margin: 14px auto 18px;
}
.template-productpage .hero p {
  font-size: 17px;
  margin: 0 auto 32px;
}
.template-productpage .hero .kicker { margin-bottom: 0; }

/* calculator (placeholder — will be redesigned) */
.calc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}
.calc-head h2 { margin: 0; max-width: 32ch; font-size: clamp(24px, 3vw, 30px); }
.calc-head-note {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  color: var(--neutral-400);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calc-inputs, .calc-result {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-inputs { background: var(--bg); }
.calc-result { background: var(--card); }
.calc-inputs label, .calc-result label { margin-bottom: 6px; }
.calc-inputs label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calc-slider-value {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc-hint { font-size: 12px; color: var(--neutral-500); }

/* slider inputs (calculator) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--card-border);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--card-border);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
input[type="range"]:focus-visible::-webkit-slider-thumb,
input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: flex-start;
}
.seg-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
.seg-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--card-border); }
.seg-opt:has(input:checked) { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--text) 7%, transparent); }

.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-table td { padding: 6px 0; color: var(--neutral-400); }
.calc-table td:last-child {
  text-align: right;
  color: var(--text);
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}
.calc-eyebrow {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tint);
}
.calc-figure {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.5vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.calc-figure-note { margin: 0; font-size: 14px; color: var(--neutral-400); }
.calc-rule { display: block; width: 28px; height: 2px; background: var(--accent); }
.calc-summary { margin: 0; font-size: 14px; color: var(--neutral-300); max-width: 42ch; }
.calc-result .btn { align-self: flex-start; margin-top: auto; }

/* form */
.form-section {
  padding: 90px 0;
  border-top: 1px solid var(--card-border);
}
.form-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.form-card h2 { font-size: 28px; margin-bottom: 10px; }
.form-card > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}
form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 90px; }
form .btn-primary { margin-top: 8px; align-self: flex-start; }
.form-message {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  text-align: left;
}
.form-message-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.form-message-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 36px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.footer-credit-logo {
  width: 16px;
  height: 16px;
  display: block;
}
.footer-credit a:hover { color: var(--text); }

/* blog index */
.hero.blog-hero {
  padding: 90px 0 60px;
}
.hero.blog-hero h1 {
  font-size: 42px;
  margin: 14px auto 18px;
}
.hero.blog-hero p {
  font-size: 17px;
  margin: 0 auto;
}
.blog-section { padding: 20px 0 100px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.blog-card:hover { border-color: var(--accent); }
.blog-card .cover {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.blog-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card .cat { font-size: 12px; color: var(--accent); }
.blog-card h3 { font-size: 18px; }
.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}
.blog-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.75;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
}
.page-btn:hover:not(.active):not(.disabled) {
  border-color: var(--accent);
  color: var(--text);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* article */
.article-section { padding: 60px 0 100px; }
.article-wrap { max-width: 720px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--text); }
.article-wrap h1 {
  font-size: 36px;
  margin-bottom: 14px;
}
.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.article-cover {
  aspect-ratio: 16 / 9;
  border: 1.5px dashed var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 40px;
  overflow: hidden;
}
.article-cover.has-image {
  border-style: solid;
  padding: 0;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body,
.article-body .rich-text {
  font-size: 16px;
  color: var(--text-muted);
}
.article-body :is(h2, h3) {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--text);
}
.article-body h3 { font-size: 18px; }
.article-body :is(p, ul, ol) {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article-body :is(ul, ol) {
  padding-left: 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--text); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
}
.legal-wrap { max-width: 720px; margin: 0 auto; }
.legal-wrap h1 { font-size: 34px; margin-bottom: 10px; }
.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.legal-intro {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner-actions .btn { padding: 10px 18px; font-size: 14px; }
.footer-cookie-settings {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  background: rgba(139, 92, 246, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-cta {
  margin: 48px 0 8px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 2px solid var(--accent);
  text-align: center;
}
.article-cta p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 16px;
}
.related-title {
  font-size: 20px;
  margin: 64px 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.related-card:hover { border-color: var(--accent); }
.related-card .cat { font-size: 12px; color: var(--accent); }
.related-card h3 { font-size: 16px; }


.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .nav-cta .cta-text { display: none; }
  .nav-cta .cta-icon { display: inline-flex; }
  .nav-cta { padding: 12px; border-radius: 50%; }

  .hero {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
  }
  .hero h1 { font-size: 32px; }
  .hero .btn { align-self: center; flex-shrink: 0; }

  .chess, .chess.reverse { flex-direction: column; text-align: center; }
  .chess-text { text-align: center; }
  .chess-media { width: 100%; max-width: 520px; margin: 0 auto; }

  .catalog-row { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 20px 4px; }
  .catalog-row-body { gap: 10px; }
  .catalog-row-meta { justify-content: flex-start; }

  .benefits { text-align: center; }
  .benefits li { padding-left: 0; }
  .benefits li::before {
    position: static;
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    vertical-align: middle;
  }
  .scene-block { text-align: center; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-grid .item { text-align: center; justify-content: center; }
  .template-productpage .hero h1 { font-size: 30px; }

  .form-section .wrap { padding: 0; }
  .form-card {
    max-width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 28px 20px;
  }

  .wrap { padding: 0 20px; }
  .hero.blog-hero {
    min-height: 0;
    padding: 56px 0 40px;
  }
  .hero.blog-hero h1 { font-size: 28px; }
  .hero.blog-hero p { font-size: 15px; }

  .blog-section { padding: 40px 0 64px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card .body { padding: 18px; }
  .pagination { gap: 6px; margin-top: 40px; }
  .page-btn { min-width: 34px; height: 34px; font-size: 13px; }

  .article-section { padding: 56px 0 64px; }
  .article-wrap h1 { font-size: 26px; }
  .article-meta { margin-bottom: 24px; }
  .article-cover { margin-bottom: 28px; }
  .article-body :is(h2, h3) { font-size: 20px; margin: 28px 0 12px; }
  .article-body h3 { font-size: 17px; }
  .article-body :is(p, ul, ol, li) { font-size: 15px; }
  .article-cta { padding: 22px; }
  .related-title { margin: 48px 0 16px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero.blog-hero h1 { font-size: 24px; }
  .article-wrap h1 { font-size: 22px; }
  .kicker { font-size: 12px; padding: 4px 12px; }
}
