:root {
  --bg: #f5f7ff;
  --surface: rgba(255, 255, 255, 0.72);
  --soft-surface: rgba(255, 255, 255, 0.58);
  --text: #1f2a44;
  --muted: #4f5d78;
  --primary: #5f7cff;
  --secondary: #9b6bff;
  --accent: #7aa3ff;
  --primary-dark: #455fe0;
  --ring: rgba(95, 124, 255, 0.25);
  --radius: 16px;
  --shadow: 0 16px 36px rgba(31, 42, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(95, 124, 255, 0.14) 0%, transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(155, 107, 255, 0.13) 0%, transparent 32%),
    linear-gradient(160deg, #f8f9ff 0%, #f5f7ff 46%, #f8fbff 100%);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
}

html {
  scroll-behavior: smooth;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  z-index: -1;
}

body::before {
  top: -80px;
  left: -60px;
  background: #60a5fa;
}

body::after {
  right: -90px;
  bottom: -120px;
  background: #a78bfa;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(95, 124, 255, 0.16);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb, #7c3aed);
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.15);
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: #334155;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(91, 95, 239, 0.24);
  background: rgba(255, 255, 255, 0.86);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #3f4fb4;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn--small {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn--primary {
  background: linear-gradient(135deg, #5b5fef, #4da8da);
  color: #fff;
  box-shadow: 0 10px 22px rgba(91, 95, 239, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #4f54df, #4199c8);
  box-shadow: 0 14px 28px rgba(91, 95, 239, 0.36);
}

.btn--secondary {
  border-color: transparent;
  background: linear-gradient(135deg, #5b5fef, #4da8da);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(91, 95, 239, 0.24);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, #4f54df, #4199c8);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(91, 95, 239, 0.34);
}

.btn--ghost {
  border-color: rgba(95, 124, 255, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #3c4f78;
}

.hero {
  padding: 78px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero__content,
.hero__visual {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(95, 124, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero__content {
  padding: 40px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e0e7ff, #dbeafe);
  color: #3730a3;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
}

.hero__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  background: #f8faff;
  border: 1px solid #deebff;
  border-radius: 12px;
  padding: 12px;
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
}

.stat-card span {
  color: #475569;
  font-size: 0.88rem;
}

.hero__visual {
  padding: 28px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.22), transparent 42%),
    linear-gradient(145deg, #5f7cff 0%, #6c7bff 38%, #8a73ff 68%, #9b6bff 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__visual-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
}

.hero__visual h3 {
  margin: 16px 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__visual p {
  color: #e2e8f0;
  line-height: 1.75;
}

.hero-intro .hero-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-intro.is-ready .hero-fade {
  opacity: 1;
  transform: translateY(0);
}

.quick-choice .choice-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  border: 1px solid #dbe4ff;
  background: linear-gradient(145deg, #ffffff, #eef3ff);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.choice-card strong {
  display: block;
  color: #2f43b3;
  font-size: 1rem;
}

.choice-card span {
  display: block;
  margin-top: 6px;
  color: #55607c;
  font-size: 0.9rem;
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(49, 72, 179, 0.16);
}

.before-after {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  background: linear-gradient(145deg, #ffffff, #edf2ff);
  border: 1px solid #d9e2fb;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.34rem;
  color: #2c3fa8;
}

.trust-item span {
  color: #5a6785;
  font-size: 0.86rem;
}

.video-preview {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dce5ff;
  box-shadow: 0 12px 30px rgba(17, 31, 86, 0.14);
}

.video-preview iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.video-preview__placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #4f5d78;
  font-weight: 600;
  background: linear-gradient(145deg, #f7f9ff, #e9efff);
}

.teacher-card {
  text-align: left;
}

.teacher-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #d7e2ff;
}

.teacher-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #4155c6;
  background: linear-gradient(145deg, #eef2ff, #dde8ff);
}

.selectable-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.cards-grid.has-selected .selectable-card {
  opacity: 0.45;
  filter: saturate(0.8);
}

.cards-grid.has-selected .selectable-card.is-selected {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 20px 34px rgba(30, 50, 138, 0.26);
}

.skeleton-shell {
  width: min(1160px, 92%);
  margin: 90px auto 40px;
}

.skeleton-line,
.skeleton-card {
  background: linear-gradient(110deg, #edf2ff 8%, #f6f8ff 18%, #edf2ff 33%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.1s linear infinite;
  border-radius: 12px;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line--lg {
  width: 62%;
  height: 24px;
}

.skeleton-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skeleton-card {
  height: 120px;
}

@keyframes skeleton-shimmer {
  to {
    background-position-x: -200%;
  }
}

.section {
  padding: 74px 0;
}

.section--soft {
  background: linear-gradient(160deg, rgba(95,124,255,0.07), rgba(155,107,255,0.06));
  border-top: 1px solid rgba(95,124,255,0.14);
  border-bottom: 1px solid rgba(95,124,255,0.14);
}

.section__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section__subtitle {
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.85;
  font-weight: 300;
  max-width: 760px;
}

.section .section__title::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.6px solid #5b5fef;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(77, 168, 218, 0.16);
}

.cards-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card,
.feature,
.program-list,
.contact-form,
.stat-card,
.address-card {
  background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid #e6e8f0;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.08);
}

.card,
.feature,
.contact-form,
.program-list {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.feature:hover,
.contact-form:hover,
.program-list:hover,
.stat-card:hover,
.address-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(31, 42, 68, 0.14);
  border-color: #e6e8f0;
}

.card,
.feature,
.stat-card,
.address-card,
.program-list,
.contact-form {
  position: relative;
  overflow: hidden;
}

.card::before,
.feature::before,
.stat-card::before,
.address-card::before {
  content: "";
  position: absolute;
  top: -34px;
  right: -26px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(91, 95, 239, 0.16) 0%, rgba(77, 168, 218, 0.1) 40%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.card,
.feature {
  padding: 30px;
}

.card h3,
.feature h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #5b5fef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3::before,
.feature h3::before,
.address-card h3::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.6px solid #5b5fef;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(77, 168, 218, 0.14);
  flex: 0 0 16px;
}

.card p,
.feature p {
  margin: 14px 0 20px;
  color: #2d2d2d;
  line-height: 1.75;
  font-weight: 300;
}

.card p + p,
.feature p + p {
  margin-top: 10px;
}

.section__subtitle,
.program-list li,
.stat-card span,
.contact-form p,
.address-empty {
  color: #6e6e6e;
  line-height: 1.6;
}

#bolmeler {
  background: #f7f8fc;
}

#bolmeler .section__title {
  color: #2b2b2b;
}

#bolmeler .section__subtitle,
#bolmeler .card p {
  color: #6e6e6e;
  line-height: 1.6;
}

#bolmeler .cards-grid {
  margin-top: 34px;
  gap: 26px;
}

#bolmeler .card {
  background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid #e6e8f0;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.08);
  padding: 28px;
}

#bolmeler .card:hover {
  box-shadow: 0 14px 28px rgba(31, 42, 68, 0.14);
  transform: translateY(-5px);
}

#bolmeler .card h3 {
  color: #5b5fef;
}

#bolmeler .card p {
  color: #2d2d2d;
  line-height: 1.6;
}

#bolmeler .card p + p,
#bolmeler .card .card__muted,
#bolmeler .section__subtitle {
  color: #6e6e6e;
}

#bolmeler .btn--secondary {
  background: linear-gradient(135deg, #5b5fef, #4da8da);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(91, 95, 239, 0.24);
}

#bolmeler .btn--secondary:hover {
  background: linear-gradient(135deg, #4f54df, #4199c8);
  color: #ffffff;
}

.features-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  text-align: center;
  padding: 28px 18px;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #2a3ebf;
  margin-bottom: 6px;
}

.metric-card span {
  color: #6e6e6e;
  font-weight: 500;
}

.card__muted {
  color: #6e6e6e;
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.final-cta {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.25), transparent 36%),
    linear-gradient(135deg, #5b5fef 0%, #4da8da 100%);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(41, 61, 163, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.final-cta p {
  max-width: 740px;
  margin: 14px auto 22px;
  line-height: 1.8;
  color: #e8f4ff;
}

.final-cta .btn--primary {
  background: linear-gradient(135deg, #ffffff, #e9f3ff);
  color: #3244b4;
  box-shadow: 0 12px 22px rgba(21, 34, 110, 0.24);
}

.final-cta .btn--primary:hover {
  background: linear-gradient(135deg, #f3f8ff, #dcefff);
}

.programs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.program-list {
  margin: 0;
  padding: 16px;
  list-style: none;
}

.program-list li {
  padding: 14px 12px;
  border-bottom: 1px dashed #c7d2fe;
  color: #334155;
}

.program-list li:last-child {
  border-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

#elaqe .section__title {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 800;
}

.contact-branches-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-branch-card {
  background: linear-gradient(165deg, #ffffff 0%, #f3f6ff 100%);
  border: 1px solid #e5e9f4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 18px 16px;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.contact-branch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 96, 217, 0.38);
  box-shadow:
    0 16px 30px rgba(24, 35, 95, 0.14),
    0 0 0 1px rgba(91, 95, 239, 0.08) inset,
    0 0 26px rgba(93, 129, 255, 0.16);
}

.contact-branch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.contact-branch-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #3848bf;
}

.branch-status {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2754bc;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.15), rgba(34, 197, 94, 0.14));
  border: 1px solid rgba(39, 84, 188, 0.18);
}

.contact-branch-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(91, 95, 239, 0.14), rgba(77, 168, 218, 0.14));
  color: #4e5bd8;
  font-size: 0.82rem;
}

.contact-info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.info-icon {
  font-size: 0.96rem;
  line-height: 1.2;
  margin-top: 2px;
}

.contact-info-row strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6f7b95;
  margin-bottom: 4px;
}

.contact-info-row p {
  margin: 0;
  line-height: 1.45;
  color: #2d2d2d;
  display: block;
  overflow: visible;
  font-size: 0.88rem;
}

.contact-info-row a {
  color: #455bd6;
  font-weight: 600;
}

.contact-divider {
  display: none;
}

.contact-note {
  margin: 4px 0 0;
  padding-top: 4px;
  color: #4f5d78;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
  grid-column: 1 / -1;
}

.contact-list p {
  margin: 8px 0;
  color: #334155;
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 12px;
}

.contact-form h3 {
  margin: 0 0 6px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(95, 124, 255, 0.22);
  background: #ffffff;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-submit {
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(91, 95, 239, 0.32);
}

.contact-submit:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(91, 95, 239, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ring);
  border-color: var(--primary);
}

.footer {
  background: linear-gradient(120deg, #1f2a44, #3d4f89 55%, #5f7cff);
  color: #cbd5e1;
  padding: 30px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.footer strong {
  color: #fff;
}

.footer p {
  margin: 8px 0 0;
  max-width: 620px;
  line-height: 1.85;
  font-weight: 300;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.progressive-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}

.progressive-section[data-active="0"] {
  opacity: 1;
  transform: none;
}

.section-placeholder {
  border-radius: 16px;
  border: 1px dashed #d4def8;
  background: linear-gradient(145deg, #f8faff, #edf2ff);
  display: grid;
  place-items: center;
  padding: 20px;
}

.section-placeholder span {
  color: #4f5d78;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn:active,
.nav-toggle:active,
.nav-links a:active,
.mobile-sticky-cta:active,
.mobile-action-bar a:active,
.floating-whatsapp:active,
.accordion-toggle:active {
  transform: scale(0.98);
}

.card:active,
.feature:active,
.stat-card:active {
  transform: translateY(-2px) scale(0.995);
}

.mobile-sticky-cta {
  display: none;
}

.accordion-toggle {
  display: none;
  border: 0;
  background: rgba(91, 95, 239, 0.1);
  color: #3446b6;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 6px 0 2px;
}

.accordion-content {
  display: block;
}

.mobile-action-bar {
  display: none;
}

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 92px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(14, 116, 144, 0.34);
  z-index: 1201;
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  padding: 22px;
  display: grid;
  gap: 8px;
}

.auth-card h2 {
  margin: 0;
}

.auth-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.auth-note {
  margin: 0 0 6px;
  color: var(--muted);
}

.auth-card label {
  color: #334155;
  font-size: 0.92rem;
}

.auth-card input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.auth-card input:focus {
  outline: 2px solid var(--ring);
  border-color: var(--primary);
}

.auth-password-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-password-wrap input {
  margin: 0;
}

.auth-password-toggle {
  width: auto;
  min-width: 86px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #eef2ff;
  color: #334155;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.auth-password-toggle:hover {
  background: #e2e8ff;
}

.auth-error {
  color: #b91c1c;
  font-size: 0.9rem;
}

.auth-logout {
  position: fixed;
  right: 14px;
  top: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1200;
}

@media (max-width: 980px) {
  .container {
    width: min(1160px, calc(100% - 32px));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e3e8f4;
    border-radius: 14px;
    box-shadow: 0 16px 28px rgba(31, 42, 68, 0.14);
    backdrop-filter: blur(12px);
    padding: 8px;
    display: grid;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links a {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .nav-links--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero__grid,
  .programs,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

  .cards-grid,
  .features-grid,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .quick-choice .choice-grid,
  .before-after,
  .trust-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.45rem);
  }

  .section__title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .section__subtitle,
  .card p,
  .feature p,
  .final-cta p {
    line-height: 1.8;
  }

  .hero__actions .btn,
  .cards-grid .btn,
  .contact-form .btn,
  .final-cta .btn,
  .btn--small {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 13px 16px;
    font-size: 0.98rem;
  }

  .card,
  .feature,
  .contact-form,
  .program-list,
  .final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cards-grid--swipe {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 6px;
  }

  .contact-branches-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-branch-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .branch-status {
    margin-top: 6px;
  }

  .cards-grid--swipe > * {
    scroll-snap-align: start;
  }

  .cards-grid--swipe::-webkit-scrollbar {
    height: 6px;
  }

  .cards-grid--swipe::-webkit-scrollbar-thumb {
    background: rgba(91, 95, 239, 0.28);
    border-radius: 999px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b5fef, #4da8da);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(41, 61, 163, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }

  .mobile-sticky-cta:hover {
    filter: brightness(0.98);
  }

  body {
    padding-bottom: 130px;
  }

  .accordion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .accordion-content {
    display: none;
  }

  .accordion-content.is-open {
    display: block;
  }

  .mobile-action-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe4ff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
  }

  .mobile-action-bar a {
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.86rem;
    color: #1f2f8d;
    background: linear-gradient(135deg, #eef2ff, #e2ecff);
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  .floating-whatsapp {
    display: inline-flex;
  }

  .video-preview iframe {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 62px 0;
  }

  .cards-grid,
  .features-grid,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__content,
  .hero__visual {
    padding: 22px 18px;
  }

  .card,
  .feature {
    padding: 22px 18px;
  }

  .card p,
  .feature p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
  }

  .contact-branch-card p,
  .contact-info-row p {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    margin-bottom: 0;
  }

  .contact-note {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .nav-links {
    left: 16px;
    right: 16px;
  }

  .cards-grid--swipe {
    grid-auto-columns: minmax(88%, 1fr);
  }

  .mobile-sticky-cta {
    min-height: 54px;
    font-size: 0.98rem;
  }

  .mobile-action-bar {
    left: 8px;
    right: 8px;
    gap: 6px;
    padding: 6px;
  }

  .mobile-action-bar a {
    min-height: 42px;
    font-size: 0.8rem;
  }

  .floating-whatsapp {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 88px;
  }

  .contact-branch-card {
    padding: 18px 16px;
    grid-template-columns: 1fr;
  }

  .contact-branch-head {
    margin-bottom: 10px;
  }

  .contact-info-row {
    grid-template-columns: 20px 1fr;
    gap: 8px;
  }
}


.contact-address-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

.address-page {
  padding: 52px 0;
}

.address-layout {
  display: grid;
  gap: 18px;
}

.address-card {
  background: #fff;
  border: 1px solid #dce6ff;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

.address-card h3 {
  margin-top: 0;
}

.address-empty {
  color: var(--muted);
  font-style: italic;
}
