:root {
  --bg: #f2eee7;
  --paper: #fffaf2;
  --paper-2: #ebe2d6;
  --ink: #171312;
  --muted: #675d55;
  --line: rgba(23, 19, 18, 0.16);
  --red: #a4212b;
  --red-2: #d6424a;
  --green: #315f52;
  --deep: #201715;
  --font-body: Candara, Tahoma, sans-serif;
  --font-display: "Bookman Old Style", Rockwell, "Roboto Slab", serif;
  --font-label: "Cascadia Mono", "OCR A Extended", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

body,
p,
h1,
h2,
h3,
b,
strong,
a,
button,
input,
textarea {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
}

.command-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.command-bar nav a,
.stamp,
.section-label,
.fact span,
.consequence-map span,
.protocol-board span,
.request-room label span,
.evidence-list span,
.offer-panel span {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand {
  color: var(--red);
  font-size: 14px;
  font-weight: 400;
}

.command-bar nav {
  display: flex;
  gap: clamp(10px, 3vw, 28px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.command-bar nav a {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(86px, 12vh, 134px) clamp(18px, 6vw, 88px) clamp(34px, 7vh, 74px);
}

.hero-img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.92) 0%, rgba(255, 250, 242, 0.78) 45%, rgba(255, 250, 242, 0.24) 100%),
    linear-gradient(0deg, rgba(23, 19, 18, 0.16), rgba(23, 19, 18, 0));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
}

.stamp,
.section-label {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 400;
}

.hero h1,
.service-intro h2,
.split-head h2,
.decision-room h2,
.table-copy h2,
.handoff-copy h2,
.request-room h2 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(44px, 6.2vw, 82px);
}

.hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: #342d29;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.24;
  font-weight: 500;
}

.offer-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.offer-panel div {
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.84);
}

.offer-panel span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 400;
}

.offer-panel b {
  display: block;
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.16;
  font-family: var(--font-body);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions a,
.request-room button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid rgba(23, 19, 18, 0.18);
  background: var(--red);
  color: #fff;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 400;
}

.hero-actions a + a {
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
}

.service-intro,
.situation-room,
.decision-room,
.work-table,
.handoff,
.request-room {
  padding: clamp(58px, 9vw, 108px) clamp(18px, 6vw, 88px);
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: var(--paper);
}

.service-intro h2,
.split-head h2,
.decision-room h2,
.table-copy h2,
.handoff-copy h2,
.request-room h2 {
  font-size: clamp(36px, 4.8vw, 68px);
}

.service-intro p,
.split-head p,
.decision-room p,
.table-copy p,
.handoff-copy p,
.request-room p {
  color: var(--muted);
  font-size: clamp(18px, 1.85vw, 23px);
  line-height: 1.36;
}

.intro-image,
.table-photo,
.handoff-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.intro-image {
  aspect-ratio: 5 / 4;
}

.intro-image img,
.table-photo img,
.handoff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(280px, 680px) minmax(240px, 420px);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
}

.fact-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.fact {
  min-height: 228px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.fact-wide {
  grid-row: span 2;
}

.fact-red {
  background: var(--deep);
  color: #fffaf2;
}

.fact span {
  color: var(--red);
  font-size: 12px;
  font-weight: 400;
}

.fact-red span {
  color: #ffb7b8;
}

.fact h3 {
  margin: 34px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.12;
  font-weight: 600;
}

.fact p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.34;
  font-weight: 560;
}

.fact-red p {
  color: #efe4d6;
}

.decision-room {
  display: grid;
  grid-template-columns: minmax(280px, 610px) minmax(210px, 260px) minmax(300px, 520px);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  background: #e8dfd3;
}

.case-switcher {
  display: grid;
  gap: 12px;
  align-content: center;
}

.case-switcher button {
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}

.case-switcher button:focus-visible,
.hero-actions a:focus-visible,
.command-bar a:focus-visible,
.request-room button:focus-visible,
.request-room input:focus-visible,
.request-room textarea:focus-visible {
  outline: 3px solid var(--red-2);
  outline-offset: 3px;
}

.case-switcher .active {
  background: var(--green);
  color: #fff;
}

.consequence-map {
  display: grid;
  border: 1px solid rgba(49, 95, 82, 0.5);
  background: var(--paper);
}

.consequence-map div {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 142px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.consequence-map div:last-child {
  border-bottom: 0;
}

.consequence-map span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.consequence-map b {
  font-size: clamp(21px, 2.35vw, 30px);
  line-height: 1.16;
  font-family: var(--font-display);
  font-weight: 600;
}

.work-table {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 6vw, 82px);
  align-items: center;
  background: var(--paper);
}

.table-photo {
  aspect-ratio: 4 / 3;
}

.table-photo::after,
.handoff-image::after {
  content: "рабочий материал";
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  background: rgba(164, 33, 43, 0.9);
  color: #fff;
  font-family: var(--font-label);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.evidence-list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.evidence-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 640;
  line-height: 1.24;
}

.evidence-list span {
  color: var(--red);
  font-size: 13px;
}

.handoff {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: #fbf6ee;
}

.handoff-image {
  aspect-ratio: 4 / 5;
}

.handoff-image::after {
  content: "передача хода";
}

.protocol-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.protocol-board article {
  min-height: 218px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
}

.protocol-board strong {
  display: block;
  color: var(--red);
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 600;
}

.protocol-board span {
  color: var(--muted);
  font-size: 12px;
}

.protocol-board p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.3;
  font-weight: 560;
}

.request-room {
  background: var(--deep);
  color: #fffaf2;
}

.request-room p {
  max-width: 760px;
  color: #d8cdc4;
}

.request-room form {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 34px;
}

.request-room label {
  display: grid;
  gap: 8px;
}

.request-room label span {
  color: #ffb7b8;
  font-size: 12px;
}

.request-room input,
.request-room textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  background: #fffaf2;
  color: var(--ink);
  padding: 16px;
}

.request-room textarea {
  min-height: 112px;
  resize: vertical;
}

.request-room button {
  border: 0;
  cursor: pointer;
}

.table-photo::after,
.handoff-image::after {
  content: "рабочий материал";
}

.handoff-image::after {
  content: "передача хода";
}

@media (max-width: 980px) {
  .command-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .command-bar nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 740px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 250, 242, 0.95) 0%, rgba(255, 250, 242, 0.82) 63%, rgba(255, 250, 242, 0.42) 100%),
      linear-gradient(0deg, rgba(23, 19, 18, 0.16), rgba(23, 19, 18, 0));
  }

  .service-intro,
  .split-head,
  .decision-room,
  .work-table,
  .handoff,
  .request-room form {
    grid-template-columns: 1fr;
  }

  .fact-board {
    grid-template-columns: 1fr 1fr;
  }

  .fact-wide {
    grid-row: auto;
    grid-column: span 2;
  }

  .protocol-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .command-bar {
    position: relative;
    min-height: 0;
  }

  .brand {
    font-size: 12px;
  }

  .command-bar nav {
    gap: 10px 16px;
  }

  .command-bar nav a {
    font-size: 11px;
  }

  .hero {
    min-height: 680px;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero p {
    font-size: 19px;
  }

  .offer-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .request-room button {
    width: 100%;
  }

  .fact-board {
    grid-template-columns: 1fr;
  }

  .fact-wide {
    grid-column: auto;
  }

  .fact {
    min-height: 0;
  }

  .fact h3 {
    margin-top: 24px;
  }

  .consequence-map div {
    min-height: 0;
  }

  .evidence-list li {
    grid-template-columns: 42px 1fr;
  }
}
