/* Brolsandim — kinetická plakátová grafika */

:root {
  --paper: #ffffff;
  --paper-cool: #eef0f3;
  --ultramarine: #1b2ecc;
  --ink: #0b0c10;
  --ink-soft: #565c66;
  --coral: #ff4e36;
  --measure: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration: none; }

p a,
.lede a {
  border-bottom: 2px solid var(--coral);
  padding-bottom: 1px;
}

p a:hover,
.lede a:hover { background: var(--coral); color: #fff; }

a:focus-visible,
:focus-visible {
  outline: 3px solid var(--ultramarine);
  outline-offset: 3px;
}

.section--ink a:focus-visible { outline-color: #fff; }

/* ---------- grid ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.c5  { grid-column: 1 / span 5; }
.c6  { grid-column: 1 / span 6; }
.c7  { grid-column: 1 / span 7; }
.c9  { grid-column: 1 / span 9; }
.c12 { grid-column: 1 / span 12; }
.c7-right { grid-column: 6 / span 7; }
.c6-right { grid-column: 7 / span 6; }
.c5-right { grid-column: 8 / span 5; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: system-ui, "Segoe UI Semibold", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-stretch: condensed;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  margin-bottom: 26px;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 10px;
}

p { margin: 0 0 22px; }

.soft { color: var(--ink-soft); }

.caption,
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 600;
}

.eyebrow {
  color: var(--coral);
  margin-bottom: 22px;
  display: block;
}

.lede {
  font-size: clamp(1.12rem, 1.9vw, 1.375rem);
  line-height: 1.55;
}

/* ---------- header / nav ---------- */

.site-head {
  border-bottom: 1px solid #dfe3e8;
  padding: 20px 0 18px;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
}

.brand {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.brand span { color: var(--coral); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.site-nav a {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--coral); }

/* ---------- hero ---------- */

.hero { padding: 92px 0 56px; }

.hero-title {
  position: relative;
  padding-left: 34px;
}

.hero-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 6px;
  background: var(--coral);
}

.hero-title .l2 { display: block; margin-left: 8.3%; }
.hero-title .l3 { display: block; margin-left: 16.6%; }

.hero-intro { margin-top: 48px; }

.topic-line {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--ink-soft);
}

.topic-line li::after {
  content: "/";
  color: var(--coral);
  margin: 0 12px;
  font-weight: 800;
}

.topic-line li:last-child::after { content: ""; margin: 0; }

/* ---------- sections ---------- */

.section { padding: 120px 0; }
.section--tight { padding: 56px 0; }
.section--cool { background: var(--paper-cool); }

.section--ink {
  background: var(--ultramarine);
  color: #fff;
}

.section--ink .caption,
.section--ink .soft { color: rgba(255, 255, 255, 0.78); }

.section--ink .eyebrow { color: #fff; }

.rule {
  height: 3px;
  background: var(--coral);
  border: 0;
  width: 33.3%;
  margin: 0;
}

.rule--center { margin: 0 auto; }
.rule--right { margin-left: auto; }

/* ---------- figures ---------- */

.figure-main {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 22px;
  align-items: start;
  max-width: 1000px;
  margin-left: auto;
  margin-right: -20px;
}

.figure-main img { width: 100%; }

.vertical-caption {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.detail-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 36px;
  align-items: start;
}

.detail-block figure {
  grid-column: 1 / span 4;
  margin: 0;
}

.detail-block figcaption {
  margin-top: 14px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.detail-block .pull {
  grid-column: 6 / span 7;
}

.pull p {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.pull p:last-child { margin-bottom: 0; }

/* ---------- numbered lists ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 78px;
  margin-bottom: 34px;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--coral);
  line-height: 1;
}

.steps p { margin-bottom: 0; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 13px;
  height: 3px;
  background: var(--coral);
}

.section--ink .checks li::before { background: #fff; }

.stack > * + * { margin-top: 64px; }

.side-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  margin-bottom: 26px;
}

.side-head h3 { grid-column: 1 / span 3; }
.side-head .side-body { grid-column: 4 / span 8; }
.side-head .side-body p:last-child { margin-bottom: 0; }

/* ---------- contact block ---------- */

.contact-line {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-line a {
  border-bottom: 3px solid var(--coral);
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--paper);
  border-top: 6px solid var(--coral);
  padding: 54px 0 64px;
}

.foot-name {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 38px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 30px;
}

.foot-cols nav { grid-column: 1 / span 5; }
.foot-cols .foot-info { grid-column: 7 / span 6; }

.foot-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-cols li { margin-bottom: 8px; }

.foot-cols nav a {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.foot-cols nav a:hover { border-bottom-color: var(--coral); }

.foot-info a {
  font-weight: 700;
  border-bottom: 2px solid var(--coral);
}

.foot-info p { margin-bottom: 14px; }
.foot-info p:last-child { margin-bottom: 0; }

/* ---------- article pages ---------- */

.page-head { padding: 76px 0 44px; }

.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  position: relative;
  padding-left: 30px;
}

.page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 6px;
  background: var(--coral);
}

.doc { padding-bottom: 110px; }

.doc h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin-top: 58px;
  margin-bottom: 18px;
}

.doc section:first-of-type h2 { margin-top: 0; }

.doc ul.checks { margin-bottom: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; }
  .section { padding: 84px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 64px 0 44px; }
  .c5, .c6, .c7, .c9, .c12,
  .c7-right, .c6-right, .c5-right { grid-column: 1 / span 12; }
  .rule { width: 55%; }
  .figure-main { margin-right: 0; max-width: 100%; }
  .detail-block figure { grid-column: 1 / span 12; max-width: 460px; }
  .detail-block .pull { grid-column: 1 / span 12; }
  .side-head { display: block; }
  .side-head h3 { margin-bottom: 12px; }
  .foot-cols nav,
  .foot-cols .foot-info { grid-column: 1 / span 12; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .hero-title { padding-left: 20px; }
  .hero-title::before { width: 4px; }
  .hero-title .l2 { margin-left: 6%; }
  .hero-title .l3 { margin-left: 12%; }
  .figure-main { grid-template-columns: 1fr; row-gap: 12px; }
  .vertical-caption {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
  }
  .steps > li { padding-left: 0; padding-top: 40px; }
  .steps > li::before { top: 0; font-size: 1.8rem; }
  .site-nav ul { gap: 6px 16px; }
}
