:root {
  color-scheme: dark;
  --bg: #050a14;
  --bg-soft: #0a1221;
  --panel: rgba(10, 18, 33, 0.88);
  --panel-strong: rgba(13, 24, 44, 0.96);
  --border: rgba(122, 155, 223, 0.18);
  --border-strong: rgba(122, 155, 223, 0.3);
  --text: #eef4ff;
  --muted: #9daeca;
  --accent: #4d7dff;
  --accent-strong: #6b93ff;
  --accent-soft: rgba(77, 125, 255, 0.14);
  --success: #8db1ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 28px;
  --container: min(1160px, calc(100% - 32px));
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(64, 102, 201, 0.22), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(53, 97, 189, 0.12), transparent 24%),
    linear-gradient(180deg, #050a14 0%, #07101d 50%, #050a14 100%);
  color: var(--text);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.site-shell::before {
  top: 120px;
  right: -120px;
  background: rgba(53, 92, 188, 0.26);
}

.site-shell::after {
  bottom: 120px;
  left: -140px;
  background: rgba(77, 125, 255, 0.12);
}

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

.section {
  padding: 88px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(141, 177, 255, 0.08);
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(24px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(141, 177, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(77, 125, 255, 0.26), rgba(77, 125, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.site-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 20, 36, 0.82);
  color: var(--text);
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: 0 16px 32px rgba(77, 125, 255, 0.26);
}

.button-primary:hover {
  box-shadow: 0 20px 36px rgba(77, 125, 255, 0.34);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(141, 177, 255, 0.42);
  background: rgba(77, 125, 255, 0.08);
}

.hero {
  padding-top: calc(var(--header-height) + 28px);
  padding-bottom: 68px;
  min-height: auto;
  display: flex;
  align-items: flex-start;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 42px;
}

.hero-copy,
.hero-visual,
.card,
.photo-card {
  animation: fade-up 700ms ease both;
}

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

.hero-title {
  margin: 0 0 20px;
  max-width: 560px;
  font-size: clamp(2.35rem, 4.7vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 56ch;
  color: #b6c4dd;
  font-size: 1.02rem;
  line-height: 1.68;
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  max-width: 54ch;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-points li::before,
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(77, 125, 255, 0.18);
  color: #c5d6ff;
  font-size: 0.78rem;
}

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

.hero-visual {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(141, 177, 255, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(23, 33, 57, 0.76), rgba(10, 18, 33, 0.92)),
    rgba(10, 18, 33, 0.92);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  max-width: 560px;
  margin-left: auto;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  pointer-events: none;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #b7c6e4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.split-layout,
.contacts-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.section-intro {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-intro h2 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-intro p,
.text-stack p,
.detail-card p,
.feature-card p,
.teaching-card p,
.reason-card p,
.about-photo-copy p,
.contact-card p,
.form-heading p {
  color: var(--muted);
  line-height: 1.75;
}

.text-stack {
  display: grid;
  gap: 18px;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13, 23, 41, 0.98), rgba(9, 17, 31, 0.9)),
    var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.card:hover,
.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 177, 255, 0.38);
}

.card::before,
.photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 125, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.info-card h3,
.detail-card h3,
.feature-card h3,
.teaching-card h3,
.reason-card h3,
.about-photo-copy h3,
.contact-card h3,
.form-heading h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}

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

.detail-grid,
.feature-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.detail-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #bfcee9;
  line-height: 1.72;
}

.detail-card li + li {
  margin-top: 10px;
}

.card-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(77, 125, 255, 0.12);
  color: #b9cbff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin-top: 20px;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.teaching-card {
  min-height: 240px;
}

.reason-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.reason-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(77, 125, 255, 0.14);
  color: #c9d8ff;
  font-weight: 800;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.photo-card img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.about-photo-card {
  width: min(100%, 420px);
}

.about-photo-card img {
  aspect-ratio: 4 / 5;
}

.about-photo-copy {
  padding: 24px 24px 26px;
}

.contact-card {
  display: grid;
  gap: 28px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.meta-label {
  color: #b2c3df;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-grid {
  display: grid;
  gap: 14px;
}

.social-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 177, 255, 0.4);
  background: rgba(77, 125, 255, 0.08);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(77, 125, 255, 0.13);
  color: #c8d9ff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.social-link strong,
.field span,
.switch-field strong {
  display: block;
}

.social-link small,
.switch-field small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.form-card {
  padding: 28px;
}

.form-heading {
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.field span {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(133, 165, 230, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7384a2;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(141, 177, 255, 0.44);
  background: rgba(77, 125, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(77, 125, 255, 0.08);
}

.field-error {
  color: #c3d5ff;
  font-size: 0.85rem;
}

.switch-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(133, 165, 230, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.switch-field input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-button {
  width: 100%;
}

.form-status {
  margin: 4px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(141, 177, 255, 0.18);
  border-radius: 18px;
  background: rgba(77, 125, 255, 0.08);
  color: var(--success);
  line-height: 1.6;
}

.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(141, 177, 255, 0.08);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .hero-grid,
  .split-layout,
  .contacts-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-visual {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(7, 14, 26, 0.96);
    box-shadow: var(--shadow);
  }

  .header-panel.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-cta {
    width: 100%;
  }

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

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

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

  .hero-title {
    max-width: none;
    font-size: clamp(2.15rem, 9.8vw, 3rem);
    line-height: 1.04;
  }

  .hero-photo-frame {
    border-radius: 22px;
  }

  .feature-grid,
  .teaching-grid,
  .reason-grid,
  .contact-meta {
    grid-template-columns: 1fr;
  }

  .card,
  .form-card,
  .about-photo-copy {
    padding: 22px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
