:root {
  color: #1d2a30;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #dbe2e4;
  background: #ffffff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  color: #123f4a;
  font-weight: 700;
  text-decoration: none;
}

.navigation-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.navigation-list a {
  text-decoration: none;
}

.navigation-list a:hover,
.navigation-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.hero,
.section {
  padding: 4.5rem 0;
}

.hero {
  background: #f2f7f6;
}

.hero-content {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #25606a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #123f4a;
  line-height: 1.2;
}

h1 {
  max-width: 40rem;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-intro {
  font-size: 1.2rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid #123f4a;
  border-radius: 0.25rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: #123f4a;
}

.button-secondary {
  color: #123f4a;
  background: #ffffff;
}

.button-danger {
  border-color: #9b2c2c;
  color: #ffffff;
  background: #9b2c2c;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #7a1d1d;
}

.section-layout,
.contact-content {
  display: grid;
  gap: 2rem;
}

.prose {
  max-width: 38rem;
}

.section-muted {
  background: #f6f7f5;
}

.price-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.price-card {
  padding: 1.5rem;
  border: 1px solid #dbe2e4;
  border-radius: 0.4rem;
  background: #ffffff;
}

.price-card h3 {
  margin-bottom: 0.75rem;
}

.price {
  color: #123f4a;
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 700;
}

.site-footer {
  padding: 1.5rem 0;
  color: #ffffff;
  background: #123f4a;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content a {
  font-size: 0.9rem;
}

.private-page {
  background: #f2f7f6;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(100%, 30rem);
  padding: 2rem;
  border: 1px solid #dbe2e4;
  border-radius: 0.4rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgb(18 63 74 / 8%);
}

.auth-card .brand {
  display: inline-block;
  margin-bottom: 2rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #95a8ad;
  border-radius: 0.25rem;
  color: inherit;
  font: inherit;
}

.form-field select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #95a8ad;
  border-radius: 0.25rem;
  color: inherit;
  background: #ffffff;
  font: inherit;
}

.form-field input:focus-visible {
  outline: 3px solid #78aeb5;
  outline-offset: 2px;
}

.form-error {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-left: 0.25rem solid #9b2c2c;
  color: #7a1d1d;
  background: #fff4f4;
}

.field-error {
  color: #7a1d1d;
  font-weight: 700;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-field input {
  inline-size: 1.15rem;
  block-size: 1.15rem;
}

.pilot-layout {
  width: min(100% - 2rem, 84rem);
  margin: 0 auto;
  padding: 1rem 0;
}

.pilot-panel {
  padding: 1.15rem;
  border: 1px solid #dbe2e4;
  border-radius: 0.4rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgb(18 63 74 / 8%);
}

.pilot-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pilot-header .brand,
.form-panel .brand,
.result-panel .brand {
  display: inline-block;
  margin-bottom: 1rem;
}

.pilot-panel h1 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.pilot-panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.pilot-panel .button {
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

.empty-state,
.notice {
  padding: 1rem;
  border-left: 0.25rem solid #25606a;
  background: #f2f7f6;
}

.flight-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.flight-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dbe2e4;
  border-radius: 0.25rem;
}

.flight-list a {
  font-weight: 700;
}

.flight-list span {
  font-size: 0.9rem;
}

.flight-table-wrapper {
  margin: 0 0 1rem;
  overflow-x: auto;
}

.flight-table {
  width: 100%;
  border-collapse: collapse;
}

.flight-table th,
.flight-table td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid #dbe2e4;
  text-align: left;
  vertical-align: top;
}

.flight-table th {
  color: #123f4a;
  font-size: 0.9rem;
}

.flight-table th:last-child,
.flight-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.flight-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.flight-document-actions,
.flight-email-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.flight-actions .checkbox-field label {
  font-size: 0.85rem;
}

.contact-role {
  color: #52656a;
  font-size: 0.8rem;
}

.flight-delete-action {
  margin-left: auto;
  padding-left: 0.4rem;
  border-left: 1px solid #dbe2e4;
}

.result-panel {
  max-width: 38rem;
}

.qr-code {
  display: block;
  width: min(100%, 18rem);
  margin: 1.5rem auto;
  border: 1px solid #dbe2e4;
}

.qr-code-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.public-flight-page {
  max-width: 42rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.flight-details {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.flight-details div {
  padding: 1rem;
  border: 1px solid #dbe2e4;
  border-radius: 0.25rem;
}

.flight-details dt {
  color: #25606a;
  font-size: 0.9rem;
  font-weight: 700;
}

.flight-details dd {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.document-link {
  display: inline-block;
  margin: 1rem 0;
  font-weight: 700;
}

.acceptance-declarations {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #dbe2e4;
}

.acceptance-declarations legend {
  padding: 0 0.35rem;
  color: #123f4a;
  font-weight: 700;
}

.acceptance-declarations .checkbox-field {
  margin: 0;
}

.signature-section {
  margin: 1.5rem 0;
}

.signature-section h2 {
  font-size: 1.35rem;
}

.form-section-title {
  margin: 2rem 0 1rem;
  font-size: 1.35rem;
}

.network-status {
  margin: 1rem 0;
  padding: 0.75rem;
  border-left: 0.25rem solid #9b2c2c;
  color: #7a1d1d;
  background: #fff4f4;
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 220px;
  border: 1px solid #95a8ad;
  border-radius: 0.25rem;
  background: #ffffff;
  touch-action: none;
}

@media (min-width: 48rem) {
  .section-layout,
  .contact-content {
    grid-template-columns: minmax(12rem, 1fr) 2fr;
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .header-content {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .navigation-list {
    justify-content: flex-start;
  }

  .pilot-header,
  .flight-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .flight-table-wrapper {
    overflow: visible;
  }

  .flight-table,
  .flight-table tbody,
  .flight-table tr,
  .flight-table td {
    display: block;
    width: 100%;
  }

  .flight-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .flight-table tr {
    margin-bottom: 1rem;
    border: 1px solid #dbe2e4;
    border-radius: 0.25rem;
  }

  .flight-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 40%) 1fr;
    gap: 0.75rem;
    border-bottom: 1px solid #edf1f2;
  }

  .flight-table td:last-child {
    border-bottom: 0;
  }

  .flight-table td::before {
    content: attr(data-label);
    color: #25606a;
    font-size: 0.85rem;
    font-weight: 700;
  }

  .flight-table th:last-child,
  .flight-table td:last-child {
    width: 100%;
    white-space: normal;
  }

  .flight-actions,
  .flight-document-actions,
  .flight-email-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .flight-delete-action {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .hero,
  .section {
    padding: 3.5rem 0;
  }
}
