:root {
  --navy: #0b2c55;
  --navy-2: #0e3a6d;
  --navy-dark: #071e3a;
  --ink: #1c2430;
  --muted: #5b6b7c;
  --line: #d5deea;
  --paper: #fff;
  --page: #e7eef5;
  --green: #178a45;
  --green-2: #126c36;
  --gold: #c9a227;
  --gold-soft: #f4ead0;
  --shadow: 0 8px 28px rgba(7, 30, 58, 0.08);
  --w: 1180px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.notice {
  background: #fff8e6;
  color: #6a5200;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid #ead9a4;
}
.notice b { color: var(--navy); }

.topbar {
  background: var(--navy);
  color: #fff;
}
.topbar-inner, .header-inner, .wrap, .footer-inner, .titlebar-inner {
  width: min(var(--w), calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.topbar a { color: #fff; text-decoration: none; }
.smmm-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.topbar .smmm-login { color: #fff; }
.topbar .smmm-login:hover {
  background: var(--green);
  border-color: #fff;
}

.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 52px; height: 52px; }
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.15;
}
.brand small {
  display: block;
  color: #3d5a80;
  font-size: 12px;
  font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav .drop > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: none;
  border: 0;
}
.nav a:hover, .nav .drop > button:hover, .nav a.active { color: var(--green); }
.drop { position: relative; }
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 20;
  padding: 6px 0;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { display: block; }
.drop-menu a {
  display: block;
  width: 100%;
  font-weight: 600;
  letter-spacing: 0;
  padding: 8px 14px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.hero {
  height: 210px;
  background:
    linear-gradient(180deg, rgba(7, 30, 58, 0.28), rgba(7, 30, 58, 0.55)),
    linear-gradient(135deg, #0b2c55 0%, #164a82 48%, #0b2c55 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 18px solid rgba(201, 162, 39, 0.18);
  transform: rotate(18deg);
}
.hero-inner {
  width: min(var(--w), calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 28px;
  position: relative;
  z-index: 1;
  color: #fff;
}
.hero-inner span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-inner h1 {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.titlebar {
  background: #12181f;
  color: #fff;
  padding: 18px 0 16px;
}
.titlebar .crumbs {
  margin: 0 0 6px;
  font-size: 12px;
  color: #c5ced8;
}
.titlebar .crumbs a { color: #e8eef4; text-decoration: none; }
.titlebar h1 { margin: 0; font-size: 28px; font-weight: 700; }

.wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 250px;
  gap: 16px;
  padding: 18px 0 40px;
  align-items: start;
}
body[data-page="inner"] .wrap {
  grid-template-columns: 230px minmax(0, 1fr);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.panel-h {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 3px solid var(--navy);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}
.alpha a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13.5px;
  border-top: 1px solid #eef2f7;
  color: #243040;
}
.alpha a::before {
  content: "▸";
  color: #8a97a8;
  font-size: 11px;
}
.alpha a:hover, .alpha a.active { background: #f4f8fc; color: var(--navy); font-weight: 700; }

.content {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 420px;
  padding: 18px 20px 24px;
}
.content h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
}
.content h3 {
  margin: 22px 0 8px;
  color: var(--navy-2);
  font-size: 16px;
}
.content p { margin: 0 0 12px; color: #334155; }
.content ul { margin: 0 0 14px; padding-left: 18px; color: #334155; }
.content li { margin: 0 0 6px; }
.content a { color: var(--navy-2); }

.home-grid { display: grid; gap: 16px; }
.rg {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}
.rg-mark {
  aspect-ratio: 3 / 4;
  background: #f7f1de;
  border: 1px solid #d8c48a;
  color: #6a5200;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-family: var(--serif);
}
.rg-mark b { display: block; font-size: 13px; }
.rg-mark small { display: block; margin-top: 6px; font-size: 11px; }
.rg-list { display: grid; gap: 6px; }
.rg-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.rg-list a:hover { text-decoration: underline; }

.feed {
  border: 1px solid var(--line);
  padding: 12px 14px 8px;
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.feed-head h3 { margin: 0; font-size: 15px; }
.feed-head a { font-size: 12px; font-weight: 700; text-decoration: none; color: var(--green); }
.feed ul { list-style: none; padding: 0; margin: 0; }
.feed li { border-top: 1px solid #eef2f7; }
.feed a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  font-size: 13.5px;
  color: #243040;
}
.feed a:hover { color: var(--navy); }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  padding: 14px 12px;
  text-align: center;
}
.cta:hover { background: var(--green-2); }
.news-empty {
  padding: 16px 14px 18px;
  color: var(--muted);
  font-size: 14px;
}
.news-list { list-style: none; margin: 0; padding: 0 12px 12px; }
.news-list li { border-top: 1px solid #eef2f7; padding: 10px 2px; }
.news-list a { text-decoration: none; font-weight: 700; color: var(--navy); font-size: 14px; }
.news-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.side-card { overflow: hidden; }
.side-card .panel-h { border-bottom-color: var(--green); }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.service {
  border: 1px solid var(--line);
  padding: 14px;
  background: #fbfcfe;
}
.service strong { display: block; color: var(--navy); margin-bottom: 6px; }
.service p { margin: 0; font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}
.visual {
  min-height: 210px;
  background: linear-gradient(160deg, #0e3a6d, #071e3a);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.visual span { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.visual b { font-size: 22px; line-height: 1.25; margin-top: 8px; }
.portrait-card {
  margin: 0;
  background: #f4f7fb;
  border: 1px solid var(--line);
  overflow: hidden;
}
.portrait-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 18%;
}
.portrait-card figcaption {
  padding: 12px 14px 14px;
  color: var(--navy);
}
.portrait-card strong { display: block; font-size: 16px; }
.portrait-card small { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shot {
  min-height: 150px;
  border: 1px solid var(--line);
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.shot b { font-size: 15px; }
.shot small { opacity: 0.8; }
.s1 { background: linear-gradient(160deg, #1a4b7c, #0b2c55); }
.s2 { background: linear-gradient(160deg, #2b5d4a, #12352b); }
.s3 { background: linear-gradient(160deg, #5a4630, #2c2418); }
.s4 { background: linear-gradient(160deg, #3d4d6a, #1c2738); }
.s5 { background: linear-gradient(160deg, #4a3a5c, #24182e); }
.s6 { background: linear-gradient(160deg, #4d5a2e, #272f16); }

.form { display: grid; gap: 10px; max-width: 560px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #3d4d60; }
.form input, .form textarea, .form select {
  min-height: 42px;
  border: 1px solid #c9d4e1;
  border-radius: 4px;
  padding: 9px 10px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form button, .btn {
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 11px 16px;
  width: fit-content;
}
.form button:hover, .btn:hover { background: var(--navy-2); }
.ok {
  background: #e8f6ee;
  color: #126c36;
  padding: 10px 12px;
  border: 1px solid #b7e0c6;
  display: none;
}
.ok.show { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.map {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(11,44,85,0.08), rgba(11,44,85,0.18)),
    repeating-linear-gradient(90deg, #d9e4f0 0 12px, #eef3f8 12px 24px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--navy);
}
.info-list { list-style: none; margin: 0 0 16px; padding: 0; }
.info-list li { padding: 7px 0; border-bottom: 1px solid #eef2f7; }
.info-list span { display: block; color: var(--muted); font-size: 12px; }

.login-box {
  max-width: 420px;
  margin: 12px auto 8px;
  border: 1px solid var(--line);
  padding: 22px;
  background: #fbfcfe;
}
.login-box h2 { text-align: center; }
.note {
  background: var(--gold-soft);
  border: 1px solid #e3d3a4;
  color: #5d4a12;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { background: #f3f7fb; color: var(--navy); }

.links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  font-weight: 650;
}

.footer {
  background: var(--navy-dark);
  color: #d7e2ee;
  padding: 28px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
}
.footer h4 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.footer a { color: #d7e2ee; text-decoration: none; display: block; padding: 3px 0; font-size: 13.5px; }
.footer a:hover { color: #fff; }
.copy {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #1e3554;
  font-size: 12px;
  color: #9fb0c3;
}

.float {
  position: fixed;
  left: 0;
  top: 210px;
  z-index: 30;
  display: grid;
  width: 44px;
}
.float a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 14px 8px;
  text-align: center;
}
.float .g { background: var(--green); }
.float .b { background: var(--navy-2); }
.float .d { background: #152536; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}
.fact {
  border: 1px solid var(--line);
  background: #f7fafc;
  padding: 12px 14px;
}
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact b { color: var(--navy); }
.hours { display: grid; gap: 6px; margin: 0 0 14px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eef2f7; padding: 7px 0; }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: min(340px, 38%);
  object-fit: cover;
  object-position: center 12%;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #128c4a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  padding: 11px 14px;
}
@media (max-width: 980px) {
  .wrap, body[data-page="inner"] .wrap { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .menu-toggle { display: grid; place-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .header.open .nav { display: flex; }
  .drop-menu { position: static; box-shadow: none; border: 0; }
  .services, .split, .contact-grid, .gallery, .footer-grid, .rg {
    grid-template-columns: 1fr;
  }
  .float { display: none; }
  .hero { height: 170px; }
  .hero-inner h1 { font-size: 22px; }
  .hero-photo { display: none; }
  .gallery .portrait-card { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
}
