:root {
  --page: #fcfbf8;
  --muted: #65707a;
  --line: #dfe3e6;
  --accent: #c6613d;
  --accent-soft: #f6e7df;
  --ink: #142131;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); line-height: 1.5; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: .8rem;
  background: #fff;
  color: #000;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.stage-ribbon {
  padding: .55rem 1.25rem;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .11em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1200px;
  min-height: 82px;
  margin: auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 780;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

.site-header nav, .footer-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.site-header nav a, .back-link {
  color: var(--ink);
  font-size: .91rem;
  text-decoration: none;
}

.site-header nav a:hover, .back-link:hover, .footer-links a:hover, .link-button:hover { color: var(--accent); }

.hero {
  position: relative;
  display: grid;
  min-height: 630px;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; }

.hero-shade {
  background: linear-gradient(90deg, rgba(10,18,27,.79) 0%, rgba(10,18,27,.54) 39%, rgba(10,18,27,.08) 74%, rgba(10,18,27,.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 90px max(28px, calc((100vw - 1144px) / 2)) 80px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #ffd9cb; }

.hero h1, h2, h3, .legal-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 1.4rem;
  font-size: clamp(2.9rem, 6vw, 5.45rem);
  letter-spacing: -.055em;
  line-height: .98;
}

.hero-copy {
  max-width: 570px;
  margin: 0;
  color: #f4f5f6;
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0;
  appearance: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .15s, background .15s, border .15s;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 87%, black); }
.button-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.button-secondary { border-color: #aab3ba; background: #fff; color: var(--ink); }

.hero-note {
  max-width: 620px;
  margin: 1.5rem 0 0;
  color: #d9dfe3;
  font-size: .79rem;
}

.notice-section, .programs-section, .consultation-section, .important-notice, .legal-page {
  max-width: 1144px;
  margin: 0 auto;
  padding: 88px 28px;
}

.notice-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -.045em;
  line-height: 1.04;
}

.notice-section p:not(.eyebrow), .section-heading > p:not(.eyebrow), .consultation-section p:not(.eyebrow), .important-notice p, .legal-page p {
  color: var(--muted);
  font-size: 1rem;
}

.section-heading { max-width: 720px; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.course-card {
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 35px rgba(31,46,61,.04);
}

.course-topline {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.course-card h3 {
  margin: 2.25rem 0 .65rem;
  font-size: 1.55rem;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.course-card > p { margin: 0; color: var(--muted); font-size: .88rem; }
.course-card ul { margin: 1.5rem 0; padding: 0; list-style: none; color: #34414b; font-size: .91rem; }
.course-card li { padding: .55rem 0; border-top: 1px solid #edf0f2; }
.course-card li::before { margin-right: .5rem; color: var(--accent); content: "↗"; }

.course-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}

.course-footer strong { font-size: 1.2rem; letter-spacing: -.03em; }
.course-footer small { display: block; color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: 0; }

.text-button, .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.method-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  max-width: none;
  padding: 88px max(28px, calc((100vw - 1144px) / 2));
  background: var(--accent-soft);
}

.method-list { margin: 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 66px 1fr; gap: 18px; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid rgba(20,33,49,.18); }
.method-list li:last-child { margin: 0; padding: 0; border: 0; }
.method-list span { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.method-list h3 { margin: 0 0 .45rem; font-size: 1.45rem; letter-spacing: -.035em; }
.method-list p { margin: 0; color: #48555d; }

.consultation-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.consultation-section > div { max-width: 670px; }
.important-notice { padding-top: 44px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.important-notice h2 { margin-bottom: 1.1rem; font-size: 2.1rem; }

.site-footer {
  display: flex;
  max-width: 1144px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin: auto;
  padding: 34px 28px 46px;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: .7rem 0 0; color: var(--muted); font-size: .82rem; }
.footer-legal { max-width: 560px; margin-top: .9rem; }
.footer-legal p { margin: .28rem 0 0; font-size: .75rem; line-height: 1.45; }
.footer-legal strong { color: var(--ink); }
.footer-legal a { color: var(--ink); }
.footer-links a, .link-button { color: #53606a; font-size: .8rem; text-decoration: none; }
.footer-links a:hover, .link-button:hover { text-decoration: underline; }

.modal {
  width: min(650px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
}

.modal::backdrop { background: rgba(11,20,29,.72); }
.modal > *, .modal form { padding-right: 30px; padding-left: 30px; }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-top: 28px; }
.modal-header h2 { font-size: 2rem; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; background: #eff1f2; cursor: pointer; font-size: 1.6rem; }
.modal-warning { margin: 14px 30px 20px; padding: 12px 14px; background: var(--accent-soft); color: #434e56; font-size: .85rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label, .consent { color: #38444d; font-size: .85rem; font-weight: 700; }
.form-grid input, .form-grid textarea { display: block; width: 100%; margin-top: .45rem; padding: .76rem; border: 1px solid #cbd2d7; background: #fff; color: var(--ink); font: inherit; font-size: .95rem; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 42%, white); }
.form-grid small { color: var(--muted); font-weight: 500; }
.form-grid .full { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.consent { display: flex; align-items: flex-start; gap: .6rem; margin: 18px 0; }
.consent input { margin-top: .25rem; }
.form-privacy { margin: .5rem 0 16px; color: var(--muted); font-size: .78rem; }
.form-privacy a { color: var(--ink); }
.form-result { min-height: 1.5em; margin: 15px 0 28px; color: #1b5a39; font-size: .88rem; font-weight: 700; }
.form-result.error { color: #a42626; }

.cookie-modal p { margin: 1rem 30px; color: var(--muted); }
.cookie-option { display: flex; justify-content: space-between; gap: 14px; margin: 20px 30px; padding: 16px; background: #f5f7f8; }
.cookie-option strong, .cookie-option small { display: block; }
.cookie-option small { margin-top: .3rem; color: var(--muted); font-size: .8rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; padding-bottom: 30px; }

.cookie-banner {
  position: fixed;
  z-index: 9;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  max-width: 1060px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 45px rgba(20,33,49,.16);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cookie-actions .button { min-height: 39px; font-size: .78rem; }

.legal-page { max-width: 850px; padding-top: 80px; padding-bottom: 100px; }
.legal-page h1 { margin: 0 0 2rem; font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -.06em; line-height: .98; }
.legal-page h2 { margin: 2.3rem 0 .8rem; font-size: 1.65rem; }
.legal-callout { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #3e454a; }
.legal-page dl { margin: 1.2rem 0; padding: 0; }
.legal-page dt { margin-top: 1.1rem; color: var(--muted); font-size: .73rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.legal-page dd { margin: .3rem 0 0; font-size: 1rem; }

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding: 0 18px; }
  .site-header nav { gap: .8rem; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: 610px; }
  .hero-content { width: 100%; max-width: none; padding: 80px 23px 55px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.45rem); }
  .hero-copy { max-width: 36rem; font-size: 1rem; }
  .notice-section, .method-section { grid-template-columns: 1fr; gap: 28px; padding: 58px 22px; }
  .programs-section, .consultation-section, .important-notice, .legal-page { padding: 58px 22px; }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-card { min-height: 0; }
  .consultation-section, .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 30px 22px; }
  .footer-links { gap: .8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; }
  .modal > *, .modal form { padding-right: 20px; padding-left: 20px; }
  .modal-warning, .cookie-modal p, .cookie-option { margin-right: 20px; margin-left: 20px; }
  .modal-actions { flex-direction: column; padding-right: 20px; padding-left: 20px; }
  .modal-actions .button { width: 100%; }
}

/* Browser zoom and narrow split-screen windows can reduce the CSS viewport
   below ordinary phone widths. Keep the hero readable instead of allowing
   every word to become its own line. */
@media (max-width: 240px) {
  .stage-ribbon { padding: .45rem .6rem; font-size: .58rem; letter-spacing: .07em; }
  .site-header { min-height: 58px; gap: 6px; padding: 0 10px; }
  .brand { gap: .4rem; font-size: .82rem; }
  .brand-mark { width: 24px; height: 24px; font-size: .85rem; }
  .site-header nav { gap: 0; }
  .site-header nav a { font-size: .75rem; }
  .hero { min-height: 485px; }
  .hero-content { padding: 36px 10px 28px; }
  .hero .eyebrow { margin-bottom: .5rem; font-size: .52rem; letter-spacing: .08em; }
  .hero h1 { font-size: 19px; letter-spacing: -.025em; line-height: 1.04; }
  .hero-copy { font-size: .75rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: .45rem; margin-top: 1rem; }
  .hero-actions .button { width: 100%; }
  .button { min-height: 36px; padding: .52rem .65rem; font-size: .72rem; }
  .hero-note { margin-top: .8rem; font-size: .6rem; }
  .programs-section, .consultation-section, .important-notice, .legal-page { padding-right: 10px; padding-left: 10px; }
  .course-card { min-height: 0; padding: 18px; }
  .course-footer { align-items: flex-start; flex-direction: column; }
  .section-heading, .section-heading h2, .course-card h3, .course-card > p, .course-card li, .course-footer { min-width: 0; overflow-wrap: anywhere; }
  .method-section { gap: 28px; padding: 58px 10px; }
  .method-aside, .method-list, .method-list li, .method-list li > div { min-width: 0; }
  .method-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .method-list h3, .method-list p { overflow-wrap: anywhere; }
}

/* Cookie controls stay above the page and remain tappable on touch devices. */
.cookie-banner { z-index: 2147483000; pointer-events: auto; }
.cookie-banner[hidden] { pointer-events: none; }
.cookie-banner button { position: relative; z-index: 1; pointer-events: auto; touch-action: manipulation; }

/* Static-form state: visible but intentionally inactive. */
.static-form-note { color: var(--muted); }
.button[disabled] { cursor: not-allowed; opacity: .64; transform: none; }
