:root {
  color-scheme: light;
  --nav: #0093bc;
  --dark: #003447;
  --heading: #072f42;
  --accent: #22b9ec;
  --green: #10b981;
  --booking-green: #0cba87;
  --green-hover: #079b71;
  --link: #005578;
  --pale: #eaf8ff;
  --panel: #f7fafc;
  --line: #dce6ed;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: #fff;
  color: var(--heading);
  font: 1rem/1.5 Inter, system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Poppins, system-ui, sans-serif; line-height: 1.2; }
h2 { font-weight: 700; font-size: 36px; margin-bottom: 16px; }
h3 { font-size: 22px; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrapper { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; inset: -5rem auto auto 1rem; z-index: 10; padding: 10px; background: #fff; }
.skip-link:focus { top: .5rem; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--nav); color: #fff; box-shadow: 0 2px 5px #072f4218; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 8px; }
.header-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; }
.header-brand img { flex: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: 600 14px/20px Poppins, sans-serif;
  text-align: center;
  text-decoration: none;
}
.button:hover:not(:disabled) { background: var(--green-hover); }
.booking-button { background: var(--booking-green); border-radius: 9px; font-family: inherit; }
.button:focus-visible, .checkout-dialog button:focus-visible, .checkout-dialog input:focus-visible { outline: 3px solid #009cd7; outline-offset: 2px; }
.header-button { flex: none; white-space: nowrap; }
.hero { background: var(--dark); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: 32px; }
.hero h1 { font-size: clamp(36px, 4.1vw, 48px); font-weight: 700; margin: 12px 0 18px; text-wrap: balance; }
.hero h1 span { display: block; color: var(--accent); }
.hero-copy > p { font-size: 18px; max-width: 43ch; }
.hero-actions { margin-top: 24px; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: 13px; box-shadow: 0 13px 26px #0005; }
.section { padding-block: 32px; }
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.package {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 6px #072f420a;
}
.package p { max-width: 51ch; }
.package .price { font: 700 2.2rem/1.1 Poppins, system-ui, sans-serif; }
.duration, .saving { font-weight: 600; }
.saving { color: var(--link); font-size: .9rem; }
.package .button { margin-top: auto; }

.steps { background: var(--panel); border-block: 1px solid var(--line); }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 50%; background: var(--pale); color: var(--link); font-weight: 700; }
.steps h2 { margin-bottom: 22px; }
.steps h3 { font-size: 17px; margin-bottom: 5px; }
.steps p { font-size: 15px; }
.lesson { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(24px, 5vw, 60px); }
.lesson-photo { position: relative; align-self: stretch; overflow: hidden; border-radius: 14px; }
.lesson-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) contrast(1.06); transform: scale(1.24); transform-origin: 54% 17%; }
.lesson-focus { display: grid; gap: 9px; margin: 16px 0 0; padding-left: 21px; }
.lesson-focus li::marker { color: var(--link); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 36px; }
.faq details { border-bottom: 1px solid #cbd5e1; }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; color: #151b20; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--link);
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat, var(--pale);
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat, var(--pale); }
.faq details p { margin-bottom: 14px; }
.site-footer { background: var(--dark); color: #fff; padding-block: 18px; text-align: center; font-size: .875rem; }
.site-footer a { text-underline-offset: 3px; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; }
@media (max-width: 800px) {
  .wrapper { width: calc(100% - 32px); }
  .masthead { min-height: 62px; gap: 10px; }
  .header-brand { gap: 7px; font-size: 13px; }
  .header-brand img { width: 34px; height: auto; }
  .header-button { font-size: 13px; padding-inline: 10px; }
  .hero-grid, .packages, .lesson, .faq { grid-template-columns: minmax(0, 1fr); }
  .lesson-photo { aspect-ratio: 3 / 2; }
  .lesson-photo img { transform: scale(1.59); }
  .hero-grid { padding-block: 24px; gap: 18px; }
  .hero h1 { font-size: clamp(32px, 7.5vw, 44px); margin: 0 0 12px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { margin-top: 15px; }
  .hero-photo { border-radius: 12px; box-shadow: none; }
  h2 { font-size: 29px; }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { gap: 0; }
  .faq > div:first-child details:last-child { border-bottom: 1px solid #cbd5e1; }
  .package { padding: 20px; }
}
@media (max-width: 540px) {
  .steps ol { grid-template-columns: 1fr; gap: 16px; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
}

.checkout-dialog { width: min(530px, calc(100% - 36px)); max-height: calc(100dvh - 36px); color: var(--heading); border: 0; border-radius: 15px; padding: clamp(20px, 4vw, 29px); box-shadow: 0 25px 75px #091f303b; overscroll-behavior: contain; }
.checkout-dialog::backdrop { background: #0819299c; }
.checkout-dialog form { display: grid; gap: 14px; }
.checkout-dialog h2 { margin: 0; font-size: 1.55rem; }
.checkout-dialog fieldset { display: grid; gap: 6px; margin: 0; border: 1px solid var(--line); border-radius: 6px; }
.checkout-dialog legend { font-weight: 600; }
.checkout-dialog input[type="text"] { display: block; width: 100%; min-height: 45px; margin-top: 6px; padding: 10px 12px; color: #101b26; border: 1px solid #becbd7; border-radius: 8px; font: inherit; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.checkout-actions button { cursor: pointer; border: 0; }
.checkout-actions button[type="button"] { background: var(--panel); color: var(--heading); border-radius: 6px; padding: 10px 15px; font: inherit; }
.checkout-actions .booking-button { min-height: 46px; font-size: 16px; font-weight: 700; }
.checkout-actions button:disabled { opacity: .6; cursor: wait; }
#checkout-error { padding: 10px 12px; border-radius: 7px; background: #fff0ed; color: #b42318; font-size: 14px; }
