:root {
  --paper: #f6efe0;
  --paper-2: #eee3d2;
  --paper-3: #fff9ec;
  --ink: #18222c;
  --soft-ink: #4f5d66;
  --blue: #2f6f9c;
  --red: #a94834;
  --sand-line: rgba(24, 34, 44, .16);
  --dark: #0c1721;
  --head: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Verdana, Arial, sans-serif;
  --mono: "Courier New", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--sand-line) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 34, 44, .08) 1px, transparent 1px);
  background-size: 72px 72px;
}

.flight-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(246, 239, 224, .9);
  border-bottom: 1px solid rgba(24, 34, 44, .22);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.tail-number {
  width: 52px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.flight-nav {
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 38px);
  color: #45545d;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  scrollbar-width: none;
}

.flight-nav::-webkit-scrollbar { display: none; }

.clearance-link,
.route-cta,
.ghost-cta,
.route-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.ghost-cta {
  background: rgba(246, 239, 224, .78);
  color: var(--ink);
}

.hero-flight {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111d28;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(1.04) saturate(.98) contrast(.98);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 23, 33, .08), rgba(12, 23, 33, .14)),
    linear-gradient(90deg, rgba(246, 239, 224, .92) 0 34%, rgba(246, 239, 224, .46) 51%, rgba(246, 239, 224, .05) 74%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 94vw);
  padding: 150px clamp(18px, 4.8vw, 76px) 58px;
}

.flight-label,
.stamp {
  margin: 0 0 16px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--head);
  font-size: clamp(50px, 7vw, 104px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #24323c;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 650;
  text-wrap: pretty;
}

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

.route-slip {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: clamp(26px, 5vw, 72px);
  z-index: 3;
  width: min(390px, 34vw);
  padding: 20px;
  background: rgba(255, 249, 236, .82);
  border: 1px solid rgba(24, 34, 44, .48);
  box-shadow: 0 18px 46px rgba(12, 23, 33, .18);
}

.route-slip span,
.route-slip small {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.route-slip span {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.route-slip b {
  display: block;
  margin: 12px 0;
  font-family: var(--head);
  font-size: 34px;
  line-height: 1;
}

.route-slip small {
  color: #54636c;
  font-size: 11px;
}

section:not(.hero-flight) {
  padding: clamp(62px, 8vw, 126px) clamp(18px, 5vw, 78px);
}

.journal-section {
  display: grid;
  grid-template-columns: minmax(280px, 470px) 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.journal-intro {
  position: sticky;
  top: 104px;
}

h2 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--head);
  font-size: clamp(40px, 5.2vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}

.plain-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft-ink);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 560;
  text-wrap: pretty;
}

.journal-ledger {
  border-top: 2px solid var(--ink);
  background: rgba(255, 249, 236, .58);
}

.ledger-row {
  display: grid;
  grid-template-columns: 74px 1fr 94px;
  gap: 22px;
  align-items: center;
  min-height: 136px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(24, 34, 44, .28);
}

.row-num,
.ledger-row em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.row-num { color: var(--red); }
.ledger-row em {
  color: var(--blue);
  font-size: 12px;
}

.ledger-row b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--head);
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1;
  text-wrap: balance;
}

.ledger-row small {
  display: block;
  max-width: 62ch;
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 560;
}

.strip-section {
  background: var(--paper-2);
}

.strip-board {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.strip-copy h2 {
  max-width: 16ch;
}

.strip-selector {
  display: grid;
  gap: 10px;
}

.license-tab {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
}

.license-tab.active {
  background: var(--ink);
  color: #fff;
}

.runway-card {
  position: relative;
  margin-top: 34px;
  padding: 34px clamp(18px, 4vw, 52px);
  background: var(--paper-3);
  border-left: 12px solid var(--red);
  box-shadow: 0 18px 54px rgba(24, 34, 44, .14);
}

.runway-card::before {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 70px);
  right: clamp(20px, 5vw, 70px);
  top: 50%;
  border-top: 2px dashed rgba(24, 34, 44, .22);
}

.runway-card h3 {
  position: relative;
  margin: 0;
  max-width: 15ch;
  font-family: var(--head);
  font-size: clamp(36px, 4.6vw, 70px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.runway-card p {
  position: relative;
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--soft-ink);
  font-size: 20px;
  font-weight: 560;
}

.runway-card ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.runway-card li {
  padding: 9px 12px;
  border: 1px solid rgba(24, 34, 44, .34);
  background: rgba(255, 255, 255, .55);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-section {
  background: var(--dark);
  color: #fff;
}

.map-copy h2 {
  max-width: 18ch;
}

.map-stage {
  display: grid;
  grid-template-columns: 1.2fr minmax(280px, 440px);
  gap: clamp(24px, 5vw, 62px);
  margin-top: 42px;
}

.chart-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #102536;
  border: 1px solid rgba(255, 255, 255, .28);
}

.chart-frame img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.sector-point {
  position: absolute;
  border: 1px solid #b9e1ff;
  background: rgba(12, 23, 33, .74);
  color: #fff;
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.sector-point.active {
  background: #b9e1ff;
  color: var(--ink);
}

.sector-point { left: 10%; top: 34%; }
.sector-two { left: 43%; top: 47%; }
.sector-three { left: 70%; top: 30%; }

.radio-panel {
  min-width: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(90deg, rgba(185, 225, 255, .1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(185, 225, 255, .08) 1px, transparent 1px),
    rgba(255, 255, 255, .05);
  background-size: 48px 48px;
  border: 1px solid rgba(255, 255, 255, .22);
}

.radio-panel h3 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-family: var(--head);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  text-wrap: balance;
}

.radio-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 19px;
  font-weight: 560;
}

.cockpit-section {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #f9f4e8;
}

.cockpit-photo {
  position: sticky;
  top: 104px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 0 18px 54px rgba(24, 34, 44, .14);
}

.cockpit-photo figcaption {
  padding: 13px 16px;
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.check-strip {
  display: grid;
  gap: 12px;
}

.check-strip h2 {
  max-width: 15ch;
  margin-bottom: 16px;
}

.check-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  width: 100%;
  padding: 16px 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(24, 34, 44, .28);
  cursor: pointer;
}

.check-row span {
  grid-row: span 2;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.check-row b {
  font-family: var(--head);
  font-size: clamp(25px, 2.8vw, 42px);
  line-height: 1;
}

.check-row small {
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 560;
}

.check-row.done b::after {
  content: " / готово";
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.hours-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--paper);
}

.hours-copy h2 {
  max-width: 15ch;
}

.hours-instrument {
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  background: var(--dark);
  color: #fff;
  border-radius: 50% 50% 46% 46% / 24% 24% 18% 18%;
}

.hours-instrument label,
.hours-instrument output {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hours-instrument input {
  width: 100%;
  margin: 34px 0;
  accent-color: var(--red);
}

.flight-marks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.flight-marks span {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 560;
}

.flight-marks b {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.support-section {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.support-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}

.support-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 23, 33, .86), rgba(12, 23, 33, .36), rgba(12, 23, 33, .08));
}

.support-note {
  position: relative;
  z-index: 2;
  width: min(860px, 92vw);
}

.support-note .plain-copy {
  color: rgba(255, 255, 255, .82);
}

.request-section {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 480px);
  gap: clamp(28px, 5vw, 72px);
  background: var(--paper-2);
}

.request-copy h2 {
  max-width: 14ch;
}

.route-form {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 24px;
  background: var(--paper-3);
  border-top: 5px solid var(--red);
  box-shadow: 0 18px 54px rgba(24, 34, 44, .14);
}

.route-form label {
  display: grid;
  gap: 8px;
}

.route-form span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.route-form input,
.route-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 34, 44, .46);
  background: #fff;
  color: var(--ink);
  padding: 15px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .flight-head {
    grid-template-columns: auto 1fr;
  }

  .clearance-link {
    display: none;
  }

  .flight-nav {
    justify-content: end;
    overflow-x: auto;
  }

  .route-slip {
    display: none;
  }

  .journal-section,
  .strip-board,
  .map-stage,
  .cockpit-section,
  .hours-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .journal-intro,
  .cockpit-photo {
    position: static;
  }

  .hero-flight {
    min-height: 760px;
  }

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

@media (max-width: 560px) {
  .flight-head {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 62px;
    padding: 9px 14px;
    gap: 10px;
  }

  .tail-number {
    width: 42px;
    height: 40px;
  }

  .flight-nav {
    gap: 12px;
    justify-content: start;
    min-width: 0;
    width: 100%;
    padding-bottom: 4px;
  }

  .flight-nav a {
    font-size: 11px;
    white-space: nowrap;
  }

  .hero-flight {
    min-height: 640px;
  }

  .hero-image {
    object-position: 52% bottom;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(246, 239, 224, .72), rgba(246, 239, 224, .5) 46%, rgba(246, 239, 224, .12) 74%),
      linear-gradient(90deg, rgba(246, 239, 224, .9), rgba(246, 239, 224, .2));
  }

  .hero-copy {
    width: 100%;
    padding: 100px 18px 38px;
  }

  .hero-copy h1 {
    max-width: 10.8ch;
    font-size: clamp(42px, 12vw, 54px);
    line-height: .98;
  }

  .hero-lead {
    max-width: 32ch;
    font-size: 17px;
  }

  .route-cta,
  .ghost-cta,
  .route-form button {
    width: 100%;
  }

  section:not(.hero-flight) {
    padding: 54px 18px;
  }

  h2 {
    max-width: 11.6ch;
    font-size: clamp(32px, 10.2vw, 44px);
    line-height: 1.06;
  }

  .plain-copy {
    font-size: 17px;
  }

  .ledger-row {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    min-height: auto;
    padding: 20px 0;
  }

  .ledger-row em {
    grid-column: 2;
  }

  .ledger-row b {
    font-size: clamp(28px, 8.4vw, 36px);
  }

  .runway-card {
    padding: 26px 18px;
    border-left-width: 7px;
  }

  .runway-card h3 {
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 39px);
  }

  .runway-card p {
    font-size: 17px;
  }

  .runway-card ul,
  .hero-actions {
    display: grid;
  }

  .chart-frame img {
    min-height: 390px;
  }

  .sector-point {
    font-size: 11px;
    padding: 7px 9px;
  }

  .radio-panel {
    min-height: 330px;
  }

  .radio-panel h3 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .check-row {
    grid-template-columns: 38px 1fr;
  }

  .check-row b {
    font-size: clamp(24px, 7.6vw, 34px);
  }

  .flight-marks {
    grid-template-columns: 1fr;
  }

  .support-section {
    min-height: 610px;
  }

  .support-section img {
    object-position: 58% center;
  }

  .support-note {
    width: 100%;
  }
}
