:root {
  --brand-sky: #0077c8;
  --brand-blue: #004c97;
  --brand-navy: #003971;
  --brand-black: #000000;
  --brand-white: #ffffff;
  --brand-light: #dde2e6;
  --brand-mid: #a6afb4;
  --brand-slate: #525e66;
  --bg: #001d3b;
  --bg-soft: #00315f;
  --surface: rgba(221, 226, 230, 0.095);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(221, 226, 230, 0.22);
  --text: #ffffff;
  --muted: #dde2e6;
  --cyan: var(--brand-sky);
  --green: #8fc8ea;
  --amber: #dbe8f4;
  --danger: #d94a59;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 226, 230, 0.16);
  background: rgba(0, 57, 113, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 520px;
  white-space: normal;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-full {
  display: grid;
  gap: 1px;
  color: var(--brand-white);
  font-size: 0.72rem;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-blue));
  font-size: 13px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
}

.nav-link:hover {
  color: var(--brand-light) !important;
}

.nav-button {
  border: 0;
  background: transparent;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(221, 226, 230, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.language-switcher button {
  min-width: 34px;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher button.active,
.language-switcher button:hover {
  color: var(--brand-navy);
  background: var(--brand-white);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-blue));
  color: var(--brand-white);
  box-shadow: 0 16px 40px rgba(0, 119, 200, 0.32);
}

.btn-primary:hover {
  color: var(--brand-white);
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 132px 0 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 119, 200, 0.28), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(221, 226, 230, 0.16), transparent 26%),
    radial-gradient(circle at 70% 78%, rgba(0, 76, 151, 0.28), transparent 30%),
    linear-gradient(135deg, #000000 0%, #003971 48%, #004c97 100%);
}

.hero-photo-banner {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(48vw, 920px);
  min-width: 660px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 29, 59, 0.68) 0%, rgba(0, 57, 113, 0.46) 48%, rgba(0, 57, 113, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 29, 59, 0.04), rgba(0, 29, 59, 0.38)),
    url("/img/hero-data-protection-banner.png") center / cover no-repeat;
  clip-path: polygon(0 0, 73% 0, 100% 100%, 0 100%);
  opacity: 0.96;
  filter: saturate(1.05) contrast(1.08) brightness(1.08);
}

.hero-photo-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(0, 29, 59, 0.18), transparent 72%);
}

#networkCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-copy h1,
.form-copy h1,
.dashboard-hero h1 {
  margin: 16px 0 18px;
  max-width: 780px;
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.form-copy p,
.dashboard-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.section-kicker {
  display: inline-flex;
  color: var(--brand-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero-panel,
.glass-form,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 26px;
}

.shield-orbit {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(221, 226, 230, 0.26);
  border-radius: 50%;
  animation: rotateGlow 18s linear infinite;
}

.shield-core {
  position: absolute;
  inset: 50%;
  display: grid;
  width: 240px;
  height: 240px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(0, 119, 200, 0.12) 46%, rgba(0, 57, 113, 0) 72%);
  color: var(--brand-navy);
  filter: drop-shadow(0 0 34px rgba(0, 119, 200, 0.42));
}

.hero-agency-logo {
  position: relative;
  z-index: 4;
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.42));
  animation: logoBreath 3.8s ease-in-out infinite;
}

.logo-pulse-ring {
  position: absolute;
  inset: 50%;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: logoPulse 3.6s ease-out infinite;
}

.logo-pulse-ring.ring-two {
  animation-delay: 0.9s;
}

.logo-pulse-ring.ring-three {
  animation-delay: 1.8s;
}

.logo-data-line {
  position: absolute;
  z-index: 2;
  display: block;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  opacity: 0.78;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
  animation: dataLinePulse 2.7s ease-in-out infinite;
}

.logo-data-line::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--brand-white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.72);
}

.logo-data-line.line-top,
.logo-data-line.line-bottom {
  left: 34px;
  width: 172px;
  height: 2px;
}

.logo-data-line.line-top {
  top: 42px;
}

.logo-data-line.line-bottom {
  bottom: 42px;
  animation-delay: 0.75s;
}

.logo-data-line.line-top::after,
.logo-data-line.line-bottom::after {
  top: -3px;
  left: 50%;
}

.logo-data-line.line-right,
.logo-data-line.line-left {
  top: 34px;
  width: 2px;
  height: 172px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82), transparent);
}

.logo-data-line.line-right {
  right: 42px;
  animation-delay: 0.35s;
}

.logo-data-line.line-left {
  left: 42px;
  animation-delay: 1.1s;
}

.logo-data-line.line-right::after,
.logo-data-line.line-left::after {
  top: 50%;
  left: -3px;
}

.shield-orbit button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  min-height: 44px;
  border: 1px solid rgba(238, 247, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 57, 113, 0.82);
  color: var(--text);
  font-size: 0.79rem;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(165px) rotate(calc(-1 * var(--angle)));
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease;
}

.shield-orbit button:hover {
  border-color: var(--brand-white);
  color: var(--brand-white);
  background: rgba(0, 119, 200, 0.34);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.countdown div,
.stats-grid div,
.admin-stats .dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(221, 226, 230, 0.085);
  padding: 16px;
  text-align: center;
}

.countdown strong,
.stats-grid strong,
.admin-stats strong {
  display: block;
  color: var(--brand-white);
  font-size: 2rem;
  line-height: 1;
}

.countdown span,
.stats-grid span,
.admin-stats span {
  color: var(--muted);
}

.content-section,
.form-page,
.dashboard-page {
  padding: 104px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(0, 76, 151, 0.18), rgba(82, 94, 102, 0.08));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  letter-spacing: 0;
}

.feature-grid,
.speaker-grid,
.news-grid,
.dashboard-grid,
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.speaker-card,
.news-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(221, 226, 230, 0.065);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-card {
  padding: 24px;
}

.feature-card:hover,
.speaker-card:hover,
.news-card:hover {
  border-color: rgba(0, 119, 200, 0.78);
  background: rgba(0, 119, 200, 0.14);
  transform: translateY(-8px) rotateX(2deg);
}

.feature-card span {
  color: var(--brand-sky);
  font-weight: 900;
}

.feature-card h3,
.timeline-item h3,
.speaker-card h3,
.news-card h3,
.dashboard-card h2 {
  margin: 14px 0 10px;
  letter-spacing: 0;
}

.feature-card p,
.timeline-item p,
.speaker-info p,
.news-card p,
.dashboard-card p {
  color: var(--muted);
}

.stats-band,
.partners-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #002b58;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 12px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 132px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--brand-sky), var(--brand-light));
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: start;
}

.timeline-item time {
  color: var(--brand-light);
  font-weight: 900;
}

.timeline-item div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(221, 226, 230, 0.075);
}

.timeline-item span {
  color: var(--brand-light);
}

.speaker-card img,
.news-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.speaker-info,
.news-card div {
  padding: 20px;
}

.speaker-info span {
  color: var(--brand-light);
}

.speaker-bio {
  position: absolute;
  inset: auto 14px 14px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(0, 57, 113, 0.94);
  color: var(--text);
  transform: translateY(130%);
  transition: transform 220ms ease;
}

.speaker-card:hover .speaker-bio {
  transform: translateY(0);
}

.partners-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 22px 0;
  animation: marquee 28s linear infinite;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(221, 226, 230, 0.075);
}

.partner-logo span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-white);
  color: var(--brand-blue);
  font-weight: 900;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.form-page {
  min-height: calc(100vh - 86px);
  padding-top: 142px;
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.22), transparent 35%),
    linear-gradient(225deg, rgba(221, 226, 230, 0.14), transparent 35%),
    var(--bg);
}

.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.form-layout.compact {
  grid-template-columns: 1fr 430px;
}

.glass-form,
.dashboard-card {
  padding: 26px;
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: rgba(221, 226, 230, 0.22);
  color: var(--text);
  background-color: rgba(0, 26, 55, 0.92);
}

.form-control::placeholder,
textarea.form-control::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.form-select option {
  color: var(--brand-white);
  background-color: #001a37;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cyan);
  color: var(--text);
  background-color: rgba(0, 31, 64, 0.96);
  box-shadow: 0 0 0 0.2rem rgba(0, 119, 200, 0.22);
}

textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.form-label,
.form-check-label {
  color: var(--text);
}

.offer-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(221, 226, 230, 0.06);
}

.offer-check .form-check-input {
  margin-left: 0;
  margin-top: 4px;
}

.offer-check a {
  color: var(--brand-white);
  font-weight: 800;
}

.dashboard-page {
  padding-top: 132px;
  background: linear-gradient(180deg, #000000, #003971 54%, #002b58);
}

.document-page {
  min-height: calc(100vh - 84px);
  padding: 142px 0 104px;
  background: linear-gradient(180deg, #000000, #003971 54%, #002b58);
}

.document-page h1 {
  margin: 14px 0 18px;
}

.document-page p {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(221, 226, 230, 0.075);
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.dashboard-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.status-pill {
  border: 1px solid rgba(221, 226, 230, 0.52);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--brand-white);
  background: rgba(0, 119, 200, 0.2);
  font-weight: 900;
}

.qr-box {
  display: grid;
  width: min(260px, 100%);
  margin: 18px auto;
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--brand-white);
}

.qr-box svg {
  width: 100%;
  height: auto;
}

.resource-link,
.cabinet-program-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.cabinet-program-row time {
  min-width: 58px;
  color: var(--cyan);
  font-weight: 900;
}

.cabinet-program-row span {
  display: block;
  color: var(--muted);
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(221, 226, 230, 0.16);
}

.admin-page {
  scroll-padding-top: 110px;
}

.admin-page .reveal {
  opacity: 1;
  transform: none;
}

.admin-stat-link {
  color: var(--text);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease;
}

.admin-stat-link:hover {
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-4px);
}

.admin-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-title h2 {
  margin: 0;
}

.admin-section-title span {
  color: var(--muted);
}

.admin-inline-form {
  display: flex;
  gap: 8px;
  min-width: 240px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-form-grid.localized {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-grid.localized .btn {
  width: 100%;
}

.admin-form-grid .admin-wide {
  grid-column: span 2;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-list-row span {
  display: block;
  color: var(--muted);
}

.admin-edit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
}

.admin-edit-form.localized {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-edit-form.localized .btn {
  width: 100%;
}

.admin-edit-form.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.admin-edit-form .admin-wide {
  grid-column: span 2;
}

.status-pill.compact {
  display: inline-flex;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.admin-localization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.localization-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.localization-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-white);
}

.localization-card strong span {
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--brand-navy);
  background: var(--brand-white);
  font-size: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 22px;
  color: var(--muted);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 119, 200, 0.18), transparent 28%),
    #000000;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.25));
}

.footer-brand strong {
  display: block;
  color: var(--brand-white);
  font-size: 1.1rem;
}

.footer-brand span {
  display: block;
  max-width: 440px;
  margin-top: 6px;
  line-height: 1.55;
}

.footer-column {
  display: grid;
  gap: 9px;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: var(--brand-white);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--brand-white);
}

.footer-contacts a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid rgba(221, 226, 230, 0.14);
  padding-top: 18px;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rotateGlow {
  from { box-shadow: inset 0 0 42px rgba(0, 119, 200, 0.1); }
  50% { box-shadow: inset 0 0 70px rgba(221, 226, 230, 0.16); }
  to { box-shadow: inset 0 0 42px rgba(0, 119, 200, 0.1); }
}

@keyframes logoBreath {
  0%, 100% {
    transform: scale(0.98);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.32));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.64));
  }
}

@keyframes logoPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
  }
  18% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0;
  }
}

@keyframes dataLinePulse {
  0%, 100% {
    opacity: 0.24;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@media (max-width: 991px) {
  .hero-photo-banner {
    width: 100%;
    min-width: 0;
    height: 58%;
    opacity: 0.5;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
    background-position: center top;
  }

  .hero-content,
  .form-layout,
  .form-layout.compact,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .speaker-grid,
  .news-grid,
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .shield-orbit button {
    width: 128px;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(135px) rotate(calc(-1 * var(--angle)));
  }

  .language-switcher {
    margin-top: 10px;
  }

  .brand-mark {
    max-width: min(72vw, 460px);
  }

  .brand-full {
    font-size: 0.62rem;
  }

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

@media (max-width: 640px) {
  .hero-section {
    padding-top: 112px;
  }

  .hero-photo-banner {
    height: 48%;
    opacity: 0.38;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .feature-grid,
  .speaker-grid,
  .news-grid,
  .stats-grid,
  .countdown,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 18px;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-title,
  .admin-list-row,
  .admin-edit-row,
  .admin-inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-edit-row,
  .admin-form-grid,
  .admin-form-grid.localized,
  .admin-edit-form,
  .admin-edit-form.localized,
  .admin-localization-grid,
  .admin-edit-form.compact {
    grid-template-columns: 1fr;
  }

  .admin-form-grid .admin-wide,
  .admin-edit-form .admin-wide {
    grid-column: auto;
  }

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

  .footer-grid {
    display: grid;
  }

  .footer-bottom,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}
