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

:root {
  /* Terra */
  --terra-deep: #8b3a1e;
  --terra-dark: #9e4828;
  --terra: #b85c38;
  --terra-500: #c97a5c;
  --terra-mute: #d9a08a;
  --terra-soft: #e8c4b0;
  --terra-wash: #fff4ef;
  --terra-light: var(--terra-soft);

  /* Sage */
  --sage-deep: #3d5e42;
  --sage-dark: #527358;
  --sage: #6b8f71;
  --sage-500: #8baf90;
  --sage-mute: #b3cdab;
  --sage-soft: #dce8de;
  --sage-wash: #f0f5f0;
  --sage-light: var(--sage-soft);

  /* Sky */
  --sky-deep: #3d6478;
  --sky-dark: #527a90;
  --sky: #6b8fa8;
  --sky-500: #8badc0;
  --sky-mute: #b3cdd9;
  --sky-soft: #d8e6ef;
  --sky-wash: #edf3f7;
  --sky-light: var(--sky-soft);

  /* Honey */
  --honey-deep: #9e7a1e;
  --honey-dark: #b8922a;
  --honey: #d4ad3c;
  --honey-500: #e0c36a;
  --honey-mute: #ecda98;
  --honey-soft: #f5ebc4;
  --honey-wash: #fdf8eb;

  /* Neutrals */
  --ink: #1c1a17;
  --ink-soft: #4a4540;
  --ink-muted: #8c857c;
  --cream-dark: #d4cdbe;
  --border: #ddd6ca;
  --border-soft: #ede8df;
  --cream: #f5f0e8;
  --warm-white: #fdfaf5;
  --white: #ffffff;

  /* States */
  --success: #4a8b57;
  --success-bg: #eff6f0;
  --warning: #c4882a;
  --warning-bg: #fdf6eb;
  --error: #c44a3a;
  --error-bg: #fdeeeb;
  --error-border: #f0c4be;
  --success-border: #c4dfc8;
  --overlay-dark: color-mix(in srgb, var(--ink) 50%, transparent);
  --overlay-caption: color-mix(in srgb, var(--ink) 70%, transparent);
  --overlay-glass-bg: color-mix(in srgb, var(--warm-white) 55%, transparent);
  --overlay-glass-border: color-mix(in srgb, var(--border) 60%, transparent);

  /* Typography */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 50%;
  --radius-pill: var(--radius-lg);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 26, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 8px 24px rgba(28, 26, 23, 0.1);
  --shadow-xl: 0 16px 48px rgba(28, 26, 23, 0.12);

  /* Spacing (4px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Motion */
  --transition: 0.15s ease;
  --transition-slow: 0.3s ease;

  /* Layout */
  --container-max: 1080px;
  --header-h: 72px;
}

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

/* ——— Buttons (§04) ——— */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  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;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terra-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--terra);
}

.btn-ghost:hover {
  background: var(--terra-wash);
}

.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(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.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: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--cream);
}

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

.card__title,
.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: var(--space-sm) 0;
  color: var(--ink);
}

.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(--white);
  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: 50%;
  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(--white);
  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(--warm-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}

.cta-title,
.cta-block__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}

.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(--sky-wash);
}

/* ——— Reviews (§14) ——— */
.review,
.review-card {
  background: var(--white);
  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: 50%;
  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(--white);
  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: 50%;
  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(--white);
  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-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition);
}

.skill-card:hover {
  box-shadow: var(--shadow-md);
}

.skill-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.skill-card__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.skill-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  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);
}
