/* ============================================
   АССОЦИАЦИЯ ИНКЛЮЗИВНЫХ ШКОЛ — ОСНОВНЫЕ СТИЛИ
   ============================================ */

:root {
  --primary: #6C5CE7;
  --primary-dark: #5B4BD1;
  --secondary: #00CEC9;
  --accent: #FD79A8;
  --dark: #2D3436;
  --dark-light: #636e72;
  --light: #F8F9FD;
  --white: #ffffff;
  --border: #e8e8f0;

  --gradient: linear-gradient(135deg, #6C5CE7 0%, #00CEC9 100%);
  --gradient-2: linear-gradient(135deg, #FD79A8 0%, #6C5CE7 100%);
  --gradient-3: linear-gradient(135deg, #00CEC9 0%, #0984E3 100%);
  --gradient-4: linear-gradient(135deg, #FD79A8 0%, #E84393 100%);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.15);

  --container: 1200px;
  --section-padding: 100px 5%;

  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: padding var(--transition);
}

.header.scrolled {
  padding: 12px 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.4rem;
  animation: pulse 3s infinite;
  flex-shrink: 0;
}

.logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dark-light);
  letter-spacing: 0.2px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ===== NAVIGATION ===== */
.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.burger:hover {
  background: rgba(108, 92, 231, 0.08);
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  width: 0%;
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
  background: var(--light);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
  top: -200px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.15), transparent 70%);
  bottom: -200px;
  left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--dark-light);
  max-width: 650px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-white {
  background: var(--white);
}

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

.section-title .label {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-top: 12px;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--dark-light);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 160px 5% 80px;
  text-align: center;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent 70%);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12), transparent 70%);
  border-radius: 50%;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--dark-light);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--dark-light);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
  transition: opacity var(--transition);
}

.breadcrumbs a:hover {
  opacity: 0.7;
}

.breadcrumbs span {
  opacity: 0.5;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: #b2bec3;
  padding: 70px 5% 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto 40px;
}

.footer .logo {
  color: white;
}

.footer .logo-text small {
  color: #b2bec3;
}

.footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-about p {
  color: #b2bec3;
  font-size: 0.9rem;
  margin-top: 18px;
  max-width: 320px;
  line-height: 1.7;
}

.footer a {
  color: #b2bec3;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2.2;
  display: block;
  transition: color var(--transition), transform var(--transition);
}

.footer a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-bottom a {
  display: inline;
  margin-left: 12px;
  color: var(--secondary);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  display: grid;
  place-items: center;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.6);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ТЁМНАЯ ТЕМА
   ============================================ */
[data-theme="dark"] {
  --primary: #8B7FE8;
  --primary-dark: #6C5CE7;
  --secondary: #00E5DF;
  --accent: #FF8FC0;
  --dark: #F5F5FA;
  --dark-light: #A4A9B8;
  --light: #14151E;
  --white: #1E1F2E;
  --border: #2D2F42;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.3);
}

[data-theme="dark"] body {
  background: var(--light);
  color: var(--dark);
}

[data-theme="dark"] .header {
  background: rgba(30, 31, 46, 0.85);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero {
  background: var(--light);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(108, 92, 231, 0.25), transparent 70%);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(0, 206, 201, 0.2), transparent 70%);
}

[data-theme="dark"] .hero-badge {
  background: rgba(108, 92, 231, 0.2);
  color: var(--secondary);
}

[data-theme="dark"] .section-white {
  background: #1A1B28;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .activity-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .info-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .school-item,
[data-theme="dark"] .map-container {
  background: var(--white);
  border-color: var(--border);
}

[data-theme="dark"] .cta-form {
  background: var(--white);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #252738;
  border-color: var(--border);
  color: var(--dark);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  background: #2A2C40;
}

[data-theme="dark"] .nav-menu {
  background: transparent;
}

[data-theme="dark"] .footer {
  background: #0F1018;
}

[data-theme="dark"] .btn-outline {
  color: var(--dark);
  border-color: var(--dark);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--dark);
  color: var(--light);
}

[data-theme="dark"] .btn-white {
  background: #252738;
  color: var(--dark);
}

[data-theme="dark"] .schools-list {
  background: #1A1B28;
}

[data-theme="dark"] .map-search {
  background: #252738;
  color: var(--dark);
}

/* Переключатель темы */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition);
  color: var(--dark);
  flex-shrink: 0;
  margin-left: 12px;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: rotate(20deg) scale(1.1);
}

/* ============================================
   НОВОСТИ
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.news-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  height: 200px;
  background: var(--gradient);
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  font-size: 3.5rem;
}

.news-card:nth-child(2) .news-image { background: var(--gradient-2); }
.news-card:nth-child(3) .news-image { background: var(--gradient-3); }
.news-card:nth-child(4) .news-image { background: var(--gradient-4); }
.news-card:nth-child(5) .news-image { background: linear-gradient(135deg, #FDCB6E, #E17055); }
.news-card:nth-child(6) .news-image { background: linear-gradient(135deg, #00B894, #00CEC9); }

.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--dark-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.news-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card p {
  color: var(--dark-light);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 20px;
}

.news-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  align-self: flex-start;
}

.news-link:hover {
  gap: 12px;
}

/* ============================================
   КАРТА ШКОЛ (Leaflet + кластеризация)
   ============================================ */
.map-container {
  background: white;
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.map-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.map-search {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--light);
  color: var(--dark);
  transition: all var(--transition);
}

.map-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.map-filter-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.map-filter-btn:hover,
.map-filter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  border-radius: 24px;
  overflow: hidden;
}

#schoolMap {
  height: 560px;
  border-radius: 24px;
  z-index: 1;
  background: #e8eaff;
}

[data-theme="dark"] #schoolMap {
  background: #1a1b28;
}

/* Стилизация Leaflet под тему */
.leaflet-container {
  font-family: inherit;
  background: #e8eaff;
}

[data-theme="dark"] .leaflet-tile-pane {
  filter: brightness(0.7) invert(0.9) contrast(1.1) hue-rotate(180deg);
}

[data-theme="dark"] .leaflet-container {
  background: #1a1b28;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
  background: #1E1F2E;
  color: #F5F5FA;
}

/* Кастомный маркер */
.custom-pin {
  background: var(--gradient);
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid white;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-pin:hover {
  transform: rotate(-45deg) scale(1.2);
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.7);
}

.custom-pin.active {
  background: var(--accent);
  transform: rotate(-45deg) scale(1.3);
  z-index: 1000;
}

/* Кластеры */
.custom-cluster {
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: 3px solid white;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-cluster:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.6);
}

.custom-cluster.cluster-sm {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

.custom-cluster.cluster-md {
  width: 50px;
  height: 50px;
  font-size: 1rem;
}

.custom-cluster.cluster-lg {
  width: 60px;
  height: 60px;
  font-size: 1.1rem;
}

/* Список школ */
.schools-list {
  background: var(--light);
  border-radius: 24px;
  padding: 20px;
  height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schools-list::-webkit-scrollbar {
  width: 6px;
}

.schools-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.schools-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}

.schools-list-header h3 {
  font-size: 1rem;
}

.schools-count {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(108, 92, 231, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
}

.school-item {
  background: white;
  padding: 16px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.school-item:hover,
.school-item.active {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
}

.school-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.school-item .school-city {
  color: var(--dark-light);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-item .school-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(0, 206, 201, 0.15);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 16px;
  }
  .nav-menu a {
    font-size: 0.85rem;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }
  #schoolMap { height: 400px; }
  .schools-list { height: 400px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 5%;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 8px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  [data-theme="dark"] .nav-menu {
    background: var(--white);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a::after {
    display: none;
  }

  .burger {
    display: flex;
    z-index: 1000;
  }

  .burger.active span {
    background: var(--dark);
  }

  .page-header {
    padding: 130px 5% 60px;
  }

  .hero {
    padding: 120px 5% 60px;
  }

  .theme-toggle {
    margin-left: auto;
    margin-right: 8px;
  }

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

@media (max-width: 600px) {
  .map-container { padding: 20px; border-radius: 24px; }
}

@media (max-width: 500px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}