:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #525252;
  --quiet: #6f6f6f;
  --line: #e0e0e0;
  --paper: #f4f4f4;
  --surface: #ffffff;
  --inverse: #262626;
  --black: #000000;
  --blue: #0f62fe;
  --blue-dark: #0043ce;
  --green: #198038;
  --amber: #8a3800;
  --danger: #da1e28;
  font-family:
    "IBM Plex Sans", 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(--surface);
  color: var(--ink);
  line-height: 1.5;
}

main > section {
  scroll-margin-top: 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 300px) minmax(0, 1fr) auto;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px clamp(14px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.brand img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.main-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(9px, 1vw, 13px);
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(0.82rem, 0.82vw, 0.94rem);
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--paper);
  outline: none;
}

.language-switch {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--line);
}

.language-switch button {
  min-width: 54px;
  min-height: 64px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.language-switch button[aria-pressed="true"]:hover,
.language-switch button[aria-pressed="true"]:focus-visible {
  background: var(--black);
  color: white;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.button::after {
  content: "->";
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: white;
}

.button.compact {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.9rem;
}

.button.compact::after {
  content: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  min-height: calc(100vh - 64px);
  background: var(--black);
  color: white;
}

.hero-content {
  display: grid;
  align-content: end;
  max-width: 980px;
  padding: clamp(48px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #f4f4f4;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-brief {
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: clamp(20px, 4vw, 40px);
  border-left: 1px solid #393939;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.86)),
    url("assets/site-images/cybersec.png");
  background-position: center;
  background-size: cover;
}

.hero-brief a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-brief a::after,
.card-link::after {
  content: " ->";
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.snapshot div {
  min-height: 154px;
  padding: clamp(20px, 4vw, 34px);
  border-right: 1px solid var(--line);
}

.snapshot div:last-child {
  border-right: 0;
}

.snapshot strong {
  display: block;
  color: var(--blue);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.95;
}

.snapshot span {
  display: block;
  max-width: 190px;
  margin-top: 10px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-brief .eyebrow {
  color: #78a9ff;
}

.muted {
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  margin-bottom: clamp(22px, 4vw, 40px);
}

.section-head h2,
.sidebar-head h2,
.lesson-head h2,
.contact-band h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.08;
}

.section-head h2 {
  max-width: 880px;
  font-size: 3.75rem;
}

.section-head.split {
  align-items: end;
}

.services,
.company-section,
.training-note,
.training-overview,
.trainings-section,
.blog-browser,
.contact-band {
  padding: clamp(44px, 8vw, 88px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.services,
.company-section,
.contact-band {
  background: var(--surface);
}

.company-section:nth-child(even),
.blog-browser,
.training-note,
.training-overview,
.trainings-section {
  background: var(--paper);
}

.training-note {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.training-note h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 4.1vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.training-note-body {
  display: grid;
  gap: 26px;
  justify-items: start;
  min-width: 0;
}

.training-note-body p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.training-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.training-note-actions .button {
  min-width: min(220px, 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.seo-service-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 48px);
  margin: 0 0 clamp(24px, 4vw, 42px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.seo-service-summary p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-card,
.training-card,
.module-sidebar,
.lesson-panel,
.access-panel,
.course-status,
.interaction-panel,
.completion-panel,
.final-exam-panel,
.company-reader,
.company-media,
.post-item,
.contact-band {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.service-card {
  display: grid;
  align-content: start;
  min-height: 290px;
  padding: 24px;
  border-top: 0;
  border-left: 0;
  cursor: pointer;
}

.service-card:hover,
.service-card:focus-within {
  background: #edf5ff;
}

.service-card h3,
.post-item summary,
.company-reader h3 {
  margin: 0 0 12px;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 400;
}

.service-card p,
.company-reader p,
.post-item p,
.contact-band p {
  color: var(--muted);
}

.service-card p {
  margin: 0 0 22px;
}

.card-link {
  align-self: end;
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
}

.company-pages {
  display: block;
}

.company-section {
  scroll-margin-top: 72px;
}

.company-section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.company-section-grid.reverse {
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
}

.company-section-grid.reverse .company-media {
  order: 2;
}

.company-media,
.company-reader {
  border-top: 0;
  border-left: 0;
}

.company-media {
  min-height: 420px;
  overflow: hidden;
  background: #262626;
}

.company-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.company-media.image-missing {
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.2), rgba(0, 0, 0, 0.12)),
    #262626;
}

.company-reader {
  padding: clamp(24px, 5vw, 48px);
}

.company-intro {
  max-width: 880px;
  margin: 0 0 28px;
  font-size: 1.12rem;
}

.company-reader .reader-body {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.training-catalog {
  display: grid;
  margin-bottom: 28px;
}

.training-access-gate {
  display: grid;
}

.training-gate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}

.training-gate-card h3,
.training-gate-card p {
  margin: 0;
}

.training-gate-card h3 {
  max-width: 760px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.12;
}

.training-gate-card p {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
}

.training-gate-actions {
  display: grid;
  gap: 12px;
}

.training-gate-actions .access-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px;
  border-width: 1px;
  background: #edf5ff;
}

.access-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.access-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.access-message.error {
  color: #da1e28;
}

.access-message.ok {
  color: #198038;
}

.access-shell {
  min-height: calc(100vh - 72px);
  background: var(--paper);
}

.access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.access-hero h1 {
  max-width: 880px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
}

.access-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.claim-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.claim-card h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 400;
}

.claim-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.claim-card.locked {
  opacity: 0.74;
}

.training-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr) auto;
  gap: 22px;
  align-items: end;
  padding: 24px;
}

.training-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  font-weight: 400;
}

.training-card p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.training-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.training-card-stats span {
  display: grid;
  gap: 4px;
  min-width: 100px;
  padding: 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.88rem;
}

.training-card-stats strong {
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.training-actions {
  display: grid;
  gap: 10px;
  min-width: 180px;
}

.training-actions .button {
  width: 100%;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
  gap: 0;
}

.module-sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  border-right: 0;
  background: var(--inverse);
  color: white;
}

.sidebar-head,
.lesson-head,
.access-panel {
  padding: 24px;
}

.sidebar-head {
  border-bottom: 1px solid #525252;
}

.sidebar-head .muted,
.module-sidebar .module-meta {
  color: #c6c6c6;
}

.progress-block {
  padding: 20px 24px;
  border-bottom: 1px solid #525252;
}

.course-status {
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid #525252;
  background: #393939;
  color: white;
}

.course-status h3,
.course-status p,
.interaction-panel h3,
.interaction-panel p,
.completion-panel h3,
.completion-panel p {
  margin: 0;
}

.course-status p,
.interaction-panel p,
.completion-panel p {
  color: var(--muted);
}

.course-status p {
  color: #c6c6c6;
}

.course-status.compact {
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.course-status.compact p {
  color: var(--muted);
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #c6c6c6;
  font-size: 0.9rem;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #6f6f6f;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #78a9ff;
  transition: width 180ms ease;
}

.module-list {
  display: grid;
}

.sidebar-reset {
  width: calc(100% - 48px);
  min-height: 44px;
  margin: 18px 24px 24px;
  border: 1px solid #8d8d8d;
  background: transparent;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-reset:hover,
.sidebar-reset:focus-visible {
  border-color: #78a9ff;
  outline: 2px solid #78a9ff;
}

.module-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid #525252;
  background: transparent;
  color: white;
  text-align: left;
  cursor: pointer;
}

.module-button:hover,
.module-button:focus-visible,
.module-button.active {
  background: #393939;
  outline: none;
}

.module-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #525252;
  color: white;
  font-weight: 700;
}

.module-button.done .module-index {
  background: var(--green);
}

.module-title {
  display: block;
  font-weight: 700;
}

.module-meta {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.module-button.missing .module-meta {
  color: #ffb784;
}

.lesson-panel {
  overflow: hidden;
  background: white;
}

.lesson-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.interaction-panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 24px;
  border-width: 0 0 1px;
  background: white;
}

.interaction-list {
  display: grid;
  gap: 8px;
}

.interaction-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.interaction-button:hover,
.interaction-button:focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}

.interaction-button.done {
  border-color: #a7f0ba;
  background: #defbe6;
}

.interaction-time,
.interaction-state {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.interaction-title {
  font-weight: 700;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  margin: 0;
  border-width: 0 0 1px;
  background: #edf5ff;
}

.access-panel h3,
.quiz-dialog h3,
.missing-video h3 {
  margin: 0 0 8px;
}

.access-panel p {
  margin: 0;
  color: var(--muted);
}

.access-panel label,
.search-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #8d8d8d;
  border-radius: 0;
  padding: 10px 12px;
  background: white;
}

input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}

.video-shell {
  position: relative;
  min-height: 520px;
  background: #000;
}

.video-shell.locked {
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.82)),
    url("assets/site-images/cybersec.png");
  background-position: center;
  background-size: cover;
}

video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
}

.lock-overlay h3,
.lock-overlay p {
  max-width: 560px;
  margin: 0;
}

.lock-overlay p {
  color: rgba(255, 255, 255, 0.78);
}

.missing-video {
  display: grid;
  place-content: center;
  min-height: 520px;
  padding: 32px;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.78)),
    var(--missing-poster, #000);
  background-size: cover;
  background-position: center;
}

.missing-video p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

.quiz-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.quiz-dialog {
  width: min(720px, 100%);
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  background: white;
}

.quiz-dialog p {
  color: var(--muted);
}

.answers {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.answer-button {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.answer-button:hover,
.answer-button:focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}

.feedback {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 700;
}

.feedback.ok {
  color: var(--green);
}

.feedback.error {
  color: var(--danger);
}

.completion-panel {
  margin: 0;
  padding: 24px;
  border-width: 1px 0 0;
  border-color: #a7f0ba;
  background: #defbe6;
}

.final-exam-panel {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 24px;
  border-width: 1px 0 0;
  background: white;
}

.final-exam-panel.locked {
  background: var(--paper);
}

.final-exam-panel.passed {
  border-color: #a7f0ba;
  background: #defbe6;
}

.final-exam-head h3,
.final-exam-head p {
  margin: 0;
}

.final-exam-head p {
  color: var(--muted);
}

.final-exam-form {
  display: grid;
  gap: 14px;
}

.exam-question {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.exam-question legend {
  padding: 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.exam-question p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.exam-options {
  display: grid;
  gap: 8px;
}

.exam-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.exam-option:hover,
.exam-option:focus-within {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
}

.exam-option input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.page-browser-grid {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.page-tabs,
.page-reader {
  border-top: 0;
  border-left: 0;
}

.page-tabs {
  display: grid;
  align-self: start;
}

.page-tab {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.page-tab:hover,
.page-tab:focus-visible,
.page-tab.active {
  background: var(--paper);
  outline: none;
}

.page-tab.active {
  box-shadow: inset 4px 0 0 var(--blue);
}

.page-reader,
.company-reader {
  min-height: 520px;
}

.page-reader .reader-body,
.company-reader .reader-body {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.page-reader p,
.company-reader p {
  margin: 0;
}

.wp-content {
  display: grid;
  gap: 20px;
  max-width: 1060px;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  margin: 0;
  line-height: 1.15;
}

.wp-content h1,
.wp-content h2 {
  font-size: 2.25rem !important;
  font-weight: 400;
}

.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  font-size: 1.25rem !important;
}

.wp-content p {
  margin: 0;
}

.wp-content ul,
.wp-content ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.wp-content li + li {
  margin-top: 7px;
}

.wp-content a {
  color: var(--blue);
  font-weight: 700;
}

.wp-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.wp-content figure {
  margin: 0;
}

.wp-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  align-items: start;
}

.wp-content .wp-block-column,
.wp-content .wp-block-group {
  display: grid;
  gap: 14px;
}

.wp-content .wp-block-cover {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  background: #000;
  color: white;
}

.wp-content .wp-block-cover__image-background,
.wp-content .wp-block-cover__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wp-content .wp-block-cover__image-background {
  object-fit: cover;
}

.wp-content .wp-block-cover__background {
  background: rgba(0, 0, 0, 0.72);
}

.wp-content .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 14px;
  min-height: inherit;
  padding: clamp(28px, 6vw, 64px);
}

.wp-content .has-text-align-center {
  text-align: center;
}

.wp-content .has-primary-color {
  color: var(--blue);
}

.wp-content > .has-background,
.wp-content .wp-block-group.has-background {
  padding: clamp(18px, 4vw, 34px);
}

.wp-content details {
  border: 1px solid var(--line);
  background: var(--paper);
}

.wp-content summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}

.wp-content details > *:not(summary) {
  padding: 0 16px 16px;
}

.search-box {
  width: min(380px, 100%);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.post-item {
  overflow: hidden;
  border-top: 0;
  border-left: 0;
}

.post-summary {
  display: grid;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 360px;
  padding: 0 20px 20px;
  border: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.post-summary:hover,
.post-summary:focus-visible {
  background: #edf5ff;
  outline: none;
}

.post-meta {
  display: grid;
  gap: 8px;
}

.post-title {
  display: block;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.25;
}

.post-excerpt {
  display: block;
  color: var(--muted);
}

.post-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin: 0 -20px 12px;
  overflow: hidden;
  background: #262626;
  color: white;
  font-weight: 700;
}

.post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-media.image-missing {
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.22), rgba(0, 0, 0, 0.08)),
    #262626;
}

.post-date {
  display: block;
  color: var(--blue);
  font-weight: 700;
}

.post-item.expanded {
  grid-column: 1 / -1;
  overflow: visible;
}

.post-item.expanded .post-summary {
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: white;
}

.post-item.expanded .post-media {
  aspect-ratio: 16 / 9;
  margin: 0;
}

.post-item.expanded .post-meta {
  align-content: center;
  padding: 24px 74px 24px 0;
}

.post-item.expanded .post-title {
  max-width: 980px;
  font-size: 2.15rem;
  line-height: 1.12;
}

.post-item.expanded .post-excerpt {
  max-width: 900px;
  font-size: 1.02rem;
}

.post-body {
  position: relative;
  padding: clamp(24px, 5vw, 52px);
  color: var(--muted);
}

.post-reader {
  max-width: 980px;
}

.post-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.post-close:hover,
.post-close:focus-visible {
  border-color: var(--blue);
  background: #edf5ff;
  outline: 2px solid var(--blue);
}

.post-body .wp-content,
.post-body .reader-body {
  max-width: 980px;
}

.post-body .wp-content {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: var(--black);
  color: white;
}

.contact-band p {
  max-width: 740px;
  color: #c6c6c6;
}

.contact-mail a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero,
  .training-note,
  .training-layout,
  .page-browser-grid,
  .company-section-grid,
  .company-section-grid.reverse,
  .training-gate-card,
  .training-card {
    grid-template-columns: 1fr;
  }

  .company-section-grid.reverse .company-media {
    order: 0;
  }

  .hero-brief {
    border-left: 0;
    border-top: 1px solid #393939;
  }

  .module-sidebar {
    position: static;
    max-height: none;
    border-right: 1px solid var(--line);
  }

  .service-grid,
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-card {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav {
    justify-content: flex-start;
  }

  .language-switch {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .language-switch button {
    flex: 1;
    min-height: 48px;
  }

  .main-nav a {
    min-height: 52px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .snapshot strong {
    font-size: 3rem;
  }

  .section-head h2 {
    font-size: 2.15rem;
  }

  .wp-content h1,
  .wp-content h2 {
    font-size: 1.65rem !important;
  }

  .snapshot,
  .service-grid,
  .seo-service-summary,
  .post-list,
  .training-card-stats {
    grid-template-columns: 1fr;
  }

  .snapshot div,
  .contact-band {
    border-right: 0;
  }

  .section-head,
  .section-head.split,
  .training-note,
  .lesson-head,
  .contact-band,
  .access-hero,
  .access-panel,
  .interaction-panel,
  .input-row,
  .access-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .interaction-button {
    grid-template-columns: 1fr;
  }

  .post-item.expanded .post-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-item.expanded .post-meta {
    padding: 20px 72px 20px 20px;
  }

  .post-item.expanded .post-title {
    font-size: 1.55rem;
  }

  .post-body {
    padding: 24px 20px;
  }

  .video-shell,
  .missing-video,
  .lock-overlay {
    min-height: 360px;
  }

  .company-media {
    min-height: 300px;
  }
}
