:root {
  --sky: #0ea5e9;
  --deep: #0f3f68;
  --ink: #102033;
  --muted: #657489;
  --line: #d9e5ee;
  --soft: #f3f8fb;
  --white: #ffffff;
  --sun: #f5b942;
  --shadow: 0 18px 45px rgba(16, 32, 51, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Tahoma, sans-serif;
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.brand img { height: 54px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.site-nav a, .lang-toggle {
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.site-nav a:hover, .site-nav a.active, .lang-toggle:hover {
  color: var(--deep);
  background: var(--soft);
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 7vw, 92px);
  color: var(--white);
}
.hero-slider, .hero-slider img {
  position: absolute;
  inset: 0;
}
.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 1400ms ease;
}
.hero-slider img.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 31, 51, .78), rgba(4, 31, 51, .28) 58%, rgba(4, 31, 51, .12));
}
[dir="rtl"] .hero::after {
  background: linear-gradient(270deg, rgba(4, 31, 51, .78), rgba(4, 31, 51, .28) 58%, rgba(4, 31, 51, .12));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-content p {
  color: var(--sun);
  font-weight: 800;
  margin: 0 0 10px;
}
.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 1.04;
}
.hero-content span {
  display: block;
  max-width: 620px;
  font-size: clamp(18px, 2.3vw, 24px);
  color: rgba(255,255,255,.92);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(14, 165, 233, .25);
}
.button.ghost {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
}
.button.wide { width: 100%; }
.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  pointer-events: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.stats div {
  background: var(--white);
  padding: 28px 18px;
  text-align: center;
}
.stats strong {
  display: block;
  color: var(--sky);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
}
.stats span { color: var(--muted); font-weight: 700; }

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.centered-copy {
  max-width: 960px;
  text-align: center;
}
.centered-copy p {
  color: var(--muted);
  font-size: 18px;
}
.section h2, .page-hero h1 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}
.section-heading p, .page-hero p, .muted { color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card, .contact-card, .booking-panel, .booking-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}
.feature-card h3 { margin: 0 0 8px; color: var(--deep); }
.feature-card p { margin: 0; color: var(--muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.mini-card {
  border: 1px solid #a9dcff;
  border-radius: 8px;
  background: white;
  padding: 24px;
  text-align: center;
}
.mini-card h3 { margin: 0 0 6px; color: var(--deep); }
.mini-card p { margin: 0; color: var(--muted); }
.accent { color: #e77917; font-weight: 800; }
.portrait { aspect-ratio: 1 / 1; }
.founder-section h3 { color: var(--deep); font-size: 28px; margin-bottom: 4px; }
.founder-section h4 { color: var(--deep); }
.card-stats {
  background: transparent;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
.card-stats div {
  border: 1px solid #a9dcff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(rgba(15, 63, 104, .74), rgba(15, 63, 104, .56)), url("../images/hero-alexandria.jpg") center/cover;
  color: var(--white);
}
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.9); font-size: 19px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.rounded-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid #8ed0ff;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}
.course-card:nth-of-type(even) img { order: -1; }
.course-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.course-body {
  padding: clamp(24px, 4vw, 42px);
}
.course-body h3 {
  margin: 0 0 6px;
  color: var(--deep);
  font-size: clamp(24px, 4vw, 34px);
}
.course-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.course-meta span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  border-radius: 8px;
  background: #eef8ff;
  padding: 12px;
  color: var(--deep);
  font-weight: 800;
}
.course-meta small {
  color: var(--sky);
  font-weight: 700;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 9px;
}
.check-list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--sky);
  border-radius: 50%;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.notice.warn {
  margin-top: 18px;
  background: #fff8e5;
  color: #9a5a00;
  border: 1px solid #f5c84c;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.info-card, .benefit-box {
  border: 1px solid #a9dcff;
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: var(--shadow);
}
.info-card h3 { margin: 0 0 16px; color: var(--deep); }
.benefit-box {
  max-width: 840px;
  margin: 0 auto 52px;
}
.aerial-content {
  display: grid;
  gap: 20px;
  margin-bottom: 54px;
}
.aerial-content > p,
.aerial-content-block {
  background: white;
  border: 1px solid #a9dcff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.aerial-content-block h3 { margin-top: 0; color: var(--deep); }
.two-columns {
  grid-template-columns: repeat(2, 1fr);
}
.aerial-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 42px;
  padding: 8px;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}
.aerial-tabs a {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}
.aerial-tabs a.active {
  background: var(--sky);
  color: white;
}
.map-icon {
  margin: 0 auto 12px;
  color: var(--sky);
  font-size: 40px;
  font-weight: 900;
}
.calc-card, .cost-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 22px;
}
.calc-card h3, .cost-summary h3 {
  margin: 0 0 16px;
  color: var(--deep);
}
.region-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.region-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--deep);
  font-weight: 800;
  cursor: pointer;
}
.region-tabs button.active {
  background: #1f568b;
  color: white;
  border-color: #1f568b;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.route-preview {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.route-preview strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #1f568b;
  color: white;
}
.route-preview i {
  border-top: 2px dashed #a9c2de;
}
.addon-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  color: var(--ink);
}
.addon-row strong {
  color: var(--deep);
  font-weight: 800;
}
.cost-summary {
  border-color: #1f568b;
}
.cost-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
}
.cost-summary dt {
  color: var(--muted);
}
.cost-summary dd {
  margin: 0;
  font-weight: 800;
}
.cost-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: #1f568b;
  font-size: 20px;
}
.paramotor-sections {
  width: 100%;
  padding-bottom: 0;
}
.paramotor-row {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  border-bottom: 1px solid #cfe7f7;
}
.paramotor-row.reverse img { order: 2; }
.paramotor-row h2 {
  color: var(--deep);
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 18px;
}
.paramotor-row p {
  color: var(--ink);
  font-size: 17px;
}
.warning-block {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto 70px;
}
.warning-block p { margin-bottom: 0; }
.cta-band {
  text-align: center;
  padding: 76px 18px;
  background: linear-gradient(135deg, #12a8dd, #2d68f0);
  color: white;
}
.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
}
.cta-band p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255,255,255,.88);
  font-size: 18px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.location-list, .camera-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 28px;
}
.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.booking-fields label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: .92rem;
  font-weight: 700;
}
.booking-phone-field {
  grid-column: 1 / -1;
}
.booking-calendar-field {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: .92rem;
  font-weight: 700;
  grid-column: 1 / -1;
}
.booking-fields input,
.booking-fields select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}
.booking-calendar {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 12px;
}
.calendar-header {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 36px 1fr 36px;
  margin-bottom: 10px;
  text-align: center;
}
.calendar-header button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--deep);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  min-height: 34px;
}
.calendar-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekday {
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}
.calendar-grid button,
.calendar-blank {
  aspect-ratio: 1;
  border-radius: 6px;
  display: grid;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  place-items: center;
}
.calendar-grid button {
  border: 1px solid var(--line);
}
.calendar-grid button.is-disabled {
  background: #edf2f6;
  color: #a5b1bd;
  cursor: not-allowed;
}
.calendar-grid button.is-available {
  background: #fff;
  color: var(--sky);
  cursor: pointer;
}
.calendar-grid button.is-selected {
  background: var(--sky);
  border-color: var(--sky);
  color: white;
}
.calendar-empty {
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.booking-slots-field {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: .92rem;
  font-weight: 700;
  margin-top: 16px;
  padding-top: 16px;
}
.booking-slots {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}
.booking-validation {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
}
.booking-validation:empty,
.booking-validation[hidden] {
  display: none;
}
.booking-validation p { margin: 0; }
.participant-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}
.participant-fields h3 { font-size: 1rem; margin: 0; }
.participant-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.participant-row label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: .9rem;
  font-weight: 700;
}
.participant-row input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}
.option-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.option-row input { margin-top: 4px; }
.option-row span { display: grid; gap: 4px; }
.option-row small { color: var(--sky); font-weight: 800; }
.option-row.disabled { opacity: .48; cursor: not-allowed; }
.location-details-list {
  margin: 18px 0 30px;
}
.location-detail {
  display: none;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 16px;
}
.location-detail.active {
  display: grid;
}
.location-detail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}
.location-detail h3 {
  margin: 0 0 4px;
  color: var(--deep);
}
.location-status {
  margin: 0 0 12px;
  color: var(--sky);
  font-weight: 800;
}
.location-detail dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
  margin: 0;
}
.location-detail dt {
  color: var(--muted);
  font-weight: 800;
}
.location-detail dd {
  margin: 0;
}
.location-detail dd a {
  color: var(--sky);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.booking-summary { position: sticky; top: 100px; }
.booking-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 20px 0;
}
.booking-summary dt { color: var(--muted); }
.booking-summary dd { margin: 0; font-weight: 800; color: var(--deep); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid.two { grid-template-columns: repeat(2, 1fr); }
.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .28s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 34px 14px 14px;
  color: white;
  font-weight: 800;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

.pilots-page { background: #f3fbff; }
.pilot-search-card {
  background: var(--white);
  border: 1px solid #bde7ff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin: 0 auto 22px;
  max-width: 980px;
  padding: 18px;
}
.pilot-search-card label { color: var(--deep); display: grid; gap: 8px; font-weight: 800; }
.pilot-search-card input { border: 1px solid #bde7ff; border-radius: 8px; font: inherit; padding: 13px 14px; }
.pilot-search-message { color: #b91c1c; font-weight: 800; margin: 0; }
.pilot-registry { display: grid; gap: 22px; }
.pilot-results {
  display: none;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.pilot-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  padding: 12px;
  text-align: center;
}
.pilot-result.active { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(14, 147, 204, .12); }
.pilot-result img { aspect-ratio: 1; border-radius: 50%; justify-self: center; object-fit: cover; width: 92px; }
.pilot-result h3 { margin: 0 0 4px; }
.pilot-result p, .pilot-result span { color: var(--muted); display: block; font-size: .9rem; margin: 0; }
.pilot-card-print { display: none; }
.pilot-card-print.active { display: block; }
.pilot-license-card {
  background: #fff;
  border: 1px solid #d7dde6;
  box-shadow: var(--shadow);
  color: #111827;
  aspect-ratio: 968 / 612;
  overflow: hidden;
  padding: 28px;
  position: relative;
}
.pilot-license-front {
  background: url("../images/pilot-card-front.png") center / cover no-repeat;
}
.pilot-license-back {
  aspect-ratio: 968 / 612;
  background: url("../images/pilot-card-back.png") center / cover no-repeat;
  border: 1px solid #d7dde6;
  box-shadow: var(--shadow);
  margin-top: 18px;
}
.pilot-license-card:before {
  content: none;
}
.license-bg { display: none; }
.license-bg.left { inset-inline-start: -60px; }
.license-bg.right { inset-inline-end: -50px; }
.pilot-license-card header, .license-main, .pilot-license-card footer, .rating-lines { position: relative; z-index: 1; }
.pilot-license-card header { display: contents; }
.pilot-license-card h2 {
  font-size: clamp(14px, 2.45vw, 28px);
  font-weight: 900;
  inset-block-start: 8.5%;
  inset-inline-start: 6%;
  margin: 0;
  position: absolute;
  text-transform: uppercase;
}
.pilot-license-card header div {
  display: grid;
  font-size: clamp(14px, 2.2vw, 27px);
  font-weight: 900;
  gap: 4px;
  inset-block-start: 8.2%;
  inset-inline-end: 6%;
  position: absolute;
  text-align: end;
}
.pilot-license-card header span { font-size: clamp(12px, 2vw, 23px); }
.license-main { display: contents; }
.license-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  inset-block-start: 19%;
  inset-inline-start: 10%;
  object-fit: cover;
  position: absolute;
  width: 16%;
}
.license-identity {
  inset-block-start: 21%;
  inset-inline-start: 30%;
  position: absolute;
}
.license-identity h3 { font-size: clamp(12px, 1.85vw, 22px); margin: 0 0 .45em; }
.license-identity p { font-size: clamp(11px, 1.55vw, 19px); margin: .45em 0; }
.license-identity span { margin-inline-start: 28px; }
.license-instructor { display: none; }
.rating-lines {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  display: grid;
  font-size: clamp(10px, 1.45vw, 16px);
  font-weight: 700;
  gap: 5px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  inset-block-start: 51%;
  inset-inline-start: 31%;
  line-height: 1.15;
  max-width: 30%;
  min-width: 235px;
  padding: 8px 10px;
  position: absolute;
  text-align: center;
}
.rating-lines span { white-space: nowrap; }
.pilot-license-card footer { display: contents; }
.fai-note, .signature { display: none; }
.license-qr {
  border: 4px solid #9aa8bc;
  border-radius: 12px;
  inset-block-end: 6%;
  inset-inline-start: 56%;
  padding: 8px;
  position: absolute;
  width: 13%;
}
.pilot-card-actions { display: flex; gap: 10px; justify-content: end; margin-top: 14px; }
.pilot-modal[hidden] { display: none; }
.pilot-modal {
  align-items: start;
  background: rgba(8, 17, 30, .72);
  display: grid;
  inset: 0;
  justify-items: center;
  overflow: auto;
  padding: 34px 18px;
  position: fixed;
  z-index: 1000;
}
.pilot-modal-panel {
  background: #fff;
  border-radius: 8px;
  max-width: 1040px;
  padding: 18px;
  position: relative;
  width: min(100%, 1040px);
}
.pilot-modal-close {
  align-items: center;
  background: var(--deep);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 38px;
  z-index: 2;
}
.pilot-pagination {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pilot-pagination button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-width: 38px;
  padding: 8px 10px;
}
.pilot-pagination button.active {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}
.contact-card p { color: var(--muted); }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--deep);
  font-weight: 800;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: white;
}
textarea { resize: vertical; }

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 72px);
  background: var(--deep);
  color: white;
}
.site-footer h2 { margin: 0 0 8px; }
.site-footer p { margin: 0; color: rgba(255,255,255,.78); }
.site-footer div:nth-child(2) {
  display: grid;
  gap: 8px;
  align-content: start;
}
.site-footer > p {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.admin-body { background: var(--soft); }
.admin-shell {
  width: min(1120px, calc(100% - 30px));
  margin: 30px auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-tabs a {
  padding: 10px 14px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
}
.admin-tabs a.active { background: var(--deep); color: white; }
.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}
.pilot-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pilot-toolbar p { margin: 4px 0 0; }
.pilot-accordion {
  overflow: hidden;
  padding: 0;
}
.pilot-accordion summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px 52px 1fr auto;
  list-style: none;
  padding: 14px 16px;
}
.pilot-accordion summary::-webkit-details-marker { display: none; }
.pilot-accordion summary:after {
  color: var(--sky);
  content: "+";
  font-size: 24px;
  font-weight: 900;
}
.pilot-accordion[open] summary:after { content: "-"; }
.pilot-accordion summary img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  width: 52px;
}
.pilot-accordion summary span { display: grid; gap: 4px; }
.pilot-accordion summary small { color: var(--muted); }
.pilot-accordion > .admin-grid,
.pilot-accordion > h3,
.pilot-accordion > .admin-actions {
  margin-inline: 18px;
}
.pilot-accordion > .admin-actions { margin-bottom: 18px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.admin-list {
  display: grid;
  gap: 14px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.booking-admin-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.booking-admin-header h2 {
  margin: 0 0 6px;
}
.booking-admin-header .admin-actions {
  margin-top: 0;
}
.admin-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.admin-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
}
.admin-table th {
  background: #f8fbfd;
  color: var(--deep);
  font-size: .84rem;
}
.admin-table td {
  font-size: .9rem;
}
.admin-mini-list {
  margin: 6px 0 0;
  padding-inline-start: 18px;
}
.admin-mini-list li {
  margin: 3px 0;
  white-space: nowrap;
}
.admin-table textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-width: 260px;
  resize: vertical;
  width: 100%;
}
.inline-admin-form {
  display: grid;
  gap: 8px;
  min-width: 240px;
}
.inline-admin-form input,
.inline-admin-form select,
.inline-admin-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 8px;
}
.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 900;
  padding: 5px 9px;
}
.status-pending,
.status-available {
  background: #fef3c7;
  color: #92400e;
}
.status-confirmed,
.status-paid {
  background: #dbeafe;
  color: #1e40af;
}
.status-completed {
  background: #dcfce7;
  color: #166534;
}
.status-cancelled,
.status-expired,
.status-closed,
.status-full {
  background: #fee2e2;
  color: #991b1b;
}
.notice {
  padding: 12px 14px;
  border-radius: 6px;
  background: #e8f7ed;
  color: #146c2e;
  margin-bottom: 16px;
}
.danger {
  background: #dc2626;
  color: white;
}
.button.danger,
.button.ghost.danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.button.danger:hover,
.button.ghost.danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}
.thumb-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
}
.thumb-row img {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    margin-inline-start: auto;
    border: 1px solid var(--line);
    background: white;
    border-radius: 6px;
    padding: 8px 11px;
    font-size: 22px;
  }
  .site-header { flex-wrap: wrap; }
  .site-nav {
    order: 3;
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .site-nav.is-open { display: flex; }
  .feature-grid, .feature-grid.three, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-layout, .contact-layout, .two-col, .course-card, .info-grid, .paramotor-row, .calc-grid, .location-detail, .location-detail dl, .pilot-registry, .license-main, .pilot-license-card footer { grid-template-columns: 1fr; }
  .region-tabs { grid-template-columns: 1fr; }
  .course-card:nth-of-type(even) img { order: 0; }
  .paramotor-row.reverse img { order: 0; }
  .course-card img { min-height: 320px; }
  .booking-summary { position: static; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-admin-header { display: grid; }
  .participant-row { grid-template-columns: 1fr; }
  .booking-fields label:first-child,
  .booking-fields label:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 16px; }
  .brand img { height: 44px; }
  .hero { min-height: 680px; padding: 84px 18px; }
  .stats, .card-stats, .feature-grid, .feature-grid.three, .gallery-grid, .gallery-grid.two, .service-grid, .admin-grid, .site-footer, .course-meta, .two-columns, .aerial-tabs { grid-template-columns: 1fr; }
  .route-preview { grid-template-columns: auto 1fr auto; }
  .route-preview span:first-of-type, .route-preview span:last-of-type { grid-column: 1 / -1; }
  .section { padding: 50px 0; }
  .thumb-row { grid-template-columns: 86px 1fr; }
  .thumb-row img { width: 86px; height: 66px; }
  .thumb-row form { grid-column: 1 / -1; }
  .pilot-modal { padding: 34px 10px; }
  .booking-calendar {
    padding: 10px;
  }
  .booking-slots {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    gap: 4px;
  }
  .calendar-grid button,
  .calendar-blank {
    font-size: .78rem;
  }
  .calendar-header {
    grid-template-columns: 32px 1fr 32px;
  }
  .pilot-modal-panel {
    padding: 18px;
    width: min(100%, 370px);
  }
  .pilot-card-actions { display: none; }
  .pilot-license-card { padding: 10px; }
  .pilot-license-card h2 {
    font-size: 10px;
    line-height: 1.05;
  }
  .pilot-license-card header div {
    font-size: 9px;
    gap: 1px;
    line-height: 1.05;
    max-width: 46%;
  }
  .pilot-license-card header span { font-size: 8px; }
  .license-identity {
    inset-block-start: 20%;
    inset-inline-end: 32%;
    inset-inline-start: 31%;
  }
  .license-identity h3 {
    font-size: 8px;
    line-height: 1.05;
    margin: 0 0 4px;
  }
  .license-identity p {
    font-size: 6.5px;
    line-height: 1.1;
    margin: 3px 0;
  }
  .license-identity span { margin-inline-start: 8px; }
  .rating-lines {
    font-size: 5.8px;
    gap: 2px 4px;
    inset-block-start: 52.5%;
    inset-inline-start: 31%;
    line-height: 1.08;
    max-width: 34%;
    min-width: 0;
    padding: 0;
    width: 34%;
  }
  .license-qr {
    border-width: 2px;
    border-radius: 4px;
    padding: 3px;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0;
  }
  html, body {
    background: #fff;
    margin: 0;
    padding: 0;
  }
  body * {
    visibility: hidden !important;
  }
  .pilot-card-print.active,
  .pilot-card-print.active * {
    visibility: visible !important;
  }
  .pilot-card-print.active {
    display: block !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
  }
  .pilot-card-print:not(.active),
  .pilot-card-actions,
  .pilot-modal-close,
  .site-header,
  .site-footer,
  .page-hero,
  .pilot-search-card,
  .pilot-results,
  .pilot-pagination {
    display: none !important;
  }
  .pilot-license-card,
  .pilot-license-back {
    -webkit-print-color-adjust: exact;
    aspect-ratio: 968 / 612;
    background-size: 100% 100% !important;
    border: 0;
    box-shadow: none;
    display: block !important;
    height: auto;
    margin: 0 auto !important;
    page-break-after: always;
    page-break-inside: avoid;
    print-color-adjust: exact;
    position: relative !important;
    height: min(100vh, calc(100vw * 612 / 968));
    width: min(100vw, calc(100vh * 968 / 612));
  }
  .pilot-license-front {
    background-image: url("../images/pilot-card-front.png") !important;
  }
  .pilot-license-back {
    background-image: url("../images/pilot-card-back.png") !important;
  }
  .pilot-license-card header,
  .license-main,
  .pilot-license-card footer {
    display: contents !important;
  }
  .pilot-license-card h2 { font-size: 16px; }
  .pilot-license-card header div { font-size: 16px; }
  .pilot-license-card header span { font-size: 14px; }
  .license-identity h3 { font-size: 14px; }
  .license-identity p { font-size: 12px; }
  .rating-lines {
    background: transparent !important;
    font-size: 12px;
    gap: 4px 10px;
    min-width: 0;
    padding: 6px 8px;
  }
  .pilot-license-back {
    page-break-after: auto;
  }
}

.trip-booking-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
  align-items: start;
}
.trip-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trip-card.active { border-color: var(--sky); }
.trip-card > img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}
.trip-card-carousel {
  aspect-ratio: 16 / 10;
  background: #eef6fb;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.trip-card-carousel img {
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .55s ease;
  width: 100%;
  object-fit: cover;
}
.trip-card-carousel img.active { opacity: 1; }
.carousel-arrow {
  align-items: center;
  background: rgba(8, 17, 30, .68);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.8rem;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  z-index: 3;
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
[dir="rtl"] .carousel-arrow.prev { left: auto; right: 10px; }
[dir="rtl"] .carousel-arrow.next { left: 10px; right: auto; }
.carousel-arrow:hover { background: rgba(8, 17, 30, .9); }
.carousel-arrow:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.trip-card > div { padding: 16px; }
.trip-card > .trip-card-carousel { padding: 0; }
.trip-card h3 { margin: 8px 0; }
.trip-status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
  font-weight: 900;
  background: #dcfce7;
  color: #166534;
}
.trip-card-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0;
}
.trip-card-meta dt { color: var(--muted); font-size: .75rem; font-weight: 800; }
.trip-card-meta dd { margin: 0; font-weight: 900; }
.trip-map-link { margin: -2px 0 18px; }
.trip-map-link a,
.trip-card-actions .trip-map-button {
  color: #0369a1;
}
.trip-map-link a {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trip-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.video-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 42px;
}
.trip-detail-card .button.ghost,
.trip-card-actions .button.ghost,
.trip-card-actions .video-button {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0369a1;
}
.trip-detail-card .button.ghost:hover,
.trip-card-actions .button.ghost:hover {
  background: #dbeafe;
  color: #075985;
}
.professional-booking { position: sticky; top: 90px; scroll-margin-top: 110px; }
.selected-trip-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}
.payment-options { display: grid; gap: 10px; margin: 16px 0; }
.compact-camera { margin-top: 16px; }
.trip-detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 24px; align-items: start; }
.trip-gallery-carousel {
  aspect-ratio: 16 / 10;
  background: #eef6fb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.trip-gallery-carousel img {
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .55s ease;
  width: 100%;
  object-fit: cover;
}
.trip-gallery-carousel img.active { opacity: 1; }
.trip-detail-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 22px; }
.trip-detail-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.video-modal[hidden] { display: none; }
.video-modal {
  align-items: center;
  background: rgba(8, 17, 30, .72);
  display: grid;
  inset: 0;
  padding: 20px;
  position: fixed;
  z-index: 80;
}
.video-modal-panel {
  background: #000;
  border-radius: 8px;
  justify-self: center;
  max-width: 920px;
  overflow: hidden;
  position: relative;
  width: min(100%, 920px);
}
.video-modal-panel iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  width: 100%;
}
.video-modal-close {
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--deep);
  cursor: pointer;
  font-size: 1.5rem;
  height: 36px;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  z-index: 2;
}
.admin-image-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 12px 0;
}
.admin-image-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.admin-image-item img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 900px) {
  .trip-booking-layout, .trip-detail-layout { grid-template-columns: 1fr; }
  .professional-booking { position: static; }
  .trip-card-meta { grid-template-columns: 1fr; }
  .carousel-arrow {
    font-size: 1.4rem;
    height: 34px;
    width: 34px;
  }
}
