:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #e8f4fd;
  --surface-alt: #d6ecfa;
  --primary: #38a0d8;
  --primary-dark: #1f7fb4;
  --accent: #7cc4f0;
  --navy: #1a2e5a;
  --text: #1f2a3d;
  --muted: #5b6b84;
  --success: #1f9d66;
  --warning: #e09b2d;
  --danger: #c73939;
  --shadow-sm: 0 6px 18px rgba(26, 46, 90, 0.08);
  --shadow-md: 0 14px 32px rgba(26, 46, 90, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--navy);
}

.section-subtitle {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  background: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-accreditation {
  background: rgba(56, 160, 216, 0.14);
  color: var(--primary-dark);
}

.badge-category {
  background: rgba(26, 46, 90, 0.1);
  color: var(--navy);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(124, 196, 240, 0.25);
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(124, 196, 240, 0.35);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-wrap img {
  width: 170px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.lang-btn.active {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-user {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.icon-btn {
  display: none;
  border: 0;
  background: var(--surface-soft);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  padding: 5rem 0 4.5rem;
  background: radial-gradient(circle at top right, rgba(124, 196, 240, 0.35), transparent 40%), linear-gradient(180deg, #ffffff 0%, #ecf7fe 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  color: var(--navy);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: #fff;
  border: 1px solid rgba(124, 196, 240, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-panel li {
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(26, 46, 90, 0.18);
  color: var(--muted);
}

.hero-panel li:last-child {
  border-bottom: 0;
}

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

.stat-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 160, 216, 0.22);
  padding: 1.1rem;
}

.stat-value {
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.rating {
  font-weight: 700;
  color: var(--warning);
}

.filter-wrap {
  background: var(--surface);
  border: 1px solid rgba(124, 196, 240, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(26, 46, 90, 0.2);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid rgba(56, 160, 216, 0.3);
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.help {
  color: var(--muted);
  font-size: 0.9rem;
}

.message {
  display: none;
  margin-top: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

.message.success {
  display: block;
  color: #0b5c39;
  background: rgba(31, 157, 102, 0.16);
}

.message.error {
  display: block;
  color: #7a2222;
  background: rgba(199, 57, 57, 0.16);
}

.ad-box {
  border: 2px dashed rgba(26, 46, 90, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #edf8fe 0%, #ffffff 100%);
  padding: 1.2rem;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
}

.ad-box strong {
  color: var(--navy);
}

.tab-switch {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.3rem;
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.dashboard {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 160, 216, 0.28);
  background: #fff;
}

.footer {
  background: #fff;
  border-top: 1px solid rgba(124, 196, 240, 0.3);
  margin-top: 3rem;
}

.footer-inner {
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer h4 {
  margin: 0 0 0.65rem;
  color: var(--navy);
}

.footer p,
.footer li,
.footer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.copyright {
  padding: 1rem 0;
  border-top: 1px solid rgba(124, 196, 240, 0.3);
  font-size: 0.88rem;
  color: var(--muted);
}

.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #edf7fe 100%);
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  margin: 0;
  color: var(--navy);
}

.page-hero p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.map-placeholder {
  min-height: 240px;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(
    45deg,
    #e8f4fd,
    #e8f4fd 10px,
    #d6ecfa 10px,
    #d6ecfa 20px
  );
  border: 1px solid rgba(56, 160, 216, 0.3);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-grid,
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 768px) {
  .icon-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid rgba(124, 196, 240, 0.35);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .header-right {
    margin-left: auto;
  }

  .hero-grid,
  .cards-3,
  .cards-2,
  .cards-4,
  .filter-wrap,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .logo-wrap img {
    width: 145px;
  }
}
