:root {
  --navy: #0e3455;
  --navy-2: #092a45;
  --blue: #1e5d8f;
  --blue-soft: #eaf2f8;
  --ink: #183047;
  --muted: #667786;
  --line: #dce5ec;
  --paper: #f7f9fa;
  --white: #ffffff;
  --cream: #f5f1e9;
  --shadow: 0 24px 70px rgba(17, 52, 79, .12);
  --radius: 22px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Avenir Next', Avenir, 'Trebuchet MS', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 999; left: 16px; top: -60px; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14,52,85,.08);
}
.header-row { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 265px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: 'Iowan Old Style', 'Bodoni 72', 'Palatino Linotype', Georgia, serif; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; color: var(--navy); }
.brand-copy span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.main-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.main-nav a, .footer-nav a { text-decoration: none; font-size: 13px; font-weight: 600; }
.main-nav a { position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: .25s; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-contact { text-decoration: none; background: var(--navy); color: white; padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 10px; }

.hero { position: relative; min-height: 700px; overflow: hidden; display: flex; align-items: stretch; background: #d9e3ea; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,250,251,.98) 0%, rgba(248,250,251,.92) 28%, rgba(248,250,251,.28) 58%, rgba(9,42,69,.13) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 70px; align-items: end; padding-block: 110px 64px; }
.hero-copy { align-self: center; max-width: 650px; }
.eyebrow, .section-kicker { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 700; color: var(--blue); }
.hero h1, h2, h3 { font-family: 'Iowan Old Style', 'Bodoni 72', 'Palatino Linotype', Georgia, serif; font-weight: 400; }
.hero h1 { color: var(--navy-2); margin: 0 0 24px; font-size: clamp(48px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -.02em; }
.hero-lead { max-width: 570px; margin: 0 0 12px; font-size: 19px; line-height: 1.45; font-weight: 700; color: #233d55; }
.hero-text { max-width: 560px; margin: 0 0 30px; color: #4d6274; font-size: 15px; }
.primary-button { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: var(--navy); color: white; padding: 15px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: 0 14px 30px rgba(14,52,85,.18); }
.primary-button span { font-size: 18px; line-height: 1; }
.hero-services { display: grid; gap: 8px; align-self: end; }
.hero-services article { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 17px; background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 15px 35px rgba(14,52,85,.12); backdrop-filter: blur(10px); }
.hero-services strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.hero-services p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.service-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #edf4f9; color: var(--navy); font-weight: 800; }
.service-icon.leaf { font-size: 25px; }

.section { padding: 94px 0; }
.muted { background: var(--paper); }
.section-about { background: linear-gradient(180deg,#fff 0%,#fbfcfd 100%); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.section h2 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 55px); line-height: 1.12; color: var(--navy-2); letter-spacing: -.02em; }
.section-copy p { max-width: 620px; color: #526677; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact-card { min-height: 190px; background: var(--blue-soft); border: 1px solid #d9e7f1; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.fact-card span { font-family: 'Iowan Old Style', 'Bodoni 72', 'Palatino Linotype', Georgia, serif; color: var(--navy); font-size: 46px; line-height: 1; margin-bottom: 20px; }
.fact-card strong { color: #29445b; font-size: 13px; line-height: 1.45; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, 500px); gap: 70px; align-items: end; margin-bottom: 36px; }
.section-heading.compact { margin-bottom: 30px; }
.section-heading p { margin: 0; color: var(--muted); }
.department-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.department-card { position: relative; min-height: 330px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 25px; overflow: hidden; }
.department-card::before { content: ''; position: absolute; right: -25px; bottom: -35px; width: 140px; height: 140px; border-radius: 50%; background: #eef4f8; }
.department-num { position: relative; display: block; color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: .15em; margin-bottom: 50px; }
.department-card h3 { position: relative; margin: 0 0 18px; color: var(--navy); font-size: 23px; line-height: 1.25; }
.department-card p { position: relative; margin: 0; color: var(--muted); font-size: 14px; }

.staff-table-wrap { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th, .staff-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #edf1f4; }
.staff-table th { background: #f2f6f9; color: #476077; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.staff-table td:first-child { width: 32%; font-weight: 700; color: #173a59; }
.staff-table td { font-size: 14px; }
.staff-table tr:last-child td { border-bottom: none; }

.info-layout { display: grid; grid-template-columns: 330px 1fr; gap: 65px; align-items: start; }
.info-layout > div:first-child h2 { margin-bottom: 0; }
.info-tabs { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 9px; }
.tab-buttons { display: flex; gap: 8px; padding: 3px; background: #f1f5f8; border-radius: 15px; }
.tab-button { flex: 1; border: 0; background: transparent; color: #607485; padding: 13px 16px; border-radius: 12px; font-weight: 700; }
.tab-button.active { background: white; color: var(--navy); box-shadow: 0 4px 14px rgba(14,52,85,.08); }
.tab-panel { padding: 28px; }
.visit-grid { display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: stretch; }
.visit-grid p { margin: 0 0 14px; color: #556a7c; }
.visit-grid .note { border-left: 3px solid var(--blue); padding-left: 16px; margin-top: 24px; color: #314b61; }
.visit-time { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: white; border-radius: 18px; padding: 25px; }
.visit-time span, .visit-time small { opacity: .74; font-size: 12px; }
.visit-time strong { font-family: 'Iowan Old Style', 'Bodoni 72', 'Palatino Linotype', Georgia, serif; font-size: 36px; margin: 7px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.schedule-grid div { display: grid; grid-template-columns: 125px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.schedule-grid time { color: var(--navy); font-weight: 800; }
.schedule-grid span { color: var(--muted); }

.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.news-card { border: 1px solid var(--line); border-radius: 20px; padding: 26px; min-height: 290px; background: white; display: flex; flex-direction: column; }
.news-card.featured { background: var(--navy); color: white; }
.news-meta { color: #81909d; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; margin-bottom: 28px; }
.featured .news-meta { color: rgba(255,255,255,.65); }
.news-card h3 { margin: 0 0 16px; color: var(--navy); font-size: 23px; line-height: 1.3; }
.news-card.featured h3 { color: white; font-size: 31px; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.news-card.featured p { color: rgba(255,255,255,.78); }

.contacts-section { background: #eef4f8; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.contact-copy h2 { max-width: 620px; }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ccdbe6; border-bottom: 1px solid #ccdbe6; margin-top: 32px; }
.contact-list div { padding: 20px 20px 20px 0; }
.contact-list span { display: block; color: #7b8d9b; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 8px; }
.contact-list strong { display: block; color: var(--navy); font-size: 14px; }
.contact-hint { color: #697d8c; font-size: 12px; max-width: 620px; margin-top: 22px; }
.map-card { position: relative; min-height: 420px; overflow: hidden; border-radius: 25px; background: #e7ecec; border: 1px solid #d4dee4; box-shadow: inset 0 0 50px rgba(14,52,85,.03); }
.map-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(85,117,130,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(85,117,130,.07) 1px, transparent 1px); background-size: 42px 42px; }
.map-road { position: absolute; height: 18px; background: white; border: 1px solid #d6e0e5; box-shadow: 0 0 0 5px rgba(255,255,255,.5); border-radius: 999px; transform-origin: center; }
.road-a { width: 125%; left: -10%; top: 53%; transform: rotate(-12deg); }
.road-b { width: 92%; left: 4%; top: 30%; transform: rotate(58deg); }
.road-c { width: 70%; left: 26%; top: 74%; transform: rotate(17deg); }
.map-block { position: absolute; background: #d9e4df; border: 1px solid #cbd7d1; border-radius: 9px; }
.b1 { width: 95px; height: 70px; left: 10%; top: 13%; }.b2 { width: 120px; height: 78px; left: 56%; top: 9%; }.b3 { width: 90px; height: 90px; right: 8%; top: 45%; }.b4 { width: 130px; height: 68px; left: 7%; bottom: 8%; }.b5 { width: 105px; height: 75px; left: 42%; bottom: 13%; }
.map-pin { position: absolute; left: 56%; top: 48%; width: 50px; height: 50px; background: var(--navy); border: 8px solid white; border-radius: 50% 50% 50% 10%; transform: translate(-50%,-50%) rotate(-45deg); box-shadow: 0 12px 25px rgba(14,52,85,.26); }
.map-pin span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: white; top: 12px; left: 12px; }
.map-label { position: absolute; left: calc(56% + 34px); top: calc(48% - 15px); background: white; padding: 10px 13px; border-radius: 12px; box-shadow: 0 10px 28px rgba(14,52,85,.11); font-weight: 800; color: var(--navy); font-size: 13px; }
.map-label small { display: block; font-weight: 500; color: var(--muted); }

.site-footer { background: var(--navy-2); color: white; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 35px 60px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; filter: brightness(0) invert(1); opacity: .94; }
.footer-brand strong { display: block; font-family: 'Iowan Old Style', 'Bodoni 72', 'Palatino Linotype', Georgia, serif; text-transform: uppercase; letter-spacing: .06em; }
.footer-brand span { display: block; font-size: 10px; color: rgba(255,255,255,.64); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a { color: rgba(255,255,255,.76); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; color: rgba(255,255,255,.47); font-size: 11px; margin: 0; }

.support-widget { position: fixed; right: 22px; bottom: 22px; z-index: 100; }
.support-launcher { border: 0; background: var(--navy); color: white; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 999px; box-shadow: 0 16px 40px rgba(9,42,69,.25); }
.support-dot { width: 8px; height: 8px; border-radius: 50%; background: #69d697; box-shadow: 0 0 0 4px rgba(105,214,151,.15); }
.support-launcher-text { font-size: 12px; font-weight: 700; }
.support-chat-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.15); letter-spacing: 1px; font-weight: 900; }
.support-panel { position: absolute; right: 0; bottom: 62px; width: min(380px, calc(100vw - 30px)); height: 540px; max-height: calc(100vh - 110px); display: none; grid-template-rows: auto 1fr auto auto; background: white; border: 1px solid #dce5eb; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(9,42,69,.25); }
.support-panel.open { display: grid; }
.support-header { background: var(--navy); color: white; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.support-header strong { display: block; font-size: 13px; }
.support-header span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(255,255,255,.7); margin-top: 3px; }
.support-header i { width: 6px; height: 6px; background: #58d08a; border-radius: 50%; }
.support-close { width: 32px; height: 32px; border: 0; color: white; background: rgba(255,255,255,.1); border-radius: 50%; font-size: 22px; line-height: 1; }
.support-messages { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #fbfcfd; }
.message { max-width: 85%; padding: 11px 13px; border-radius: 15px; font-size: 12px; line-height: 1.45; }
.support-message { align-self: flex-start; background: #eef3f7; color: #304a60; border-bottom-left-radius: 5px; }
.user-message { align-self: flex-end; background: #dcecf9; color: #123b5f; border-bottom-right-radius: 5px; }
.support-quick { display: flex; gap: 7px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid #edf1f4; }
.support-quick button { white-space: nowrap; border: 1px solid #c8d8e4; background: white; color: var(--navy); border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 700; }
.support-form { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 12px; border-top: 1px solid #edf1f4; background: white; }
.support-form textarea { resize: none; border: 1px solid #d6e1e8; outline: none; border-radius: 15px; min-height: 44px; max-height: 92px; padding: 11px 12px; font-size: 12px; }
.support-form textarea:focus { border-color: #89abc4; box-shadow: 0 0 0 3px rgba(30,93,143,.08); }
.support-form button { border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white; font-size: 20px; }

@media (max-width: 1080px) {
  .header-contact { display: none; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr 330px; gap: 30px; }
  .hero { min-height: 650px; }
  .department-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .info-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 850px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-row { min-height: 72px; }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 48px; }
  .brand-copy span { display: none; }
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; inset: 72px 14px auto; margin: 0; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(-15px); opacity: 0; pointer-events: none; transition: .2s; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid #edf1f4; }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }

  .hero { min-height: auto; }
  .hero-image { object-position: 66% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(249,251,252,.97) 0%, rgba(249,251,252,.9) 58%, rgba(249,251,252,.68) 100%); }
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; padding-block: 64px 34px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-lead { font-size: 17px; }
  .hero-services { grid-template-columns: 1fr; }

  .section { padding: 72px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .fact-grid { grid-template-columns: 1fr 1fr 1fr; overflow-x: auto; padding-bottom: 4px; }
  .fact-card { min-width: 220px; }
  .department-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: auto; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list div { border-bottom: 1px solid #ccdbe6; }
  .contact-list div:last-child { border-bottom: 0; }
  .map-card { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .brand-copy strong { font-size: 15px; }
  .hero-grid { padding-top: 50px; }
  .hero h1 { font-size: 46px; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .hero-services article { padding: 14px; }
  .section { padding: 58px 0; }
  .section h2 { font-size: 36px; }
  .fact-grid { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .fact-card { min-width: 0; min-height: 140px; }
  .fact-card span { margin-bottom: 12px; }
  .department-grid { grid-template-columns: 1fr; }
  .department-card { min-height: 260px; }
  .department-num { margin-bottom: 35px; }

  .staff-table-wrap { border: 0; background: transparent; overflow: visible; }
  .staff-table, .staff-table tbody, .staff-table tr, .staff-table td { display: block; width: 100%; }
  .staff-table thead { display: none; }
  .staff-table tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 14px 16px; }
  .staff-table td { border: 0; padding: 2px 0; font-size: 13px; }
  .staff-table td:first-child { width: 100%; margin-bottom: 2px; font-size: 14px; }

  .info-tabs { padding: 7px; }
  .tab-buttons { display: grid; grid-template-columns: 1fr; }
  .tab-panel { padding: 18px 10px 10px; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-time { min-height: 160px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-grid div { grid-template-columns: 112px 1fr; }

  .contact-list { margin-top: 22px; }
  .map-card { min-height: 300px; }
  .footer-brand img { width: 50px; height: 50px; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }

  .support-widget { right: 12px; bottom: 12px; }
  .support-launcher-text, .support-dot { display: none; }
  .support-launcher { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .support-chat-icon { width: 38px; height: 38px; }
  .support-panel { position: fixed; right: 10px; left: 10px; bottom: 76px; width: auto; height: min(620px, calc(100vh - 92px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
