/* === Reset === */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* === Typography helpers === */
.t-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Главный паттерн заголовков Энцо: крупные uppercase, как «ПРОЖИВАНИЕ» */
.t-section-title {
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.t-h2 {
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.1;
}

.t-h3 {
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.2;
}

.t-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Курсив-засечка для аккуратных бренд-акцентов («Алхимия деталей») */
.t-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1640px; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--cream { background: var(--bg); }
.section--soft { background: var(--bg-soft); }
.section--olive { background: var(--bg-dark); color: var(--on-dark); }
.section--olive .t-eyebrow { color: var(--on-dark-mute); }
.section--olive .t-section-title { color: var(--on-dark); }

/* === Buttons (rectangular, в духе ENZO) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--cream { background: var(--bg); color: var(--ink); }
.btn--cream:hover { background: var(--accent); color: var(--accent-ink); }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--accent); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn--outline-light { background: transparent; color: var(--on-dark); border-color: rgba(236,233,225,.4); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

.btn--lg { padding: 20px 36px; font-size: var(--fs-sm); }

/* Inline arrow link, в духе «Все номера →» */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.arrow-link:hover { color: var(--accent); border-color: var(--accent); gap: 18px; }
.arrow-link--light { color: var(--on-dark); border-color: rgba(236,233,225,.35); }
.arrow-link--light:hover { color: var(--accent-ink); border-color: var(--on-dark); }

/* === Section heading row — заголовок + ссылка/линия === */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}
.section-head__line {
  height: 1px;
  background: var(--line);
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 56px;
}
.section-head--center .t-section-title { font-size: clamp(32px, 5vw, 48px); }

@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head__line { display: none; }
}

/* === Utility === */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
