/* ==========================================================================
   НИИЭФА — дизайн-система, синяя версия
   Без дополнительных цветов. Текст, ссылки и заголовки — #003274
   ========================================================================== */

/* --------------------------------------------------------------------------
   Шрифт Rosatom — фирменные начертания (ParaType)
   Light 300 · Regular 400 · Bold 700 · Italic 400
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Rosatom";
  src:
    url("../font/Rosatom_web/Rosatom-Light_W/Rosatom-Light_W.woff2") format("woff2"),
    url("../font/Rosatom_web/Rosatom-Light_W/Rosatom-Light_W.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rosatom";
  src:
    url("../font/Rosatom_web/Rosatom-Regular_W/Rosatom-Regular_W.woff2") format("woff2"),
    url("../font/Rosatom_web/Rosatom-Regular_W/Rosatom-Regular_W.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rosatom";
  src:
    url("../font/Rosatom_web/Rosatom-Bold_W/Rosatom-Bold_W.woff2") format("woff2"),
    url("../font/Rosatom_web/Rosatom-Bold_W/Rosatom-Bold_W.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rosatom";
  src:
    url("../font/Rosatom_web/Rosatom-Italic_W/Rosatom-Italic_W.woff2") format("woff2"),
    url("../font/Rosatom_web/Rosatom-Italic_W/Rosatom-Italic_W.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Токены
   -------------------------------------------------------------------------- */

:root {
  /* Основные цвета */
  --color-primary: #003274;
  --color-primary-soft: #6cace4;
  --color-neutral: #333333;
  --color-accent: #259789;

  /* Текст, ссылки, заголовки — первый синий */
  --color-black: #003274;
  --color-ink: #003274;
  --color-muted: #003274;
  --color-slate: #003274;
  --color-action: #003274;

  /* Служебные, без доп. палитры */
  --color-white: #ffffff;
  --color-surface: rgba(0, 50, 116, 0.08);
  --color-on-dark-soft: rgba(255, 255, 255, 0.14);
  --color-line: rgba(0, 50, 116, 0.14);
  --color-wash: rgba(0, 50, 116, 0.05);

  /* Типографика: шкала от заданных h1 / p / p.small */
  --font: "Rosatom", sans-serif;

  --fs-h1: 45px;
  --lh-h1: 110%;
  --fw-h1: 600;

  --fs-h2: 36px;
  --lh-h2: 110%;
  --fw-h2: 600;

  --fs-h3: 28px;
  --lh-h3: 115%;
  --fw-h3: 600;

  --fs-h4: 22px;
  --lh-h4: 120%;
  --fw-h4: 600;

  --fs-h5: 18px;
  --lh-h5: 125%;
  --fw-h5: 600;

  --fs-h6: 16px;
  --lh-h6: 125%;
  --fw-h6: 600;

  --fs-body: 18px;
  --lh-body: 125%;
  --fw-body: 500;

  --fs-small: 14px;
  --lh-small: 125%;
  --fw-small: 600;

  --fs-caption: 12px;
  --lh-caption: 130%;
  --fw-caption: 500;

  /* Радиусы */
  --radius-m: 12px;
  --radius-full: 40px;

  /* Отступы */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --footer-gap: var(--space-80);

  /* Слои */
  --z-header: 1005;
  --z-overlay: 1200;

  /* Сетка */
  --container-max: 1920px;
  --container-pad: 16px;

  /* Движение */
  --ease: 240ms ease;

  /* Оболочка каталога */
  --ds-nav-width: 260px;
}

/* --------------------------------------------------------------------------
   Сброс
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Сетка
   Header, footer и фоны секций — на всю ширину окна.
   Контент внутри, в том числе в 100% резиновых блоках, — .container.
   -------------------------------------------------------------------------- */

.container {
  margin: 0 auto;
  max-width: 1920px;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  width: 100%;
}

@media (min-width: 1025px) {
  :root {
    --container-pad: 24px;
  }
}

@media (max-width: 960px) {
  :root {
    --fs-body: 14px;
    --footer-gap: 56px;
  }
}

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.4em;
  color: var(--color-ink);
  font-family: var(--font);
}

h1 {
  font: var(--fw-h1) var(--fs-h1) / var(--lh-h1) var(--font);
}

h2 {
  font: var(--fw-h2) var(--fs-h2) / var(--lh-h2) var(--font);
}

h3 {
  font: var(--fw-h3) var(--fs-h3) / var(--lh-h3) var(--font);
}

h4 {
  font: var(--fw-h4) var(--fs-h4) / var(--lh-h4) var(--font);
}

h5 {
  font: var(--fw-h5) var(--fs-h5) / var(--lh-h5) var(--font);
}

h6 {
  font: var(--fw-h6) var(--fs-h6) / var(--lh-h6) var(--font);
}

p {
  margin: 0 0 1em;
  font: var(--fw-body) var(--fs-body) / var(--lh-body) var(--font);
  font-weight: 500;
  color: var(--color-black);
}

p.small {
  font: var(--fw-small) var(--fs-small) / var(--lh-small) var(--font);
  color: var(--color-black);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  font-weight: 600;
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity var(--ease);
}

a:hover {
  color: var(--color-primary);
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

ul li,
ol li {
  font: var(--fw-body) var(--fs-body) / var(--lh-body) var(--font);
  color: var(--color-black);
  margin: 0 0 0.45em;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 1.15em;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Таблица
   -------------------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  font: 500 var(--fs-h6) / var(--lh-h6) var(--font);
  color: var(--color-ink);
}

thead th {
  font: 600 var(--fs-small) / var(--lh-small) var(--font);
  color: var(--color-muted);
  text-align: left;
  letter-spacing: 0.02em;
  background: var(--color-surface);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--color-wash);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-surface);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-m);
  font: 600 var(--fs-small) / var(--lh-small) var(--font);
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease), opacity var(--ease);
}

.btn:hover {
  background-color: rgba(0, 50, 116, 0.14);
  color: var(--color-primary);
  opacity: 1;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 3px;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

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

.btn--primary:hover {
  background-color: #00255a;
  color: var(--color-white);
}

/* Кнопка «далее» — круглая, 40×40 */

.text-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease), transform var(--ease), opacity var(--ease);
}

.text-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
  text-decoration: none;
}

.text-btn:focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 3px;
}

.text-btn--on-dark {
  background-color: var(--color-on-dark-soft);
  color: var(--color-white);
}

.text-btn--on-dark:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.text-btn--prev .icon-base {
  transform: rotate(180deg);
}

.icon-base {
  display: block;
  flex-shrink: 0;
}

.icon-base--size-s {
  height: 16px;
  width: 16px;
}

/* --------------------------------------------------------------------------
   Чекбокс и радио
   -------------------------------------------------------------------------- */

.checkbox,
.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font: var(--fw-body) var(--fs-body) / var(--lh-body) var(--font);
  color: inherit;
  user-select: none;
}

.checkbox input,
.radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkbox__box,
.radio__mark {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1.5px solid var(--color-muted);
  background: var(--color-white);
  transition: background-color var(--ease), border-color var(--ease);
}

.checkbox__box {
  border-radius: 6px;
}

.radio__mark {
  border-radius: 50%;
}

.checkbox__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.radio__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--color-white);
  opacity: 0;
}

.checkbox input:checked + .checkbox__box,
.radio input:checked + .radio__mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox input:checked + .checkbox__box::after,
.radio input:checked + .radio__mark::after {
  opacity: 1;
}

.checkbox input:focus-visible + .checkbox__box,
.radio input:focus-visible + .radio__mark {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 3px;
}

.checkbox:has(input:disabled),
.radio:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.choice-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

/* ==========================================================================
   Оболочка страницы каталога (не для продакшен-вёрстки сайта)
   ========================================================================== */

.ds-page {
  min-height: 100vh;
}

.ds-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--ds-nav-width);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 10;
}

.ds-nav__logo {
  display: block;
  margin: 0 0 40px;
  text-decoration: none;
}

.ds-nav__logo img {
  width: 168px;
  height: auto;
}

.ds-nav__label {
  margin: 0 0 16px;
  font: 600 11px / 130% var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ds-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-nav__list li {
  margin: 0;
  padding: 0;
}

.ds-nav__list li::before {
  display: none;
}

.ds-nav__list a {
  display: block;
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font: 500 15px / 130% var(--font);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.ds-nav__list a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
  text-decoration: none;
}

.ds-nav__list a.is-active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.ds-main {
  margin-left: var(--ds-nav-width);
  padding: 56px 64px 120px;
  max-width: calc(var(--ds-nav-width) + 1080px);
}

.ds-hero {
  margin-bottom: 72px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-line);
}

.ds-hero h1 {
  margin-bottom: 12px;
}

.ds-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--color-slate);
}

.ds-section {
  margin-bottom: 80px;
  scroll-margin-top: 32px;
}

.ds-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.ds-section__head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 120%;
}

.ds-kicker {
  margin: 0;
  font: 600 12px / 130% var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.ds-note {
  margin: 16px 0 0;
  font: 500 13px / 140% var(--font);
  color: var(--color-muted);
}

.ds-label-next {
  margin-top: 32px;
}

.ds-grid {
  display: grid;
  gap: 16px;
}

.ds-grid--colors {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.ds-swatch {
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.ds-swatch__fill {
  height: 88px;
}

.ds-swatch__meta {
  padding: 14px 16px 16px;
}

.ds-swatch__name {
  display: block;
  margin: 0 0 4px;
  font: 600 14px / 125% var(--font);
  color: var(--color-ink);
}

.ds-swatch__hex {
  display: block;
  font: 500 13px / 130% var(--font);
  color: var(--color-muted);
  text-transform: uppercase;
}

.ds-type-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
}

.ds-type-row:last-child {
  border-bottom: none;
}

.ds-type-meta {
  margin: 0;
  font: 500 13px / 140% var(--font);
  color: var(--color-muted);
}

.ds-type-row h1,
.ds-type-row h2,
.ds-type-row h3,
.ds-type-row h4,
.ds-type-row h5,
.ds-type-row h6,
.ds-type-row p {
  margin: 0;
}

.ds-preview {
  padding: 32px;
  border-radius: var(--radius-m);
  background: var(--color-wash);
  border: 1px solid var(--color-line);
}

.ds-preview--dark {
  background: var(--color-primary);
  border-color: transparent;
}

.ds-preview--dark p,
.ds-preview--dark h3 {
  color: var(--color-white);
}

.ds-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ds-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ds-weights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-weights span {
  display: block;
  font-size: 22px;
  line-height: 130%;
  color: var(--color-ink);
}

.ds-table-wrap {
  overflow: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

.ds-links p {
  margin: 0 0 12px;
}

.ds-code {
  margin: 0;
  padding: 20px 24px;
  overflow: auto;
  border-radius: var(--radius-m);
  background: var(--color-primary);
  color: var(--color-white);
  font: 500 13px / 160% ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ds-code code {
  font: inherit;
  color: inherit;
}

.ds-schema {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

.ds-schema + .ds-schema {
  margin-top: 16px;
}

.ds-schema__window {
  background: var(--color-wash);
}

.ds-schema__band {
  width: 100%;
}

.ds-schema__band--header {
  background: var(--color-primary);
}

.ds-schema__band--main {
  background: var(--color-surface);
}

.ds-schema__band--footer {
  background: var(--color-ink);
}

.ds-schema__band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.ds-schema__window--wide .container {
  max-width: calc(100% - 112px);
}

.ds-schema__band--header .container,
.ds-schema__band--footer .container {
  color: var(--color-white);
}

.ds-schema__band--main .container {
  min-height: 88px;
  color: var(--color-ink);
}

.ds-schema__caption {
  margin: 0;
  padding: 10px 16px 12px;
  font: 500 13px / 140% var(--font);
  color: var(--color-muted);
  background: var(--color-wash);
  border-top: 1px solid var(--color-line);
}

.ds-schema__mark {
  font: 600 12px / 130% var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.ds-schema__mark--inner {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.ds-schema__band--main .ds-schema__mark--inner {
  background: #fff;
  color: var(--color-primary);
}

.ds-rules {
  margin: 0 0 24px;
}

.ds-rules li {
  color: var(--color-slate);
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px;
  }

  .ds-page {
    display: flex;
    flex-direction: column;
    overflow-x: clip;
  }

  .ds-nav {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 14px;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ds-nav__logo {
    margin: 0;
    align-self: flex-start;
    flex-shrink: 0;
  }

  .ds-nav__logo img {
    width: 108px;
  }

  .ds-nav > div {
    min-width: 0;
  }

  .ds-nav__label {
    display: none;
  }

  .ds-nav__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ds-nav__list::-webkit-scrollbar {
    display: none;
  }

  .ds-nav__list a {
    white-space: nowrap;
    padding: 6px 10px;
    margin: 0;
    font-size: 13px;
  }

  .ds-main {
    margin-left: 0;
    max-width: none;
    padding: 24px 16px 64px;
  }

  .ds-hero {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .ds-hero h1 {
    font-size: clamp(28px, 7vw, 45px);
  }

  .ds-section {
    margin-bottom: 48px;
    scroll-margin-top: 120px;
  }

  .ds-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .ds-preview {
    padding: 16px;
  }

  .ds-grid--colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-type-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .ds-type-row h1 {
    font-size: 32px;
  }

  .ds-type-row h2 {
    font-size: 26px;
  }

  .ds-type-row h3 {
    font-size: 22px;
  }

  .ds-type-row h4 {
    font-size: 20px;
  }

  .ds-type-row h5,
  .ds-type-row h6 {
    font-size: 16px;
  }

  .ds-weights span {
    font-size: 18px;
    line-height: 135%;
  }

  .ds-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ds-row .btn {
    width: 100%;
    justify-content: center;
  }

  .ds-schema__band .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .ds-schema__window--wide .container {
    max-width: 100%;
  }

  .ds-schema__band--main .container {
    min-height: 64px;
  }

  .ds-schema__mark {
    max-width: 100%;
    word-break: break-word;
  }

  .ds-code {
    padding: 14px 16px;
    font-size: 12px;
  }

  .ds-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 520px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 108px;
  }

  .ds-nav {
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .ds-nav__logo img {
    width: 96px;
  }

  .ds-nav__list a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .ds-main {
    padding: 20px 12px 56px;
  }

  .ds-section {
    scroll-margin-top: 108px;
  }

  .ds-grid--colors {
    grid-template-columns: 1fr;
  }

  .ds-type-row h1 {
    font-size: 28px;
  }

  .ds-type-row h2 {
    font-size: 24px;
  }

  .ds-weights span {
    font-size: 16px;
  }

  .ds-swatch__fill {
    height: 72px;
  }
}
