/* Содериз.
   Палитра выведена из знака компании: оранжевый и фиолетовый сняты пипеткой с
   логотипа, нейтрали смещены в фиолетовый, чтобы серый читался выбранным.
   Шрифты лежат рядом в сборке, наружу страница не ходит ни за чем. */

@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/forum-cyr.d3440e24.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/forum-lat.21eb0ef1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/golos-cyr.17d048ca.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/golos-lat.9a69d0aa.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

:root {
  --paper:      #f5f3f0;
  --surface:    #ffffff;
  --surface-2:  #eeeae5;
  --ink:        #14121a;
  --ink-2:      #443f52;
  --muted:      #6b6577;
  --rule:       #ddd8d2;
  --rule-firm:  #c3bcb4;

  --violet:     #6c0cc0;
  --signal:     #fc7800;
  /* Оранжевый знака на светлой бумаге не проходит по контрасту для текста,
     поэтому у текста своя, притемнённая версия того же цвета. */
  --signal-ink: #b25000;
  --on-signal:  #1a0f00;

  --display: 'Forum', 'Times New Roman', serif;
  --body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #131117;
    --surface:    #1a1721;
    --surface-2:  #221e2c;
    --ink:        #ece9f2;
    --ink-2:      #bcb5c8;
    --muted:      #8d869c;
    --rule:       #2c2837;
    --rule-firm:  #4a4358;

    --violet:     #b071f0;
    --signal:     #ff8c1a;
    --signal-ink: #ffa04d;
    --on-signal:  #1a0f00;
  }
}
:root[data-theme="dark"] {
  --paper:      #131117;
  --surface:    #1a1721;
  --surface-2:  #221e2c;
  --ink:        #ece9f2;
  --ink-2:      #bcb5c8;
  --muted:      #8d869c;
  --rule:       #2c2837;
  --rule-firm:  #4a4358;

  --violet:     #b071f0;
  --signal:     #ff8c1a;
  --signal-ink: #ffa04d;
  --on-signal:  #1a0f00;
}

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

/* Классы задают display и перебивают служебный стиль браузера для [hidden];
   без этого спрятанное скриптом остаётся на экране. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: .92rem; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
}

/* --- шапка --- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }

.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.mark img { width: 26px; }
.mark span { font-family: var(--display); font-size: 1.3rem; letter-spacing: .09em; text-transform: uppercase; }

.nav { display: flex; gap: 24px; }
.nav a {
  font-size: .92rem; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }
@media (max-width: 1040px) { .nav { display: none; } }
@media (max-width: 480px) { .top__cta { display: none; } }

/* --- герой --- */
.hero { padding: clamp(40px, 6vw, 84px) 0 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.06;
  max-width: 20ch;
}
.hero__lead { margin: 22px 0 0; max-width: 58ch; font-size: 1.09rem; color: var(--ink-2); }

/* Измерительная шкала: отсылка к весовым комплексам и к точности вообще.
   Нарисована градиентами, поэтому ничего не грузит. */
.scale { margin-top: 38px; height: 26px; position: relative; max-width: 720px; }
.scale::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 13px;
  background:
    repeating-linear-gradient(to right, var(--rule-firm) 0 1px, transparent 1px 100%) 0 0 / 16px 7px repeat-x,
    repeating-linear-gradient(to right, var(--rule-firm) 0 1px, transparent 1px 100%) 0 0 / 80px 13px repeat-x;
}
.scale::after {
  content: ''; position: absolute; left: 0; top: 0; width: 38%; height: 13px;
  background:
    repeating-linear-gradient(to right, var(--signal) 0 1px, transparent 1px 100%) 0 0 / 16px 7px repeat-x,
    repeating-linear-gradient(to right, var(--signal) 0 1px, transparent 1px 100%) 0 0 / 80px 13px repeat-x;
}
.scale__value {
  position: absolute; left: 38%; top: 15px; transform: translateX(-50%);
  font-size: .69rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal-ink); white-space: nowrap;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  color: var(--ink); background: transparent;
  border: 1px solid var(--rule-firm); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--small { padding: 8px 15px; font-size: .85rem; }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 2px; }

/* --- иллюстрации в блоках --- */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--rule); }
.shot figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* --- плитки фактов --- */
.facts {
  list-style: none; margin: clamp(40px, 6vw, 68px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.facts li {
  padding: 22px 24px 22px 0; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
}
.facts li:last-child { border-right: 0; }
.facts li + li { padding-left: 24px; }
.facts__value {
  font-family: var(--display); font-size: 1.9rem; line-height: 1;
  color: var(--signal-ink); font-variant-numeric: tabular-nums;
}
.facts__label { font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2n) { border-right: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { border-right: 0; padding-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* --- секции --- */
.section { padding: clamp(56px, 8vw, 92px) 0; border-top: 1px solid var(--rule); }
.section h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.14; max-width: 24ch; }
.section__intro { margin: 16px 0 1em; max-width: 60ch; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }
.split p { color: var(--ink-2); }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span {
  font-size: .82rem; padding: 6px 12px;
  border: 1px solid var(--rule-firm); border-radius: 999px; color: var(--ink-2);
}

/* --- услуги --- */
.services { margin-top: 44px; }
.service {
  display: grid; grid-template-columns: minmax(200px, 26%) 1fr; gap: 40px;
  padding: 30px 0; border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service__head { display: flex; align-items: baseline; gap: 14px; }
.service__no {
  font-family: var(--display); font-size: 1rem; color: var(--signal-ink);
  font-variant-numeric: tabular-nums;
}
.service h3 { margin: 0; font-size: 1.3rem; }
.service p { color: var(--ink-2); }

.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 20px; font-size: .95rem; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border: 1px solid var(--signal); border-radius: 1px;
}
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 14px; } }

/* --- продукты --- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-top: clamp(40px, 6vw, 64px);
}
.product h3 { margin: 0 0 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.product p { color: var(--ink-2); }
.product .btn { margin-top: 20px; }
.product .muted { margin-top: 16px; }
.product--flip .shot { order: 2; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 26px; }
  .product--flip .shot { order: 0; }
}

.dl { margin: 20px 0 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 12px 22px; font-size: .95rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 4px 0; } .dl dd { margin-bottom: 10px; } }

/* --- карточки продуктов --- */
.cards__title { margin: clamp(48px, 7vw, 76px) 0 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cards__intro { margin: 12px 0 0; max-width: 60ch; color: var(--ink-2); }
.cards {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--rule-firm); }
.card__img { display: block; border-bottom: 1px solid var(--rule); }
.card__img img { width: 100%; aspect-ratio: 900 / 330; object-fit: cover; object-position: top center; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.22rem; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); flex: 1; }
.card__link {
  font-size: .86rem; color: var(--signal-ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--signal) 45%, transparent);
  align-self: flex-start;
}
.card__link:hover { border-bottom-color: var(--signal); }
.cards__note { margin: 28px 0 0; max-width: 62ch; color: var(--muted); font-size: .95rem; }

/* --- полоса с тезисом --- */
.quote { position: relative; padding: clamp(64px, 9vw, 108px) 0; overflow: hidden; border-top: 1px solid var(--rule); }
.quote__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.quote::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right,
    var(--paper) 0%,
    color-mix(in srgb, var(--paper) 72%, transparent) 55%,
    color-mix(in srgb, var(--paper) 25%, transparent) 100%);
}
.quote .wrap { position: relative; z-index: 1; }
.quote__text {
  font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.28; max-width: 22ch; margin: 0;
}

/* --- этапы --- */
.steps { margin: 44px 0 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__no { font-family: var(--display); font-size: 1.5rem; color: var(--violet); font-variant-numeric: tabular-nums; line-height: 1.2; }
.step h3 { margin: 0 0 4px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 620px) { .step { grid-template-columns: 44px 1fr; gap: 16px; } }

/* --- поддержка --- */
.support { position: relative; overflow: hidden; }
.support__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.support::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    var(--paper) 0%,
    color-mix(in srgb, var(--paper) 78%, transparent) 45%,
    var(--paper) 100%);
}
.support .wrap { position: relative; z-index: 1; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 800px) { .levels { grid-template-columns: 1fr; } }
.level { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.level__no { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); font-weight: 600; }
.level h3 { margin: 10px 0; font-size: 1.3rem; }
.level p { margin: 0; color: var(--ink-2); }

/* --- вопросы --- */
.faq { margin-top: 40px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--display); font-size: 1.22rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  margin-top: -8px;
  border-right: 1px solid var(--signal); border-bottom: 1px solid var(--signal);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq p { margin: 0 0 22px; max-width: 66ch; color: var(--ink-2); }

/* --- контакты --- */
.contact { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
.contact dl { margin: 30px 0 0; }
.contact dl > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.contact dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.contact dd { margin: 0; }
.contact dd a { color: var(--signal-ink); text-underline-offset: 3px; }

.form {
  display: grid; gap: 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px;
}
.form h3 { margin: 0; font-size: 1.3rem; }
.form__hint { margin: 0; font-size: .88rem; color: var(--muted); }
.form label { display: grid; gap: 7px; font-size: .84rem; color: var(--muted); }
.form label i { font-style: normal; color: var(--signal-ink); margin-left: 4px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--body); font-size: .97rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-firm); border-radius: 3px;
}
.form textarea { resize: vertical; }
.form button { justify-self: start; }
.form button:disabled { opacity: .5; cursor: progress; }
.status { margin: 0; font-size: .9rem; min-height: 1.5em; color: var(--muted); }
.status[data-state="ok"] { color: #1f7a4d; }
.status[data-state="error"] { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status[data-state="ok"] { color: #63d69b; }
  :root:not([data-theme="light"]) .status[data-state="error"] { color: #ff9d8f; }
}

/* --- подвал --- */
.foot { border-top: 1px solid var(--rule); padding: 44px 0 56px; background: var(--surface-2); }
.foot__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot__inner { grid-template-columns: 1fr; } }
.foot__brand p { margin: 14px 0 0; font-size: .89rem; color: var(--muted); max-width: 40ch; }
.foot__cols p { font-size: .89rem; color: var(--muted); max-width: 46ch; }
.foot__cols a { color: var(--signal-ink); }
.foot__credit { margin-top: 12px; font-size: .82rem; }

/* --- кабинет --- */
.admin { min-height: 100vh; display: flex; flex-direction: column; }
.admin__head { border-bottom: 1px solid var(--rule); }
.admin__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.admin__who { display: flex; align-items: center; gap: 14px; font-size: .89rem; color: var(--muted); }
.admin__body { padding: 40px 0 72px; }
.admin__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 6px; }
.admin__bar h1 { margin: 0; font-size: 1.9rem; }

.login { max-width: 400px; margin: 12vh auto 0; }
.login h1 { margin: 0 0 4px; font-size: 1.7rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table th {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--surface-2);
}
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
