:root {
  --blue-950: #061b3b;
  --blue-900: #063f78;
  --blue-800: #07518e;
  --blue-700: #075aa6;
  --blue-600: #0875ba;
  --sky-400: #49abe0;
  --green-500: #12ba69;
  --green-600: #0da75e;
  --line: #dfe8f1;
  --muted: #526174;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--blue-950);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1332px, calc(100% - 48px));
  margin-inline: auto;
}

.top-notice {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-bottom: 1px solid #d8f1e4;
  background: #eefaf4;
  color: #0b6b42;
  font-size: 13px;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 50;
  height: 78px;
  border-bottom: 1px solid #eaf0f6;
  background: #fff;
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 248px;
  height: 60px;
  overflow: hidden;
}

.brand img {
  width: 248px !important;
  height: auto !important;
  max-height: 60px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 37px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav > a:not(.login-btn) {
  flex: 0 0 auto;
  padding: 28px 0;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.main-nav > a:not(.login-btn):hover {
  color: var(--blue-700);
}

.chev {
  margin-left: 3px;
  font-size: 14px;
}

.login-btn {
  width: auto !important;
  min-width: 147px;
  height: 44px !important;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px !important;
  overflow: hidden;
  border-radius: 7px;
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 7px 18px rgba(6, 78, 137, 0.2);
  white-space: nowrap;
}

.login-btn svg {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #073465;
}

.hero {
  position: relative;
  height: 408px;
  overflow: hidden;
  background: linear-gradient(110deg, #034a88 0%, #075d9e 48%, #4eafe2 100%);
  color: #fff;
}

.hero-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px 61px 0;
}

.hero h1 {
  margin: 0 0 17px;
  font-size: clamp(40px, 3.2vw, 49px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -1.35px;
}

.hero p {
  max-width: 570px;
  margin: 0 0 24px;
  color: #f1f8ff;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.btn {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.btn-green {
  background: var(--green-500);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-600);
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(1, 55, 102, 0.18);
  color: #fff;
}

.btn-blue {
  background: var(--blue-700);
  color: #fff;
}

.btn-light {
  background: #f2f6fa;
  color: #123;
}

.hero-media {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center left;
}

.dot-pattern {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 85px;
  height: 65px;
  background-image: radial-gradient(circle, #d9f2ff 2px, transparent 2.4px);
  background-size: 17px 17px;
  opacity: 0.8;
}

.green-swoosh {
  position: absolute;
  z-index: 3;
  right: -40px;
  bottom: -26px;
  width: 560px;
  height: 120px;
  border-radius: 100% 0 0 0 / 100% 0 0 0;
  background: var(--green-500);
  transform: rotate(-7deg);
}

.shortcut-section {
  position: relative;
  z-index: 8;
  margin-top: -78px;
}

.shortcut-panel {
  min-height: 198px;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 45, 80, 0.12);
}

.shortcut {
  position: relative;
  min-width: 0;
  display: block;
  padding: 23px 18px 18px;
  text-align: center;
  transition: background 0.18s ease;
}

.shortcut:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 0;
  bottom: 25px;
  width: 1px;
  background: #dbe4ed;
}

.shortcut:hover {
  background: #f7fbff;
}

.service-icon {
  width: 59px !important;
  height: 59px !important;
  display: grid !important;
  place-items: center;
  flex: 0 0 59px;
  margin: 0 auto 13px;
  overflow: hidden;
  border-radius: 50%;
  background: #e9f3ff;
  color: var(--blue-700);
}

.service-icon svg {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px;
  max-height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut h2 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 700;
}

.shortcut p {
  max-width: 178px;
  margin: 0 auto;
  color: #1f2d42;
  font-size: 12px;
  line-height: 1.55;
}

.news-section {
  padding: 16px 0 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.section-heading > a {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.news-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 25px;
}

.news-card {
  min-width: 0;
  min-height: 164px;
  display: grid !important;
  grid-template-columns: 43% minmax(0, 57%);
  overflow: hidden;
  padding: 9px;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  background: #fff;
}

.news-image {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
}

.news-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.news-body {
  min-width: 0;
  padding: 2px 10px;
}

.category-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #d9f6e7;
  color: #0c7146;
  font-size: 11px;
  font-weight: 700;
}

.news-card h3 {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.35;
}

.news-card time {
  display: block;
  margin-bottom: 6px;
  color: #6a7481;
  font-size: 11px;
}

.news-card p {
  margin: 0;
  color: #273448;
  font-size: 11px;
  line-height: 1.48;
}

.site-footer {
  margin-top: 0;
  background: linear-gradient(90deg, #07518e, #0063a5);
  color: #fff;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.25fr 1.15fr !important;
  gap: 32px;
  padding: 25px 0 14px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: 225px;
  height: 53px;
  overflow: hidden;
  margin-bottom: 6px;
}

.footer-logo img {
  width: 225px !important;
  height: auto !important;
  max-height: 53px;
  object-fit: contain;
  object-position: left center;
}

.footer-intro p,
.footer-grid p,
.footer-grid a {
  display: block;
  margin: 4px 0;
  color: #f1f8ff;
  font-size: 12px;
  line-height: 1.55;
}

.footer-grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.social-row {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-row a {
  width: 25px !important;
  height: 25px !important;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-700) !important;
  font-weight: 800;
  line-height: 1;
}

.store-badge {
  width: 124px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 5px 0 !important;
  padding: 4px 8px !important;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #02060a;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

.store-badge span {
  display: block;
}

.store-badge small {
  display: block;
  font-size: 7px;
  line-height: 1;
}

.footer-bottom {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px max(24px, calc((100% - 1332px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #eaf5ff;
  font-size: 10px;
}

.footer-bottom a {
  color: #fff;
}

.footer-disclaimer {
  padding: 7px 20px;
  background: rgba(0, 27, 61, 0.22);
  color: #d9efff;
  font-size: 10px;
  text-align: center;
}

.content-page {
  min-height: 480px;
  padding: 55px 0 75px;
  background: #f7fafc;
}

.page-title {
  margin: 0 0 7px;
  font-size: 36px;
  line-height: 1.2;
}

.page-desc {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--muted);
}

.card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px;
}

.plain-card,
.form-card,
.status-box {
  min-width: 0;
  padding: 25px;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  background: #fff;
}

.plain-card h3 {
  margin: 8px 0;
}

.plain-card .service-icon {
  margin: 0 0 13px;
}

.form-card {
  max-width: 820px;
}

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

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cdd9e5;
  border-radius: 8px;
  background: #fff;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.alert {
  margin-bottom: 17px;
  padding: 12px 15px;
  border-radius: 8px;
}

.alert-ok {
  background: #e7f8ef;
  color: #0a7043;
}

.alert-danger {
  background: #fff0f0;
  color: #a32424;
}

.faq-item {
  margin-bottom: 10px;
  padding: 17px 20px;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  background: #fff;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
}

.status-box {
  margin-top: 20px;
  background: #f3f9ff;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.facility-list {
  display: grid;
  gap: 13px;
}

.facility-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #e1e8ef;
  border-radius: 11px;
  background: #fff;
}

.facility-card h3 {
  margin: 0 0 4px;
}

.facility-meta {
  color: #5b697a;
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 300px;
  gap: 35px;
}

.article-content {
  padding: 28px;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #fff;
}

.article-content img {
  margin-bottom: 25px;
  border-radius: 10px;
}

.article-content h1 {
  font-size: 36px;
  line-height: 1.25;
}

.article-content .meta {
  color: #687588;
  font-size: 13px;
}

.article-content .body {
  color: #273649;
  font-size: 16px;
}

.article-sidebar .plain-card {
  position: sticky;
  top: 20px;
}

.admin-body {
  background: #eef3f7;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 24px 18px;
  background: #073d70;
  color: #fff;
}

.admin-sidebar .brand {
  width: 190px;
}

.admin-sidebar .brand img {
  width: 190px !important;
}

.admin-sidebar a {
  display: block;
  margin: 2px 0;
  padding: 11px 13px;
  border-radius: 7px;
  color: #eaf6ff;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-top h1 {
  margin: 0;
  font-size: 28px;
}

.admin-card {
  margin-bottom: 20px;
  padding: 22px;
  overflow: auto;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  background: #fff;
}

.admin-card h2 {
  margin-top: 0;
  font-size: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.metric {
  padding: 18px;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  background: #fff;
}

.metric b {
  display: block;
  color: var(--blue-700);
  font-size: 27px;
}

.metric span {
  font-size: 13px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 11px;
  border-bottom: 1px solid #e6edf3;
  text-align: left;
  vertical-align: top;
}

.actions {
  white-space: nowrap;
}

.small-btn {
  display: inline-block;
  margin: 2px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #e8f3ff;
  color: var(--blue-700);
}

.small-btn.danger {
  background: #ffe9e9;
  color: #a32323;
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff6ea;
  color: #0a7144;
  font-size: 11px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #064a86, #49aadd);
}

.login-card {
  width: min(430px, 100%);
  padding: 30px;
  border-radius: 16px;
  background: #fff;
}

.login-card .brand,
.login-card > img {
  width: 220px;
  margin-inline: auto;
}

.login-card .brand img {
  width: 220px !important;
}

.login-card h1 {
  font-size: 24px;
  text-align: center;
}

.login-help {
  color: #667;
  font-size: 12px;
  text-align: center;
}

.admin-upload-preview {
  max-width: 230px;
  max-height: 120px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 51% 49%;
  }

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

  .shortcut-panel {
    min-height: 190px;
  }

  .shortcut {
    padding-inline: 12px;
  }

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

  .news-image {
    height: 160px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 1332px);
  }

  .site-header {
    height: 68px;
  }

  .brand,
  .brand img {
    width: 205px !important;
  }

  .mobile-toggle {
    display: block;
    flex: 0 0 42px;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a:not(.login-btn) {
    padding: 12px;
  }

  .login-btn {
    width: 100% !important;
    margin-top: 8px;
  }

  .hero {
    height: auto;
    min-height: 570px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-copy {
    z-index: 3;
    padding: 0 0 16px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-media {
    height: 250px;
  }

  .hero-media > img {
    object-position: center;
  }

  .green-swoosh {
    width: 330px;
    height: 70px;
  }

  .shortcut-section {
    margin-top: -35px;
  }

  .shortcut-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .shortcut:last-child {
    grid-column: 1 / -1;
  }

  .shortcut::after {
    display: none !important;
  }

  .shortcut {
    border-bottom: 1px solid #e7edf3;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
  }

  .news-card {
    grid-template-columns: 39% minmax(0, 61%);
    min-height: 150px;
  }

  .news-image {
    height: auto;
  }

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

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
    text-align: center;
    line-height: 1.8;
  }

  .form-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .facility-card {
    display: block;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: relative;
  }

  .admin-main {
    padding: 15px;
  }

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

  .article-content {
    padding: 20px;
  }

  .article-content h1 {
    font-size: 29px;
  }
}

@media (max-width: 520px) {
  .top-notice {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .shortcut-panel {
    grid-template-columns: 1fr !important;
  }

  .shortcut:last-child {
    grid-column: auto;
  }

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

  .news-image {
    height: 190px;
  }

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

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