/* Bordon. ИИ-агенты, LLM и продукты под ключ.
   Шкала отступов от 4 пикселей, один радиус, три шрифта.
   Интерактив: вкладки направлений, раскрывающиеся кейсы, карусель экранов, аккордеон вопросов. */

:root {
  /* цвета */
  --bg: #0a0a0a;
  --bg-2: #101110;
  --bg-3: #161815;
  --line: #1f211f;
  --line-2: #2c2f2c;
  --fg: #e9e7e0;
  --dim: #8e8f89;
  --dim-2: #5c5e59;
  --acid: #c9f24e;
  --acid-2: #a9d63c;

  /* шкала отступов */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s12: 3rem;
  --s16: 4rem;
  --s24: 6rem;

  /* прочее */
  --r: 4px;
  --wrap: 74rem;
  --pad: clamp(1rem, 4vw, 3rem);
  --sec: clamp(3.5rem, 9vw, 6rem); /* отступ секции */
  --gap: clamp(1rem, 2.5vw, 2rem); /* отступ между блоками */
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Golos Text", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}
a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--s4);
  top: var(--s4);
  z-index: 60;
  background: var(--acid);
  color: #10120a;
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
  border-radius: 2px;
}

/* анимированный фон на всю страницу */
.bgnet {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bgnet canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.bar,
main,
.foot {
  position: relative;
  z-index: 1;
}

/* полоса прочитанного */
.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: var(--line);
  z-index: 40;
}
.rail__fill {
  display: block;
  width: 100%;
  height: 0;
  background: var(--acid);
}

/* ---------------------------------------------------------------- шапка */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s3) var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand__dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--acid);
  border-radius: 1px;
}

.nav {
  display: flex;
  gap: var(--s6);
  margin-inline-start: auto;
  font-size: 0.95rem;
}
.nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color 150ms ease-out;
}
.nav a:hover {
  color: var(--fg);
}

.bar__side {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: 0.92rem;
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--dim);
  white-space: nowrap;
}
.avail__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--acid);
}
.bar__tg {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  white-space: nowrap;
}
.bar__tg:hover {
  border-color: var(--acid);
}

.lang {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: var(--s1) var(--s2);
  line-height: 1.4;
}
.lang:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--fg);
  transform: translateX(-50%);
  transition:
    transform 180ms ease-out,
    opacity 120ms ease-out;
}
.burger span:nth-child(1) {
  top: 18px;
}
.burger span:nth-child(2) {
  top: 25px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(3.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateX(-50%) translateY(-3.5px) rotate(-45deg);
}

/* ----------------------------------------------------------------- герой */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.2rem, 3vh, 2.2rem) var(--pad) var(--s6);
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: auto;
  align-content: center;
  min-height: calc(100svh - 3.9rem);
}
.hero__left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  align-self: stretch;
}

.hero__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s4);
}
.hero__lead {
  margin: 0 0 var(--s4);
  max-width: 46ch;
  color: var(--dim);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
}
.offer {
  padding: var(--s4) var(--s6);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--acid);
  border-radius: var(--r);
}
.offer__badge {
  margin: 0 0 var(--s2);
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
}
.offer__text {
  margin: 0;
  color: var(--dim);
  max-width: 68ch;
}

/* схема агентного конвейера */
.flow {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg-2) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s6);
}
.flow__title {
  margin: 0 0 var(--s4);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.flowmap {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  min-height: 0;
}
.flowmap .wires use {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
}
.flowmap .node rect {
  fill: var(--bg-3);
  stroke: var(--line-2);
  stroke-width: 1;
}
.flowmap .node--branch rect {
  fill: var(--bg-2);
}
.flowmap .node__dot {
  fill: var(--acid);
}
.flowmap text {
  fill: var(--fg);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 13px;
  text-anchor: middle;
}
.flowmap .node__meta {
  fill: var(--dim-2);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 10.5px;
}
.flowmap .pulse {
  fill: var(--acid);
}
.flowmap .pulse--b {
  fill: var(--dim);
}

/* бегущая строка: один ряд */
.stack {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: var(--s3) 0;
}
.stack__row {
  display: flex;
}
.stack__track {
  display: flex;
  align-items: center;
  gap: var(--s8);
  width: max-content;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--dim-2);
  white-space: nowrap;
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.tick__ico {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------- секции */

.sec {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec h2 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s3);
}
.sec__lead {
  margin: 0;
  color: var(--dim);
  max-width: 56ch;
}

.do,
.works,
.shots,
.approach,
.formats,
.faq,
.brief {
  padding-block: var(--sec);
  border-bottom: 1px solid var(--line);
}

/* вкладки направлений */
.tabs {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: start;
}
.tabs__list {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.tabs__tab {
  text-align: left;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  border-left: 2px solid var(--line-2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: var(--s3) var(--s4);
  cursor: pointer;
  transition:
    color 150ms ease-out,
    border-color 150ms ease-out,
    background 150ms ease-out;
}
.tabs__tab:hover {
  color: var(--fg);
  border-left-color: var(--dim-2);
}
.tabs__tab.is-on {
  color: var(--fg);
  background: var(--bg-2);
  border-left-color: var(--acid);
}

.tabs__panel[hidden] {
  display: none;
}
.cards {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.mini {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s6);
  transition: border-color 200ms ease-out;
}
/* одна подсветка на все блоки страницы */
.mini,
.case,
.step,
.plan,
.qa__item,
.offer,
.flow,
.field {
  position: relative;
  overflow: hidden;
}

.mini::before,
.case::before,
.step::before,
.plan::before,
.qa__item::before,
.offer::before,
.flow::before,
.field::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 45%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  animation: sweep 5s linear infinite;
}

.mini:hover,
.case:hover,
.step:hover,
.plan:hover,
.qa__item:hover,
.offer:hover,
.flow:hover,
.field:hover {
  border-color: var(--line-2);
}

.mini:nth-child(2)::before,
.step:nth-child(2)::before,
.field:nth-child(3)::before {
  animation-delay: 1.2s;
}
.mini:nth-child(3)::before,
.step:nth-child(3)::before,
.field:nth-child(4)::before {
  animation-delay: 2.4s;
}
.mini:nth-child(4)::before,
.step:nth-child(4)::before {
  animation-delay: 3.6s;
}
.case:nth-child(2n)::before,
.qa__item:nth-child(2n)::before {
  animation-delay: 2.1s;
}
.case:nth-child(3n)::before,
.qa__item:nth-child(3n)::before {
  animation-delay: 3.4s;
}
@keyframes sweep {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(330%);
  }
}
.mini h3 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 var(--s3);
}
.mini p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

/* фильтр и кейсы */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
.chip {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: var(--s2) var(--s4);
  cursor: pointer;
  transition:
    color 150ms ease-out,
    border-color 150ms ease-out,
    background 150ms ease-out;
}
.chip:hover {
  color: var(--fg);
  border-color: var(--dim-2);
}
.chip.is-on {
  color: #10120a;
  background: var(--acid);
  border-color: var(--acid);
}

.cases {
  display: flex;
  flex-direction: column;
}
.case {
  border-bottom: 1px solid var(--line);
}
.case[hidden] {
  display: none;
}

.case__head {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto var(--s6);
  align-items: baseline;
  gap: var(--s2) var(--s4);
  padding: var(--s6) 0;
  cursor: pointer;
  list-style: none;
  transition: background 150ms ease-out;
}
.case__head::-webkit-details-marker {
  display: none;
}
.case__head:hover {
  background: var(--bg-2);
}
.case__year {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--dim-2);
}
.case__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  letter-spacing: -0.015em;
}
.case__cat {
  justify-self: end;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--dim-2);
  white-space: nowrap;
}
.case__sum {
  grid-column: 2 / 4;
  color: var(--dim);
  font-size: 0.95rem;
}
.case__more {
  justify-self: end;
  align-self: center;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms ease-out;
}
.case[open] .case__more {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.case__body {
  padding: 0 var(--s8) var(--s6) 0;
  max-width: 74ch;
  animation: reveal 220ms ease-out;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.case__what {
  margin: 0 0 var(--s3);
  color: var(--dim);
}
.case__value {
  margin: 0 0 var(--s4);
}
.case__label {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-right: var(--s2);
}
.case__note {
  margin: 0 0 var(--s4);
  padding-left: var(--s3);
  border-left: 2px solid var(--line-2);
  color: var(--dim-2);
  font-size: 0.92rem;
}
.case__go {
  display: inline-block;
  margin-top: var(--s4);
  color: var(--acid);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--acid) 40%, transparent);
}
.case__go:hover {
  border-color: var(--acid);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--dim-2);
}
.tags li {
  position: relative;
}
.tags li + li::before {
  content: "";
  position: absolute;
  inset-inline-start: -0.55rem;
  inset-block-start: 0.5em;
  width: 3px;
  height: 3px;
  background: var(--line-2);
}
.tags.links a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.tags.links a:hover {
  color: var(--acid);
  border-color: var(--acid);
}

/* карусель */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 clamp(15rem, 42%, 26rem);
  scroll-snap-align: start;
}
.slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 150ms ease-out;
}
.slide a:hover img {
  border-color: var(--dim-2);
}
.slide__cap {
  display: block;
  margin-top: var(--s3);
  font-size: 0.88rem;
  color: var(--dim);
}
.slide__cap b {
  display: block;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--fg);
  margin-bottom: var(--s1);
}

.carousel__nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s6);
}
.cbtn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition:
    border-color 150ms ease-out,
    color 150ms ease-out;
}
.cbtn svg {
  width: 20px;
  height: 20px;
}
.cbtn:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.cbtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.dots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition:
    background 150ms ease-out,
    transform 150ms ease-out;
}
.dot.is-on {
  background: var(--acid);
  transform: scale(1.3);
}

/* шаги */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--s6) var(--s6) var(--s6) 0;
  border-top: 1px solid var(--line-2);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: calc(-1 * var(--s3));
  left: 0;
  background: var(--bg);
  padding-right: var(--s3);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--acid);
}
.step h3 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 var(--s3);
}
.step p {
  margin: 0 0 var(--s3);
  color: var(--dim);
}
.step .step__out {
  margin: 0;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--fg);
}

.cta-row {
  margin: var(--s8) 0 0;
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}

/* форматы */
.plans {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  max-width: 58rem;
}
.plan {
  padding: var(--s6) 0 0;
  border-top: 1px solid var(--line-2);
}
.plan h3 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 var(--s2);
}
.plan__price {
  margin: 0 0 var(--s3);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  color: var(--acid);
}
.plan__what {
  margin: 0 0 var(--s4);
  color: var(--dim);
  font-size: 0.95rem;
}
.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
}
.plan li {
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.plan li:last-child {
  border-bottom: none;
}
.plan__time {
  margin: var(--s4) 0 0;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--dim-2);
}
.plans__note {
  margin: var(--s8) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--dim);
  max-width: 72ch;
  font-size: 0.95rem;
}

/* вопросы */
.qa {
  max-width: 72ch;
}
.qa__item {
  border-bottom: 1px solid var(--line);
}
.qa__item summary {
  padding: var(--s4) var(--s6) var(--s4) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  transition: color 150ms ease-out;
}
.qa__item summary::-webkit-details-marker {
  display: none;
}
.qa__item summary:hover {
  color: var(--acid);
}
.qa__item summary::after {
  content: "";
  position: absolute;
  right: var(--s2);
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease-out;
}
.qa__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.qa__item p {
  margin: 0 0 var(--s6);
  color: var(--dim);
  animation: reveal 200ms ease-out;
}

/* контакты */
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
}
.link {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.link:hover {
  color: var(--fg);
  border-color: var(--acid);
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: var(--s3) var(--s6);
  border-radius: var(--r);
  border: 1px solid transparent;
  transition:
    background 150ms ease-out,
    color 150ms ease-out,
    transform 100ms ease-out;
}
.btn__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: 0 0 auto;
}
.btn--primary {
  background: var(--acid);
  color: #10120a;
}
.btn--primary:hover {
  background: var(--acid-2);
}
.btn--primary:active {
  transform: scale(0.98);
}

/* заявка на разбор */
.brief__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
}
.brief__form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.field label {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--s3) var(--s4);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 150ms ease-out;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim-2);
}
.field input:hover,
.field textarea:hover {
  border-color: var(--dim-2);
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--acid);
  outline: none;
}

.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brief__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
  margin-top: var(--s2);
}
.brief__actions .btn {
  border: 0;
  cursor: pointer;
}
.brief__hint {
  margin: 0;
  color: var(--dim-2);
  font-size: 0.85rem;
  max-width: 32ch;
}
.brief__err {
  margin: 0;
  padding: var(--s3) var(--s4);
  border-left: 2px solid #c05a3a;
  background: #1a1210;
  color: #e8b6a4;
  font-size: 0.92rem;
  border-radius: 0 var(--r) var(--r) 0;
}
.brief__next {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--acid-2);
  border-radius: var(--r);
}
.brief__next-title {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.brief__next-text {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}
.brief__next p {
  margin: 0;
}
.brief__next-label {
  color: var(--dim-2);
  font-size: 0.85rem;
}
.brief__side {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.brief__side h3 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 var(--s4);
}
.brief__note {
  margin: var(--s4) 0 0;
  color: var(--dim-2);
  font-size: 0.9rem;
}

/* подвал и кнопка наверх */
.foot {
  padding-block: var(--s6) var(--s8);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s8);
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--dim-2);
}
.foot__inner a {
  text-decoration: none;
}
.foot__inner a:hover {
  color: var(--acid);
}

.totop {
  position: fixed;
  right: var(--s6);
  bottom: var(--s6);
  z-index: 35;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition:
    border-color 150ms ease-out,
    color 150ms ease-out,
    opacity 200ms ease-out;
}
.totop svg {
  width: 20px;
  height: 20px;
}
.totop:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.totop[hidden] {
  display: none;
}

/* ------------------------------------------------------------ адаптив */

/* атрибут hidden всегда скрывает, чем бы ни был задан display */
[hidden] {
  display: none;
}

/* всплывающее окно после отправки заявки */
.modal {
  width: min(30rem, calc(100vw - 2rem));
  padding: var(--s6);
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--acid);
  border-radius: var(--r);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 var(--s3);
}

.modal__text {
  margin: 0 0 var(--s6);
  color: var(--dim);
}

.modal__acts {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.modal__acts form {
  margin: 0;
}

/* автозаполнение Chrome не должно красить поля в белый */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg-3) inset;
  transition: background-color 9999s ease-out 0s;
}

@media (max-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: auto;
    padding-bottom: var(--s12);
  }
  .tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  .tabs__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s2);
  }
  .tabs__tab {
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    padding: var(--s2) var(--s4);
    font-size: 0.88rem;
  }
  .tabs__tab.is-on {
    border-color: var(--acid);
    background: var(--bg-2);
  }
}

@media (max-width: 46rem) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 3.9rem 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: var(--s2) var(--pad) var(--s6);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 220ms ease-out;
    visibility: hidden;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav a {
    padding: var(--s3) 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .avail {
    display: none;
  }

  .case__head {
    grid-template-columns: minmax(0, 1fr) var(--s6);
    gap: var(--s1) 0;
  }
  .case__year {
    grid-column: 1;
  }
  .case__title {
    grid-column: 1;
  }
  .case__cat {
    grid-column: 1;
    justify-self: start;
  }
  .case__sum {
    grid-column: 1;
  }
  .case__more {
    grid-row: 1 / 4;
    grid-column: 2;
  }
  .case__body {
    padding-right: 0;
  }

  .hero__stats {
    gap: var(--s4) var(--s6);
  }
  .slide {
    flex: 0 0 80%;
  }
  .totop {
    right: var(--s4);
    bottom: var(--s4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mini::before,
  .flowmap .pulse {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}
