@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Lora:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #dfeaf3;
  --bg-mid: #cfe0ef;
  --bg-glow: #b7d2eb;
  --bg-panel: rgba(255, 255, 255, 0.75);
  --panel-alt: rgba(245, 249, 252, 0.88);
  --navy: #204f7a;
  --navy-bright: #4b7dad;
  --blue-soft: #4d7dad;
  --teal-soft: #6fb8bd;
  --gold: #d9b46a;
  --text-main: #1d3145;
  --text-soft: #405f7a;
  --dark-text: #dfeaf7;
  --dark-muted: #c0d4eb;
  --line: rgba(46, 73, 94, 0.12);
  --shadow: 0 18px 36px rgba(33, 58, 78, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lora", serif;
  background: #f4f8fc;
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.brand,
.site-header,
nav a,
.card h2,
.card h3,
.result-badge,
.result-subtitle,
.result-board-card h3,
.result-metric-label,
.result-metric-value,
.footer-signature {
  font-family: "Boldonse", system-ui, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #dfeeff;
}

header {
  background: linear-gradient(180deg, #ffffff 0%, #edf5fb 100%);
  border-bottom: 1px solid rgba(31, 76, 117, 0.12);
  backdrop-filter: blur(10px);
  position: static;
  z-index: 1;
}

.site-header {
  display: block;
  text-align: center;
  padding-top: 0.45rem;
  width: 100%;
}

.hero-banner-image {
  display: block;
  width: min(100%, 1200px);
  max-width: calc(100% - 32px);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  object-fit: cover;
}

header .topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.1rem;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfeeff, #b8d9f7);
  color: var(--navy);
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  position: relative;
  top: 0.02rem;
  box-shadow: 0 6px 16px rgba(32, 79, 122, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.brand-icon:hover,
.brand-icon-plane:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(32, 79, 122, 0.18);
  filter: brightness(1.04);
}

.brand-icon-plane {
  font-size: 1.05rem;
  line-height: 1;
  transform: rotate(-28deg) scale(1.05);
  left: 0.02rem;
}

.brand {
  font-family: "Boldonse", system-ui, sans-serif;
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(32, 79, 122, 0.12);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 8px 18px rgba(29, 47, 68, 0.06);
  display: inline-block;
  margin: 0;
  background-image: linear-gradient(135deg, #204f7a 0%, #4b7dad 30%, #7ab7d8 60%, #204f7a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  transition: background-position 0.45s ease, transform 0.25s ease, filter 0.25s ease;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.brand:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 16px rgba(48, 100, 152, 0.18));
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
  margin: 0;
  margin-bottom: 0;
}

nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--navy);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
  font-size: 1.08rem;
  line-height: 1.1;
  position: relative;
  transition: all 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(32, 79, 122, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav a:hover {
  border-color: rgba(38, 78, 112, 0.14);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 18px rgba(30, 53, 69, 0.08);
  transform: translateY(-1px);
  color: #6f9cc7;
}

nav a:hover::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, rgba(111, 156, 199, 0.9), transparent);
}

main {
  background: linear-gradient(180deg, #244d6d 0%, #2a5d7d 100%);
  color: var(--dark-text);
  max-width: none;
  margin: 0;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
}

main > section,
main > .card {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 1100px);
}

.hero-copy {
  background: linear-gradient(180deg, rgba(42, 71, 90, 0.8) 0%, rgba(27, 48, 63, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(2, 11, 18, 0.14);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-copy-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.8rem 1.6rem 1.2rem;
}

.hero-copy p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #dfeeff;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
section h2,
section h3,
.card h3,
.card h4 {
  font-family: "Lora", serif;
  color: #f3f9ff;
  margin-top: 0;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--dark-muted);
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}

.hero-image {
  position: sticky;
  top: 110px;
  align-self: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

button,
.btn,
input[type="submit"],
input[type="button"] {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
}

.btn-primary,
button.primary,
input[type="submit"] {
  background: linear-gradient(135deg, #3e7eb7 0%, #76bfd9 100%);
  color: #ffffff;
  font-family: "Lora", serif;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(34, 118, 185, 0.28);
}

.btn-secondary {
  background: rgba(240, 246, 251, 0.86);
  color: var(--navy);
  border: 1px solid rgba(32, 79, 122, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(180deg, rgba(31, 57, 73, 0.7) 0%, rgba(20, 38, 50, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 12px 24px rgba(2, 11, 18, 0.1);
  padding: 1.4rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(2, 11, 18, 0.12);
}

.auth-card,
.auth-form-card,
.about-card {
  padding: 0.9rem;
  border-radius: 28px;
}

.auth-card-inner,
.auth-form-card-inner,
.about-card-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.2rem;
}

.accordion-wrap {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  gap: 1.35rem;
}

details.card.accordion-item {
  overflow: hidden;
  border-radius: 26px !important;
  background: linear-gradient(180deg, rgba(31, 57, 73, 0.7) 0%, rgba(20, 38, 50, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(2, 11, 18, 0.1);
}

details.card.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: block;
  font-family: "Lora", serif;
  font-size: 1.45rem;
  color: #f3f9ff;
  font-weight: 600;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.04);
  margin: 0;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item[open] summary {
  margin-bottom: 0.9rem;
}

.accordion-content {
  padding: 1rem 0.8rem 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.details-card,
.accordion-item {
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  text-align: center;
}

.card p,
.card li,
.card td,
.card th,
label,
input,
textarea,
select {
  color: #dfeeff;
  font-family: "Lora", serif;
}

.card p,
.card li {
  color: #dfeeff;
}

.accordion-content p,
.accordion-content li,
.accordion-content td,
.accordion-content th {
  color: #dfeeff;
}

.result-card,
.guess-card {
  width: min(100%, 820px);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(39, 82, 104, 0.72) 0%, rgba(21, 47, 60, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(2, 11, 18, 0.16);
  padding: 1.5rem;
}

.result-inner-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.result-badge {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ecf9ff;
  font-family: "Lora", serif;
  text-shadow: 0 8px 18px rgba(255, 223, 146, 0.25);
  display: inline-block;
  position: relative;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
  animation: niceFloat 2.8s ease-in-out infinite alternate;
}

.result-badge::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 146, 0.85), transparent);
  transform: scaleX(0.4);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.result-badge:hover {
  transform: translateY(-2px) scale(1.04);
  text-shadow: 0 12px 22px rgba(255, 223, 146, 0.38);
}

.result-badge:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

@keyframes niceFloat {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-3px);
  }
}

.result-subtitle {
  margin: 0 0 1.1rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #edf8ff;
  font-family: "Lora", serif;
}

.result-page {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.result-stats {
  display: grid;
  gap: 0.8rem;
}

.result-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.result-score-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.result-metric-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.result-metric-value {
  display: block;
  font-size: 1.08rem;
  color: #ffffff;
  font-family: "Lora", serif;
  font-weight: 600;
}

.result-metric-value.guess-value {
  color: #8bbce8;
}

.result-metric-value.actual-value {
  color: #ff9e9e;
}

.result-metric-value.score-value {
  color: #9fe0a5;
}

.result-board-card {
  background: linear-gradient(180deg, rgba(39, 82, 104, 0.72) 0%, rgba(21, 47, 60, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(2, 11, 18, 0.16);
  padding: 1.2rem 1rem;
}

.result-board-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: #ffffff;
  font-family: "Lora", serif;
  text-align: center;
}

.result-board-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.result-board-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #edf8ff;
  font-family: "Lora", serif;
}

.result-board-card strong {
  color: #ffffff;
  font-weight: 700;
}

.result-line {
  margin: 0.6rem 0;
  font-size: 1.1rem;
  color: #e8f0fa;
  font-family: "Lora", serif;
}

.guess-card p {
  color: #ffffff;
  margin-top: 1.1rem;
  text-align: center;
}

@media (min-width: 992px) {
  .guess-card p {
    text-align: center;
  }
}

.result-actual {
  color: #ffb3b3;
  font-weight: 700;
}

.result-score {
  color: #b9f1c2;
  font-weight: 700;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.panel {
  grid-column: span 4;
}

.panel-wide {
  grid-column: span 8;
}

section {
  margin-top: 2rem;
}

section h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  margin-bottom: 1rem;
}

ul {
  padding-left: 0;
  margin: 0 auto;
  list-style-position: inside;
  max-width: 700px;
  text-align: center;
}

table {
  width: min(100%, 520px);
  margin: 0 auto;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

th,
td {
  text-align: left;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--blue-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

.guess-form {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
}

.guess-form .col-md-6 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guess-form .form-label {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.guess-form .form-control {
  max-width: 420px;
  margin: 0 auto;
}

form {
  display: grid;
  gap: 1rem;
}

form + p {
  margin-top: 1.2rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(159, 188, 219, 0.5);
  background: rgba(226, 237, 247, 0.75);
  color: #18334b;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(18, 45, 63, 0.04);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(134, 184, 255, 0.35);
  border-color: rgba(134, 184, 255, 0.7);
  background: rgba(236, 244, 252, 0.95);
}

#country,
#city,
#username,
#email,
#password {
  transition: border-color 0.2s ease, background 0.2s ease;
}

footer {
  background: linear-gradient(180deg, #ffffff 0%, #edf5fb 100%);
  border-top: 1px solid rgba(31, 76, 117, 0.12);
  padding: 1.4rem 1rem 2rem;
  text-align: center;
  color: var(--navy);
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer-signature {
  position: relative;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-signature::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(32, 79, 122, 0.8), transparent);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.footer-signature:hover {
  transform: translateY(-1px);
  color: var(--navy);
}

.footer-signature:hover::after {
  width: 100%;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.footer-brand .brand {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 79, 122, 0.12);
  box-shadow: 0 8px 18px rgba(29, 47, 68, 0.06);
}

.footer-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 79, 122, 0.12);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-github:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel-wide {
    grid-column: span 1;
  }

  .site-header {
    padding-top: 0.75rem;
  }

  .brand-wrap {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .brand {
    font-size: clamp(1.4rem, 5vw, 2rem);
    letter-spacing: 0.05em;
    padding: 0.35rem 0.7rem;
  }

  .brand-icon {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.9rem;
  }

  .brand-icon-plane {
    transform: rotate(-28deg) scale(0.96);
  }

  .hero-banner-image {
    width: min(100%, 100%);
    max-width: none;
    margin-top: 1rem;
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 700px) {
  nav {
    width: min(100%, calc(100% - 0.75rem));
    margin: 0 auto;
    gap: 0.28rem;
    padding: 0.45rem 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: none;
    position: relative;
  }

  nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
    border-radius: 0 12px 12px 0;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.38rem 0.44rem;
    white-space: nowrap;
  }

  .result-page {
    grid-template-columns: 1fr;
  }

  .result-board-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
  }

  .brand-icon {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.62rem;
    min-width: 1.2rem;
  }

  .brand-icon-plane {
    transform: rotate(-28deg) scale(0.8);
  }

  nav {
    width: min(100%, calc(100% - 0.5rem));
    gap: 0.18rem;
    padding: 0.42rem 0.2rem;
    flex-wrap: nowrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.68rem;
    padding: 0.36rem 0.34rem;
    letter-spacing: 0.01em;
  }

  .result-mile,
  .result-card,
  .result-board-card {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .result-metric {
    padding: 0.7rem 0.75rem;
  }

  .result-metric-label {
    font-size: 0.62rem;
  }

  .result-metric-value {
    font-size: 0.98rem;
  }

  .hero-copy,
  .card {
    padding: 1.1rem 1rem;
  }

  main {
    padding-top: 1.25rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .card p,
  .card li,
  .card td,
  .card th,
  label,
  input,
  textarea,
  select {
    font-size: 0.96rem;
  }

  .button-row {
    flex-direction: column;
  }

  button,
  .btn,
  input[type="submit"],
  input[type="button"] {
    width: 100%;
  }
}