:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --text: #17212b;
  --muted: #5d6b79;
  --border: #dce6ee;
  --primary: #2d8cff;
  --primary-dark: #1b6fd1;
  --accent: #56b84c;
  --shadow: 0 14px 40px rgba(25, 50, 79, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbfd 0%, #f4f8fb 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  background: rgba(45, 140, 255, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.h1, h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.05; margin: 18px 0; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; margin: 0 0 10px; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 1.1rem; max-width: 720px; }
.muted { color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 10px 24px rgba(45, 140, 255, 0.2); }
.btn-secondary { background: white; border-color: var(--border); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.3); color: white; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 230, 238, 0.8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand img { height: 54px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  color: #344255;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  border: 0;
  background: white;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  box-shadow: var(--shadow);
}
.hero {
  padding: 56px 0 34px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}
.hero-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 28px;
}
.hero-panel {
  position: relative;
  padding: 32px;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(86, 184, 76, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(45, 140, 255, 0.15), transparent 36%),
    white;
}
.badge-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #38506a;
  font-weight: 700;
  font-size: 0.92rem;
}
.quick-grid, .grid-3, .grid-2, .stats-grid, .news-grid, .pole-grid, .team-grid, .footer-grid {
  display: grid;
  gap: 22px;
}
.quick-grid, .grid-3, .stats-grid, .news-grid, .pole-grid, .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-card, .info-card, .news-card, .pole-card, .team-card, .contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.quick-card h3, .info-card h3, .news-card h3, .pole-card h3, .team-card h3 { margin-bottom: 8px; }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45, 140, 255, 0.12), rgba(86, 184, 76, 0.16));
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 18px;
}
.stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.stat strong { display: block; font-size: 1.9rem; color: var(--text); margin-bottom: 4px; }
.banner {
  background: linear-gradient(135deg, #163a5f, #245883 55%, #2d8cff 100%);
  color: white;
  border-radius: calc(var(--radius) + 2px);
  padding: 34px;
  box-shadow: var(--shadow);
}
.banner p { color: rgba(255,255,255,0.82); }
.news-meta, .team-meta { font-size: 0.93rem; color: #617186; }
.team-card .appointment {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pole-card ul, .check-list { margin: 0; padding-left: 18px; color: var(--muted); }
.form-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
form { display: grid; gap: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fcfeff;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 700; font-size: 0.95rem; color: #334256; }
.small { font-size: 0.9rem; color: var(--muted); }
.footer {
  background: #102132;
  color: rgba(255,255,255,0.86);
  margin-top: 52px;
}
.footer .container { padding: 48px 0 24px; }
.footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }
.footer p, .footer a { color: rgba(255,255,255,0.76); }
.footer h3 { color: white; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-hero {
  padding: 56px 0 12px;
}
.page-hero .card { padding: 28px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
}
.timeline-item { position: relative; padding: 0 0 24px 18px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
}
.notice {
  padding: 14px 16px;
  background: #f0f7ff;
  border: 1px solid #cae3ff;
  color: #245883;
  border-radius: 14px;
}
.map-placeholder {
  min-height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45, 140, 255, 0.1), rgba(86, 184, 76, 0.12));
  border: 1px dashed rgba(45, 140, 255, 0.28);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #3d5874;
}
.table-like {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.table-like th, .table-like td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table-like th { color: #38506a; background: #f7fbff; }
.table-like tr:last-child td { border-bottom: 0; }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .quick-grid, .grid-3, .news-grid, .team-grid, .pole-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links, .nav-actions {
    display: none;
  }
  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .brand { flex: 1; }
}
@media (max-width: 720px) {
  .hero-grid, .grid-2, .quick-grid, .grid-3, .news-grid, .team-grid, .pole-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero { padding-top: 28px; }
  .hero-card, .hero-panel, .banner, .quick-card, .info-card, .news-card, .pole-card, .team-card, .contact-card, .form-wrap, .page-hero .card { padding: 22px; }
  .brand img { height: 46px; }
}
