@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0a082d;
  --primary-light: #1a1752;
  --primary-lighter: #2d2a6e;
  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-glow: rgba(79, 70, 229, 0.3);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gold: #f59e0b;
  --success: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(10, 8, 45, 0.08);
  --shadow-lg: 0 12px 48px rgba(10, 8, 45, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: rgba(255, 255, 255, 0.85);
  background: #000222;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== DECORATIVE 3D SHAPES ===== */
@keyframes floatUp {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}

@keyframes floatDown {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(15px) rotate(-6deg);
  }
}

/* Floating shapes for sections */
.deco-float {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Hero floats */
.hero-float-1 {
  width: 150px;
  top: 18%;
  right: 6%;
  animation: floatUp 8s ease-in-out infinite;
  opacity: 0.25;
}


/* Pricing section floats — large, visible, like inter-nation.uz */
.pricing {
  position: relative;
}

.pricing .container {
  position: relative;
  z-index: 2;
}

.pricing-deco-1 {
  width: 320px;
  top: -60px;
  left: -80px;
  animation: floatUp 12s ease-in-out infinite;
  opacity: 0.35;
}

.pricing-deco-2 {
  width: 250px;
  bottom: -50px;
  right: -60px;
  animation: floatDown 10s ease-in-out infinite 1s;
  opacity: 0.3;
}

.pricing-deco-3 {
  width: 150px;
  top: 50%;
  right: 3%;
  animation: floatUp 9s ease-in-out infinite 2s;
  opacity: 0.15;
}

.pricing-deco-4 {
  width: 120px;
  bottom: 20%;
  left: 5%;
  animation: floatDown 8s ease-in-out infinite 0.5s;
  opacity: 0.2;
}

/* Small shapes inside stat cards */
.stat-card {
  position: relative;
  overflow: hidden;
}

.deco-shape {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: var(--transition);
}

.stat-card:hover .deco-shape {
  opacity: 0.3;
  transform: scale(1.1);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  transition: var(--transition);
}

.header.scrolled {
  top: 10px;
  background: rgba(0, 2, 34, 0.85);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 100%;
  padding: 0 10px 0 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.footer-logo {
  margin-bottom: 16px;
  display: block;
}

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

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav a:hover {
  opacity: 0.8;
}

.nav a .arrow {
  font-size: 0.5rem;
  opacity: 0.7;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-phone {
  font-weight: 600;
  color: var(--white);
  font-size: 0.85rem;
  margin-right: 5px;
}

.lang-switcher {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lang-switcher img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.profile-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.profile-btn:hover {
  background: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 40px;
  background: transparent;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
}



.hero .container {
  width: 95%;
  max-width: 1400px;
  padding: 0 10px 0 30px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-bg-half {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
  padding: 20px 0;
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.about-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.stat-card .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  position: relative;
  z-index: 1;
}

.stat-card .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ===== SUBJECTS ===== */
.subjects {
  padding: 50px 0 100px;
  background: transparent;
  color: var(--white);
  position: relative;
}

.subjects .container {
  position: relative;
  z-index: 2;
}

.subjects-deco-1 {
  width: 250px;
  top: 10%;
  left: -50px;
  animation: floatUp 12s ease-in-out infinite;
  opacity: 0.3;
}

.subjects-deco-2 {
  width: 180px;
  top: 40%;
  right: -80px;
  animation: floatDown 10s ease-in-out infinite 1s;
  opacity: 0.25;
}

.subjects-deco-3 {
  width: 150px;
  bottom: 30%;
  left: -40px;
  animation: floatUp 14s ease-in-out infinite 2s;
  opacity: 0.2;
}

.subjects-deco-4 {
  width: 200px;
  bottom: 5%;
  right: -50px;
  animation: floatDown 11s ease-in-out infinite 0.5s;
  opacity: 0.3;
}


.subjects .section-title h2 {
  color: var(--white);
  position: relative;
  display: inline-block;
}

.subjects .section-title h2::before,
.subjects .section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.subjects .section-title h2::before {
  left: -70px;
}

.subjects .section-title h2::after {
  right: -70px;
}

.subjects-list {
  max-width: 800px;
  margin: 0 auto;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.subject-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.subject-item:nth-child(1) {
  transition-delay: 0.1s;
}

.subject-item:nth-child(2) {
  transition-delay: 0.25s;
}

.subject-item:nth-child(3) {
  transition-delay: 0.4s;
}

.subject-item:nth-child(4) {
  transition-delay: 0.55s;
}

.subject-item:nth-child(5) {
  transition-delay: 0.7s;
}

.subject-item:nth-child(6) {
  transition-delay: 0.85s;
}

.subject-item:last-child {
  border-bottom: none;
}

.subject-num {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.num-1 {
  background: #00a2ff;
}

.num-2 {
  background: #1a5cff;
}

.num-3 {
  background: #8a2be2;
}

.num-4 {
  background: #ff8c00;
}

.num-5 {
  background: #ff4500;
}

.num-6 {
  background: #00c853;
}

.subject-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.color-1 {
  color: #00a2ff;
}

.color-2 {
  color: #1a5cff;
}

.color-3 {
  color: #8a2be2;
}

.color-4 {
  color: #ff8c00;
}

.color-5 {
  color: #ff4500;
}

.color-6 {
  color: #00c853;
}

.subject-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
}

/* ===== BENEFITS ===== */
.benefits {
  padding: 100px 0;
  background: transparent;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: var(--transition);
}

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

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ===== TEACHERS ===== */
.teachers {
  padding: 100px 0;
  background: transparent;
}

.teachers .section-title h2 {
  color: var(--white);
}

.teachers .section-title p {
  color: rgba(255, 255, 255, 0.6);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.teacher-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.teacher-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.teacher-info {
  padding: 20px;
  text-align: center;
}

.teacher-info h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.teacher-info span {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== ONLINE ===== */
.online {
  padding: 100px 0;
  background: transparent;
}

.online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.online-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px;
}

.online-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.online-feature .check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--success), #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  margin-top: 2px;
}

.online-feature p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.online-visual {
  position: relative;
}

.online-visual .phone-mockup {
  background: var(--primary);
  border-radius: 32px;
  padding: 40px 24px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.phone-mockup .screen {
  background: var(--primary-light);
  border-radius: 20px;
  padding: 24px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.phone-mockup .screen h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.phone-mockup .screen p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== PRICING ===== */
.pricing {
  padding: 80px 0;
  background: transparent;
}

.pricing-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.pricing-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-left {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-label {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-left h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.pricing-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.pricing-price-range {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 20px;
  border-radius: 16px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.range-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.range-text {
  font-size: 0.85rem;
  opacity: 0.5;
  font-weight: 500;
  text-transform: uppercase;
}

.range-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

.range-unit {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 2px;
  white-space: nowrap;
}

.pricing-levels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-level-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: var(--transition);
}

.pricing-level-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.pricing-level-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-level-item strong {
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

.pricing-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-feature {
  display: flex;
  gap: 16px;
}

.pricing-check {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.pricing-feature strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}

.pricing-feature span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ===== RESULTS ===== */
.results {
  padding: 100px 0;
  background: transparent;
}

.results .section-title h2 {
  color: var(--white);
}

.results .section-title p {
  color: rgba(255, 255, 255, 0.6);
}

.results-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.results-slider::-webkit-scrollbar {
  height: 6px;
}

.results-slider::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.results-slider::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.result-card {
  min-width: 280px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  scroll-snap-align: start;
  transition: var(--transition);
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.result-card .score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
}

.result-card .name {
  color: var(--white);
  font-weight: 600;
  margin-top: 12px;
}

.result-card .detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ===== BRANCHES ===== */
.branches {
  padding: 40px 0;
  background: transparent;
}

.branch-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(10, 8, 45, 0.08);
  min-height: 420px;
}

.branch-map {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  min-height: 420px;
}

.branch-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.branch-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.branch-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
}

.branch-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branch-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.branch-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.branch-detail-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.branch-detail-item span,
.branch-detail-item a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== FAQ ===== */
.faq {
  padding: 40px 0;
  background: transparent;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question .icon {
  font-size: 1.3rem;
  transition: var(--transition);
  color: var(--accent);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  padding: 60px 0 20px;
  background: transparent;
  position: relative;
}

.contact-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.contact-banner-text {
  flex-shrink: 0;
}

.contact-banner-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-banner-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-banner-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin: 0 20px;
}

.contact-banner-form input {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  border-radius: 100px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-banner-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-gradient {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  color: var(--white);
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px var(--accent-glow);
  white-space: nowrap;
  font-family: inherit;
}
/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 2, 34, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #0a082d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #fff;
}

.modal-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px var(--accent-glow);
  background: var(--accent-light);
}



/* ===== FOOTER ===== */
.footer {
  background: transparent;
  padding: 20px 0 40px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.socials a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #000222;
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-image-break {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 0;
  }

  .hero-content {
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2, .about-text p {
    text-align: center;
  }

  .stats-grid {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

  .pricing-left {
    padding: 40px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .pricing-right {
    padding: 40px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .branch-map {
    min-height: 300px;
  }

  .pricing-deco-1 {
    width: 200px;
    opacity: 0.2;
  }

  .pricing-deco-2 {
    width: 160px;
    opacity: 0.18;
  }

  .pricing-deco-3 {
    width: 100px;
    opacity: 0.1;
  }

  .pricing-deco-4 {
    width: 80px;
    opacity: 0.12;
  }
  .container {
    padding: 0 20px;
  }

  .header {
    top: 10px;
    width: calc(100% - 40px);
    border-radius: 16px;
  }

  .header .container {
    padding: 0 15px 0 15px;
  }
  
  .logo img {
    height: 48px;
  }

  section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 160px 0 20px;
    min-height: auto;
  }

  .hero-bg-half {
    display: none;
  }

  .mobile-image-break {
    display: block;
    width: 100vw;
    height: auto;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .mobile-image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero .container {
    padding: 0 20px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .hero-content p {
    text-align: center;
    margin: 0 auto 30px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .about-text p {
    text-align: center;
  }

  .section-title {
    margin-bottom: 30px;
    text-align: center;
  }

  .section-title h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .section-title p {
    text-align: center;
  }

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

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .subject-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 0;
  }

  .subject-content h3 {
    font-size: 1.2rem;
    text-transform: none;
  }

  .subject-content p {
    font-size: 0.9rem;
    margin: 0 auto;
    max-width: 100%;
  }

  .subjects .section-title h2::before,
  .subjects .section-title h2::after {
    display: none;
  }

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

  .pricing-left, .pricing-right {
    padding: 30px 20px;
  }

  .branch-info {
    padding: 24px 16px;
  }

  .branch-map {
    min-height: 200px;
  }

  /* Аккуратные 3D-фигуры для мобильных */
  .hero-float-1 {
    width: 80px;
    top: 10%;
    right: -10px;
    opacity: 0.3;
  }

  .pricing-deco-1 {
    width: 140px;
    top: 0;
    left: -30px;
    opacity: 0.25;
  }

  .pricing-deco-2 {
    width: 120px;
    bottom: 0;
    right: -20px;
    opacity: 0.2;
  }

  .pricing-deco-3 {
    display: none;
  }

  .pricing-deco-4 {
    display: none;
  }

  .deco-shape {
    width: 40px;
    height: 40px;
    bottom: 0;
    right: 0;
    opacity: 0.15;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 20px 16px;
  }

  /* Contact Banner Adaptive */
  .contact-banner {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
    gap: 30px;
  }

  .contact-banner-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .contact-banner-form input {
    width: 100%;
  }

  .btn-gradient {
    width: 100%;
    justify-content: center;
  }

  .contact-banner-deco {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 12px 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .stat-card .number {
    font-size: 1.8rem;
  }

  .stat-card .label {
    font-size: 0.8rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.85rem;
  }

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

  .pricing-left, .pricing-right {
    padding: 24px 15px;
  }

  .pricing-price-range {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 16px;
  }

  .range-row {
    justify-content: flex-start;
  }

  .range-val {
    font-size: 1.3rem;
  }

  .pricing-level-item {
    padding: 14px 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  .pricing-level-item span {
    font-size: 0.75rem;
  }

  .pricing-level-item strong {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .pricing-left h3 {
    font-size: 1.3rem;
  }

  .branch-hero-card {
    border-radius: 20px;
  }

  .branch-info {
    padding: 28px 15px;
  }

  .branch-info h3 {
    font-size: 1.3rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

/* ===== ANIMATIONS ===== */
.benefit-card,
.teacher-card,
.price-card,
.branch-card,
.faq-item,
.result-card,
.stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card.reveal,
.teacher-card.reveal,
.price-card.reveal,
.branch-card.reveal,
.faq-item.reveal,
.result-card.reveal,
.stat-card.reveal {
  opacity: 1;
  transform: translateY(0);
}