/* Neoavlod IT Academy — framework-free, mobile-first design system */
:root {
  --navy-950: #061426;
  --navy-900: #0a192f;
  --navy-800: #102a46;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --sky-400: #38bdf8;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --success: #0f9f74;
  --danger: #dc2626;

  --background: #ffffff;
  --background-soft: #f8fafc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --input-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 8px 30px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-blue: 0 16px 40px rgba(2, 132, 199, 0.23);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1200px;
  --header-height: 76px;
  --transition: 220ms ease;
}

[data-theme="dark"] {
  --background: #07111f;
  --background-soft: #0b1728;
  --surface: #0f1e31;
  --surface-raised: #13253b;
  --text: #f8fafc;
  --text-muted: #9fb0c5;
  --border: #263a52;
  --input-bg: #0b192b;
  --header-bg: rgba(7, 17, 31, 0.9);
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding: 88px 0;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled,
.site-header.menu-active {
  border-color: var(--border);
  background: var(--header-bg);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
}

[data-theme="dark"] .brand:not(.brand-light) {
  color: var(--white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--blue-600);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.11em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.desktop-nav {
  display: none;
}

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

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--sky-400);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
  display: none;
}

.header-cta {
  display: none !important;
}

.mobile-nav {
  display: grid;
  max-height: calc(100vh - var(--header-height));
  padding: 18px 20px 28px;
  gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav > a:not(.button) {
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 650;
}

.mobile-nav .button {
  margin-top: 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

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

.button:focus-visible,
.icon-button:focus-visible,
.text-link:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.38);
  outline-offset: 3px;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-600), #0ea5e9);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.2);
  color: var(--white);
}

.button-primary:hover {
  box-shadow: var(--shadow-blue);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--sky-400);
}

.button-small {
  min-height: 42px;
  padding: 10px 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 54px;
  background:
    radial-gradient(circle at 92% 8%, rgba(56, 189, 248, 0.13), transparent 31%),
    linear-gradient(180deg, var(--background-soft), var(--background));
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background-image: linear-gradient(rgba(100, 116, 139, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 116, 139, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.hero-glow-one {
  top: 10%;
  left: -140px;
  width: 340px;
  height: 340px;
  background: rgba(2, 132, 199, 0.06);
}

.hero-glow-two {
  right: -180px;
  bottom: 2%;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

[data-theme="dark"] .eyebrow {
  color: var(--sky-400);
}

.eyebrow > span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(2.45rem, 9.7vw, 4.9rem);
  font-weight: 820;
}

h1 em,
h2 em {
  color: var(--blue-600);
  font-style: normal;
}

[data-theme="dark"] h1 em,
[data-theme="dark"] h2 em {
  color: var(--sky-400);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.trust-line {
  display: flex;
  margin-top: 24px;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.trust-line svg {
  width: 19px;
  min-width: 19px;
  fill: none;
  stroke: var(--success);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual {
  position: relative;
  min-height: 410px;
  isolation: isolate;
}

.visual-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 50%;
  background: linear-gradient(145deg, #0c2744, #071525 78%);
  box-shadow: 0 34px 80px rgba(3, 105, 161, 0.24), inset 0 0 0 10px rgba(255, 255, 255, 0.025);
  color: white;
  text-align: center;
}

.visual-core::before {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  content: "";
  filter: blur(30px);
}

.core-kicker {
  position: relative;
  color: var(--sky-400);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.visual-core strong {
  position: relative;
  margin: 10px 0 14px;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.08;
}

.core-line {
  width: 48px;
  height: 1px;
  margin-bottom: 13px;
  background: var(--sky-400);
}

.visual-core small {
  color: #9bdcff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.visual-orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 50%;
}

.orbit-one {
  width: 330px;
  height: 330px;
}

.orbit-two {
  width: 400px;
  height: 400px;
  border-style: dashed;
  opacity: 0.55;
  animation: orbit 50s linear infinite;
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  min-width: 186px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.floating-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 9px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--blue-600);
}

.floating-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-card strong,
.floating-card small {
  display: block;
  line-height: 1.35;
}

.floating-card strong {
  font-size: 12px;
}

.floating-card small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.card-code {
  top: 2%;
  left: 0;
}

.card-career {
  top: 49%;
  right: -10px;
}

.card-certificate {
  bottom: 0;
  left: 7%;
}

.stats-panel {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: 60px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat {
  display: flex;
  min-height: 106px;
  padding: 22px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

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

.stat strong {
  min-width: 76px;
  color: var(--blue-600);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.courses {
  background: var(--background);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading h2,
.advantages-content h2,
.form-intro h2,
.location-info h2 {
  margin: 14px 0 18px;
  font-size: clamp(2.15rem, 8vw, 3.7rem);
  font-weight: 800;
}

.section-heading > p,
.advantages-content > p,
.form-intro > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.course-grid {
  display: grid;
  gap: 18px;
}

.course-card {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 26px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.course-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--card-accent, var(--blue-600));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.course-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--card-accent, var(--blue-600)) 50%, var(--border));
  box-shadow: var(--shadow-md);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-cyber { --card-accent: #0284c7; --card-rgb: 2, 132, 199; }
.course-python { --card-accent: #7c3aed; --card-rgb: 124, 58, 237; }
.course-english { --card-accent: #0f9f74; --card-rgb: 15, 159, 116; }
.course-japanese { --card-accent: #dc4b5e; --card-rgb: 220, 75, 94; }

.course-top {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
  justify-content: space-between;
}

.course-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--card-rgb), 0.1);
  color: var(--card-accent);
}

.course-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-number {
  color: var(--border);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.course-label {
  margin-bottom: 8px;
  color: var(--card-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.course-card h3 {
  margin-bottom: 13px;
  font-size: 26px;
}

.course-summary,
.course-detail p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-detail {
  margin-top: 5px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

.course-detail strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.course-detail p {
  margin-bottom: 17px;
}

.career-result {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 11px;
  background: rgba(var(--card-rgb), 0.07);
}

.career-result span {
  color: var(--card-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.career-result p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 800;
}

.text-link svg {
  transition: transform var(--transition);
}

.text-link:hover svg {
  transform: translateX(5px);
}

.advantages {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 110%, rgba(56, 189, 248, 0.17), transparent 36%),
    linear-gradient(135deg, #061426, #0a223b 65%, #0b2b49);
  color: white;
}

.advantages::after {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 50%;
  content: "";
}

.advantages-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
}

.eyebrow-light {
  color: var(--sky-400);
}

.advantages-content h2,
.advantages-content h2 em {
  color: white;
}

.advantages-content h2 em {
  font-family: Georgia, serif;
  font-weight: 500;
}

.advantages-content > p {
  color: #b6c4d6;
}

.button-light {
  margin-top: 10px;
  background: white;
  color: var(--navy-900);
}

.advantage-item {
  display: grid;
  padding: 25px 0;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.advantage-item:first-child {
  padding-top: 0;
}

.advantage-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.advantage-item > span {
  color: var(--sky-400);
  font-family: Georgia, serif;
  font-size: 20px;
}

.advantage-item h3 {
  margin-bottom: 7px;
  color: white;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.advantage-item p {
  margin-bottom: 0;
  color: #9fb0c5;
  font-size: 13px;
  line-height: 1.7;
}

.admission {
  background: var(--background-soft);
}

.admission-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.benefit-list {
  display: grid;
  margin: 28px 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.benefit-list svg {
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(15, 159, 116, 0.1);
  fill: none;
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-note {
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note svg {
  width: 20px;
  min-width: 20px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form-card-head {
  display: flex;
  padding: 17px 22px;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-900);
  color: white;
}

.form-card-head span {
  position: relative;
  padding-left: 16px;
  color: var(--sky-400);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-card-head span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
  content: "";
}

.form-card-head p {
  margin: 0;
  color: #b6c4d6;
  font-size: 10px;
}

#lead-form {
  display: grid;
  padding: 25px 22px;
  gap: 18px;
}

.field-row {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  height: 51px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.field input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 67%, transparent);
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
}

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-with-icon input {
  padding-left: 42px;
}

.field-hint,
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.field-hint {
  color: var(--text-muted);
}

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

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 42px;
  cursor: pointer;
  appearance: none;
}

.select-wrap > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  pointer-events: none;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button {
  width: 100%;
  margin-top: 2px;
  border: 0;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-button.is-loading svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  display: none;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.form-status.error {
  display: block;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.07);
  color: var(--danger);
}

.location {
  background: var(--background);
}

.location-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.location-info {
  padding: 34px 24px;
}

.contact-list {
  display: grid;
  margin: 27px 0 30px;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.contact-icon {
  display: grid;
  width: 43px;
  height: 43px;
  min-width: 43px;
  place-items: center;
  border-radius: 11px;
  background: rgba(2, 132, 199, 0.09);
  color: var(--blue-600);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item strong {
  font-size: 13px;
  line-height: 1.55;
}

.contact-item a:hover {
  color: var(--blue-600);
}

.location-actions {
  display: grid;
  gap: 10px;
}

.map-wrap {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.11), transparent 32%),
    #dbe5eb;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  opacity: 0;
  filter: saturate(0.82) contrast(1.03);
  transition: opacity 420ms ease;
}

.map-wrap.is-loaded iframe {
  opacity: 1;
}

.map-loading,
.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  padding: 32px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(241, 245, 249, 0.92)),
    linear-gradient(120deg, transparent 49%, rgba(100, 116, 139, 0.09) 50%, transparent 51%);
  background-size: auto, 44px 44px;
  color: var(--navy-900);
  text-align: center;
}

.map-loading[hidden],
.map-fallback[hidden] {
  display: none !important;
}

.map-loading strong {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.map-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(2, 132, 199, 0.18);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.map-fallback-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 15px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--blue-600);
}

.map-fallback-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-fallback > strong {
  font-size: 18px;
}

.map-fallback > p {
  max-width: 360px;
  margin: 8px 0 20px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.6;
}

.map-badge {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  padding: 13px;
  align-items: center;
  gap: 11px;
  border-radius: 11px;
  background: rgba(6, 20, 38, 0.92);
  box-shadow: 0 12px 35px rgba(6, 20, 38, 0.22);
  color: white;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.map-badge svg {
  width: 28px;
  min-width: 28px;
  fill: none;
  stroke: var(--sky-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-badge strong,
.map-badge small {
  display: block;
}

.map-badge strong {
  font-size: 12px;
}

.map-badge small {
  margin-top: 2px;
  color: #aebfd1;
  font-size: 9px;
}

.site-footer {
  background: #061426;
  color: white;
}

.footer-top {
  display: grid;
  padding-top: 60px;
  padding-bottom: 45px;
  gap: 36px;
}

.brand-light {
  color: white;
}

.brand-light .brand-copy small {
  color: #91a4bb;
}

.footer-brand > p {
  max-width: 310px;
  margin: 20px 0 0;
  color: #91a4bb;
  font-size: 13px;
  line-height: 1.7;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 8px;
  color: white;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  margin: 0;
  color: #91a4bb;
  font-size: 12px;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--sky-400);
}

.footer-bottom {
  display: flex;
  padding-top: 22px;
  padding-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: #71849b;
  font-size: 10px;
}

.footer-bottom a {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
}

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

.success-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
}

.success-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 24, 0.73);
  backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 40px 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  text-align: center;
  animation: modal-in 300ms ease both;
}

@keyframes modal-in {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 159, 116, 0.1);
  color: var(--success);
}

.success-icon svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow-text {
  margin-bottom: 7px;
  color: var(--success);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.modal-card h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.modal-card > p:not(.eyebrow-text) {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.modal-card .button {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (min-width: 560px) {
  .container {
    width: min(100% - 56px, var(--container));
  }

  .hero-actions,
  .location-actions {
    display: flex;
    flex-wrap: wrap;
  }

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

  .stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat:nth-child(3) {
    border-bottom: 0;
  }

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

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

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

@media (min-width: 820px) {
  :root { --header-height: 84px; }

  .section {
    padding: 116px 0;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .desktop-nav a {
    position: relative;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    transition: color var(--transition);
  }

  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    background: var(--blue-600);
    content: "";
    transition: transform var(--transition);
  }

  .desktop-nav a:hover {
    color: var(--text);
  }

  .desktop-nav a:hover::after {
    transform: scaleX(1);
  }

  .menu-toggle {
    display: none;
  }

  .header-cta {
    display: inline-flex !important;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding: 170px 0 68px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(370px, 0.9fr);
    gap: 40px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-core {
    width: 300px;
    height: 300px;
  }

  .visual-core strong {
    font-size: 37px;
  }

  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 470px; height: 470px; }
  .card-code { left: -3%; }
  .card-career { right: -2%; }
  .card-certificate { left: 2%; }

  .stats-panel {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .advantages-grid,
  .admission-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 80px;
  }

  .advantages-content {
    position: sticky;
    top: 130px;
    align-self: start;
  }

  .advantage-item {
    grid-template-columns: 54px 1fr;
    padding: 28px 0;
  }

  .location-card {
    grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  }

  .location-info {
    padding: 52px 42px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 600px;
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    padding-top: 74px;
    padding-bottom: 58px;
  }
}

@media (min-width: 1080px) {
  .desktop-nav { gap: 38px; }

  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .course-card {
    padding: 27px 23px;
  }

  .course-card h3 {
    min-height: 58px;
  }

  .course-summary {
    min-height: 96px;
  }

  .course-detail p {
    min-height: 142px;
  }

  .career-result {
    min-height: 106px;
  }

  #lead-form {
    padding: 32px;
  }

  .form-card-head {
    padding: 19px 32px;
  }
}

@media (min-width: 1500px) {
  :root { --container: 1320px; }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-visual {
    min-height: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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