/* АРТмосфера SEO — design tokens & components (source: docs/design-library.html v2) */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f3f1ee;
  --surface-2: #e8e5e0;
  --line: #dfdbd5;
  --tx: #111110;
  --tx-2: #6c6963;
  --tx-3: #8b877f;
  --acc: #c2452b;
  --acc-tx: #ffffff;
  --plate: #efece7;
  --draw: #1a1917;

  --r-img: 18px;
  --r-plate: 24px;
  --r-field: 16px;
  --r-pill: 999px;

  --disp: "Unbounded", "Golos Text", system-ui, sans-serif;
  --ui: "Golos Text", system-ui, sans-serif;

  /* Layout / motion (not palette) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --transition: 0.15s ease;
  --transition-slow: 0.3s ease;
  --container-max: 1000px;
  --header-h: 72px;

  /* Old names → v3 tokens. No second accent, no shadows. */
  --serif: var(--disp);
  --sans: var(--ui);
  --terra: var(--acc);
  --terra-deep: var(--acc);
  --terra-dark: var(--acc);
  --terra-500: var(--acc);
  --terra-mute: var(--tx-2);
  --terra-soft: var(--surface-2);
  --terra-wash: var(--surface);
  --terra-light: var(--surface-2);
  --sage-deep: var(--tx);
  --sage-dark: var(--tx-2);
  --sage: var(--tx-2);
  --sage-500: var(--tx-2);
  --sage-mute: var(--tx-3);
  --sage-soft: var(--surface-2);
  --sage-wash: var(--surface);
  --sage-light: var(--surface);
  --sky-deep: var(--tx);
  --sky-dark: var(--tx-2);
  --sky: var(--tx-2);
  --sky-500: var(--tx-2);
  --sky-mute: var(--tx-3);
  --sky-soft: var(--surface-2);
  --sky-wash: var(--surface);
  --sky-light: var(--surface);
  --honey-deep: var(--tx);
  --honey-dark: var(--tx-2);
  --honey: var(--tx-2);
  --honey-500: var(--tx-2);
  --honey-mute: var(--tx-3);
  --honey-soft: var(--surface-2);
  --honey-wash: var(--surface);
  --ink: var(--tx);
  --ink-soft: var(--tx-2);
  --ink-muted: var(--tx-2);
  --cream-dark: var(--surface-2);
  --border: var(--line);
  --border-soft: var(--line);
  --cream: var(--bg);
  --warm-white: var(--bg);
  --white: var(--bg);
  --success: var(--acc);
  --success-bg: var(--surface);
  --warning: var(--acc);
  --warning-bg: var(--surface);
  --error: var(--acc);
  --error-bg: var(--surface);
  --error-border: var(--line);
  --success-border: var(--line);
  --overlay-dark: color-mix(in srgb, var(--draw) 50%, transparent);
  --overlay-caption: color-mix(in srgb, var(--draw) 70%, transparent);
  --overlay-glass-bg: color-mix(in srgb, var(--bg) 55%, transparent);
  --overlay-glass-border: color-mix(in srgb, var(--line) 60%, transparent);
  --radius-xs: var(--r-field);
  --radius-sm: var(--r-field);
  --radius-md: var(--r-img);
  --radius-lg: var(--r-img);
  --radius-xl: var(--r-plate);
  --radius-full: var(--r-pill);
  --radius-pill: var(--r-pill);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ——— Buttons (§04) ——— */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  border: 1px solid var(--acc);
}

.btn-primary {
  background: var(--acc);
  color: var(--acc-tx);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--acc) 82%, var(--draw));
  border-color: color-mix(in srgb, var(--acc) 82%, var(--draw));
}

.btn-secondary,
.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--acc);
  border: 1px solid var(--acc);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover {
  background: var(--acc);
  color: var(--acc-tx);
  border-color: var(--acc);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 32px;
}

/* ——— Tags & badges (§21) ——— */
.badge,
.card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.tag-terra,
.badge--terra,
.badge.tag-terra {
  background: var(--terra-wash);
  color: var(--terra);
}

.tag-sage,
.badge--sage,
.badge.tag-sage {
  background: var(--sage-wash);
  color: var(--sage);
}

.tag-sky,
.badge--sky,
.badge.tag-sky {
  background: var(--sky-wash);
  color: var(--sky);
}

.tag-honey,
.badge--honey,
.badge.tag-honey {
  background: var(--honey-wash);
  color: var(--honey-deep);
}

.tag-neutral,
.badge--neutral,
.badge.tag-neutral {
  background: var(--cream);
  color: var(--ink-muted);
}

/* ——— Cards (§07) ——— */
.card {
  background: var(--surface);
  border: none;
  border-radius: var(--r-plate);
  box-shadow: none;
}

.card:hover {
  box-shadow: none;
}

.card__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream);
}

.card__media img,
.card__media .card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__placeholder {
  display: none;
}

.card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title,
.card-title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin: var(--space-sm) 0;
  color: var(--tx);
}

.card__excerpt,
.card-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 var(--space-sm);
}

.card__link,
.card-link {
  font-size: 14px;
  color: var(--terra);
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
}

.card--demo {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ——— Steps (§11) ——— */
.step,
.steps .step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
}

.step-num,
.step__num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.step-title,
.step__title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
}

.step-text,
.step__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ——— Stats (§10) ——— */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.stat-number,
.stat-card__value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--terra);
  margin: 0 0 var(--space-xs);
}

.stat-label,
.stat-card__label {
  font-size: 14px;
  font-weight: 500;
  margin: var(--space-xs) 0 0;
  color: var(--ink);
}

.stat-desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}

.stat-bar {
  height: 6px;
  background: var(--cream);
  border-radius: 3px;
  margin-top: var(--space-sm);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--sage);
}

/* ——— CTA (§19) ——— */
.cta-block {
  background: var(--surface);
  border: none;
  border-radius: var(--r-plate);
  padding: var(--space-xl);
  text-align: center;
}

.cta-title,
.cta-block__title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  text-transform: lowercase;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-sm);
  color: var(--tx);
  line-height: 1.08;
}

.cta-text,
.cta-block__text {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 auto var(--space-lg);
  max-width: 480px;
  line-height: 1.5;
}

.cta-block--secondary {
  background: var(--surface);
}

/* ——— Reviews (§14) ——— */
.review,
.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
}

.review-quote {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--serif);
  font-size: 48px;
  color: var(--terra-soft);
  line-height: 1;
}

.review-stars,
.review-card__stars {
  color: var(--honey);
  font-size: 14px;
  margin: 0 0 var(--space-sm);
  letter-spacing: 2px;
}

.review-text,
.review-card__quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 var(--space-md);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--sage-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  flex-shrink: 0;
}

.review-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.review-role,
.review-card__author {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}

/* ——— FAQ / Accordion (§09) ——— */
.accordion,
.faq {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item,
.faq__item {
  border-bottom: 1px solid var(--border-soft);
}

.accordion-item:last-child,
.faq__item:last-child {
  border-bottom: none;
}

.accordion-header,
.faq__q {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--sans);
}

.faq__q::after {
  content: none;
}

.accordion-toggle,
.faq__toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.faq__q[aria-expanded="true"] .faq__toggle {
  content: "✕";
}

.accordion-body,
.faq__a {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ——— Tables (§12) ——— */
.table-wrap,
.compare-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-lg) 0;
}

.table-wrap table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.table-wrap th,
.compare-table th {
  text-align: left;
  padding: 12px var(--space-md);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}

.table-wrap td,
.compare-table td {
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.table-wrap tr:last-child td,
.compare-table tr:last-child td {
  border-bottom: none;
}

td.price,
.compare-table td:last-child {
  font-weight: 600;
  color: var(--terra);
  text-align: right;
}

.table-wrap th:last-child,
.compare-table th:last-child {
  text-align: right;
}

/* ——— Breadcrumbs (§20) ——— */
.breadcrumb,
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb a,
.breadcrumbs__item a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumbs__item a:hover {
  color: var(--terra);
}

.breadcrumb-sep,
.breadcrumbs__item:not(:last-child)::after {
  color: var(--border);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "→";
  margin-left: var(--space-xs);
}

.breadcrumb-current,
.breadcrumbs__item--current {
  color: var(--ink-soft);
}

/* ——— Skill cards ——— */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
  align-items: stretch;
}

.skill-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.skill-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.skill-card-title {
  margin: var(--space-lg) var(--space-lg) var(--space-md);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.skill-card-text {
  margin: 0 var(--space-lg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ——— Footer (§18) ——— */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
  background: var(--cream);
  color: var(--ink-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--terra);
}

.footer-brand-name,
.site-footer__brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

.site-footer__desc {
  margin: 0 0 var(--space-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.footer-col-title,
.site-footer__heading {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 var(--space-md);
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin-bottom: var(--space-xs);
}

.site-footer__copy {
  margin: var(--space-md) 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
