:root {
  --navy: #102a43;
  --navy-mid: #243b53;
  --navy-soft: #334e68;
  --ink: #0c1f33;
  --gold: #b0893a;
  --gold-2: #c9a45c;
  --red: #9b1c1c;
  --red-dark: #7a1515;
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --white: #fff;
  --text: #1d2b3a;
  --muted: #5c6b7a;
  --line: #e4ddd0;
  --shadow: 0 18px 40px rgba(16, 42, 67, .08);
  --radius: 18px;
  --max: 1160px;
  --focus: 0 0 0 3px rgba(176, 137, 58, .35);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 8px; }
.container { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .72rem; margin: 0 0 .8rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-top {
  background: var(--navy); color: #e8eef4;
  font-size: .82rem; letter-spacing: .02em;
}
.header-top .container {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 38px;
}
.header-top a { color: #f0f4f8; }
.header-top a:hover { color: var(--gold-2); }
.header-main {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .85rem 0;
}
.brand {
  display: flex; align-items: center; gap: .75rem; color: var(--navy) !important;
}
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .08em; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.nav-toggle {
  display: none; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: .55rem .85rem; cursor: pointer; font-weight: 700; margin-left: auto;
}
.main-nav > ul {
  display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.main-nav a, .main-nav span {
  display: block; padding: .5rem .58rem; color: var(--navy); font-weight: 650; font-size: .9rem; border-radius: 8px;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--gold); background: var(--paper); }
.has-children { position: relative; }
.has-children > ul {
  display: none; position: absolute; top: calc(100% - 2px); left: 0; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; z-index: 20;
}
.has-children:hover > ul, .has-children:focus-within > ul { display: block; }
.has-children > ul a { font-weight: 550; font-size: .92rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--red); color: #fff !important; border: 0; border-radius: 999px;
  padding: .78rem 1.25rem; font-weight: 750; cursor: pointer; text-decoration: none; letter-spacing: .01em;
}
.btn:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--ink); }
.btn-gold { background: var(--gold); color: #fff !important; }
.btn-gold:hover { background: #96732f; }
.btn-outline { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.45); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-dark { background: transparent; color: var(--navy) !important; border: 1px solid var(--navy); }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }

.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-slide {
  display: none; min-height: min(78vh, 640px); padding: 5.2rem 0 4.4rem;
  background-size: cover; background-position: center; background-image: var(--hero-desk); position: relative;
}
@media (max-width: 768px) {
  .hero-slide { background-image: var(--hero-mob, var(--hero-desk)); min-height: 520px; padding: 3.4rem 0 3rem; }
}
.hero-slide.is-active { display: block; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 31, 51, .94) 0%, rgba(16, 42, 67, .78) 48%, rgba(16, 42, 67, .35) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 38rem; }
.hero h1, .hero .hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.12; margin: 0 0 1.1rem; font-weight: 600; letter-spacing: -.02em;
}
.hero p { max-width: 40ch; font-size: 1.12rem; opacity: .94; margin: 0 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-dots {
  display: flex; gap: .45rem;
  position: absolute; left: max(1.2rem, calc((100% - var(--max)) / 2));
  bottom: 1.6rem; z-index: 2;
}
.hero-dots button {
  width: 34px; height: 4px; border-radius: 99px; border: 0; background: rgba(255,255,255,.28); cursor: pointer;
}
.hero-dots button.is-active { background: var(--gold-2); }

.trust-bar {
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.trust-bar .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0;
}
.trust-item { display: flex; gap: .75rem; align-items: center; }
.trust-item b { display: block; color: var(--navy); font-size: .92rem; }
.trust-item span { color: var(--muted); font-size: .8rem; }
.trust-num {
  width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center; font-weight: 800; flex: 0 0 42px;
}

.section { padding: 5rem 0; }
.section.alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-title {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy);
  margin: 0; line-height: 1.2; font-weight: 600;
}
.lead { color: var(--muted); max-width: 60ch; margin: .7rem 0 0; font-size: 1.05rem; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 1.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow); height: 100%; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(16, 42, 67, .12); }
.card > img {
  width: calc(100% + 2.7rem); max-width: none; margin: -1.4rem -1.35rem 1rem;
  border-radius: 18px 18px 0 0; aspect-ratio: 16/9; object-fit: cover;
}
.card p { color: var(--muted); margin: 0 0 1rem; }
.card-link { font-weight: 750; color: var(--navy) !important; }
.card-link:hover { color: var(--gold) !important; }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; background: var(--paper); color: var(--navy);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.icon-wrap svg { width: 26px; height: 26px; }
.area-index { font-family: var(--serif); color: var(--gold); font-size: 1.4rem; font-weight: 700; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about-panel {
  background: var(--navy); color: #e8eef4; border-radius: 24px; padding: 2.2rem;
  min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
}
.about-panel h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 .8rem; color: #fff; font-weight: 600; }
.about-panel p { color: #cbd5e0; }

.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-mid));
  color: #fff; border-radius: 24px; padding: 2.4rem 2.2rem;
  display: flex; justify-content: space-between; gap: 1.4rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border: 18px solid rgba(176, 137, 58, .18); border-radius: 50%;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--serif); margin: 0 0 .4rem; font-size: 1.9rem; font-weight: 600; }
.cta-band p { margin: 0; color: #d9e2ec; }

.news-card time, .meta { color: var(--muted); font-size: .86rem; font-weight: 650; letter-spacing: .02em; }
.news-card h3 { margin: .4rem 0 .55rem; font-size: 1.12rem; line-height: 1.35; }
.news-card h3 a { color: var(--navy); }
.news-thumb {
  height: 150px; border-radius: 12px; margin: -1.4rem -1.35rem 1rem; background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, var(--gold) 160%);
}

.announce-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 1rem; padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.announce-date {
  background: var(--paper); border-radius: 12px; text-align: center; padding: .7rem .4rem; color: var(--navy);
}
.announce-date b { display: block; font-size: 1.3rem; line-height: 1; }
.announce-date span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.announce-item h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.announce-item h3 a { color: var(--navy); }

.accordion details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; margin-bottom: .7rem;
}
.accordion summary { cursor: pointer; font-weight: 750; color: var(--navy); }
.accordion details[open] { border-color: #d4c7a8; }
.accordion details > div { color: var(--muted); margin-top: .55rem; }

.site-footer { background: var(--ink); color: #c5d0db; padding: 3.4rem 0 1.2rem; margin-top: 0; }
.site-footer a { color: #f7f4ee; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer h2 { color: #fff; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer p { margin: 0 0 .55rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.2rem; padding-top: 1.1rem;
  font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, #17324d 100%);
  color: #fff; padding: 2.8rem 0 2.4rem;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: .2rem 0 .5rem; font-weight: 600; }
.page-hero .meta, .page-hero p { color: #d9e2ec; }
.page-hero .breadcrumb a { color: #f0e6cc; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .88rem; }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: #9fb3c8; }
.breadcrumb li:last-child::after { content: ""; }
.prose { max-width: 74ch; }
.prose h2 { color: var(--navy); font-family: var(--serif); margin-top: 2rem; font-weight: 600; }
.prose p { color: #334e68; }
.disclaimer { background: #fbf6ea; border-left: 4px solid var(--gold); padding: 1rem 1.15rem; margin-top: 2.2rem; color: var(--navy-mid); }
.form { display: grid; gap: 1rem; max-width: 720px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.form label, .form .label { font-weight: 700; color: var(--navy); display: block; margin-bottom: .3rem; }
.form label:has(input[type="checkbox"]) {
  display: flex; gap: .55rem; align-items: flex-start; font-weight: 550;
}
.form label:has(input[type="checkbox"]) input { width: auto; margin-top: .25rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid #d7d0c3; border-radius: 12px; font: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.alert { padding: .95rem 1.05rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-success { background: #e8f6ee; color: #145a32; }
.alert-error { background: #fdecea; color: #7b241c; }
.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1; padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; }
.search-form input::placeholder { color: #9fb3c8; }
.pagination ul { display: flex; gap: .4rem; list-style: none; padding: 0; }
.pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); }
.pagination a.is-active { background: var(--navy); color: #fff; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; background: #128c7e; color: #fff !important;
  padding: .85rem 1.1rem; border-radius: 999px; font-weight: 750; box-shadow: var(--shadow); z-index: 40;
}
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--navy); color: #fff;
  padding: 1rem 1.1rem; z-index: 60; border-radius: 16px; max-width: 980px; margin: auto;
}
.cookie-bar .container { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; width: 100%; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img, .member-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: var(--paper); }
.member-card { text-align: center; }
.demo-badge { display: inline-block; background: var(--gold-2); color: var(--navy); font-size: .72rem; font-weight: 800; padding: .18rem .5rem; border-radius: 6px; }
.list-item { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.list-item h2 { margin: .2rem 0 .4rem; font-size: 1.25rem; }
.list-item h2 a { color: var(--navy); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.contact-aside { background: var(--paper); border-radius: 20px; padding: 1.5rem; border: 1px solid var(--line); }
.contact-aside h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 .8rem; font-size: 1.35rem; }
.faq-group h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 1rem; }
.faq-group + .faq-group { margin-top: 2.2rem; }
.page-hero .kicker { color: var(--gold-2); }
.page-hero .kicker::before { background: var(--gold-2); }

@media (max-width: 1024px) {
  .grid-4, .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); padding: 1rem; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .has-children > ul { position: static; box-shadow: none; border: 0; padding-left: .6rem; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2, .gallery-grid, .announce-item { grid-template-columns: 1fr; }
  .cta-band, .header-top .container, .footer-bottom, .section-head { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
