/* Self-hosted fonts — critical subset only (Acari 400/600 + Lora 600, latin+cyrillic).
   Extra weights map to the same files so the browser downloads each once. */
@font-face {
  font-family: 'Acari Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'AcariSans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Acari Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'AcariSans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Acari Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-SemiBold.woff') format('woff');
}
@font-face {
  font-family: 'AcariSans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-SemiBold.woff') format('woff');
}
@font-face {
  font-family: 'Acari Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-SemiBold.woff') format('woff');
}
@font-face {
  font-family: 'AcariSans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/acari-sans/AcariSans-SemiBold.woff') format('woff');
}

/* Lora 600 — also used for 700 requests (same files) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora/lora-10.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lora/lora-10.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora/lora-12.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lora/lora-12.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Typography — AcariSans + Lora (self-hosted @font-face above) */


/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--mainColor);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.0625rem;
}

.product-main h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

/* ── Inner page title (каталог, количка, контакти) ── */
.page-title {
  display: inline-block;
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--secondaryColor);
  letter-spacing: 0.01em;
}

.page-title::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: 0.65rem;
  border-radius: 1px;
  background: color-mix(in srgb, var(--accentColor) 55%, var(--border));
}

/* ── Body text ── */
.lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

.text-body {
  color: var(--text-body);
}

.text-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.text-md {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--mainColor);
}

.text-scolor {
  color: var(--secondaryColor);
}

.text-on-dark {
  color: var(--on-dark-hover);
}

/* ── Labels & meta ── */
.text-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-label--sm {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.text-label--qty {
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin: 0;
}

.text-label--block {
  display: block;
  margin-bottom: 0.25rem;
}

.text-label--on-dark {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--on-dark-bright);
  margin-bottom: 0.45rem;
}

.product-specs dt {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

/* ── Prices ── */
.price {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondaryColor);
  margin: 0 0 0.35rem;
}

.price--card {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.price--old {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--font-sans);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ── Section titles ── */
.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondaryColor);
  line-height: 1.2;
}

.section-title::before,
.section-title::after {
  content: '✦';
  flex-shrink: 0;
  font-size: 0.58em;
  font-weight: 400;
  line-height: 1;
}

.section-intro {
  color: var(--text-muted);
  margin: 0.65rem auto 0;
  max-width: 36rem;
}

.title-sm {
  font-family: var(--font-accent);
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--secondaryColor);
}

/* ── Card product title ── */
.card-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

/* ── Decorations ── */
.accent-rule {
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-bottom: 1.25rem;
  border-radius: 1px;
  background: color-mix(in srgb, var(--accentColor) 55%, var(--border));
}

.accent-rule--sm {
  width: 2.25rem;
  margin: 1rem auto;
}

.dropcap::first-letter {
  font-family: var(--font-accent);
  font-size: 2.65em;
  float: left;
  line-height: 0.82;
  padding-right: 0.1em;
  margin-top: 0.04em;
  color: var(--secondaryColor);
}

.link-underline {
  color: var(--accentColor);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accentColor) 45%, transparent)!important;
  text-underline-offset: 0.2em;
}

.link-underline:hover {
  color: var(--secondaryColor);
  text-decoration-color: var(--secondaryColor);
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.375rem;
    gap: 0.65rem;
  }
}

/* ── Typography reference page ── */
.type { padding: 2rem 0 4rem; }
.type-block { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.type-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondaryColor); margin-bottom: 1rem; }
.type-swatches { display: flex; flex-wrap: wrap; gap: 1rem; }
.type-swatch { text-align: center; font-size: 0.75rem; color: var(--text-muted); }
.type-swatch div { width: 80px; height: 56px; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 0.35rem; }
.type-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
