:root {
  --ink: #0f2a43;
  --sea: #1b6b88;
  --mist: #dfecee;
  --paper: #f5f9f9;
  --signal: #f26b1d;
  --text: #17303f;
  --muted: #53707e;
  --flag-blue: #1d4e9e;
  --flag-red: #d8291f;
  --flag-yellow: #f5c518;
  --w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
}
h1, h2, h3 { font-family: "Secular One", "Heebo", Arial, sans-serif; font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

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

/* header */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; flex-wrap: wrap; }
.logo { font-family: "Secular One", sans-serif; font-size: 1.5rem; text-decoration: none; }
nav { display: flex; gap: 28px; }
nav a { text-decoration: none; color: #cfe0e6; padding: 6px 0; }
nav a:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid #5d7b8e; color: #fff; font: inherit; padding: 4px 14px; border-radius: 4px; cursor: pointer; }

/* hero */
.hero { background: var(--ink); color: #fff; overflow: hidden; padding-bottom: 96px; }
.flags {
  display: flex; justify-content: space-between; gap: 8px;
  max-width: var(--w); margin: 0 auto; padding: 0 20px;
  position: relative;
}
.flags::before {
  content: ""; position: absolute; top: 0; inset-inline: 20px;
  border-top: 2px solid #5d7b8e;
}
.flag {
  position: relative; display: block;
  width: 84px; height: 64px; margin-top: 2px;
  transform-origin: top center;
  animation: hoist 1.1s cubic-bezier(.2, .8, .3, 1.15) both;
}
.flag:nth-child(1) { animation-delay: .1s; }
.flag:nth-child(2) { animation-delay: .3s; }
.flag:nth-child(3) { animation-delay: .5s; }
.flag:nth-child(4) { animation-delay: .7s; }
.flag:nth-child(5) { animation-delay: .9s; }
@keyframes hoist {
  from { transform: translateY(-130%) rotate(-6deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.f-a { background: linear-gradient(90deg, #fff 0 50%, var(--flag-blue) 50%); clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%); }
.f-b { background: var(--flag-red); clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%); }
.f-c { background: linear-gradient(var(--flag-blue) 0 20%, #fff 20% 40%, var(--flag-red) 40% 60%, #fff 60% 80%, var(--flag-blue) 80%); }
.f-d { background: linear-gradient(var(--flag-yellow) 0 25%, var(--flag-blue) 25% 75%, var(--flag-yellow) 75%); }
.f-e { background: #fff; }
.f-e::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 34px; height: 34px; background: var(--flag-red);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero-in { padding-top: 72px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); margin-bottom: 24px; }
.hero p { max-width: 46ch; color: #cfe0e6; font-size: 1.2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 26px; border-radius: 4px; border: 2px solid transparent;
}
.btn-main { background: var(--signal); color: var(--ink); }
.btn-main:hover { background: #ff7f36; }
.btn-line { border-color: #6f8da0; color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-small { padding: 6px 16px; border-color: var(--ink); color: var(--ink); font-size: .95rem; }
.btn-small:hover { background: var(--ink); color: #fff; }

/* sections */
.section { padding: 84px 0; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.lead { color: var(--muted); max-width: 56ch; margin-bottom: 40px; }
.tint { background: var(--mist); }

/* courses */
.course {
  display: grid; grid-template-columns: 1.1fr 1.8fr auto auto;
  gap: 8px 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid #b7cdd3;
}
.course:last-of-type { border-bottom: 1px solid #b7cdd3; }
.course h3 { font-size: 1.6rem; }
.meta { color: var(--muted); font-size: .95rem; }
.price { font-family: "Secular One", sans-serif; font-size: 1.5rem; color: var(--sea); white-space: nowrap; }
.note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.timeline li {
  display: grid; grid-template-columns: 76px 1fr; gap: 20px;
  padding: 14px 0; border-top: 1px solid #b7cdd3;
}
.timeline time { font-family: "Secular One", sans-serif; font-size: 1.3rem; color: var(--signal); font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }

/* fleet */
.fleet { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
dl { margin: 28px 0 0; }
dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #b7cdd3; }
dt { font-weight: 700; color: var(--sea); }
dd { margin: 0; }
figure { margin: 0; background: var(--ink); color: #fff; padding: 36px; border-radius: 4px; border-inline-start: 8px solid var(--signal); }
blockquote { margin: 0 0 18px; font-family: "Secular One", sans-serif; font-size: 1.5rem; line-height: 1.4; }
figcaption { color: #9fbac6; }

/* contact */
.contact { background: var(--ink); color: #fff; }
.contact .lead { color: #cfe0e6; margin-bottom: 24px; }
.phone { font-family: "Secular One", sans-serif; font-size: clamp(2.4rem, 8vw, 4.4rem); direction: ltr; text-align: right; }
.phone a { text-decoration: none; }
.phone a:hover { color: var(--signal); }

footer { background: #0a1e30; color: #8fa9b6; padding: 22px 0; font-size: .9rem; }

/* responsive */
@media (max-width: 800px) {
  .menu-btn { display: block; }
  nav { display: none; flex-direction: column; gap: 0; width: 100%; padding-bottom: 12px; }
  nav.open { display: flex; }
  .flag { width: 56px; height: 44px; }
  .f-e::after { width: 24px; height: 24px; }
  .course { grid-template-columns: 1fr auto; }
  .course > p:nth-of-type(1) { grid-column: 1 / -1; grid-row: 2; }
  .course .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .fleet { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flag { animation: none; }
}
