:root {
  --color-primary: #16213e;
  --color-primary-light: #24345c;
  --color-accent: #e2703a;
  --color-accent-light: #f2a374;
  --color-cream: #fbf7f0;
  --color-surface: #ffffff;
  --color-text: #20242f;
  --color-muted: #666f7d;
  --color-border: #e7e1d3;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 36px rgba(22, 33, 62, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.7rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 14px; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: #cb5f2c; color: #fff; }
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary:hover { background: var(--color-primary-light); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--color-primary);
  color: #c7cee0;
  font-size: 0.8rem;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
}
.top-bar-info { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7cee0;
  white-space: nowrap;
}
a.top-bar-item:hover { color: #fff; }
.top-bar-item svg { flex-shrink: 0; opacity: 0.85; }
.top-bar-social { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.top-bar-social a {
  color: #c7cee0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.15s ease, color 0.15s ease;
}
.top-bar-social a:hover { background: var(--color-accent); color: #fff; }

@media (max-width: 900px) {
  .top-bar-item:not(:first-child) { display: none; }
}
@media (max-width: 620px) {
  .top-bar { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  max-width: 1400px;
}
.header-inner {
  padding: 10px 24px;
}
.nav-toggle { display: none; }
.nav-close { display: none; }
.header-mobile-bar { display: none; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.main-nav li { position: relative; }
.main-nav li > a, .main-nav li > a.no-link {
  display: block;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.main-nav li > a:hover { background: #fff; color: var(--color-primary); box-shadow: var(--shadow); }

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  min-width: 230px;
  padding: 8px;
  list-style: none;
  margin: 10px 0 0;
  border: 1px solid var(--color-border);
}
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-right .has-dropdown .dropdown { left: auto; right: 0; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.92rem;
}
.dropdown li a:hover { background: var(--color-cream); color: var(--color-accent); }

/* Desktop: menu sized to its content, centered as a group with a large
   logo in the middle that sits fully inside a taller header bar */
@media (min-width: 981px) {
  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 128px;
    transition: min-height 0.25s ease;
  }
  .brand-desktop {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand-logo-desktop {
    height: 96px;
    width: auto;
    max-width: none;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(22, 33, 62, 0.14));
    transition: height 0.25s ease;
  }
  .main-nav { display: contents; }
  .main-nav .nav-left { order: 1; }
  .main-nav .nav-right { order: 3; }

  /* Compact state once the page is scrolled: small logo on the left,
     full menu grouped together on the right — like a standard sticky header */
  .site-header.scrolled .header-inner { min-height: 58px; justify-content: space-between; }
  .site-header.scrolled .brand-desktop { order: 1; }
  .site-header.scrolled .brand-logo-desktop { height: 42px; }
  .site-header.scrolled .main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    order: 2;
  }
  .site-header.scrolled .main-nav .nav-left,
  .site-header.scrolled .main-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 2px;
    order: initial;
  }
}

/* Narrower desktop: shrink text so everything still fits on one line */
@media (max-width: 1220px) and (min-width: 981px) {
  .main-nav li > a, .main-nav li > a.no-link { padding: 10px 8px; font-size: 0.84rem; }
  .brand-logo-desktop { height: 76px; }
  .site-header.scrolled .brand-logo-desktop { height: 38px; }
}

/* Mobile / tablet: small logo on the left + burger menu, like before */
@media (max-width: 980px) {
  .site-header {
    background: var(--color-primary);
    backdrop-filter: none;
    border-bottom: none;
  }
  .header-inner { padding: 12px 24px; }
  .brand-desktop { display: none; }
  .header-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .brand-mobile .brand-name { display: none; }
  .brand-logo-mobile { height: 42px; width: auto; max-width: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }

  .main-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .main-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-primary);
    overflow-y: auto;
    padding: 90px 24px 40px;
  }
  .nav-close {
    display: none;
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 210;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-toggle:checked ~ .main-nav .nav-close { display: flex; }
  .main-nav .nav-left, .main-nav .nav-right {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li > a, .main-nav li > a.no-link { color: #e8e5da; font-size: 1.05rem; padding: 13px 12px; }
  .main-nav li > a:hover { background: rgba(255,255,255,0.08); color: #fff; box-shadow: none; }
  .has-dropdown .dropdown, .nav-right .has-dropdown .dropdown {
    position: static; box-shadow: none; display: block; padding-left: 14px; border: none; left: auto; right: auto;
    background: transparent;
  }
  .dropdown li a { color: #cfd0c4; }
  .dropdown li a:hover { background: rgba(255,255,255,0.08); color: #fff; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 70px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.hero-text h1 { font-size: 2.9rem; }
.hero-text p { color: var(--color-muted); font-size: 1.05rem; }
.hero-image { position: relative; }
.hero-image img, .hero-image-placeholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3.2;
  object-fit: cover;
}
.hero-image-placeholder { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.section { padding: 56px 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.link-more { font-weight: 600; color: var(--color-accent); }

/* ---------- Quick links ---------- */
.quick-links { background: var(--color-surface); }
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick-links-grid-3 { grid-template-columns: repeat(3, 1fr); }
.quick-card {
  display: block;
  padding: 28px 24px;
  background: var(--color-cream);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-card-image {
  margin: -28px -24px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 140px;
}
.quick-card-image img { width: 100%; height: 100%; object-fit: cover; }
.quick-card h3 { margin-bottom: 6px; font-size: 1.12rem; }
.quick-card p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }
.quick-card-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 700; color: var(--color-accent); }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card img, .news-card-placeholder { height: 180px; width: 100%; object-fit: cover; }
.news-card-placeholder { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); }
.news-card-body { padding: 18px 20px; }
.news-card-body time { color: var(--color-accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.news-card-body h3 { margin: 8px 0 0; font-size: 1.08rem; color: var(--color-text); font-family: var(--font-heading); }
.news-date { color: var(--color-muted); font-size: 0.9rem; }
.news-detail-image { width: 100%; height: auto; display: block; border-radius: var(--radius); margin-bottom: 26px; }
.news-detail-wrap { max-width: 1080px; }

/* ---------- Page header / generic content ---------- */
.page-header {
  background: var(--color-primary);
  padding: 50px 0 34px;
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}
.page-header h1 { color: #fff; margin: 0; }
.page-header .breadcrumb a { color: var(--color-accent-light); font-weight: 600; }
.page-header .news-date { color: #c7cee0; }

.page-content-wrap { max-width: 1080px; }
.page-content-image { margin-bottom: 30px; }
.page-content-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }

.page-info-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.page-info-bar-standalone { margin-top: 0; margin-bottom: 28px; }
.page-info-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.86rem;
}
.info-badge svg { color: var(--color-accent); flex-shrink: 0; }
.info-badge strong { color: var(--color-primary); font-weight: 700; }
.page-text.rich-text :is(h1,h2,h3,h4) { margin-top: 28px; }
.page-text.rich-text ul { padding-left: 22px; }
.page-text.rich-text ol {
  list-style: none;
  padding-left: 22px;
  margin: 0 0 14px;
}
.page-text.rich-text ol li {
  position: relative;
  margin-bottom: 6px;
}
.page-text.rich-text ol li::before {
  content: "•";
  color: var(--color-accent);
  font-weight: 700;
  position: absolute;
  left: -18px;
}
.empty-note { color: var(--color-muted); }

/* ---------- Documents ---------- */
.document-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.document-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.document-icon {
  flex: 0 0 auto;
  min-width: 46px; height: 46px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.document-info { flex: 1; }
.document-info h3 { margin: 0 0 4px; font-size: 1.02rem; font-family: var(--font-heading); }
.document-info p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}
.contact-info p { margin-bottom: 18px; }
.contact-form { background: var(--color-surface); padding: 30px; border-radius: var(--radius); border: 1px solid var(--color-border); }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row-half { flex-direction: row; gap: 16px; }
.form-row-half > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-cream);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); background: #fff; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Pill radio-button groups (grade, shift, yes/no) ---------- */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.pill-option { position: relative; cursor: pointer; }
.pill-option input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.pill-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.pill-option:hover span { border-color: var(--color-accent); }
.pill-option input:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}
.pill-option input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.terms-box {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 22px 0;
  max-height: 280px;
  overflow-y: auto;
}
.terms-box h3 { font-size: 1rem; margin-bottom: 10px; }
.terms-box p { font-size: 0.86rem; color: var(--color-muted); line-height: 1.6; margin-bottom: 10px; }
.terms-box ol { margin: 0 0 14px; padding-left: 22px; }
.terms-box li { font-size: 0.86rem; color: var(--color-muted); line-height: 1.6; margin-bottom: 8px; }
.checkbox-label-lg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label-lg input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }

.application-form { max-width: 960px !important; }
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.form-grid-2col .form-row-full { grid-column: 1 / -1; }

.modern-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.modern-checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.modern-checkbox .box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.modern-checkbox .box::after {
  content: "";
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0;
}
.modern-checkbox input:checked + .box { background: var(--color-accent); border-color: var(--color-accent); }
.modern-checkbox input:checked + .box::after { opacity: 1; }
.modern-checkbox input:focus-visible + .box { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.modern-checkbox .label-text { font-size: 0.92rem; line-height: 1.55; padding-top: 1px; }

@media (max-width: 720px) {
  .form-grid-2col { grid-template-columns: 1fr; }
}

/* ---------- Flash messages ---------- */
.flash-wrap { margin-top: 20px; }
.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 0.92rem; }
.flash-success { background: #e3f3e6; color: #226b33; }
.flash-error { background: #fbe6e4; color: #a3352b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: #c7cee0; margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 3fr 5fr 4fr;
  gap: 40px;
  padding: 54px 24px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--color-accent);
}
.footer-col p { margin: 0 0 8px; font-size: 0.9rem; }
.footer-col a { color: #c7cee0; }
.footer-col a:hover { color: var(--color-accent-light); }

.footer-col-about { text-align: center; }
.footer-logo-big {
  height: 180px;
  width: auto;
  max-width: none;
  margin: 0 auto 18px;
  filter: none;
  display: block;
}
.footer-col-about p { max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.footer-social { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }
.footer-social a { font-weight: 600; font-size: 0.88rem; }

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.footer-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 600;
}
.footer-map-btn:hover { background: var(--color-accent); }
.footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #97a2bd;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 90;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--color-accent); }
@media (max-width: 720px) {
  #back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- Maintenance screen ---------- */
.maintenance-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--color-primary);
  color: #fff;
}
.maintenance-logo { height: 64px; margin-bottom: 22px; background: #fff; border-radius: 12px; padding: 10px 14px; }
.maintenance-screen h1 { color: #fff; margin-bottom: 8px; }
.maintenance-tag { color: var(--color-accent-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; margin-bottom: 22px; }
.maintenance-message { max-width: 480px; color: #d7dcec; font-size: 1.05rem; }
.maintenance-contact { color: #97a2bd; font-size: 0.9rem; margin-top: 10px; }
.maintenance-contact a { color: #fff; font-weight: 600; }

/* ---------- Homepage slider ---------- */
.home-slider {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  background: #fff;
  transition: height 0.35s ease;
}
.home-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.home-slider .slide.active { opacity: 1; }
.home-slider .slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.home-slider-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.home-slider-dots button.active { background: var(--color-accent); }
.home-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22, 33, 62, 0.45);
  color: #fff;
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.home-slider-arrow:hover { background: var(--color-accent); }
.home-slider-arrow.prev { left: 18px; }
.home-slider-arrow.next { right: 18px; }

/* ---------- Gallery (masonry) ---------- */
.gallery-masonry {
  column-count: 3;
  column-gap: 18px;
}
.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
}
.gallery-masonry .gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-masonry .gallery-item:hover img { transform: scale(1.04); }

.gallery-masonry-preview {
  column-count: unset;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.gallery-masonry-preview .gallery-item {
  break-inside: auto;
  margin-bottom: 0;
  aspect-ratio: 1 / 1;
}
.gallery-masonry-preview .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-preview-cta { text-align: center; margin-top: 30px; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 86vw; max-height: 84vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: var(--color-accent); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #d7dcec;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 900px) {
  .gallery-masonry { column-count: 2; }
  .gallery-masonry-preview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .gallery-masonry { column-count: 1; }
  .gallery-masonry-preview { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col-about { order: -1; }
}

@media (max-width: 720px) {
  .quick-links-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .form-row-half { flex-direction: column; }
}
