:root {
  --ink: #003049;
  --muted: #3e5c6b;
  --orange: #f77f00;
  --orange-dark: #d62828;
  --gold: #fcbf49;
  --paper: #eae2b7;
  --mist: #f4ecd2;
  --line: #d9cfb0;
  --max: 1120px;
  --sans: "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.55 var(--sans);
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.4rem;
}
.brand { display: flex; margin-right: auto; text-decoration: none; }
.logo { height: 36px; width: auto; display: block; }
.nav-toggle {
  display: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 700;
}
.header-tools { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul, .lang-switch ul, .footer-nav {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a, .footer-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a[aria-current="page"] { color: var(--orange); }
.lang-switch a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.lang-switch a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--orange); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(720px 460px at 88% 8%, rgba(214, 40, 40, 0.18), transparent 62%),
    radial-gradient(540px 360px at 12% 110%, rgba(0, 48, 73, 0.08), transparent 70%),
    linear-gradient(180deg, #f7f1dc 0%, #fff 48%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  width: min(440px, 46vw);
  height: 115%;
  background: url("../img/hero-figure.svg") center / contain no-repeat;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid, .split, .latest-grid, .footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 800;
  max-width: 12ch;
}
.lead { margin: 0; max-width: 38rem; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.price-card {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.5rem;
}
.price-kicker, .kicker {
  margin: 0 0 0.4rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card .price-kicker { color: var(--gold); }
.price-value {
  margin: 0 0 0.6rem;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.price-value span { font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: 0; }
.price-card p:last-child { margin: 0; color: #d5d8dc; }

.band { background: var(--mist); padding: 3.5rem 0; }
.band h2, .topics h2, .latest h2 { margin: 0 0 0.8rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.mission { margin: 0 0 1.5rem; max-width: 44rem; color: var(--muted); font-size: 1.08rem; }
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.points li { background: #fff; border-radius: 12px; padding: 1.1rem 1rem 0.4rem; }
.points h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.points p { margin: 0 0 0.8rem; color: var(--muted); }

.paths, .topics, .latest { padding: 3.2rem 0; }
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.path {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  text-decoration: none;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.45rem;
  min-height: 18rem;
}
.path-mark {
  width: 76px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.path-mark svg { width: 100%; height: 100%; display: block; }
.path h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.path p { margin: 0; }
.path .btn { justify-self: start; margin-top: 0.45rem; }
.path-train { background: var(--ink); color: #fff; }
.path-train .kicker { color: var(--gold); }
.path-train p { color: #d5dbe3; }
.path-read { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.path-read p { color: var(--muted); }
.path:hover { outline: 2px solid var(--orange); }

.topic-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-grid a, .card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
}
.topic-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 5.6rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  font-weight: 800;
  line-height: 1.25;
}
.topic-card svg {
  width: 72px;
  height: 80px;
  display: block;
  background: var(--mist);
  border-radius: 10px;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 0 1rem;
}
.cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.cover img, .cover svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.page-cover { margin: 0 0 1.1rem; }
.page-cover svg {
  display: block;
  width: min(100%, 420px);
  height: auto;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.page-cover img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}
.entry-figure { margin: 1.4rem 0 1.6rem; }
.entry-figure img, .entry-figure svg {
  display: block;
  width: min(100%, 360px);
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
  font-size: 0.95rem;
}
.entry th, .entry td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.5rem 0.45rem;
  vertical-align: top;
}
.entry th { font-size: 0.82rem; }
.entry a { color: var(--orange); }
.topic-grid a:hover, .card:hover { border-color: var(--orange); }
.card h2, .card h3 { margin: 0.9rem 1rem 0.4rem; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.02em; }
.card h2 a, .card h3 a { text-decoration: none; }
.card p { margin: 0 1rem 0.8rem; color: var(--muted); }
.more { color: var(--orange); font-weight: 800; font-size: 0.85rem; text-decoration: none; margin: 0 1rem; }
.empty { color: var(--muted); }

.archive-head { padding: 3rem 0 0.5rem; }
.archive-head h1 { margin: 0 0 0.8rem; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.single { padding: 2.8rem 0 4rem; }
.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.2rem;
  align-items: start;
}
.training-layout .single { padding: 0; }
.single h1 { margin: 0.2rem 0 1rem; font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 18ch; }
.video-note { max-width: 40rem; color: var(--muted); }
.infographic { margin: 1.2rem 0 1.6rem; }
.infographic img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.training-side {
  position: sticky;
  top: 5.4rem;
}
.training-side h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  line-height: 1.25;
}
.ribbons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.ribbon {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  background: var(--mist);
  border-radius: 10px;
  padding: 0.75rem 0.85rem 0.75rem 0.95rem;
  border-left: 4px solid var(--orange);
}
.ribbon:hover { background: #fff; outline: 1px solid var(--orange); }
.ribbon-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.ribbon-title { font-weight: 800; line-height: 1.25; }
.entry { max-width: 42rem; font-size: 1.05rem; }
.entry h2 { font-size: 1.45rem; margin: 1.6rem 0 0.6rem; }
.entry p, .entry li { margin: 0 0 0.8rem; }
.entry ul, .entry ol { padding-left: 1.2rem; }
.note {
  background: var(--mist);
  border-left: 4px solid var(--orange-dark);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}
.single .price-card { margin: 1.5rem 0; max-width: 28rem; }

.order { max-width: 36rem; margin-top: 2rem; }
.order form p { margin: 0 0 0.8rem; }
.order label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.order input, .order textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font: inherit;
}
.order input:focus, .order textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.order-ok { color: #0d7a32; font-weight: 700; }
.order-err { color: var(--orange-dark); font-weight: 700; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.pager { margin-top: 1.4rem; }
.pager a, .pager span { margin-right: 0.6rem; }

.site-footer { background: var(--ink); color: #f5f5f5; padding: 2.2rem 0; }
.footer-grid { align-items: center; grid-template-columns: 1.2fr 1fr auto; }
.footer-name { margin: 0; font-weight: 800; font-size: 1.15rem; }
.footer-desc { margin: 0.35rem 0 0; color: #d7c9a3; }
.footer-nav a { color: #fff; }
.site-footer .lang-switch a { color: #d5d8dc; }
.site-footer .lang-switch a[aria-current="true"] { color: #fff; }

@media (max-width: 860px) {
  .hero-grid, .path-grid, .latest-grid, .points, .footer-grid, .training-layout { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .training-side { position: static; }
  .nav-toggle { display: inline-block; }
  .header-tools {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .header-tools.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0.55rem; }
}
