:root {
  color-scheme: light;
  --white: #ffffff;
  --blue: #19357F;
  --blue-strong: #12285f;
  --sky: #DEF2FE;
  --ink: #293238;
  --muted: #617181;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-soft-2: #eef5ff;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-blue: rgba(25, 53, 127, 0.05);
  --line: rgba(25, 53, 127, 0.12);
  --line-strong: rgba(25, 53, 127, 0.22);
  --shadow: 0 20px 48px rgba(25, 53, 127, 0.14);
  --shadow-soft: 0 10px 26px rgba(25, 53, 127, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: min(1240px, calc(100vw - 32px));
  --header-height: 80px;
  --section-space: clamp(76px, 9vw, 118px);
  --accent-contrast: #ffffff;
  --page-radial: rgba(222, 242, 254, 0.75);
  --page-grad-start: #fbfdff;
  --page-grad-mid: #ffffff;
  --page-grad-end: #f7faff;
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-bg-scrolled: rgba(255, 255, 255, 0.9);
  --header-shadow: 0 10px 34px rgba(25, 53, 127, 0.08);
  --surface-highlight: rgba(255, 255, 255, 0.8);
  --nav-surface: rgba(255, 255, 255, 0.88);
  --nav-hover: rgba(25, 53, 127, 0.08);
  --nav-active: rgba(25, 53, 127, 0.1);
  --brand-mark-bg: linear-gradient(135deg, rgba(25, 53, 127, 0.14), rgba(222, 242, 254, 0.92));
  --brand-mark-border: rgba(25, 53, 127, 0.16);
  --brand-mark-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --brand-mark-icon: var(--blue);
  --control-surface: #ffffff;
  --panel-elevated: rgba(255, 255, 255, 0.95);
  --panel-elevated-strong: rgba(255, 255, 255, 0.97);
  --panel-solid: rgba(255, 255, 255, 0.92);
  --program-copy-bg:
    linear-gradient(180deg, rgba(222, 242, 254, 0.7), rgba(255, 255, 255, 0.96)),
    #ffffff;
  --section-soft-bg: linear-gradient(180deg, rgba(222, 242, 254, 0.38) 0%, rgba(255, 255, 255, 0.95) 100%);
  --projects-bg:
    linear-gradient(180deg, rgba(222, 242, 254, 0.65) 0%, rgba(255, 255, 255, 1) 38%),
    #ffffff;
  --projects-grid: rgba(25, 53, 127, 0.04);
  --hero-bg: #163374;
  --hero-grid: rgba(255, 255, 255, 0.045);
  --hero-overlay-bg: linear-gradient(180deg, rgba(15, 37, 86, 0.4) 0%, rgba(15, 37, 86, 0.48) 30%, rgba(15, 37, 86, 0.86) 100%);
  --placeholder-border: rgba(25, 53, 127, 0.22);
  --placeholder-bg:
    linear-gradient(135deg, rgba(25, 53, 127, 0.12), rgba(222, 242, 254, 0.85)),
    var(--bg-soft);
  --quote-fade: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  --contact-bg:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #17357a 0%, #122d66 100%);
  --footer-bg:
    linear-gradient(180deg, rgba(245, 248, 253, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  --footer-border: rgba(25, 53, 127, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #9ab8ff;
  --blue-strong: #bad0ff;
  --sky: #badfff;
  --ink: #edf3ff;
  --muted: #a6b5d4;
  --bg: #081326;
  --bg-soft: #0d1b35;
  --bg-soft-2: #13274c;
  --panel: rgba(10, 22, 44, 0.92);
  --panel-blue: rgba(154, 184, 255, 0.08);
  --line: rgba(154, 184, 255, 0.16);
  --line-strong: rgba(154, 184, 255, 0.28);
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
  --accent-contrast: #081326;
  --page-radial: rgba(46, 85, 176, 0.18);
  --page-grad-start: #050d1d;
  --page-grad-mid: #081326;
  --page-grad-end: #0b1830;
  --header-bg: rgba(8, 18, 38, 0.92);
  --header-bg-scrolled: rgba(8, 18, 38, 0.92);
  --header-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  --surface-highlight: rgba(255, 255, 255, 0.06);
  --nav-surface: rgba(14, 28, 56, 0.92);
  --nav-hover: rgba(154, 184, 255, 0.12);
  --nav-active: rgba(154, 184, 255, 0.18);
  --brand-mark-bg: linear-gradient(180deg, rgba(25, 53, 127, 0.92), rgba(10, 22, 44, 0.98));
  --brand-mark-border: rgba(154, 184, 255, 0.22);
  --brand-mark-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --brand-mark-icon: var(--sky);
  --control-surface: rgba(15, 31, 60, 0.95);
  --panel-elevated: rgba(11, 24, 48, 0.94);
  --panel-elevated-strong: rgba(12, 25, 50, 0.98);
  --panel-solid: rgba(10, 22, 44, 0.88);
  --program-copy-bg:
    linear-gradient(180deg, rgba(17, 36, 72, 0.86), rgba(10, 22, 44, 0.98)),
    #081326;
  --section-soft-bg: linear-gradient(180deg, rgba(16, 36, 74, 0.86) 0%, rgba(8, 19, 38, 0.96) 100%);
  --projects-bg:
    linear-gradient(180deg, rgba(13, 29, 61, 0.94) 0%, rgba(8, 19, 38, 1) 38%),
    #081326;
  --projects-grid: rgba(154, 184, 255, 0.055);
  --hero-bg: #081733;
  --hero-grid: rgba(255, 255, 255, 0.035);
  --hero-overlay-bg: linear-gradient(180deg, rgba(6, 15, 36, 0.22) 0%, rgba(6, 15, 36, 0.36) 30%, rgba(4, 10, 24, 0.82) 100%);
  --placeholder-border: rgba(154, 184, 255, 0.18);
  --placeholder-bg:
    linear-gradient(135deg, rgba(154, 184, 255, 0.08), rgba(15, 31, 60, 0.92)),
    var(--bg-soft);
  --quote-fade: linear-gradient(180deg, rgba(10, 22, 44, 0), rgba(10, 22, 44, 1));
  --contact-bg:
    radial-gradient(circle at top right, rgba(154, 184, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a1732 0%, #060d1c 100%);
  --footer-bg:
    linear-gradient(180deg, rgba(8, 18, 38, 0.98) 0%, rgba(4, 10, 24, 1) 100%);
  --footer-border: rgba(154, 184, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--page-radial), transparent 28%),
    linear-gradient(180deg, var(--page-grad-start) 0%, var(--page-grad-mid) 54%, var(--page-grad-end) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.cookie-overlay {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: block;
  width: auto;
  height: auto;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
}

.cookie-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 40px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(25, 53, 127, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 52px rgba(6, 27, 70, 0.22);
}

.cookie-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #2f80ff 100%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(25, 53, 127, 0.26);
}

.cookie-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-banner h2 {
  margin: 0 0 12px;
  color: #0b1530;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.cookie-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, var(--blue) 0%, #244aa6 100%);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(25, 53, 127, 0.24);
}

.cookie-btn.decline {
  background: rgba(25, 53, 127, 0.08);
  color: var(--blue);
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

.cookie-btn.accept:hover {
  box-shadow: 0 12px 24px rgba(25, 53, 127, 0.3);
}

.cookie-btn.decline:hover {
  background: rgba(25, 53, 127, 0.13);
}

html[data-theme="dark"] .cookie-banner {
  border-color: rgba(154, 184, 255, 0.16);
  background: rgba(10, 22, 44, 0.98);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .cookie-banner h2 {
  color: var(--white);
}

html[data-theme="dark"] .cookie-banner p {
  color: rgba(237, 243, 255, 0.72);
}

html[data-theme="dark"] .cookie-btn.decline {
  background: rgba(154, 184, 255, 0.1);
  color: var(--sky);
}

@media (max-width: 680px) {
  .cookie-overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-banner {
    width: 100%;
    max-width: 100%;
    padding: 25px 20px;
  }

  .cookie-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .cookie-icon svg {
    width: 25px;
    height: 25px;
  }

  .cookie-banner h2 {
    font-size: 1.12rem;
  }

  .cookie-banner p {
    font-size: 0.82rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

#uvod {
  scroll-margin-top: 0;
}

.container {
  width: var(--max);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  transition: transform 0.28s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-color: var(--line);
  box-shadow: var(--header-shadow);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 8px));
}

.site-header:not(.is-scrolled) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .desktop-nav .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.site-header:not(.is-scrolled) .brand-mark {
  color: var(--white);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.site-header:not(.is-scrolled) .brand-mark svg {
  fill: currentColor;
}

.site-header:not(.is-scrolled) .desktop-nav .nav-link:hover,
.site-header:not(.is-scrolled) .desktop-nav .nav-link.is-active {
  color: var(--white);
  background: transparent;
}

.site-header:not(.is-scrolled) .desktop-nav .nav-link::after {
  background: rgba(255, 255, 255, 0.9);
}

.site-header:not(.is-scrolled) .header-social a,
.site-header:not(.is-scrolled) .theme-toggle,
.site-header:not(.is-scrolled) .menu-toggle {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.site-header:not(.is-scrolled) .header-social a:hover,
.site-header:not(.is-scrolled) .theme-toggle:hover,
.site-header:not(.is-scrolled) .menu-toggle:hover,
.site-header:not(.is-scrolled) .menu-toggle.is-open {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.site-header:not(.is-scrolled) .menu-toggle span {
  background: var(--white);
}

.header-inner {
  width: var(--max);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand strong {
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: visible;
  color: var(--blue);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
  stroke: none;
}

.brand-logo-mask {
  width: 44px;
  height: 44px;
  display: block;
  background: currentColor;
  transform: translateY(-2px);
  -webkit-mask: url("assets/branding/nas-domov-logo-transparent.png") center / contain no-repeat;
  mask: url("assets/branding/nas-domov-logo-transparent.png") center / contain no-repeat;
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .site-header:not(.is-scrolled) .brand-mark {
  color: var(--sky);
}

.desktop-nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  gap: 30px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.desktop-nav .nav-link,
.mobile-nav .nav-link,
.footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav .nav-link {
  min-height: 36px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
}

.desktop-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.desktop-nav .nav-link:hover,
.mobile-nav .nav-link:hover,
.footer-nav a:hover {
  color: var(--blue);
  background: var(--nav-hover);
}

.desktop-nav .nav-link:hover {
  background: transparent;
}

.desktop-nav .nav-link:hover::after {
  transform: scaleX(1);
  opacity: 0.35;
}

.desktop-nav .nav-link.is-active,
.mobile-nav .nav-link.is-active {
  color: var(--blue);
  background: var(--nav-active);
}

.desktop-nav .nav-link.is-active {
  background: transparent;
}

.desktop-nav .nav-link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--control-surface);
  color: var(--blue);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-social a:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--accent-contrast);
}

.header-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--control-surface);
  color: var(--blue);
  appearance: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--accent-contrast);
}

@media (hover: none), (pointer: coarse) {
  .theme-toggle:hover {
    transform: none;
    background: var(--control-surface);
    color: var(--blue);
  }

  .site-header:not(.is-scrolled) .theme-toggle:hover,
  .site-header:not(.is-scrolled) .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }
}

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 53, 127, 0.16);
}

html[data-theme="dark"] .theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(154, 184, 255, 0.18);
}

.theme-toggle-icons {
  position: relative;
  width: 18px;
  height: 18px;
}

.theme-icon {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.65) translate(0.8px, -0.2px);
  fill: currentColor;
  stroke: none;
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.65);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1) translate(0.8px, -0.2px);
}

.theme-toggle-text {
  display: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--blue);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--blue-strong);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
}

.header-cta {
  min-height: 38px;
  padding-inline: 18px;
  border-radius: var(--radius-sm);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--control-surface);
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 7px));
}

.menu-toggle span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 7px));
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.menu-toggle.is-open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: var(--header-height) 0 auto;
  z-index: 1100;
  padding: 0 16px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-elevated-strong);
  box-shadow: var(--shadow);
}

.mobile-panel-bottom {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mobile-panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.mobile-social {
  display: grid;
  gap: 8px;
}

.mobile-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--blue);
  font-weight: 600;
}

.mobile-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + 34px) 0 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #061b46;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 4%, rgba(0, 0, 0, 0.78) 10%, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 4%, rgba(0, 0, 0, 0.78) 10%, #000 16%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-media.has-image img {
  opacity: 1;
}

.hero-overlay {
  background:
    linear-gradient(0deg, rgba(6, 27, 70, 0.9) 0, rgba(6, 27, 70, 0.7) 58px, rgba(6, 27, 70, 0.24) 96px, rgba(6, 27, 70, 0) 128px),
    linear-gradient(90deg, #061b46 0%, #061b46 10%, rgba(6, 27, 70, 0.72) 16%, rgba(6, 27, 70, 0.22) 24%, rgba(6, 27, 70, 0.04) 30%, rgba(6, 27, 70, 0) 34%);
}

@media (min-width: 1121px) and (max-width: 1600px) {
  .hero-media img {
    width: min(70vw, 1210px);
    height: auto;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 4%, rgba(0, 0, 0, 0.78) 10%, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 4%, rgba(0, 0, 0, 0.78) 10%, #000 16%);
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7.2vw, 5.8rem);
  }
}

@media (min-width: 1121px) and (max-width: 1280px) {
  .hero-media img {
    width: min(64vw, 960px);
    height: auto;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 4%, rgba(0, 0, 0, 0.78) 10%, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 4%, rgba(0, 0, 0, 0.78) 10%, #000 16%);
  }

  .hero h1 {
    font-size: clamp(3.1rem, 6.8vw, 5.1rem);
  }

  .hero-lead {
    max-width: 33ch;
    font-size: clamp(0.92rem, 1.2vw, 1rem);
  }
}

.hero-inner,
.hero-stats,
.hero-places {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: block;
}

.hero-copy {
  max-width: 560px;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-self: end;
}

.hero-note,
.hero-tags-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(222, 242, 254, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(6, 17, 42, 0.24);
  backdrop-filter: blur(14px);
}

.hero-note {
  max-width: 430px;
  justify-self: end;
}

.hero-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-tags-card {
  justify-self: end;
  width: min(100%, 430px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(222, 242, 254, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f80ff;
  box-shadow: 0 0 14px rgba(47, 128, 255, 0.68);
}

.hero h1 {
  max-width: 8ch;
  margin: 24px 0 0;
  color: var(--white);
  font-size: clamp(4rem, 8.2vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-motto {
  margin: 22px 0 0;
  color: rgba(188, 220, 255, 0.96);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  font-weight: 700;
}

.hero-lead {
  max-width: 37ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 500;
  line-height: 1.68;
  text-wrap: pretty;
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-actions .btn {
  min-width: 178px;
  min-height: 50px;
  justify-content: space-between;
  padding: 0 22px 0 24px;
  border-radius: 6px;
}

.hero-actions .btn::after {
  content: "›";
  margin-left: 18px;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.hero-tags span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-places {
  position: absolute;
  left: calc((100vw - var(--max)) / 2);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  width: auto;
  max-width: var(--max);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  transform: none;
}

.hero-place-pin {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.hero-place-pin svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-places-label {
  white-space: nowrap;
}

.hero-places-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.46);
}

.hero-place-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2f80ff;
  box-shadow: 0 0 14px rgba(47, 128, 255, 0.72);
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-stat {
  min-height: 128px;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(25, 53, 127, 0.1);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--blue);
  box-shadow: 0 18px 40px rgba(8, 23, 51, 0.18);
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-stat .stat-value {
  color: var(--blue);
}

.stat-label {
  display: block;
  max-width: 16ch;
  margin: 0;
  line-height: 1.45;
  text-wrap: balance;
}

.hero-stat .stat-label {
  color: rgba(41, 50, 56, 0.82);
  font-size: 0.96rem;
  font-weight: 600;
}

html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .hero-tags-card {
  border-color: rgba(154, 184, 255, 0.12);
  background: rgba(10, 24, 53, 0.72);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-tags span {
  border-color: rgba(154, 184, 255, 0.14);
  background: rgba(154, 184, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .hero-stat {
  border-color: rgba(154, 184, 255, 0.12);
  background: rgba(10, 24, 53, 0.86);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .hero-stat .stat-value {
  color: var(--white);
}

html[data-theme="dark"] .hero-stat .stat-label {
  color: rgba(230, 238, 255, 0.72);
}

.section {
  padding: var(--section-space) 0;
}

.section-soft {
  background: var(--section-soft-bg);
}

#mise-a-vize {
  position: relative;
  overflow: hidden;
}

#mise-a-vize::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 53, 127, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.section-projects {
  background: var(--projects-bg);
  position: relative;
}

.section-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--projects-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--projects-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
}

.section-projects > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head-balanced {
  align-items: center;
}

.section-head-stacked {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow-light::before {
  background: var(--white);
}

.section-head h2,
.contact-intro h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head p,
.contact-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.72;
}

.section-head-copy {
  justify-self: start;
  max-width: 48ch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--muted) !important;
  font-size: 1.04rem !important;
  line-height: 1.68 !important;
}

#kandidati .section-head-copy {
  max-width: 66ch;
}

#mise-a-vize .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.candidate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
}

.candidate-grid > .candidate-card {
  flex: 0 0 calc((100% - 88px) / 5);
  max-width: calc((100% - 88px) / 5);
}

.candidate-card,
.vision-card,
.vision-side,
.program-copy,
.accordion-item,
.project-main-card,
.project-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.candidate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border-color: rgba(25, 53, 127, 0.08);
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(25, 53, 127, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(25, 53, 127, 0.2);
}

.candidate-card > :not(.candidate-number):not(.candidate-toggle) {
  width: 100%;
}

.candidate-card::before {
  display: none;
}

.candidate-number {
  position: absolute;
  top: 4px;
  left: 1px;
  z-index: 2;
  display: inline-block;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(2.2rem, 3.85vw, 2.92rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
}

.candidate-card:has(.candidate-photo:not(.has-image)) .candidate-number {
  color: #111827;
  opacity: 0.14;
  text-shadow: none;
}

.candidate-photo {
  margin-top: 0;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: var(--placeholder-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--blue);
}

.candidate-photo.has-image {
  border: 0;
  background: #dfe7f2;
  box-shadow: none;
}

.candidate-photo.has-image .candidate-initials,
.candidate-photo.has-image .candidate-photo-note {
  display: none;
}

.candidate-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

html[data-theme="dark"] .candidate-photo.has-image {
  background: rgba(154, 184, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(154, 184, 255, 0.12);
}

html[data-theme="dark"] .candidate-card,
html[data-theme="dark"] .candidate-meta,
html[data-theme="dark"] .candidate-quote {
  background: var(--panel);
}

html[data-theme="dark"] .candidate-card {
  border-color: rgba(154, 184, 255, 0.14);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .candidate-card h3 {
  color: #eaf0ff;
}

html[data-theme="dark"] .candidate-role {
  color: rgba(232, 239, 255, 0.62);
}

.candidate-initials {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nav-active);
  color: var(--blue);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.candidate-photo-note {
  max-width: 18ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.candidate-meta {
  min-height: 98px;
  height: 98px;
  margin-top: 0;
  padding: 13px 48px 10px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.candidate-card h3 {
  margin: 0;
  color: #24344f;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 800;
  min-height: calc(1.15em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: calc(1.18em * 2);
  overflow: hidden;
}

.candidate-role {
  margin: 0;
  color: #5d6880;
  font-size: 0.66rem;
  line-height: 1.32;
  min-height: calc(1.32em * 2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: calc(1.35em * 2);
  overflow: hidden;
}

.candidate-quote {
  position: relative;
  margin: 0;
  padding: 0 22px 0 18px;
  border-top: 1px solid transparent;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.55;
  min-height: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  display: block;
  transition: opacity 0.12s ease;
}

.candidate-card:not(.is-expanded) .candidate-quote::after {
  display: none;
}

.candidate-card.is-expanded .candidate-quote {
  display: block;
  min-height: 0;
  max-height: none;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  padding-top: 12px;
  padding-right: 22px;
  padding-bottom: 34px;
  border-color: rgba(25, 53, 127, 0.1);
}

.candidate-card.is-expanded .candidate-quote::after {
  display: none;
}

.candidate-toggle {
  position: absolute;
  right: 17px;
  bottom: 12px;
  z-index: 3;
  width: 22px;
  height: 22px;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--blue);
  font-size: 0;
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.candidate-toggle:hover {
  transform: translateY(-1px);
  color: #102966;
}

.candidate-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  transition: transform 0.2s ease;
}

.candidate-card.is-expanded .candidate-toggle svg {
  transform: rotate(180deg);
}

.vision-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 56px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(25, 53, 127, 0.1);
  box-shadow: 0 12px 46px rgba(25, 53, 127, 0.14);
  align-items: stretch;
}

.vision-main {
  display: grid;
  gap: 18px;
}

.vision-card,
.vision-side {
  padding: 56px 52px;
}

.vision-card-label,
.vision-side-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vision-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vision-card::after {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.06;
}

.vision-card:first-child {
  background: var(--blue);
  color: var(--white);
}

.vision-card:first-child::after {
  content: "01";
  color: var(--white);
  opacity: 0.08;
}

.vision-card:last-child {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
}

.vision-card:last-child::after {
  content: "02";
  color: var(--blue);
}

.vision-card h3,
.vision-side h3,
.roller-head h3,
.project-main-info h3,
.project-card h3,
.contact-card h3 {
  margin: 14px 0 0;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.vision-card p,
.vision-side p,
.project-main-info p,
.project-card p,
.program-copy p,
.contact-card p {
  margin: 20px 0 0;
  color: var(--ink);
}

.vision-tags,
.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vision-tags {
  margin-top: auto;
  padding-top: 28px;
}

.program-tags {
  margin-top: 28px;
}

.vision-tags span,
.program-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(25, 53, 127, 0.05);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vision-card:first-child .vision-card-label {
  color: rgba(222, 242, 254, 0.74);
}

.vision-card:first-child h3,
.vision-card:first-child p {
  color: var(--white);
}

.vision-card:first-child p {
  color: rgba(255, 255, 255, 0.84);
}

.vision-card:first-child .vision-tags span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

.vision-card:last-child .vision-card-label {
  color: var(--blue);
}

.vision-card:last-child h3 {
  color: var(--blue);
}

.vision-card:last-child p {
  color: var(--ink);
}

.vision-card:last-child .vision-tags span {
  background: var(--sky);
  border-color: rgba(25, 53, 127, 0.12);
  color: var(--blue);
}

html[data-theme="dark"] #mise-a-vize::before {
  background: radial-gradient(circle, rgba(154, 184, 255, 0.1) 0%, transparent 70%);
}

html[data-theme="dark"] .vision-layout {
  border-color: rgba(154, 184, 255, 0.12);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .vision-card:first-child {
  background: #17357a;
}

html[data-theme="dark"] .vision-card:last-child {
  background: rgba(10, 22, 44, 0.96);
  color: var(--ink);
}

html[data-theme="dark"] .vision-card:last-child::after {
  color: rgba(154, 184, 255, 0.2);
}

html[data-theme="dark"] .vision-card:last-child .vision-card-label,
html[data-theme="dark"] .vision-card:last-child h3,
html[data-theme="dark"] .vision-card:last-child .vision-tags span {
  color: var(--sky);
}

html[data-theme="dark"] .vision-card:last-child p {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .vision-card:last-child .vision-tags span {
  background: rgba(154, 184, 255, 0.1);
  border-color: rgba(154, 184, 255, 0.16);
}

.vision-points {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.vision-point {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.vision-point strong {
  display: block;
  color: var(--blue);
}

.vision-point p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-program {
  background: var(--bg);
}

.program-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.program-header h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(3.4rem, 7vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.program-header p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.program-copy {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 30px;
  background: var(--program-copy-bg);
}

.program-copy h2 {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.accordion {
  display: grid;
  gap: 16px;
}

.accordion-item {
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  text-align: left;
}

.accordion-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--nav-hover);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.accordion-title span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.accordion-title strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 1.24rem;
}

.accordion-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nav-hover);
  color: var(--blue);
  transition: transform 0.2s ease, background 0.2s ease;
}

.accordion-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
  background: var(--nav-active);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.accordion-panel-inner {
  padding: 0 24px 24px;
}

.accordion-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accordion-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.accordion-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.program-accordion {
  gap: 0;
  border-top: 1px solid var(--line);
}

.program-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.program-accordion .accordion-trigger {
  grid-template-columns: 30px 44px minmax(0, 1fr) 38px;
  gap: 16px;
  padding: 22px 0;
}

.accordion-num {
  align-self: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.accordion-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 10px;
  background: var(--bg-soft-2);
  color: var(--blue);
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-symbol svg,
.accordion-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-cat {
  align-self: center;
  color: var(--ink);
  font-size: clamp(1.16rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.accordion-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: var(--nav-hover);
  color: var(--blue);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.program-accordion .accordion-item.is-open .accordion-symbol {
  background: var(--blue);
  color: var(--accent-contrast);
}

.program-accordion .accordion-item.is-open .accordion-cat {
  color: var(--blue);
}

.program-accordion .accordion-item.is-open .accordion-toggle {
  transform: rotate(45deg);
  background: var(--nav-active);
}

.program-accordion .accordion-panel-inner {
  padding: 0 0 24px 86px;
}

.program-accordion .accordion-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.program-accordion .accordion-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-left: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}

.program-accordion .accordion-list li::before {
  position: static;
  flex: 0 0 8px;
  margin-top: 0.46em;
}

.project-main-card {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.92fr);
  overflow: hidden;
  margin-bottom: 22px;
}

.project-main-info,
.project-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 18px;
}

.project-main-info {
  padding-bottom: 58px;
}

.project-main-info {
  align-self: stretch;
  justify-content: flex-start;
}

.project-main-info p,
.project-card p {
  color: var(--ink);
}

.project-main-info p,
.project-card-body p {
  display: -webkit-box;
  max-height: calc(1.65em * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.65;
}

.project-main-info p {
  max-height: calc(1.65em * 8);
  -webkit-line-clamp: 8;
}

.project-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-main-info h3,
.project-card-body h3 {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.project-main-info .project-main-title {
  font-size: clamp(1.68rem, 2.66vw, 2.45rem);
  line-height: 1;
  gap: 10px;
}

.project-inline-number {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.project-main-title .project-inline-number {
  font-size: 0.62em;
}

.project-detail-toggle {
  align-self: flex-end;
  width: auto;
  min-height: 28px;
  margin-top: 12px;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-main-info .project-detail-toggle {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  margin: 0;
}

.project-main-info .project-detail-toggle span {
  display: inline;
}

.project-detail-toggle:hover {
  color: #102966;
  transform: translateY(-2px);
}

.project-detail-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-main-info .project-detail-toggle svg {
  width: 21px;
  height: 21px;
}

.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 12, 22, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.project-modal-overlay.is-active {
  display: flex;
  animation: projectModalFadeIn 0.22s ease;
}

.project-modal {
  position: relative;
  width: min(92vw, 720px);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: clamp(46px, 6vw, 58px) clamp(30px, 5vw, 46px) clamp(30px, 5vw, 46px);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  animation: projectModalSlideUp 0.24s ease;
}

.project-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 0;
  line-height: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-modal-close::before,
.project-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.project-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal-close:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.project-modal-title {
  margin: 0;
  padding-inline: 22px;
  color: #0b1530;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  text-align: center;
}

.project-modal-content {
  margin: 22px auto 0;
  max-width: 62ch;
  color: #293238;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

body.project-modal-open {
  overflow: hidden;
}

html[data-theme="dark"] .project-modal {
  background: #0d1b35;
  border: 1px solid rgba(154, 184, 255, 0.18);
}

html[data-theme="dark"] .project-modal-title {
  color: #edf3ff;
}

html[data-theme="dark"] .project-modal-content,
html[data-theme="dark"] .project-modal-close {
  color: rgba(237, 243, 255, 0.84);
}

@keyframes projectModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes projectModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ba-wrap {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #d7deef;
  cursor: ew-resize;
  user-select: none;
}

.project-main-card .ba-wrap {
  min-height: 360px;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.ba-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after {
  clip-path: inset(0 66% 0 0);
}

.ba-theme-admin .ba-before {
  background:
    linear-gradient(135deg, rgba(75, 91, 125, 0.94), rgba(159, 175, 205, 0.88)),
    linear-gradient(90deg, transparent 0, transparent 45%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.16) 55%, transparent 55%);
}

.ba-theme-admin .ba-after {
  background:
    linear-gradient(135deg, rgba(25, 53, 127, 0.95), rgba(84, 128, 231, 0.78)),
    linear-gradient(90deg, transparent 0, transparent 52%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0.18) 64%, transparent 64%);
}

.ba-theme-fire .ba-before {
  background: linear-gradient(135deg, rgba(101, 116, 142, 0.94), rgba(176, 188, 206, 0.86));
}

.ba-theme-fire .ba-after {
  background: linear-gradient(135deg, rgba(26, 69, 133, 0.94), rgba(53, 128, 197, 0.82));
}

.ba-theme-eco .ba-before {
  background: linear-gradient(135deg, rgba(96, 117, 113, 0.92), rgba(173, 193, 181, 0.88));
}

.ba-theme-eco .ba-after {
  background: linear-gradient(135deg, rgba(24, 81, 57, 0.95), rgba(72, 161, 113, 0.82));
}

.ba-theme-school .ba-before {
  background: linear-gradient(135deg, rgba(119, 111, 142, 0.92), rgba(196, 183, 222, 0.9));
}

.ba-theme-school .ba-after {
  background: linear-gradient(135deg, rgba(25, 53, 127, 0.95), rgba(150, 106, 212, 0.78));
}

.ba-placeholder {
  position: absolute;
  inset: auto 18px 18px;
  max-width: 18ch;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ba-placeholder-right {
  left: auto;
}

.ba-placeholder small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.84;
}

.ba-placeholder strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  z-index: 4;
}

.ba-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--blue);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translate(-50%, -50%);
}

.ba-circle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba-badge,
.project-category {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  backdrop-filter: blur(7px) saturate(120%);
}

.ba-badge {
  bottom: 16px;
}

.ba-badge-left {
  left: 16px;
  background: rgba(25, 53, 127, 0.88);
}

.ba-badge-right {
  right: 16px;
  background: rgba(0, 0, 0, 0.42);
}

.project-category {
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-stats article {
  min-height: 94px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  display: grid;
  grid-template-rows: 2.25rem 2.12rem;
  justify-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
}

.project-stats .stat-value {
  color: var(--blue);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1;
  align-items: center;
  align-self: center;
}

.project-stats .stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.12rem;
  max-width: 18ch;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
  align-self: stretch;
}

.stat-suffix {
  font-size: 1em;
  line-height: 1;
  margin-top: 0;
}

.roller-head {
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.roller-head h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.08;
}

.roller-actions {
  display: flex;
  gap: 10px;
}

.roller-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--control-surface);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.roller-button:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--accent-contrast);
}

.roller-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-roller {
  margin-top: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 250px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 53, 127, 0.35) transparent;
}

.project-roller::-webkit-scrollbar {
  height: 10px;
}

.project-roller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(25, 53, 127, 0.35);
}

.roller-item {
  scroll-snap-align: start;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-elevated);
  box-shadow: var(--shadow-soft);
}

.roller-photo {
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  border: 1.5px dashed var(--placeholder-border);
  background: var(--placeholder-bg);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.roller-photo.has-image {
  padding: 0;
  border-style: solid;
  border-color: rgba(25, 53, 127, 0.08);
  background: #dfe7f2;
  overflow: hidden;
}

.roller-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roller-item h4 {
  margin: 12px 0 0;
  color: var(--blue);
  font-size: 0.98rem;
  line-height: 1.4;
}

.section-contact {
  background: var(--contact-bg);
  color: var(--white);
}

.contact-intro {
  display: block;
  margin-bottom: 24px;
}

.contact-intro h2,
.contact-intro p,
.section-contact .contact-card h3,
.section-contact .contact-card p,
.section-contact .contact-point strong,
.section-contact .contact-note {
  color: var(--white);
}

.contact-intro p,
.contact-note {
  color: rgba(255, 255, 255, 0.78);
}

.social-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.social-panel {
  min-height: 154px;
  padding: 22px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.social-panel:hover {
  transform: translateY(-3px);
}

.social-panel-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-panel strong,
.social-panel span:last-child {
  display: block;
}

.social-panel strong {
  margin-top: 14px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.social-panel span:last-child {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.social-panel-facebook {
  background: linear-gradient(135deg, #1b5ed2 0%, #1877f2 100%);
}

.social-panel-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 24%, #dc2743 52%, #bc1888 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.section-contact .contact-card {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.section-contact .contact-card h3 {
  margin-top: 0;
}

.section-contact .contact-card-form {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  border-color: rgba(25, 53, 127, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(8, 18, 38, 0.08);
  backdrop-filter: none;
}

.section-contact .contact-card-form h3 {
  color: var(--blue);
}

.section-contact .contact-card-form p {
  color: var(--ink);
}

.section-contact .contact-card-info {
  border-color: rgba(25, 53, 127, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(8, 18, 38, 0.08);
  backdrop-filter: none;
}

.section-contact .contact-card-info h3,
.section-contact .contact-card-info .contact-point strong {
  color: var(--blue);
}

.contact-note {
  margin: 18px 0 0;
  max-width: none;
  font-size: 1rem;
  line-height: 1.72;
}

.section-contact .contact-card-form > h3 + p,
.section-contact .contact-card-info > h3 + p {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
}

.contact-form {
  margin-top: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.form-group + .form-group {
  margin-top: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
}

.section-contact .contact-card-form .form-group label {
  color: rgba(41, 50, 56, 0.82);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(25, 53, 127, 0.12);
  background: #ffffff;
  color: #293238;
  caret-color: #19357F;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(41, 50, 56, 0.46);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(222, 242, 254, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(222, 242, 254, 0.16);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: rgba(255, 134, 134, 0.7);
}

.form-error,
.form-status {
  margin: 7px 0 0;
  font-size: 0.84rem;
}

.form-error {
  display: none;
  color: #ffd1d1;
}

.section-contact .contact-card-form .form-error {
  color: #b02a37;
}

.form-error.is-visible {
  display: block;
}

.form-status {
  color: rgba(255, 255, 255, 0.76);
}

.section-contact .contact-card-form .form-status {
  color: rgba(41, 50, 56, 0.72);
  margin-top: 12px;
  text-align: left;
}

.section-contact .contact-card-form .form-status.is-success {
  color: #187044;
}

.section-contact .contact-card-form .form-status.is-error {
  color: #b02a37;
}

.form-status:empty {
  display: none;
  margin: 0;
}

.contact-card-form .btn[type="submit"] {
  align-self: flex-start;
  margin-top: auto;
  min-width: 184px;
  border-radius: var(--radius-lg);
}

.contact-card-form .btn[type="submit"]:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.contact-points {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.contact-point {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.contact-point-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(222, 242, 254, 0.95);
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.contact-point-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-point-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-point-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-contact .contact-card-info .contact-point-label {
  color: rgba(41, 50, 56, 0.62);
}

.contact-point strong {
  display: block;
  font-size: 1.01rem;
  line-height: 1.36;
  word-break: break-word;
}

html[data-theme="dark"] .social-panels {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

html[data-theme="dark"] .section-contact .contact-card-form,
html[data-theme="dark"] .section-contact .contact-card-info {
  border-color: rgba(154, 184, 255, 0.16);
  background: rgba(11, 24, 48, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .section-contact .contact-card-form h3,
html[data-theme="dark"] .section-contact .contact-card-form p,
html[data-theme="dark"] .section-contact .contact-card-info h3,
html[data-theme="dark"] .section-contact .contact-card-info p,
html[data-theme="dark"] .section-contact .contact-card-info .contact-point strong {
  color: var(--white);
}

html[data-theme="dark"] .section-contact .contact-card-form > h3 + p,
html[data-theme="dark"] .section-contact .contact-card-info > h3 + p {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .section-contact .contact-card-form .form-group label {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  caret-color: var(--sky);
  box-shadow: none;
}

html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(154, 184, 255, 0.12);
}

html[data-theme="dark"] .section-contact .contact-card-form .form-error {
  color: #ffd1d1;
}

html[data-theme="dark"] .section-contact .contact-card-form .form-status {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] .section-contact .contact-card-form .form-status.is-success {
  color: #98f0bd;
}

html[data-theme="dark"] .section-contact .contact-card-form .form-status.is-error {
  color: #ffd1d1;
}

html[data-theme="dark"] .roller-photo.has-image {
  border-color: rgba(154, 184, 255, 0.12);
  background: rgba(154, 184, 255, 0.08);
}

html[data-theme="dark"] .contact-point-icon {
  background: rgba(154, 184, 255, 0.12);
  color: var(--sky);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .section-contact .contact-card-info .contact-point-label {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer {
  padding: 24px 0 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
}

.footer-inner {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.footer-brand-block {
  display: grid;
  gap: 6px;
}

.footer-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-title {
  color: var(--blue);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--footer-border);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-meta > :first-child {
  justify-self: start;
}

.footer-meta > :last-child {
  justify-self: end;
  text-align: right;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--control-surface);
  color: var(--blue);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--accent-contrast);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-credit-strip {
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #19357F 0%, #12285f 100%);
}

.footer-credit-strip .container {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-credit-strip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 86vw);
  height: min(210px, 44vw);
  transform: translate(-50%, calc(-50% + 5px));
  background: url("assets/branding/vjp-logo-white.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.footer-credit {
  margin: 0;
  position: relative;
  z-index: 1;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.footer-credit-brand {
  display: inline-flex;
  align-items: center;
}

.footer-credit strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.footer-credit-divider {
  color: rgba(255, 255, 255, 0.96);
}

.footer-credit-year {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal.reveal-no-motion,
.reveal.reveal-no-motion.is-visible {
  transition: none !important;
}

@media (max-width: 1120px) {
  .hero {
    background:
      radial-gradient(circle at 50% 12%, rgba(222, 242, 254, 0.13), transparent 30%),
      linear-gradient(180deg, #061b46 0%, #0b2a63 46%, #061b46 100%);
  }

  .hero-media img {
    display: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 27, 70, 0.18) 0%,
      rgba(6, 27, 70, 0.28) 42%,
      rgba(6, 27, 70, 0.64) 100%
    );
  }

  .hero-inner,
  .hero-stats,
  .hero-places {
    z-index: 2;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-note,
  .hero-tags-card {
    justify-self: start;
    width: min(100%, 620px);
    max-width: 100%;
  }

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

  .candidate-grid > .candidate-card {
    flex-basis: calc((100% - 44px) / 3);
    max-width: calc((100% - 44px) / 3);
  }

  .vision-layout,
  .program-layout,
  .contact-layout,
  .project-main-card,
  .section-head,
  .contact-intro {
    grid-template-columns: 1fr;
  }

  .section-head-copy {
    justify-self: start;
    max-width: 100%;
  }

  .program-copy {
    position: static;
  }

  .program-accordion .accordion-list {
    grid-template-columns: 1fr;
  }

  .vision-layout {
    margin-top: 42px;
  }

  .vision-card {
    min-height: auto;
    padding: 42px 34px;
  }

  .vision-card::after {
    top: 22px;
    right: 26px;
    font-size: 5.6rem;
  }
}

@media (min-width: 681px) and (max-width: 1120px) {
  .hero h1 {
    font-size: clamp(6rem, 11vw, 9.4rem);
  }

  .hero-motto {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
  }

  .hero-lead {
    max-width: 43ch;
    font-size: clamp(1.2rem, 2.25vw, 1.55rem);
  }

  .hero-badge {
    font-size: 0.9rem;
  }

  .hero-actions .btn {
    min-width: 210px;
    min-height: 60px;
    font-size: 1.08rem;
  }
}

@media (min-width: 921px) and (max-width: 1120px) and (max-height: 820px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 86px;
  }

  .hero-copy {
    max-width: 500px;
  }

  .hero-badge {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(4.6rem, 8.5vw, 5.6rem);
  }

  .hero-motto {
    margin-top: 18px;
    font-size: clamp(1.12rem, 2vw, 1.32rem);
  }

  .hero-lead {
    max-width: 42ch;
    margin-top: 14px;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 18px;
  }

  .hero-actions .btn {
    min-width: 184px;
    min-height: 50px;
    font-size: 0.96rem;
  }

  .hero-places {
    bottom: 18px;
    gap: clamp(16px, 2.4vw, 26px);
    font-size: 0.88rem;
  }

  .hero-place-pin {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 1060px) {
  .header-inner {
    gap: 14px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .desktop-nav .nav-link {
    min-height: 34px;
    padding: 0;
    font-size: 0.92rem;
  }

  .header-social {
    display: none;
  }

  .header-cta {
    padding-inline: 16px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 74px;
  }

  .header-inner {
    align-items: center;
  }

  .brand,
  .header-actions {
    align-items: center;
  }

  .brand-logo-mask {
    transform: translateY(0);
  }

  .brand > span:last-child {
    display: inline-flex;
    align-items: center;
    height: 44px;
    transform: translateY(3px);
  }

  .desktop-nav,
  .header-social,
  .header-cta {
    display: none;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: calc(var(--header-height) + 12px);
  }

  .hero h1 {
    max-width: none;
  }

  .hero-places {
    position: relative;
    left: auto;
    bottom: auto;
    width: var(--max);
    margin-top: 46px;
    flex-wrap: nowrap;
    gap: clamp(7px, 1.5vw, 12px);
    font-size: clamp(0.76rem, 1.7vw, 0.9rem);
    transform: none;
  }

  .hero-place-pin {
    width: 38px;
    height: 38px;
  }

  .hero-place-pin svg {
    width: 19px;
    height: 19px;
  }

  .hero-place-dot {
    width: 4px;
    height: 4px;
  }

  .hero-places-divider {
    display: none;
  }

  .hero-stats,
  .project-stats,
  .social-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-grid {
    justify-content: center;
  }

  .candidate-grid > .candidate-card {
    flex-basis: calc((100% - 22px) / 2);
    max-width: calc((100% - 22px) / 2);
  }
}

@media (max-width: 680px) {
  :root {
    --section-space: 68px;
  }

  .project-modal-overlay {
    padding: 10px;
  }

  .project-modal {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 42px 18px 22px;
    border-radius: 14px;
  }

  .project-modal-close {
    top: 4px;
    right: 4px;
  }

  .project-modal-title {
    padding-inline: 26px;
    font-size: 1.22rem;
    line-height: 1.16;
  }

  .project-modal-content {
    margin-top: 16px;
    max-width: none;
    font-size: clamp(0.86rem, 3.8vw, 0.95rem);
    line-height: 1.48;
  }

  .header-inner,
  .container {
    width: min(100vw - 24px, 1240px);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 16vw, 4.4rem);
  }

  .hero {
    min-height: 720px;
    padding-bottom: 46px;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-note,
  .hero-tags-card {
    padding: 18px;
  }

  .hero-note p {
    font-size: 1.04rem;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-places {
    flex-wrap: wrap;
    gap: 10px 7px;
    font-size: clamp(0.66rem, 2.7vw, 0.78rem);
  }

  .hero-places-label {
    width: calc(100% - 48px);
    font-size: 0.86rem;
  }

  .hero-place-pin {
    width: 36px;
    height: 36px;
  }

  .hero-place-pin svg {
    width: 17px;
    height: 17px;
  }

  .hero-place-dot {
    width: 3px;
    height: 3px;
  }

  .footer-brand-block,
  .footer-meta {
    text-align: center;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-meta > :first-child,
  .footer-meta > :last-child {
    justify-self: center;
    text-align: center;
  }

  .footer-credit {
    justify-content: center;
    text-align: center;
  }

  .footer-credit-brand {
    justify-content: center;
  }

  .btn,
  .hero-actions .btn,
  .social-panel {
    width: 100%;
  }

  .hero-stats,
  .project-secondary-grid,
  .project-stats,
  .social-panels {
    grid-template-columns: 1fr;
  }

  html[data-theme="dark"] .social-panels {
    grid-template-columns: 1fr;
  }

  .social-panels {
    gap: 10px;
  }

  .social-panel {
    min-height: 92px;
    border-radius: 16px;
    gap: 8px;
  }

  .social-panel-label {
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.68rem;
  }

  .social-panel strong {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.22;
  }

  .social-panel span:last-child {
    margin-top: 0;
    font-size: 0.9rem;
  }

  .candidate-grid {
    gap: 14px;
  }

  .candidate-grid > .candidate-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .section-head h2,
  .contact-intro h2,
  .program-copy h2,
  .program-header h2 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .vision-card,
  .vision-side,
  .program-copy,
  .accordion-trigger,
  .project-main-info,
  .project-card-body,
  .section-contact .contact-card,
  .social-panel {
    padding: 22px;
  }

  .project-main-info,
  .project-card-body {
    padding-bottom: 22px;
  }

  .project-main-info {
    padding-bottom: 54px;
  }

  .project-main-info .project-detail-toggle {
    right: 20px;
    bottom: 18px;
  }

  .project-main-card .ba-wrap {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-main-info p {
    max-height: calc(1.65em * 3);
    -webkit-line-clamp: 3;
  }

  .contact-point-copy strong {
    font-size: clamp(0.82rem, 3.65vw, 0.94rem);
    line-height: 1.2;
  }

  .contact-point[href^="mailto:"] .contact-point-copy strong {
    white-space: nowrap;
    word-break: normal;
  }

  .social-panel {
    padding: 14px 18px;
  }

  .vision-layout {
    margin-top: 28px;
  }

  .vision-card {
    padding: 30px 24px;
  }

  .vision-card::after {
    top: 18px;
    right: 18px;
    font-size: 4.2rem;
  }

  .vision-card h3 {
    font-size: 1.72rem;
  }

  .vision-card p {
    margin-top: 16px;
  }

  .vision-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
    padding-top: 0;
  }

  .vision-tags span {
    gap: 8px;
    justify-content: center;
    min-height: 38px;
    width: 100%;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 1.15;
    text-align: center;
  }

  .vision-tags span::before {
    content: none;
  }

  .vision-card:first-child .vision-tags span {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
  }

  .vision-card:last-child .vision-tags span {
    border-color: rgba(25, 53, 127, 0.1);
    background: rgba(222, 242, 254, 0.7);
  }

  .accordion-panel-inner {
    padding: 0 22px 22px;
  }

  .program-accordion .accordion-trigger {
    grid-template-columns: 26px 42px minmax(0, 1fr) 38px;
    gap: 14px;
    padding: 22px 0;
  }

  .program-accordion .accordion-panel-inner {
    padding: 0 0 22px 0;
  }

  .program-accordion .accordion-list {
    padding-left: 58px;
  }

  .project-roller {
    grid-auto-columns: minmax(82vw, 82vw);
  }

  .roller-head {
    flex-direction: column;
    align-items: stretch;
  }
}
