:root {
  --bg: #071018;
  --bg-2: #0b1621;
  --panel: rgba(10, 22, 31, 0.88);
  --panel-strong: rgba(7, 17, 24, 0.96);
  --text: #d7edf7;
  --muted: #7c97a8;
  --line: rgba(88, 160, 196, 0.28);
  --line-strong: rgba(104, 206, 255, 0.62);
  --cyan: #74dcff;
  --cyan-soft: rgba(116, 220, 255, 0.16);
  --orange: #ff9d43;
  --orange-soft: rgba(255, 157, 67, 0.16);
  --danger: #ff6b4a;
  --shadow: 0 0 0 1px rgba(64, 116, 146, 0.26), 0 18px 40px rgba(0, 0, 0, 0.42);
  --glow: 0 0 24px rgba(116, 220, 255, 0.14);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Tahoma", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(22, 65, 88, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 157, 67, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 48%, #050b10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(116, 220, 255, 0.03) 50%, transparent 100%);
  opacity: 0.7;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(116, 220, 255, 0.05) 48%, transparent 52%, transparent 100%);
  animation: scanline 7s linear infinite;
  opacity: 0.55;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

main {
  display: grid;
  gap: 22px;
}

.home-layout {
  display: grid;
  gap: 22px;
}

.site-header,
.hero-card,
.toolbar-card,
.info-card,
.banner-strip,
.link-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 30, 42, 0.96), rgba(7, 16, 24, 0.92));
  box-shadow: var(--shadow), var(--glow);
}

.site-header::before,
.hero-card::before,
.toolbar-card::before,
.link-card::before,
.info-card::before,
.banner-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(116, 220, 255, 0.04) 30%, transparent 100%);
}

.site-header::after,
.hero-card::after,
.toolbar-card::after,
.link-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(116, 220, 255, 0.08);
  pointer-events: none;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 24px;
  min-height: 82px;
}

.system-stamp {
  position: absolute;
  top: 4px;
  right: 18px;
  color: rgba(255, 157, 67, 0.78);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background:
    linear-gradient(180deg, rgba(116, 220, 255, 0.16), rgba(116, 220, 255, 0.04)),
    var(--panel-strong);
  box-shadow: inset 0 0 18px rgba(116, 220, 255, 0.08), 0 0 18px rgba(116, 220, 255, 0.12);
}

.brand-text {
  color: #effaff;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 14px) 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 14px 100%, 0 100%, 0 28px, 7px 22px, 7px 14px);
}

.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(116, 220, 255, 0.18);
  transition: 160ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-link {
  padding: 10px 16px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  border-color: var(--line-strong);
  color: var(--text);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.12), rgba(116, 220, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(116, 220, 255, 0.08), 0 0 18px rgba(116, 220, 255, 0.08);
}

.nav-link-muted {
  opacity: 0.8;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 36px;
  align-items: stretch;
}

.hero-copy,
.status-panel,
.stats-grid,
.toolbar-card,
.link-card {
  position: relative;
  z-index: 1;
}

.hero-card-compact {
  min-height: calc(100vh - 176px);
  align-items: center;
}

.hero-card-home-main {
  min-height: auto;
}

.hero-card-home-main h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

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

.hud-rule {
  width: min(420px, 100%);
  height: 6px;
  margin: 0 0 18px;
  background:
    linear-gradient(90deg, var(--cyan) 0%, rgba(116, 220, 255, 0.2) 74%, transparent 100%);
  box-shadow: 0 0 18px rgba(116, 220, 255, 0.2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf9ff;
  text-shadow: 0 0 18px rgba(116, 220, 255, 0.12);
}

.hero-card-hub h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text,
.info-card p,
.banner-strip p,
.link-card p,
.results-head p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-card-home .hero-copy {
  max-width: 640px;
}

.hero-card-home-main .hero-copy,
.home-about-preview .hero-copy,
.home-final-cta .hero-copy {
  max-width: 780px;
}

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

.warning-line,
.panel-caption {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-left: 3px solid var(--orange);
  color: #ffc58c;
  background: linear-gradient(90deg, rgba(255, 157, 67, 0.18), rgba(255, 157, 67, 0.04));
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.warning-line {
  margin-top: 18px;
}

.panel-caption {
  margin-bottom: 4px;
  width: fit-content;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 26px) 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 26px 100%, 0 100%, 0 38px, 8px 30px, 8px 18px);
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.button::before {
  inset: 1px;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 26px) 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 26px 100%, 0 100%, 0 38px, 8px 30px, 8px 18px);
  opacity: 0.38;
}

.button::after {
  top: 50%;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.18) 18%, transparent 100%);
  transform: translateY(-50%);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button-primary {
  color: #def6ff;
  border-color: rgba(116, 220, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(116, 220, 255, 0.1), rgba(116, 220, 255, 0.03));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(116, 220, 255, 0.08),
    0 0 18px rgba(116, 220, 255, 0.08);
}

.button-primary::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(116, 220, 255, 0.04), rgba(255, 157, 67, 0.02));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(116, 220, 255, 0.04),
    0 0 14px rgba(255, 255, 255, 0.04);
}

.button-secondary::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.button-youtube {
  color: #fff4f4;
  border-color: rgba(255, 84, 84, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(255, 72, 72, 0.24), rgba(142, 18, 18, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 84, 84, 0.14),
    0 0 20px rgba(255, 58, 58, 0.14);
}

.button-youtube::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 112, 112, 0.14), rgba(255, 255, 255, 0));
}

.button-telegram {
  color: #eefbff;
  border-color: rgba(78, 192, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(52, 168, 255, 0.22), rgba(11, 79, 145, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(78, 192, 255, 0.14),
    0 0 20px rgba(52, 168, 255, 0.12);
}

.button-telegram::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(122, 209, 255, 0.14), rgba(255, 255, 255, 0));
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 20px) 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 20px 100%, 0 100%, 0 30px, 7px 24px, 7px 16px);
}

.status-panel,
.stats-grid {
  display: grid;
  gap: 12px;
}

.status-panel-home {
  align-self: center;
}

.status-line,
.mini-stat {
  padding: 18px;
  border: 1px solid rgba(116, 220, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(116, 220, 255, 0.08), rgba(116, 220, 255, 0.02)),
    var(--panel-strong);
  min-height: 94px;
}

.status-line span,
.mini-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-line strong,
.mini-stat strong {
  color: var(--cyan);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-stat-price strong {
  color: #ffffff;
  font-size: 1.46rem;
  text-shadow: 0 0 16px rgba(116, 220, 255, 0.16);
}

.mini-stat-price {
  border-color: rgba(255, 157, 67, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 157, 67, 0.12), rgba(255, 157, 67, 0.03)),
    var(--panel-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 157, 67, 0.08),
    0 0 18px rgba(255, 157, 67, 0.1);
}

.price-old {
  margin-top: 8px;
  color: #8ba2b1;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: line-through;
  text-transform: uppercase;
}

.price-note {
  margin-top: 6px;
  color: #ffc58c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-line-warning strong {
  color: #ffc58c;
}

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

.home-grid-section {
  margin-top: 0;
}

.home-direction-card {
  display: grid;
  gap: 14px;
}

.home-stats-grid {
  align-self: stretch;
}

.home-about-preview,
.home-final-cta {
  grid-template-columns: 1fr;
}

.home-value-card .course-steps {
  margin-top: 14px;
}

.info-card {
  padding: 24px;
}

.card-index {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 157, 67, 0.42);
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.banner-strip {
  margin-top: 26px;
  padding: 22px 24px;
}

.hub-layout {
  display: grid;
  gap: 22px;
}

.about-layout {
  display: grid;
  gap: 22px;
}

.course-layout {
  display: grid;
  gap: 22px;
}

.web-layout {
  display: grid;
  gap: 22px;
}

.hero-card-about,
.hero-card-course,
.hero-card-web {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr);
}

.hero-card-course {
  align-items: start;
}

.course-hero-title {
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
}

.course-hero-text {
  max-width: 720px;
}

.course-stats-grid {
  align-self: start;
}

.hero-card-web {
  grid-template-columns: 1fr;
}

.hero-card-about-single {
  grid-template-columns: 1fr;
  min-height: auto;
}

.about-single-copy {
  max-width: 100%;
}

.about-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.about-story-card {
  padding: 24px;
  border: 1px solid rgba(116, 220, 255, 0.16);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.about-story-card p {
  max-width: 920px;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.85;
}

.about-story-card p:last-child {
  margin-bottom: 0;
}

.about-list-line {
  margin-bottom: 8px;
  color: #dceff8;
}

.about-accent-line {
  margin: 26px 0 18px;
  color: #ecfbff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(116, 220, 255, 0.12);
}

.about-welcome {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-note-card,
.course-program-card,
.course-form-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 30, 42, 0.96), rgba(7, 16, 24, 0.92));
  box-shadow: var(--shadow), var(--glow);
}

.course-note-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

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

.course-steps-audience {
  margin-top: 0;
}

.course-steps-results {
  margin-top: 0;
}

.course-step {
  min-height: 100%;
}

.course-cta-card {
  grid-template-columns: 1fr;
}

.course-cta-card h2 {
  max-width: 880px;
}

.coming-soon-line {
  margin-top: 12px;
  color: #ffc58c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-form {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.course-field {
  display: grid;
  gap: 10px;
}

.course-field span,
.course-fieldset legend {
  color: #b9d8e8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(116, 220, 255, 0.28);
  color: var(--text);
  background: rgba(7, 17, 24, 0.88);
  outline: none;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 20px) 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 18px 100%, 0 100%, 0 28px, 7px 22px, 7px 15px);
}

.course-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(116, 220, 255, 0.24), 0 0 18px rgba(116, 220, 255, 0.08);
}

.course-field input::placeholder {
  color: #597287;
}

.course-fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(116, 220, 255, 0.16);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.course-fieldset legend {
  padding: 0 8px;
}

.course-timezone-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.time-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
}

.time-option input {
  accent-color: #74dcff;
}

.course-form-actions {
  display: flex;
  justify-content: flex-start;
}

.web-grid {
  margin-top: 0;
}

.inline-link {
  color: var(--cyan);
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration: underline;
}

.toolbar-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  clip-path: polygon(0 18px, 18px 0, calc(100% - 32px) 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 28px 100%, 0 100%, 0 calc(100% - 42px), 10px calc(100% - 50px), 10px 24px);
}

.search-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(116, 220, 255, 0.14);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.05), rgba(116, 220, 255, 0.02));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 24px) 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 20px 100%, 0 100%, 0 calc(100% - 24px), 8px calc(100% - 30px), 8px 16px);
}

.search-box span {
  color: #b9d8e8;
  font-size: 0.76rem;
}

.search-box input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(116, 220, 255, 0.28);
  color: var(--text);
  background: rgba(7, 17, 24, 0.88);
  outline: none;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 20px) 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 18px 100%, 0 100%, 0 28px, 7px 22px, 7px 15px);
}

.search-box input::placeholder {
  color: #597287;
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(116, 220, 255, 0.24), 0 0 18px rgba(116, 220, 255, 0.08);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 0;
}

.filter-chip {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(116, 220, 255, 0.05);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 18px) 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 18px 100%, 0 100%, 0 28px, 7px 22px, 7px 14px);
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--cyan);
  color: var(--text);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.16), rgba(116, 220, 255, 0.04));
  box-shadow: 0 0 16px rgba(116, 220, 255, 0.08);
}

.filter-chip::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(116, 220, 255, 0.18) 18%, transparent 100%);
  pointer-events: none;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.link-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  min-height: 100%;
  clip-path: polygon(0 16px, 16px 0, calc(100% - 30px) 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 26px 100%, 0 100%, 0 calc(100% - 36px), 10px calc(100% - 44px), 10px 24px);
}

.link-card-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(116, 220, 255, 0.08);
  pointer-events: none;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 24px) 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 20px 100%, 0 100%, 0 calc(100% - 28px), 8px calc(100% - 34px), 8px 18px);
}

.link-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 157, 67, 0.36);
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #92aec0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-card h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-divider {
  width: 72px;
  height: 2px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(116, 220, 255, 0.16) 100%);
  box-shadow: 0 0 12px rgba(116, 220, 255, 0.16);
}

.link-meta {
  color: #89a2b2;
  font-size: 0.88rem;
}

.link-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  margin-top: auto;
  border-top: 1px solid rgba(116, 220, 255, 0.08);
}

.link-status,
.link-arrow {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-arrow {
  color: var(--cyan);
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(116, 220, 255, 0.24);
  background: rgba(9, 19, 27, 0.72);
  color: var(--muted);
  text-align: center;
}

.post-feed {
  display: grid;
  gap: 18px;
}

.post-row-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 20px;
}

.post-thumb {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  border: 1px solid rgba(116, 220, 255, 0.16);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.04), rgba(255, 255, 255, 0.015));
}

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

.post-body {
  display: grid;
  gap: 14px;
  align-content: center;
}

.post-kicker {
  display: inline-block;
  color: #92aec0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-row-card h3 {
  margin-bottom: 0;
  font-size: 1.34rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-row-card p {
  margin-bottom: 0;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 157, 67, 0.36);
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.posts-layout,
.post-layout {
  display: grid;
  gap: 22px;
}

.post-article-card {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.post-hero-art {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(116, 220, 255, 0.14);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.04), rgba(255, 255, 255, 0.015));
}

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

.post-content {
  display: grid;
  gap: 16px;
}

.post-content p,
.post-content li {
  color: var(--text);
  line-height: 1.8;
}

.post-content h2 {
  margin-bottom: 0;
}

.post-content ol,
.post-content ul {
  margin: 0;
  padding-left: 20px;
}

.post-content code {
  padding: 2px 6px;
  border: 1px solid rgba(116, 220, 255, 0.16);
  background: rgba(116, 220, 255, 0.08);
  color: #dff7ff;
}

.post-content pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(116, 220, 255, 0.16);
  background: rgba(4, 10, 15, 0.9);
  color: #e5f9ff;
}

.post-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 30, 42, 0.96), rgba(7, 16, 24, 0.92));
  box-shadow: var(--shadow), var(--glow);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(116, 220, 255, 0.04) 30%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(116, 220, 255, 0.08);
  pointer-events: none;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.footer-copy {
  display: grid;
  gap: 10px;
}

.footer-title {
  margin: 0;
  color: #eaf9ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(116, 220, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: 160ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
  background: linear-gradient(180deg, rgba(116, 220, 255, 0.12), rgba(116, 220, 255, 0.04));
  box-shadow: 0 0 16px rgba(116, 220, 255, 0.08);
}

.footer-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-side .button {
  width: 100%;
}

.footer-note {
  margin: 0;
  color: #89a2b2;
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .hero-card,
  .grid-section,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .post-row-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card-compact {
    min-height: auto;
  }

  .site-header,
  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-steps {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 10px;
  }

  .nav-open .main-nav {
    display: flex;
  }

  .main-nav .nav-link {
    width: 100%;
  }

  .status-panel-home,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-meta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .site-header,
  .hero-card,
  .toolbar-card,
  .info-card,
  .banner-strip,
  .link-card {
    padding: 18px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero-card-hub h1 {
    font-size: 2.25rem;
  }

  .main-nav {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 100%;
    text-align: center;
  }

  .system-stamp {
    position: static;
    order: 3;
    width: 100%;
    margin-top: 4px;
  }

  .status-panel-home,
  .stats-grid,
  .hero-actions,
  .results-head {
    grid-template-columns: 1fr;
  }

  .warning-line,
  .panel-caption {
    width: 100%;
  }

  .search-box,
  .toolbar-card,
  .link-card {
    clip-path: none;
  }

  .post-thumb,
  .post-hero-art {
    min-height: 200px;
  }

  .link-card-frame,
  .site-header::after,
  .hero-card::after,
  .toolbar-card::after,
  .link-card::after {
    inset: 10px;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}
