:root {
  --ink: #171917;
  --ink-soft: #303329;
  --paper: #d8cfbf;
  --paper-mid: #c9bba8;
  --paper-strong: #efe2cf;
  --smoke: rgba(239, 226, 207, 0.56);
  --glass: rgba(239, 226, 207, 0.14);
  --line: rgba(23, 25, 23, 0.13);
  --line-light: rgba(239, 226, 207, 0.24);
  --muted: #766c5c;
  --gold: #c8a85c;
  --gold-deep: #9d7a2f;
  --steel: #4f7886;
  --moss: #75815f;
  --danger: #742d22;
  --shadow: 0 30px 90px rgba(28, 24, 16, 0.18);
  --soft-shadow: 0 18px 60px rgba(42, 35, 24, 0.12);
  --radius-lg: 22px;
  --radius-xl: 34px;
  --radius-xxl: 46px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #cfc4b3;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(200, 168, 92, 0.22), transparent 32vw),
    radial-gradient(circle at 86% 18%, rgba(79, 120, 134, 0.18), transparent 34vw),
    linear-gradient(135deg, #d9cfbf 0%, #c4b49d 46%, #b9ad9d 100%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
  -ms-overflow-style: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/images/diagonal-field.svg");
  background-size: min(72vw, 860px) auto;
  background-position: right -12vw top 18vh;
  background-repeat: repeat-y;
  opacity: 0.42;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 23, 0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

body > * {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--paper-strong);
  background: var(--ink);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(239, 226, 207, 0.18);
  border-radius: 999px;
  background: rgba(23, 25, 23, 0.28);
  color: var(--paper-strong);
  box-shadow: 0 24px 70px rgba(8, 10, 8, 0.18), inset 0 1px 0 rgba(239, 226, 207, 0.14);
  backdrop-filter: blur(24px) saturate(1.12);
  z-index: 20;
  transition: background 520ms var(--ease), border-color 520ms var(--ease), transform 520ms var(--ease), box-shadow 520ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(23, 25, 23, 0.44);
  border-color: rgba(239, 226, 207, 0.2);
  box-shadow: 0 28px 82px rgba(8, 10, 8, 0.22), inset 0 1px 0 rgba(239, 226, 207, 0.12);
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 144px;
  height: auto;
  filter: brightness(1.12);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(239, 226, 207, 0.78);
  font-size: 14px;
  transition: color 420ms var(--ease), background 420ms var(--ease), transform 420ms var(--ease);
}

.desktop-nav a:hover {
  color: var(--paper-strong);
  background: rgba(239, 226, 207, 0.12);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-strip,
.footer-socials,
.mobile-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 226, 207, 0.2);
  border-radius: 999px;
  background: rgba(239, 226, 207, 0.08);
  color: rgba(239, 226, 207, 0.9);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.12);
  transition: transform 520ms var(--ease), background 520ms var(--ease), border-color 520ms var(--ease), color 520ms var(--ease), box-shadow 520ms var(--ease);
}

.social-button:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(200, 168, 92, 0.42);
  background: rgba(200, 168, 92, 0.14);
  color: var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.18), 0 14px 34px rgba(10, 10, 8, 0.18);
}

.social-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-max {
  width: auto;
  min-width: 48px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.header-phone {
  color: rgba(239, 226, 207, 0.86);
  font-size: 14px;
  white-space: nowrap;
}

.button,
.quiz-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg, #d8bd74, var(--gold) 54%, #ad873c);
  color: #1f1b13;
  font-weight: 700;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.36), 0 18px 36px rgba(95, 70, 23, 0.18);
  transition: transform 520ms var(--ease), background 520ms var(--ease), border-color 520ms var(--ease), color 520ms var(--ease), box-shadow 520ms var(--ease);
}

.button::before,
.quiz-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-18deg);
  background: rgba(239, 226, 207, 0.26);
  transition: transform 760ms var(--ease);
}

.button:hover,
.quiz-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e1c77f, #d0ad5e 54%, #b48e42);
  border-color: #d8b96e;
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.46), 0 24px 46px rgba(95, 70, 23, 0.24);
}

.button:hover::before,
.quiz-button:hover::before {
  transform: translateX(110%) skewX(-18deg);
}

.button:active,
.quiz-button:active {
  transform: translateY(0) scale(0.99);
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.button-ghost {
  background: rgba(239, 226, 207, 0.09);
  color: var(--paper-strong);
  border-color: rgba(239, 226, 207, 0.3);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.12);
}

.button-ghost:hover {
  background: var(--paper-strong);
  color: var(--ink);
  border-color: var(--paper-strong);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(239, 226, 207, 0.22);
  border-radius: 999px;
  background: rgba(239, 226, 207, 0.08);
  color: var(--paper-strong);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 92px 28px 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 168, 92, 0.2), transparent 34vw),
    radial-gradient(circle at 84% 10%, rgba(79, 120, 134, 0.2), transparent 32vw),
    rgba(23, 25, 23, 0.96);
  color: var(--paper-strong);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 560ms var(--ease), opacity 560ms var(--ease);
  z-index: 18;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(239, 226, 207, 0.12);
  font-size: 28px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease), color 420ms var(--ease);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open a:nth-child(1) {
  transition-delay: 90ms;
}

.mobile-menu.is-open a:nth-child(2) {
  transition-delay: 140ms;
}

.mobile-menu.is-open a:nth-child(3) {
  transition-delay: 190ms;
}

.mobile-menu.is-open a:nth-child(4) {
  transition-delay: 240ms;
}

.mobile-menu.is-open a:nth-child(5) {
  transition-delay: 290ms;
}

.mobile-socials {
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
}

.mobile-menu .mobile-socials a {
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(239, 226, 207, 0.16);
  border-radius: 999px;
  background: rgba(239, 226, 207, 0.08);
  font-size: 14px;
  font-weight: 800;
  color: rgba(239, 226, 207, 0.88);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 150px min(7vw, 92px) 42px;
  color: var(--paper-strong);
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10% -12% auto auto;
  width: min(860px, 82vw);
  height: min(860px, 82vw);
  z-index: -1;
  background: url("assets/images/diagonal-field.svg") center / contain no-repeat;
  opacity: 0.34;
  transform: rotate(-8deg);
  animation: fieldDrift 18s var(--ease) infinite alternate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.05);
  filter: contrast(1.05) saturate(0.88) sepia(0.06);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 24%, rgba(200, 168, 92, 0.22), transparent 28vw),
    linear-gradient(90deg, rgba(12, 13, 12, 0.92), rgba(12, 13, 12, 0.6) 42%, rgba(12, 13, 12, 0.2) 76%),
    linear-gradient(180deg, rgba(12, 13, 12, 0.16), rgba(12, 13, 12, 0.78));
}

.hero-content {
  width: min(940px, 100%);
  padding-bottom: 64px;
  animation: heroContentIn 1100ms var(--ease) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 9px 13px;
  border: 1px solid rgba(200, 168, 92, 0.25);
  border-radius: 999px;
  background: rgba(200, 168, 92, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(239, 226, 207, 0.84);
  font-size: 24px;
  line-height: 1.35;
}

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

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  border: 1px solid rgba(239, 226, 207, 0.22);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(239, 226, 207, 0.1);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.12), 0 28px 90px rgba(8, 10, 8, 0.18);
  backdrop-filter: blur(18px);
}

.hero-bottom div {
  min-height: 92px;
  padding: 18px;
  background: rgba(23, 25, 23, 0.38);
  transition: background 520ms var(--ease), transform 520ms var(--ease);
}

.hero-bottom div:hover {
  background: rgba(23, 25, 23, 0.52);
  transform: translateY(-2px);
}

.hero-bottom span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.hero-bottom strong {
  display: block;
  color: rgba(239, 226, 207, 0.92);
  font-size: 17px;
  line-height: 1.25;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fieldDrift {
  from {
    transform: rotate(-8deg) translate3d(-18px, -10px, 0);
  }

  to {
    transform: rotate(-2deg) translate3d(22px, 16px, 0);
  }
}

.chapter {
  position: relative;
  padding: 138px min(6vw, 76px);
  overflow: hidden;
}

.chapter::before,
.attachments-section::before,
.quiz-section::before,
.factory-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/images/diagonal-field.svg");
  background-size: 760px auto;
  background-repeat: no-repeat;
  background-position: right -180px top 36px;
  opacity: 0.24;
  mix-blend-mode: multiply;
}

.intro-section {
  background:
    radial-gradient(circle at 6% 10%, rgba(239, 226, 207, 0.42), transparent 30vw),
    linear-gradient(135deg, #d7cdbb, #bfb19d);
}

.chapter-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.chapter-heading.wide {
  max-width: 1120px;
}

.chapter-heading h2,
.factory-copy h2,
.quiz-copy h2,
.final-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 14px;
}

.intro-card,
.task-card,
.attachment-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(239, 226, 207, 0.26);
  overflow: hidden;
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(239, 226, 207, 0.22);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 680ms var(--ease), border-color 680ms var(--ease), box-shadow 680ms var(--ease);
}

.intro-card:hover,
.task-card:hover,
.attachment-card:hover {
  transform: translateY(-7px);
  border-color: rgba(200, 168, 92, 0.34);
  box-shadow: 0 34px 100px rgba(40, 34, 24, 0.18), inset 0 1px 0 rgba(239, 226, 207, 0.28);
}

.intro-card::before,
.task-card::before,
.attachment-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(239, 226, 207, 0.12);
}

.intro-card::after,
.task-card::after,
.attachment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 18%, rgba(239, 226, 207, 0.16) 48%, transparent 78%);
  transform: translateX(-130%);
  transition: transform 1100ms var(--ease);
}

.intro-card:hover::after,
.task-card:hover::after,
.attachment-card:hover::after {
  transform: translateX(130%);
}

.intro-card img,
.task-card img,
.attachment-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03) sepia(0.04);
  transition: transform 1200ms var(--ease), filter 1200ms var(--ease);
}

.intro-card:hover img,
.task-card:hover img,
.attachment-card:hover img {
  transform: scale(1.065);
  filter: contrast(1.08) saturate(0.98) sepia(0.02);
}

.intro-card > div,
.task-card > div,
.attachment-card > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  z-index: 3;
  border: 1px solid rgba(239, 226, 207, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(23, 25, 23, 0.58);
  color: var(--paper-strong);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.12);
}

.intro-card h3,
.task-card h3,
.attachment-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.intro-card p,
.task-card p,
.attachment-card p {
  margin: 0;
  color: rgba(239, 226, 207, 0.78);
}

.intro-card-large {
  grid-row: span 2;
  min-height: 640px;
}

.dark-card {
  min-height: 312px;
  display: grid;
  align-content: end;
  padding: 28px;
  background:
    url("assets/images/diagonal-field.svg") right -120px top -140px / 520px auto no-repeat,
    linear-gradient(140deg, rgba(23, 25, 23, 0.96), rgba(49, 53, 43, 0.92)),
    var(--ink);
  color: var(--paper-strong);
}

.dark-card h3,
.dark-card p {
  max-width: 420px;
}

.dark-card h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.05;
}

.dark-card p {
  margin: 0;
  color: rgba(239, 226, 207, 0.76);
}

.factory-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: 128px min(6vw, 76px);
  background:
    radial-gradient(circle at 18% 20%, rgba(200, 168, 92, 0.16), transparent 32vw),
    linear-gradient(145deg, #171917 0%, #24261f 48%, #303329 100%);
  color: var(--paper-strong);
  overflow: hidden;
}

.factory-media {
  min-height: 620px;
  padding: 10px;
  border: 1px solid rgba(239, 226, 207, 0.14);
  border-radius: var(--radius-xxl);
  background: rgba(239, 226, 207, 0.08);
  overflow: hidden;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(239, 226, 207, 0.12);
}

.factory-media video {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border-radius: calc(var(--radius-xxl) - 12px);
  object-fit: cover;
}

.factory-copy h2,
.factory-copy .eyebrow {
  color: var(--paper-strong);
}

.factory-copy p {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(239, 226, 207, 0.74);
  font-size: 19px;
}

.factory-lines {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.factory-lines span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(239, 226, 207, 0.07);
  color: rgba(239, 226, 207, 0.88);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.08);
  transition: transform 520ms var(--ease), background 520ms var(--ease);
}

.factory-lines span:hover {
  transform: translateX(8px);
  background: rgba(239, 226, 207, 0.11);
}

.task-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(280px, auto);
  grid-auto-flow: dense;
  gap: 14px;
}

.task-card.tall {
  grid-row: span 2;
}

.task-card.wide-card {
  grid-column: span 2;
}

.tasks-section {
  background:
    radial-gradient(circle at 82% 10%, rgba(79, 120, 134, 0.16), transparent 32vw),
    linear-gradient(135deg, #cdbfa9, #b7aa99);
}

.tasks-section::before {
  background-position: left -240px top 120px;
  opacity: 0.28;
}

.attachments-section {
  position: relative;
  padding: 128px min(6vw, 76px);
  background:
    radial-gradient(circle at 8% 82%, rgba(200, 168, 92, 0.2), transparent 28vw),
    linear-gradient(135deg, #c5b7a0, #a99e8f);
  overflow: hidden;
}

.attachment-rail {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr 0.85fr;
  gap: 12px;
}

.attachment-card {
  min-height: 520px;
  transition: min-height 780ms var(--ease), transform 680ms var(--ease), border-color 680ms var(--ease), box-shadow 680ms var(--ease);
}

.attachment-card.active {
  min-height: 600px;
}

.quiz-section {
  position: relative;
  padding: 128px min(6vw, 76px);
  background:
    radial-gradient(circle at 90% 22%, rgba(79, 120, 134, 0.2), transparent 32vw),
    linear-gradient(135deg, #d2c6b5, #b9ab97);
  overflow: hidden;
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.quiz-copy {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  border: 1px solid rgba(239, 226, 207, 0.16);
  border-radius: var(--radius-xxl);
  background:
    url("assets/images/diagonal-field.svg") right -180px bottom -180px / 620px auto no-repeat,
    linear-gradient(145deg, rgba(23, 25, 23, 0.96), rgba(43, 47, 39, 0.94));
  color: var(--paper-strong);
  box-shadow: 0 34px 94px rgba(30, 24, 18, 0.2), inset 0 1px 0 rgba(239, 226, 207, 0.1);
  overflow: hidden;
}

.quiz-copy h2 {
  color: var(--paper-strong);
  font-size: 46px;
}

.quiz-visual {
  margin: 28px 0;
  padding: 8px;
  border: 1px solid rgba(239, 226, 207, 0.12);
  border-radius: 30px;
  background: rgba(239, 226, 207, 0.07);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.1);
}

.quiz-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(0.9) contrast(1.05) sepia(0.05);
}

.engineer-note {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 226, 207, 0.16);
}

.engineer-note strong {
  color: var(--gold);
}

.engineer-note span {
  color: rgba(239, 226, 207, 0.75);
}

.quiz-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 620px;
  border: 1px solid rgba(23, 25, 23, 0.12);
  border-radius: var(--radius-xxl);
  background:
    linear-gradient(145deg, rgba(239, 226, 207, 0.78), rgba(207, 196, 179, 0.72)),
    var(--paper-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.quiz-progress {
  height: 9px;
  background: rgba(79, 120, 134, 0.16);
}

.quiz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--steel), var(--gold));
  transition: width 620ms var(--ease);
}

.quiz-stage {
  position: relative;
  padding: 42px;
  overflow: hidden;
}

.quiz-step {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  animation: quizIn 620ms var(--ease) both;
}

.quiz-question,
.quiz-contact {
  min-width: 0;
}

.quiz-step-contact {
  grid-template-columns: minmax(300px, 0.86fr) minmax(320px, 1fr);
  gap: 28px;
}

.quiz-step-contact .quiz-question h3 {
  font-size: clamp(34px, 3.2vw, 42px);
  overflow-wrap: normal;
}

.quiz-step-contact .quiz-question p {
  max-width: 340px;
}

@keyframes quizIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.quiz-question h3 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.08;
}

.quiz-question p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 18px;
  border: 1px solid rgba(23, 25, 23, 0.09);
  border-radius: 24px;
  background: rgba(239, 226, 207, 0.52);
  color: var(--ink-soft);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.28);
  transition: border-color 420ms var(--ease), background 420ms var(--ease), transform 420ms var(--ease), box-shadow 420ms var(--ease);
  animation: optionIn 560ms var(--ease) both;
  animation-delay: var(--option-delay, 0ms);
}

.quiz-option:hover,
.quiz-option.is-selected {
  transform: translateX(5px);
  border-color: rgba(79, 120, 134, 0.52);
  background: rgba(211, 224, 219, 0.72);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.38), 0 16px 34px rgba(67, 54, 36, 0.12);
}

.quiz-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--steel);
  border-radius: 8px;
  background: transparent;
  transition: background 420ms var(--ease), box-shadow 420ms var(--ease), transform 420ms var(--ease);
}

.quiz-option.is-selected .quiz-mark {
  background: var(--steel);
  box-shadow: inset 0 0 0 5px #d3e0db;
  transform: rotate(4deg);
}

@keyframes optionIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.quiz-contact {
  display: grid;
  gap: 16px;
}

.quiz-contact label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.quiz-contact input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(23, 25, 23, 0.14);
  border-radius: 20px;
  background: rgba(239, 226, 207, 0.58);
  color: var(--ink);
  outline: none;
  transition: border-color 420ms var(--ease), background 420ms var(--ease), box-shadow 420ms var(--ease);
}

.quiz-contact input:focus {
  border-color: rgba(79, 120, 134, 0.66);
  background: rgba(239, 226, 207, 0.9);
  box-shadow: 0 0 0 4px rgba(79, 120, 134, 0.12);
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 42px;
  border-top: 1px solid rgba(23, 25, 23, 0.1);
  background: rgba(207, 196, 179, 0.34);
}

.quiz-footer span {
  color: var(--muted);
}

.quiz-actions {
  display: flex;
  gap: 10px;
}

.quiz-button {
  min-height: 52px;
  min-width: 118px;
  border: 1px solid var(--steel);
  background: var(--steel);
  color: var(--paper-strong);
}

.quiz-button:hover {
  background: #5d8b9a;
  border-color: #5d8b9a;
}

.quiz-button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 25, 23, 0.16);
}

.quiz-button-secondary:hover {
  background: rgba(239, 226, 207, 0.52);
  border-color: rgba(23, 25, 23, 0.24);
}

.quiz-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.final-section {
  position: relative;
  min-height: 82dvh;
  display: grid;
  align-items: center;
  padding: 120px min(7vw, 92px);
  color: var(--paper-strong);
  isolation: isolate;
  overflow: hidden;
}

.final-section::after {
  content: "";
  position: absolute;
  inset: auto -16% -18% auto;
  width: min(760px, 74vw);
  height: min(760px, 74vw);
  z-index: -1;
  background: url("assets/images/diagonal-field.svg") center / contain no-repeat;
  opacity: 0.32;
  animation: fieldDrift 20s var(--ease) infinite alternate-reverse;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 24%, rgba(200, 168, 92, 0.18), transparent 28vw),
    linear-gradient(90deg, rgba(14, 15, 14, 0.92), rgba(14, 15, 14, 0.66) 48%, rgba(14, 15, 14, 0.28)),
    linear-gradient(0deg, rgba(14, 15, 14, 0.72), rgba(14, 15, 14, 0.08));
}

.final-content {
  max-width: 780px;
  padding: 34px;
  border: 1px solid rgba(239, 226, 207, 0.18);
  border-radius: var(--radius-xxl);
  background: rgba(23, 25, 23, 0.42);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.12), 0 34px 100px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.final-content h2 {
  color: var(--paper-strong);
  font-size: 66px;
}

.final-content p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(239, 226, 207, 0.78);
  font-size: 21px;
}

.callback-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.62fr);
  gap: 28px;
  padding: 128px min(6vw, 76px);
  background:
    radial-gradient(circle at 18% 14%, rgba(200, 168, 92, 0.18), transparent 30vw),
    linear-gradient(145deg, #1b1d19, #292a23);
  color: var(--paper-strong);
  overflow: hidden;
}

.callback-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/images/diagonal-field.svg") right -220px top -220px / 720px auto no-repeat;
  opacity: 0.24;
}

.callback-copy,
.lead-form {
  position: relative;
  border: 1px solid rgba(239, 226, 207, 0.14);
  border-radius: var(--radius-xxl);
  background: rgba(239, 226, 207, 0.08);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.11), 0 28px 90px rgba(0, 0, 0, 0.22);
}

.callback-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 42px;
}

.callback-copy h2 {
  max-width: 820px;
  margin: 0;
  color: var(--paper-strong);
  font-size: 56px;
  line-height: 1;
}

.callback-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(239, 226, 207, 0.74);
  font-size: 19px;
}

.lead-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
}

.lead-form label {
  display: grid;
  gap: 9px;
  color: rgba(239, 226, 207, 0.7);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(239, 226, 207, 0.16);
  border-radius: 22px;
  background: rgba(239, 226, 207, 0.08);
  color: var(--paper-strong);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.08);
  transition: border-color 420ms var(--ease), background 420ms var(--ease), box-shadow 420ms var(--ease);
}

.lead-form input::placeholder {
  color: rgba(239, 226, 207, 0.42);
}

.lead-form input[type="text"]:focus,
.lead-form input[type="tel"]:focus {
  border-color: rgba(200, 168, 92, 0.52);
  background: rgba(239, 226, 207, 0.12);
  box-shadow: 0 0 0 4px rgba(200, 168, 92, 0.12), inset 0 1px 0 rgba(239, 226, 207, 0.12);
}

.consent-field {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  color: rgba(239, 226, 207, 0.66);
  font-size: 13px;
  line-height: 1.35;
  text-transform: none;
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--gold);
}

.consent-field a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: rgba(239, 226, 207, 0.76);
  font-size: 14px;
}

.form-status.is-success {
  color: #d9c77f;
}

.form-status.is-error {
  color: #e7a58d;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 72px min(6vw, 76px) 34px;
  border-top: 1px solid rgba(239, 226, 207, 0.08);
  background:
    url("assets/images/diagonal-field.svg") right -260px top -260px / 740px auto no-repeat,
    radial-gradient(circle at 16% 0%, rgba(200, 168, 92, 0.12), transparent 30vw),
    linear-gradient(135deg, #0f1312, #171b1b 58%, #0d1110);
  color: var(--paper-strong);
}

.site-footer > .footer-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(239, 226, 207, 0.13);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(239, 226, 207, 0.08), rgba(239, 226, 207, 0.025)),
    rgba(23, 25, 23, 0.34);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.08), 0 28px 80px rgba(0, 0, 0, 0.22);
}

.footer-logo img {
  width: 156px;
  height: auto;
  filter: brightness(1.2);
}

.footer-card > span {
  color: rgba(239, 226, 207, 0.52);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p,
.site-footer span,
.site-footer a {
  margin: 0;
  color: rgba(239, 226, 207, 0.78);
}

.site-footer a:hover {
  color: var(--paper-strong);
}

.footer-contact-card .footer-logo {
  margin-bottom: 8px;
}

.source-socials {
  display: grid;
  gap: 12px;
}

.source-social-link {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(239, 226, 207, 0.12);
  border-radius: 10px;
  background: rgba(239, 226, 207, 0.1);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.09);
  transition: transform 520ms var(--ease), border-color 520ms var(--ease), background 520ms var(--ease);
}

.source-social-link:hover {
  transform: translateX(6px);
  border-color: rgba(200, 168, 92, 0.34);
  background: rgba(239, 226, 207, 0.14);
}

.source-social-link i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.source-social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.source-social-link em {
  color: var(--paper-strong);
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

.source-social-link.youtube i {
  background: #ff174b;
}

.source-social-link.rutube i {
  background: #202344;
}

.source-social-link.dzen i {
  background: #6f716d;
}

.source-social-link.vk i {
  background: #1687e7;
}

.source-social-link.max i {
  background: linear-gradient(135deg, #2f92ff, #6d48ff 58%, #ffffff);
}

.source-social-link.telegram i {
  background: #2aa8df;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  color: rgba(239, 226, 207, 0.52);
  font-size: 13px;
}

.floating-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 19;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 226, 207, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 18%, rgba(239, 226, 207, 0.36), transparent 34%),
    linear-gradient(145deg, rgba(23, 25, 23, 0.78), rgba(47, 51, 42, 0.82));
  color: var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.16), 0 24px 56px rgba(8, 10, 8, 0.28);
  backdrop-filter: blur(18px);
  transition: transform 620ms var(--ease), border-color 620ms var(--ease), box-shadow 620ms var(--ease);
  animation: messageFloat 4.8s var(--ease) infinite;
}

.floating-message:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: rgba(200, 168, 92, 0.5);
  box-shadow: inset 0 1px 0 rgba(239, 226, 207, 0.18), 0 30px 70px rgba(8, 10, 8, 0.34);
}

.floating-message svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes messageFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  filter: blur(10px);
  transition: opacity 920ms var(--ease), transform 920ms var(--ease), filter 920ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-phone {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .header-socials {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 76px;
  }

  .chapter-heading h2,
  .factory-copy h2,
  .quiz-copy h2 {
    font-size: 46px;
  }

  .factory-section,
  .quiz-shell,
  .callback-section {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-media,
  .factory-media video,
  .quiz-copy,
  .quiz-card {
    min-height: auto;
  }

  .factory-media video {
    height: 560px;
  }

  .attachment-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attachment-card,
  .attachment-card.active {
    min-height: 460px;
  }
}

@media (max-width: 960px) {
  .quiz-step-contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .quiz-step-contact .quiz-contact {
    max-width: 560px;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 62px;
    gap: 10px;
  }

  .brand img {
    width: 126px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    min-height: 94dvh;
    padding: 118px 18px 24px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(12, 13, 12, 0.84), rgba(12, 13, 12, 0.44)),
      linear-gradient(180deg, rgba(12, 13, 12, 0.18), rgba(12, 13, 12, 0.82));
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-bottom div {
    min-height: 72px;
  }

  .chapter,
  .attachments-section,
  .quiz-section,
  .factory-section,
  .final-section,
  .callback-section {
    padding: 82px 18px;
  }

  .chapter-heading {
    margin-bottom: 28px;
  }

  .chapter-heading h2,
  .factory-copy h2,
  .quiz-copy h2 {
    font-size: 36px;
  }

  .intro-grid,
  .task-grid,
  .attachment-rail {
    grid-template-columns: 1fr;
  }

  .intro-card-large {
    min-height: 460px;
  }

  .task-card.tall,
  .task-card.wide-card {
    grid-column: auto;
    grid-row: auto;
  }

  .intro-card img,
  .task-card img,
  .attachment-card img {
    min-height: 410px;
  }

  .factory-media video {
    height: 420px;
  }

  .quiz-copy {
    padding: 26px;
  }

  .quiz-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quiz-step-contact {
    gap: 22px;
  }

  .quiz-step-contact .quiz-question h3 {
    font-size: 32px;
    max-width: 680px;
  }

  .quiz-step-contact .quiz-question p {
    max-width: 520px;
  }

  .quiz-stage {
    padding: 28px 18px;
  }

  .quiz-question h3 {
    font-size: 32px;
  }

  .quiz-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .quiz-actions,
  .quiz-button {
    width: 100%;
  }

  .final-content h2 {
    font-size: 44px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 18px;
  }

  .site-footer > .footer-card {
    min-height: auto;
    padding: 22px;
  }

  .callback-copy,
  .lead-form {
    padding: 26px;
  }

  .callback-copy {
    min-height: auto;
  }

  .callback-copy h2 {
    font-size: 36px;
  }

  .source-social-link {
    min-height: 64px;
  }

  .floating-message {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .mobile-menu a {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .quiz-step-contact .quiz-question h3 {
    font-size: 30px;
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-card > div,
  .task-card > div,
  .attachment-card > div {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .intro-card h3,
  .task-card h3,
  .attachment-card h3 {
    font-size: 22px;
  }

  .quiz-option {
    min-height: 68px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

.policy-page {
  min-height: 100dvh;
  padding: 42px 18px;
  background:
    radial-gradient(circle at 14% 6%, rgba(200, 168, 92, 0.2), transparent 32vw),
    linear-gradient(135deg, #d2c6b5, #b5a894);
}

.policy-content {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xxl);
  background:
    url("assets/images/diagonal-field.svg") right -240px top -220px / 660px auto no-repeat,
    rgba(239, 226, 207, 0.72);
  box-shadow: var(--shadow);
}

.policy-brand img {
  width: 168px;
  margin-bottom: 42px;
}

.policy-content h1 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.policy-content h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.policy-content p {
  margin: 0 0 12px;
  color: rgba(23, 25, 23, 0.72);
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: rgba(23, 25, 23, 0.72);
}

.policy-content li::marker {
  color: var(--moss);
}

.policy-content a {
  color: inherit;
  text-underline-offset: 4px;
}

.policy-content .button {
  margin-top: 36px;
}

@media (max-width: 640px) {
  .policy-content {
    padding: 28px 18px;
  }

  .policy-content h1 {
    font-size: 36px;
  }
}
