:root {
  --ink: #10233f;
  --ink-soft: #33425c;
  --muted: #64728b;
  --blue: #1f4fd8;
  --blue-dark: #123a9e;
  --navy: #0c1d38;
  --navy-soft: #14294a;
  --coral: #ff6b4a;
  --amber: #ffb43a;
  --mint: #1fb58a;
  --cream: #f8f4ec;
  --paper: #ffffff;
  --line: rgba(16, 35, 63, 0.12);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 8px 24px rgba(16, 35, 63, 0.08);
  --shadow: 0 20px 50px rgba(16, 35, 63, 0.12);
  --shadow-lg: 0 32px 80px rgba(16, 35, 63, 0.18);
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 236, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(16, 35, 63, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 79, 216, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(31, 79, 216, 0.08);
  color: var(--blue-dark);
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding: 11px 20px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.32);
}

.site-nav .nav-cta:hover {
  background: #f25533;
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 16px 34px rgba(31, 79, 216, 0.32);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 20px 42px rgba(31, 79, 216, 0.4);
}

.btn-ghost {
  border-color: rgba(16, 35, 63, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 78px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 180, 58, 0.22), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(31, 181, 138, 0.16), transparent 40%),
    var(--cream);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-blob-a {
  width: 340px;
  height: 340px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(31, 79, 216, 0.16), transparent 68%);
}

.hero-blob-b {
  width: 300px;
  height: 300px;
  right: -90px;
  top: 120px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.14), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(31, 79, 216, 0.09);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--blue);
  z-index: 0;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 34%;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 180, 58, 0.55), rgba(255, 107, 74, 0.38));
  z-index: -1;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  list-style: none;
}

.hero-badges li {
  padding: 8px 16px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(145deg, #fff, rgba(255, 255, 255, 0.4));
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: -10px -14px 18px 16px;
  border-radius: 38px;
  background: linear-gradient(120deg, var(--blue), var(--mint) 55%, var(--amber));
  opacity: 0.22;
  z-index: -1;
  transform: rotate(-3deg);
}

.hero-image-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.float-card-a {
  top: 18px;
  left: -22px;
}

.float-card-b {
  right: -16px;
  bottom: 30px;
  animation-delay: -3s;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--amber), var(--coral));
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.float-card-b .float-icon {
  background: linear-gradient(145deg, var(--mint), var(--blue));
}

.float-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.float-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Stats */
.stats {
  padding: 0 0 8px;
  background: var(--cream);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 26px 10px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-18px);
}

.stat {
  padding: 6px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  color: var(--amber);
}

.stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* Sections */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}

.section-lead {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
}

/* About */
.about {
  padding-top: clamp(32px, 4vw, 56px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.about-visual {
  position: relative;
}

.about-image-frame {
  padding: 10px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.about-image-frame img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--coral), #ff8a4a);
  color: #fff;
  box-shadow: 0 18px 40px rgba(255, 107, 74, 0.34);
}

.about-badge strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.about-badge span {
  font-size: 12px;
  opacity: 0.9;
}

.about-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.about-copy p {
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.check-list span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  background: rgba(31, 181, 138, 0.14);
  color: #0d8a68;
  font-size: 13px;
  font-weight: 800;
}

.director-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.director-note strong {
  display: block;
  font-size: 14px;
}

.director-note span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(31, 79, 216, 0.14), rgba(31, 181, 138, 0.18));
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 16px;
}

.avatar-xl {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--amber), var(--coral));
  color: #fff;
  font-size: 28px;
}

/* Programs */
.programs {
  background:
    radial-gradient(circle at 100% 0, rgba(31, 79, 216, 0.06), transparent 40%),
    #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 79, 216, 0.08), transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 79, 216, 0.24);
  box-shadow: var(--shadow);
}

.program-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.program-card p {
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.icon-blue { background: rgba(31, 79, 216, 0.1); color: var(--blue); }
.icon-coral { background: rgba(255, 107, 74, 0.12); color: #e84d2c; }
.icon-mint { background: rgba(31, 181, 138, 0.13); color: #0d8a68; }
.icon-amber { background: rgba(255, 180, 58, 0.18); color: #b97600; }

.card-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.06);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Teachers */
.teachers {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgba(31, 79, 216, 0.35), transparent 42%),
    radial-gradient(circle at 92% 88%, rgba(31, 181, 138, 0.18), transparent 40%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}

.section-head-light .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber);
}

.section-head-light .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.director-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(6px);
}

.director-role {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.director-info h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.director-info p {
  margin: 0;
  max-width: 620px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}

.director-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.director-contacts a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.director-contacts a:hover {
  color: var(--amber);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.teacher-card {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.teacher-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 180, 58, 0.4);
}

.teacher-card .avatar {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--amber);
}

.teacher-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.teacher-role {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teacher-card p:not(.teacher-role) {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
}

.teacher-card a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.teacher-card a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* Apply */
.apply {
  background:
    radial-gradient(circle at 0 100%, rgba(255, 180, 58, 0.16), transparent 42%),
    var(--cream);
}

.apply-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.apply-copy h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.apply-copy > p {
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.steps strong {
  display: block;
  font-size: 15px;
}

.steps p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.apply-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.7);
}

.apply-note strong {
  font-size: 14px;
}

.apply-note span {
  font-size: 13px;
  color: var(--muted);
}

.form-wrap {
  position: relative;
}

.lead-form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-form h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.form-hint {
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(16, 35, 63, 0.16);
  border-radius: 12px;
  background: #fdfcf9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 79, 216, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a3b6;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d93a2b;
  background: #fff7f5;
}

.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #c22a1c;
}

.field-error:empty {
  display: none;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 6px;
}

.field-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.field-checkbox label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

.btn-submit[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.form-status {
  display: none;
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.form-status.is-success {
  display: block;
  background: rgba(31, 181, 138, 0.12);
  color: #0a6b50;
  border: 1px solid rgba(31, 181, 138, 0.35);
}

.form-status.is-error {
  display: block;
  background: rgba(217, 58, 43, 0.08);
  color: #a3241a;
  border: 1px solid rgba(217, 58, 43, 0.28);
}

/* Contacts */
.contacts {
  background: #fff;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.contact-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #fbf9f4);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: rgba(31, 79, 216, 0.09);
  color: var(--blue);
}

.contact-icon svg {
  width: 23px;
  height: 23px;
}

.contact-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact-card a {
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card small {
  font-size: 12px;
  color: var(--muted);
}

.buildings h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.buildings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.building-card {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.building-card:hover {
  border-color: rgba(31, 79, 216, 0.3);
  transform: translateY(-3px);
}

.building-num {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.building-card h4 {
  margin: 0 0 4px;
  padding-right: 40px;
  font-size: 15px;
}

.building-card p {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--ink-soft);
}

.building-meta {
  font-size: 12.5px !important;
  color: var(--muted) !important;
  margin-bottom: 8px !important;
}

.building-card a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
}

.building-card a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 54px 0 24px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
}

.footer-brand p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 330px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.48);
}

/* Legal page */
.legal-page {
  background: var(--cream);
}

.legal {
  padding-top: clamp(40px, 5vw, 64px);
}

.legal-container {
  max-width: 880px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 10px;
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.legal-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  margin-top: 32px;
  font-size: 20px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal-list {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  display: grid;
  gap: 7px;
}

.legal-back {
  margin-top: 28px;
}

/* Staff page */
.staff-page {
  background:
    radial-gradient(circle at 100% 0, rgba(31, 79, 216, 0.08), transparent 42%),
    var(--cream);
}

.staff-main {
  padding: clamp(40px, 5vw, 64px) 0 80px;
  min-height: 70vh;
}

.staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.staff-head h1 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.staff-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 14.5px;
}

.login-panel {
  max-width: 460px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.login-panel h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.login-panel p {
  font-size: 13.5px;
  color: var(--muted);
}

.login-panel .btn {
  width: 100%;
  margin-top: 8px;
}

.staff-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.staff-status.is-error {
  display: block;
  background: rgba(217, 58, 43, 0.08);
  color: #a3241a;
  border: 1px solid rgba(217, 58, 43, 0.26);
}

.staff-status.is-success {
  display: block;
  background: rgba(31, 181, 138, 0.1);
  color: #0a6b50;
  border: 1px solid rgba(31, 181, 138, 0.3);
}

.staff-toolbar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.staff-toolbar.is-visible {
  display: flex;
}

.staff-toolbar .staff-count {
  margin-right: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.staff-toolbar .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.leads-panel {
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.leads-panel.is-visible {
  display: block;
}

.leads-table-wrap {
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 860px;
}

.leads-table th,
.leads-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.leads-table th {
  background: #f4f1e9;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leads-table tbody tr:hover {
  background: #fbfaf6;
}

.leads-table tbody tr:last-child td {
  border-bottom: 0;
}

.lead-name {
  font-weight: 700;
  color: var(--ink);
}

.lead-phone {
  white-space: nowrap;
  font-weight: 700;
}

.lead-phone a {
  color: var(--blue-dark);
  text-decoration: none;
}

.lead-comment {
  max-width: 320px;
  color: var(--muted);
}

.lead-id {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lead-empty {
  padding: 46px 24px;
  text-align: center;
  color: var(--muted);
}

.lead-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(31, 79, 216, 0.09);
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid,
  .about-grid,
  .apply-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .about-visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .director-card {
    grid-template-columns: auto 1fr;
  }

  .director-contacts {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    text-align: left;
    padding-left: 116px;
  }

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

@media (max-width: 860px) {
  :root {
    --header-h: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 6px);
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
    padding: 20px 8px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-top: 14px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1180px, 100% - 32px);
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-image-frame {
    transform: none;
  }

  .float-card {
    padding: 9px 12px;
    gap: 8px;
  }

  .float-card-a {
    left: -6px;
  }

  .float-card-b {
    right: -6px;
    bottom: 18px;
  }

  .float-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

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

  .about-badge {
    right: 8px;
    bottom: -16px;
    padding: 12px 16px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .director-card {
    padding: 22px 20px;
  }

  .director-contacts {
    padding-left: 0;
    flex-direction: column;
    gap: 6px;
  }

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

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
