:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0b1b3a;
  --muted: #5b6b86;
  --primary: #0b49c8;
  --primary-2: #083aa1;
  --success: #2f8a3b;
  --border: rgba(14, 32, 76, 0.12);
  --shadow: 0 12px 34px rgba(10, 26, 60, 0.12);
  --radius: 14px;
  --radius-lg: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.skip-link:focus {
  left: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-text {
  font-size: 20px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 650;
}

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

.nav-link {
  padding: 10px 8px;
  color: var(--muted);
  font-weight: 650;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-link--cta {
  color: var(--primary);
  border: 1px solid rgba(11, 73, 200, 0.25);
  background: rgba(11, 73, 200, 0.06);
  border-radius: 999px;
  padding: 10px 14px;
}

/* Hero */
.hero {
  padding: 46px 0 72px;
  background: linear-gradient(180deg, #e8f0ff 0%, rgba(232, 240, 255, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-portrait {
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(120deg, rgba(11, 73, 200, 0.18), rgba(47, 138, 59, 0.12)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    url("../images/index-first.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(0.2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.btn--primary {
  background: var(--primary);
  border-color: rgba(11, 73, 200, 0.45);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 73, 200, 0.22);
}
.btn--primary:hover {
  background: var(--primary-2);
}

.btn--success {
  background: var(--success);
  border-color: rgba(47, 138, 59, 0.5);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 138, 59, 0.18);
}
.btn--success:hover {
  filter: brightness(0.98);
}

.btn--wide {
  min-width: min(320px, 100%);
}

/* Info strip */
.info-strip {
  padding: 0 0 18px;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -34px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(10, 26, 60, 0.08);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(11, 73, 200, 0.08);
  border: 1px solid rgba(11, 73, 200, 0.12);
  font-size: 18px;
}

.info-title {
  font-weight: 800;
}

.info-text {
  color: var(--muted);
}

/* Sections */
.section {
  padding: 22px 0;
}

.section--muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.section-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* Notifications */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(10, 26, 60, 0.08);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.notice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  width: max-content;
  color: #fff;
  background: var(--primary);
}

.notice-tag.notice-tag--success {
  background: var(--success);
}

.notice-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.notice-text {
  margin: 0;
  color: var(--muted);
}

.notice-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.notice-link {
  font-weight: 750;
  color: var(--primary);
}
.notice-link:hover {
  text-decoration: underline;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.left-stack {
  display: grid;
  gap: 18px;
}

.section-title--left {
  text-align: left;
  margin: 2px 0 12px;
  font-size: 24px;
}

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

.stats-card {
  background: linear-gradient(160deg, #192d78 0%, #0b49c8 100%);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  color: #fff;
  box-shadow: 0 12px 34px rgba(11, 73, 200, 0.22);
}

.stat-number {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  opacity: 0.9;
  font-weight: 650;
  font-size: 13px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(10, 26, 60, 0.08);
}

.contact-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.contact-list {
  margin: 0;
  padding: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-title {
  font-weight: 850;
}

.contact-text {
  color: var(--muted);
}

.map-placeholder {
  margin-top: 12px;
  height: 190px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(800px 260px at 30% 20%, rgba(11, 73, 200, 0.18), transparent 60%),
    radial-gradient(700px 260px at 70% 80%, rgba(47, 138, 59, 0.14), transparent 62%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
}

.map-placeholder--photo {
  background: rgba(11, 73, 200, 0.04);
}

.map-placeholder-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.map-embed {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(11, 73, 200, 0.04);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

/* Branches */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(10, 26, 60, 0.08);
}

.branch-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(11, 73, 200, 0.08);
  border: 1px solid rgba(11, 73, 200, 0.12);
  margin-bottom: 10px;
}

.branch-name {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.branch-meta {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.footer-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.footer-link {
  color: var(--muted);
  font-weight: 700;
  margin-left: 14px;
}
.footer-link:hover {
  color: var(--text);
}

/* Page */
.page-hero {
  padding: 28px 0 14px;
}
.page-hero h1 {
  margin: 0;
  letter-spacing: -0.03em;
}
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 8px;
}

.breadcrumb-link {
  color: var(--primary);
  font-weight: 750;
}
.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.7;
}

.breadcrumb-current {
  color: var(--muted);
}

.news-meta {
  margin: 10px 0 0;
  color: var(--muted);
}

.news-article.card {
  padding: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(10, 26, 60, 0.08);
}

.news-details {
  margin-top: 12px;
}

.news-loading {
  color: var(--muted);
  font-weight: 650;
  padding: 10px 0 0;
}

.news-article-text {
  margin-top: 12px;
  color: var(--text);
}

.news-article-text p {
  margin: 0 0 12px;
  color: var(--muted);
}

.news-article-text p:last-child {
  margin-bottom: 0;
}

.news-article-text a {
  color: var(--primary);
  text-decoration: underline;
}

.news-figure {
  margin: 12px 0 14px;
}

.news-figure-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.gallery-slider {
  margin-top: 12px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 73, 200, 0.04);
}

.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 260ms ease;
}

.gallery-slide {
  min-width: 100%;
}

.gallery-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(10, 26, 60, 0.08);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
  cursor: pointer;
}

.gallery-btn:hover {
  background: rgba(11, 73, 200, 0.06);
}

.gallery-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.gallery-dots {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding: 10px 2px 0;
  overflow: auto;
  scrollbar-width: thin;
}

.gallery-dot {
  flex: 0 0 auto;
  width: 56px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.gallery-dot.is-active {
  outline: 2px solid rgba(11, 73, 200, 0.65);
  outline-offset: 1px;
}

.gallery-dot-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.pagination-meta {
  color: var(--muted);
  font-weight: 650;
  text-align: center;
}

.pagination-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 750;
  cursor: pointer;
  min-width: 110px;
}

.pagination-btn:hover {
  background: rgba(11, 73, 200, 0.06);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.doc-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc-download {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 73, 200, 0.04);
}

.doc-download:hover {
  background: rgba(11, 73, 200, 0.07);
}

.doc-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 73, 200, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  font-weight: 950;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.doc-name {
  font-weight: 850;
  letter-spacing: -0.01em;
}

.doc-action {
  border: 1px solid rgba(11, 73, 200, 0.25);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--primary);
  font-weight: 850;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-portrait {
    min-height: 220px;
  }
  .info-cards {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
  .notice-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .branch-grid {
    grid-template-columns: 1fr;
  }
  .left-stack .branch-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0 6px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .header-row {
    flex-wrap: wrap;
  }
  .nav-link {
    width: 100%;
    border-bottom: 0;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .nav-link:hover {
    background: rgba(11, 73, 200, 0.06);
  }
  .nav-link--cta {
    width: auto;
  }

  .gallery-img,
  .news-figure-img {
    height: 240px;
  }

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

  .map-embed iframe {
    height: 260px;
  }
}
