/*
  NORMA v2 — clean core for Tilda.
  Подключается один раз перед HTML-блоками страницы.
  Здесь находятся только токены и действительно общие примитивы.
*/

:root {
  --norma-grey: #313131;
  --norma-black: #000000;
  --norma-yellow: #fef073;
  --norma-underline: #f2b84b;
  --norma-bg: #f5f5f5;
  --norma-white: #ffffff;

  --norma-text: var(--norma-grey);
  --norma-text-muted: rgba(49, 49, 49, 0.68);
  --norma-line: rgba(49, 49, 49, 0.18);
  --norma-line-strong: rgba(49, 49, 49, 0.42);

  --norma-font: "SuiPt", Arial, sans-serif;
  --norma-accent-font: "SuiPt", Georgia, serif;
  --norma-radius: 3px;
  --norma-pill: 999px;
  --norma-floating-panel-radius: 28px;
  --norma-floating-shadow: 0 18px 46px rgba(49, 49, 49, 0.1);
  --norma-container: 1280px;
  --norma-page-gutter: 40px;
  --norma-section-space: clamp(96px, 9vw, 144px);
}

.norma-section,
.norma-section * {
  box-sizing: border-box;
}

.norma-section {
  margin: 0;
  color: var(--norma-text);
  background: var(--norma-white);
  font-family: var(--norma-font);
  font-style: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.norma-section--soft {
  background: var(--norma-bg);
}

.norma-section--dark {
  color: var(--norma-white);
  background: var(--norma-grey);
}

.norma-container {
  width: min(
    var(--norma-container),
    calc(100% - (var(--norma-page-gutter) * 2))
  );
  margin-inline: auto;
}

.norma-section__inner {
  padding-block: var(--norma-section-space);
}

.norma-eyebrow {
  margin: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.norma-heading {
  margin: 0;
  color: var(--norma-grey);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.norma-heading--display {
  font-size: clamp(64px, 6.2vw, 106px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.052em;
}

.norma-heading--section {
  font-size: clamp(46px, 4.4vw, 72px);
}

.norma-editorial-accent {
  font-family: var(--norma-accent-font);
  font-weight: 700;
  font-style: italic;
  text-decoration-line: underline;
  text-decoration-color: var(--norma-underline);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.07em;
  text-decoration-skip-ink: none;
}

.norma-section--dark .norma-heading {
  color: var(--norma-white);
}

.norma-copy {
  margin: 0;
  color: var(--norma-text-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.norma-section--dark .norma-copy {
  color: rgba(255, 255, 255, 0.7);
}

.norma-button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--norma-grey);
  border-radius: var(--norma-pill);
  color: var(--norma-white);
  background: var(--norma-grey);
  font-family: var(--norma-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.norma-button:hover {
  border-color: var(--norma-grey);
  color: var(--norma-grey);
  background: var(--norma-yellow);
}

.norma-button--secondary {
  color: var(--norma-grey);
  background: transparent;
}

.norma-button--secondary:hover {
  border-color: var(--norma-grey);
  color: var(--norma-grey);
  background: var(--norma-yellow);
}

.norma-button:focus-visible {
  outline: 3px solid var(--norma-yellow);
  outline-offset: 3px;
}

.norma-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--norma-line);
  border-radius: var(--norma-radius);
  color: var(--norma-grey);
  background: var(--norma-white);
}

.norma-card--accent {
  background: var(--norma-yellow);
}

.norma-index {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  :root {
    --norma-page-gutter: 24px;
    --norma-section-space: clamp(72px, 9vw, 104px);
  }
}

@media (max-width: 640px) {
  :root {
    --norma-page-gutter: 20px;
    --norma-section-space: clamp(56px, 18vw, 80px);
  }

  .norma-button {
    min-height: 50px;
  }

  .norma-card {
    padding: 20px;
  }

  .norma-heading--display {
    font-size: clamp(42px, 13.5vw, 56px);
    line-height: 0.94;
    letter-spacing: -0.045em;
  }

  .norma-heading--section {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .norma-button {
    transition: none;
  }
}
