:root {
  --ink: #1f1f1f;
  --paper: #fff7de;
  --cream: #f5e8c4;
  --orange: #ff7133;
  --yellow: #ffcc4d;
  --green: #5da28f;
  --muted: #5f5a50;
  --line: #1f1f1f;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.top {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border-bottom: 3px solid var(--line);
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 20px;
  padding: 16px 22px;
  border-right: 3px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand span {
  width: 18px;
  height: 18px;
  background: var(--orange);
  display: inline-block;
  border: 3px solid var(--line);
}
.nav {
  display: flex;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 21px 18px;
  border-left: 3px solid var(--line);
}
.nav a:hover {
  background: var(--yellow);
}
.burger {
  display: none;
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-left: 3px solid var(--line);
  background: var(--yellow);
  padding: 0;
  cursor: pointer;
  justify-self: end;
}
.burger i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23px;
  height: 3px;
  background: var(--ink);
  transform-origin: center;
  transition: 0.22s;
}
.burger i:nth-child(1) {
  transform: translate(-50%, -6px);
}
.burger i:nth-child(2) {
  display: none;
}
.burger i:nth-child(3) {
  transform: translate(-50%, 6px);
}
.burger.active i:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.burger.active i:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  padding: 84px 0 0;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 59px 0 0;
  background: url("assets/hero-catalog.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 59px 0 0;
  background: linear-gradient(
    90deg,
    rgba(255, 247, 222, 0.95) 0%,
    rgba(255, 247, 222, 0.82) 45%,
    rgba(255, 247, 222, 0.18) 78%
  );
}
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 84px);
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: end;
  gap: 0;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 42px;
}
.hero-title {
  background: var(--paper);
  border: 3px solid var(--line);
  padding: 34px;
}
.hero-title p,
.kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
  color: var(--orange);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin-bottom: 0;
}
h2 {
  font-size: clamp(36px, 5.5vw, 42px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}
h3 {
  font-size: 25px;
  line-height: 1.05;
  margin-bottom: 12px;
}
p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
}
.hero-panel {
  background: var(--yellow);
  border: 3px solid var(--line);
  border-left: 0;
  padding: 28px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-panel span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 16px;
}
.hero-panel p {
  color: var(--ink);
  font-weight: 700;
}
.hero-panel a {
  display: inline-flex;
  width: max-content;
  margin-top: 18px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 900;
  padding: 15px 20px;
}
.data-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}
.data-strip div {
  padding: 24px;
  border-right: 3px solid var(--line);
  background: var(--cream);
}
.data-strip div:nth-child(even) {
  background: var(--orange);
  color: white;
}
.data-strip b {
  display: block;
  font-size: 42px;
  letter-spacing: -0.06em;
}
.data-strip span {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 92px 0;
}
.system {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
}
.side-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 70px;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--orange);
  line-height: 0.8;
}
.main-copy,
.box,
.legal-box,
.faq details {
  background: var(--paper);
  border: 3px solid var(--line);
  padding: 34px;
}
.matrix {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0;
}
.matrix-card {
  border: 3px solid var(--line);
  padding: 28px;
  min-height: 260px;
  background: var(--cream);
}
.matrix-card.orange {
  background: var(--orange);
  color: white;
}
.matrix-card.black {
  background: var(--ink);
  color: white;
}
.matrix-card.black p,
.matrix-card.orange p {
  color: rgba(255, 255, 255, 0.78);
}
.matrix-card b {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.matrix-image {
  grid-row: span 2;
  border: 3px solid var(--line);
  overflow: hidden;
}
.matrix-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.guide article {
  background: var(--paper);
  border: 3px solid var(--line);
  padding: 34px;
}
.guide figure {
  margin: 0;
  border: 3px solid var(--line);
  overflow: hidden;
}
.guide figure img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}
.index-list {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}
.rows {
  border-top: 3px solid var(--line);
}
.rows div {
  display: grid;
  grid-template-columns: 70px 0.7fr 1fr;
  gap: 18px;
  border: 3px solid var(--line);
  border-top: 0;
  padding: 20px;
  background: var(--cream);
}
.rows span {
  font-weight: 900;
  color: var(--orange);
}
.rows b {
  font-size: 22px;
}
.rows p {
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}
.split div {
  border: 3px solid var(--line);
  overflow: hidden;
}
.split img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.split article {
  background: var(--green);
  border: 3px solid var(--line);
  padding: 34px;
}
.split article p,
.split article h2 {
  color: white;
}
.faq {
  max-width: 900px;
}
.faq details {
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}
.faq p {
  margin-top: 16px;
}
.footer {
  border-top: 3px solid var(--line);
  background: var(--ink);
  color: white;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 6px 0 0;
}
.footer a {
  color: white;
  text-decoration: none;
  font-weight: 900;
  margin-left: 14px;
}
.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 110px;
}
.page-hero {
  background: var(--yellow);
  border: 3px solid var(--line);
  padding: 58px 34px;
}
.page-hero p:not(.kicker) {
  font-size: 21px;
  color: var(--ink);
  font-weight: 700;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}
.mail {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}
.form {
  display: grid;
  gap: 14px;
}
label {
  font-weight: 900;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 3px solid var(--line);
  background: white;
  font: inherit;
}
textarea {
  min-height: 140px;
}
button {
  border: 3px solid var(--line);
  background: var(--orange);
  color: white;
  font-weight: 900;
  padding: 15px 22px;
}
.legal {
  max-width: 940px;
}
.legal-box {
  margin: 38px 0 90px;
}
.legal-box h2 {
  font-size: 30px;
}
.cookie {
  position: fixed;
  z-index: 300;
  left: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 18px;
  display: none;
  gap: 16px;
}
.cookie.show {
  display: grid;
}
.cookie strong {
  font-size: 20px;
}
.cookie p {
  font-size: 14px;
  margin: 6px 0 0;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie button {
  padding: 12px 14px;
  background: var(--orange);
  color: white;
  border: 3px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}
.cookie button:first-child {
  background: var(--cream);
  color: var(--ink);
}
.cookie .plain {
  background: white;
  color: var(--ink);
}
@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr auto;
  }
  .burger {
    display: block;
  }
  .brand {
    font-size: 16px;
    padding: 12px 14px;
    border-right: 0;
  }
  .nav {
    position: fixed;
    top: 59px;
    left: 0;
    right: 0;
    display: grid;
    border-top: 3px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.22s;
  }
  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav a {
    border-left: 0;
    border-bottom: 3px solid var(--line);
    font-size: 16px;
    padding: 17px;
  }
  .hero {
    padding-top: 59px;
  }
  .hero-bg,
  .hero::after {
    inset: 59px 0 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    align-content: end;
    min-height: calc(100svh - 59px);
    padding-bottom: 22px;
  }
  .hero-title {
    padding: 24px;
  }
  .hero-panel {
    border-left: 3px solid var(--line);
    border-top: 0;
  }
  .data-strip {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    width: calc(100% - 24px);
    padding: 68px 0;
  }
  .system,
  .guide,
  .index-list,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .side-label {
    writing-mode: horizontal-tb;
    font-size: 54px;
  }
  .matrix {
    grid-template-columns: 1fr;
  }
  .matrix-image {
    grid-row: auto;
    height: 320px;
  }
  .guide figure img {
    min-height: 360px;
  }
  .rows div {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }
  .rows p {
    grid-column: 2;
  }
  .footer {
    flex-direction: column;
  }
  .page {
    width: calc(100% - 24px);
    padding-top: 92px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 44px;
    letter-spacing: -0.055em;
  }
  h2 {
    font-size: 34px;
  }
  .data-strip {
    grid-template-columns: 1fr;
  }
  .main-copy,
  .box,
  .legal-box,
  .guide article,
  .split article {
    padding: 22px;
  }
  .matrix-card {
    padding: 22px;
  }
  .footer a {
    display: block;
    margin: 10px 0 0;
  }
  .cookie {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    box-shadow: 5px 5px 0 var(--ink);
  }
}
