:root {
  --primary: #173f79;
  --primary-dark: #0c2c59;
  --primary-soft: #eaf1fa;
  --accent: #c92632;
  --ink: #152033;
  --text: #344054;
  --muted: #667085;
  --surface: #ffffff;
  --background: #f5f7fa;
  --border: #dde3eb;
  --focus: #f1b82d;
  --shadow-sm: 0 8px 24px rgba(17, 38, 70, 0.08);
  --shadow-lg: 0 28px 64px rgba(17, 38, 70, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: Inter, Manrope, Montserrat, Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; border-radius: 6px; background: var(--primary); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 16px; }
.container { width: min(1160px, calc(100% - 56px)); margin: 0 auto; }
.narrow { max-width: 860px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(221, 227, 235, 0.9); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); }
.header-content { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.05; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 6px; background: var(--primary); color: #fff; font-size: 0.82rem; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.63rem; font-weight: 700; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--primary); }
.main-nav .nav-social { display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); padding: 9px 13px; }
.main-nav .nav-social svg { width: 17px; height: 17px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }

.section { padding: 104px 0; }
.muted-section { background: var(--background); }
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background: linear-gradient(115deg, #f5f8fc 0%, #fff 54%, #f8f3f3 100%); }
.hero::before, .site-footer::before { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary) 0 68%, var(--accent) 68%); content: ""; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr); align-items: center; gap: 72px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-label { margin: 0 0 13px; color: var(--accent); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); padding: 7px 12px; }
.eyebrow svg { width: 15px; height: 15px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; color: var(--ink); font-size: clamp(3rem, 6.5vw, 5.6rem); line-height: 0.96; }
h2 { margin: 0 0 26px; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h3 { margin: 0 0 7px; color: var(--ink); font-size: 1rem; }
.civil-name { margin: 20px 0 0; color: var(--primary); font-size: 1.28rem; font-weight: 800; }
.role { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; color: var(--ink); font-weight: 700; }
.role svg { width: 19px; height: 19px; color: var(--primary); }
.party { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; }
.party span, .party strong { border-radius: 5px; padding: 5px 10px; font-size: 0.84rem; line-height: 1; }
.party span { background: var(--primary); color: #fff; }
.party strong { background: var(--accent); color: #fff; }
.hero-text { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 6px; padding: 12px 18px; font-weight: 800; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-2px); }
.primary-button { background: var(--primary); box-shadow: 0 10px 22px rgba(23, 63, 121, 0.2); color: #fff; }
.primary-button:hover { background: var(--primary-dark); color: #fff; }
.secondary-button { border-color: var(--border); background: var(--surface); color: var(--ink); }
.secondary-button:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--primary); }

.hero-photo { position: relative; min-height: 510px; overflow: hidden; border: 8px solid #fff; border-radius: 8px; background: #eaf1fa; box-shadow: var(--shadow-lg); }
.hero-photo::after { position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(10, 30, 58, 0.82)); content: ""; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; min-height: 510px; object-fit: cover; object-position: center; }
.hero-photo img.image-missing { display: none; }
.photo-placeholder { position: absolute; inset: 0; display: grid; place-content: center; padding: 32px; color: var(--muted); text-align: center; }
.hero-photo img:not(.image-missing) + .photo-placeholder { display: none; }
.photo-placeholder span { color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.photo-placeholder small { margin-top: 6px; }
.photo-caption { position: absolute; z-index: 2; right: 24px; bottom: 22px; left: 24px; color: #fff; }
.photo-caption span { display: block; font-size: 1.1rem; font-weight: 800; }
.photo-caption small { color: rgba(255,255,255,.78); }

.about-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.2fr); gap: 88px; }
.section-heading { position: relative; }
.section-heading::after { display: block; width: 56px; height: 4px; margin-top: 30px; background: var(--accent); content: ""; }
.text-block { color: var(--muted); font-size: 1.06rem; }
.text-block p { margin: 0 0 20px; }
.about-copy p:first-child { color: var(--ink); font-size: 1.18rem; font-weight: 600; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card, .official-channel, .contact-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.info-card { position: relative; min-height: 176px; padding: 25px; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.info-card:hover { transform: translateY(-3px); border-color: #c2cfdf; box-shadow: var(--shadow-sm); }
.card-icon, .channel-icon, .contact-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 7px; background: var(--primary-soft); color: var(--primary); }
.card-icon { margin-bottom: 22px; }
.card-icon svg, .contact-icon svg { width: 21px; height: 21px; }
.info-card p { margin: 0; color: var(--ink); font-weight: 750; }
.featured-card { border-color: var(--primary); background: var(--primary); }
.featured-card .card-icon { background: rgba(255,255,255,.14); color: #fff; }
.featured-card h3 { color: rgba(255,255,255,.75); }
.featured-card p { color: #fff; font-size: 1.65rem; }

.official-channel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; max-width: 880px; padding: 26px; box-shadow: var(--shadow-sm); }
.channel-icon { width: 58px; height: 58px; background: var(--accent); color: #fff; }
.channel-icon svg { width: 27px; height: 27px; }
.official-channel p, .contact-card p { margin: 0; color: var(--muted); }
.channel-copy h3 { font-size: 1.12rem; }
.channel-copy a { font-weight: 700; }
.support-text { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: .92rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: 64px; align-items: center; }
.contact-grid > div > p:last-child { max-width: 620px; color: var(--muted); }
.contact-card { position: relative; padding: 30px; border-top: 4px solid var(--accent); box-shadow: var(--shadow-sm); font-style: normal; }
.contact-icon { margin-bottom: 20px; }
.contact-card a { display: inline-block; margin-bottom: 13px; font-size: 1.05rem; font-weight: 800; }
.contact-card p { font-size: .9rem; }

.identification { border-top: 1px solid var(--border); }
.identification > .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.identification .section-label, .identification h2 { grid-column: 1; }
.identification h2 { margin-top: -10px; }
.identification > .container > p:not(.section-label), .identity-list { grid-column: 2; }
.identification > .container > p:not(.section-label) { grid-row: 1 / span 2; margin: 0; color: var(--muted); }
.identity-list { display: grid; gap: 0; margin: -24px 0 0; }
.identity-list div { display: grid; grid-template-columns: 200px 1fr; gap: 18px; border-bottom: 1px solid var(--border); padding: 16px 0; }
.identity-list dt { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 700; }
.identity-list dt svg { width: 18px; height: 18px; color: var(--primary); }
.identity-list dd { margin: 0; color: var(--ink); font-weight: 800; }

.site-footer { position: relative; background: #101b2d; color: #f4f6fb; padding: 58px 0; }
.footer-grid { display: grid; grid-template-columns: 1.05fr .9fr 1.2fr; gap: 48px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 6px 0; color: #b9c2d0; }
.site-footer a { color: #fff; }
.policy-content { margin-top: 42px; }
.policy-content h2 { margin: 42px 0 12px; font-size: 1.5rem; }
main > .section .narrow > h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr .82fr; gap: 42px; }
  .hero-photo, .hero-photo img { min-height: 450px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 48px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 40px, 1160px); }
  .header-content { min-height: 70px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav .nav-social { border-bottom: 1px solid var(--border); border-radius: 0; background: #fff; padding: 14px 16px; }
  .main-nav a:last-child { border-bottom: 0; }
  .policy-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; border: 0; box-shadow: none; }
  .policy-nav a { border-bottom: 0; padding: 8px 0 8px 14px; }
  .section { padding: 76px 0; }
  .hero { padding: 52px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-photo { max-width: 620px; min-height: 480px; }
  .hero-photo img { min-height: 480px; }
  .about-grid, .contact-grid, .footer-grid, .identification > .container { grid-template-columns: 1fr; gap: 30px; }
  .section-heading::after { margin-top: 20px; }
  .identification .section-label, .identification h2, .identification > .container > p:not(.section-label), .identity-list { grid-column: 1; }
  .identification h2 { margin-bottom: 0; }
  .identification > .container > p:not(.section-label) { grid-row: auto; }
  .identity-list { margin-top: 0; }
}

@media (max-width: 580px) {
  .container { width: min(100% - 32px, 1160px); }
  .brand-mark { width: 38px; height: 38px; }
  .brand { font-size: .92rem; }
  .policy-nav { gap: 2px; }
  .policy-nav a { font-size: .75rem; padding-left: 8px; }
  .section { padding: 64px 0; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  h2 { font-size: 2rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-photo, .hero-photo img { min-height: 380px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
  .official-channel { grid-template-columns: 1fr; align-items: stretch; }
  .official-channel .button { width: 100%; }
  .identity-list div { grid-template-columns: 1fr; gap: 5px; }
}

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