:root {
  color-scheme: light;
  --blue: #0d4cd3;
  --blue-dark: #0a389e;
  --ink: #0b1f3a;
  --muted: #66758b;
  --line: #dfe5ed;
  --surface: #f3f6fa;
  --white: #ffffff;
  --red: #e6383f;
  --green: #14855b;
  --shadow: 0 14px 38px rgba(11, 31, 58, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input { font: inherit; letter-spacing: 0; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

svg { width: 20px; height: 20px; stroke-width: 2; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
}

.brand-mark i { display: block; border-radius: 2px 2px 0 0; }
.brand-mark i:nth-child(1) { height: 15px; background: var(--blue); }
.brand-mark i:nth-child(2) { height: 24px; background: var(--red); }
.brand-mark i:nth-child(3) { height: 19px; background: #28a8df; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}

.primary-nav a,
.site-footer nav a {
  color: #30425b;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.primary-nav a:hover,
.site-footer nav a:hover { color: var(--blue); }

.region-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--surface);
  color: #30425b;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.region-button svg:first-child { color: var(--red); }
.region-button svg:last-child { width: 16px; height: 16px; }

.region-menu {
  position: absolute;
  right: 0;
  top: 62px;
  width: 180px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.region-menu button {
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.region-menu button:hover { background: var(--surface); }

.icon-button {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle { display: none; margin-left: auto; }

.hero {
  position: relative;
  min-height: 484px;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow.blue { color: var(--blue); }

h1,
h2,
h3,
p { letter-spacing: 0; }

h1 {
  max-width: 620px;
  margin: 0;
  font-size: 50px;
  line-height: 1.08;
  font-weight: 720;
}

.hero-copy {
  max-width: 590px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.search {
  width: min(650px, 100%);
  min-height: 62px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(4, 25, 80, 0.2);
}

.search > svg { color: #77869a; }

.search input {
  min-width: 0;
  height: 46px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.search input::placeholder { color: #7a899e; }

.search button,
.primary-button,
.empty-state button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.search button:hover,
.primary-button:hover,
.empty-state button:hover { background: #c9222c; }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.quick-links button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--white);
  background: rgba(7, 47, 148, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.quick-links button:hover { background: rgba(7, 47, 148, 0.95); }

.categories { padding: 64px 0 74px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.info-copy h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.text-link svg { width: 18px; height: 18px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.category {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: #263a55;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.category-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.category:hover .category-icon { transform: translateY(-3px); }
.category-icon svg { width: 28px; height: 28px; }

.sky { color: #1168b7; background: #dceeff; }
.rose { color: #c93d50; background: #ffe6e9; }
.mint { color: #147c63; background: #dcf3eb; }
.violet { color: #6c4cc5; background: #eee8ff; }
.amber { color: #9b6210; background: #fff0cf; }
.cyan { color: #087a90; background: #dcf4f8; }
.lime { color: #4c7516; background: #eaf4d7; }
.blue-soft { color: var(--blue); background: #e3ebff; }

.popular-band {
  padding: 70px 0 78px;
  background: var(--surface);
}

.result-count { margin: 0; color: var(--muted); font-size: 14px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 144px;
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  align-items: start;
  gap: 15px;
  padding: 24px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(11, 31, 58, 0.045);
  text-decoration: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-color: #cbd8ef;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card[hidden] { display: none; }

.service-icon { width: 48px; height: 48px; border-radius: 8px; }
.service-icon svg { width: 24px; height: 24px; }

.service-card strong { display: block; margin: 1px 0 7px; font-size: 17px; }
.service-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card-arrow { width: 18px; height: 18px; margin-top: 3px; color: #8b99ab; }

.empty-state {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 36px 20px;
  text-align: center;
}

.empty-state > svg { width: 40px; height: 40px; color: var(--blue); }
.empty-state h3 { margin: 14px 0 6px; font-size: 22px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

.info-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  padding-top: 78px;
  padding-bottom: 84px;
}

.info-copy p:not(.eyebrow) {
  max-width: 510px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.primary-button { width: fit-content; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button svg { width: 18px; height: 18px; }

.info-list { border-top: 1px solid var(--line); }

.info-list a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.info-list a:hover strong { color: var(--blue); }
.number { color: var(--red); font-size: 13px; font-weight: 750; }
.info-list strong { display: block; font-size: 16px; }
.info-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.info-list svg { color: #96a2b2; }

.site-footer { padding: 48px 0; background: #081b35; color: var(--white); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 60px;
  align-items: start;
}

.footer-brand { color: var(--white); }
.footer-inner > div p,
.copyright { margin: 12px 0 0; color: #93a4bd; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: #cfdaea; }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid #29405e; }

.simple-main {
  min-height: calc(100vh - 292px);
  padding: 72px 0 92px;
}

.simple-main h1 { max-width: 760px; color: var(--ink); font-size: 44px; }
.simple-main .lead { max-width: 720px; margin: 20px 0 48px; color: var(--muted); font-size: 18px; }
.article-list { max-width: 820px; border-top: 1px solid var(--line); }
.article-list article { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.article-list time { color: var(--muted); font-size: 13px; }
.article-list h2 { margin: 0 0 8px; font-size: 22px; }
.article-list p { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
  .primary-nav { gap: 18px; }
  .primary-nav a:nth-child(2) { display: none; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { object-position: 58% center; opacity: 0.72; }
  .info-section { gap: 44px; }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner { width: min(100% - 32px, 1180px); }

  .header-inner { min-height: 64px; gap: 10px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 27px; height: 23px; }
  .primary-nav,
  .region-button { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav.open {
    position: absolute;
    left: -16px;
    right: -16px;
    top: 64px;
    display: grid;
    gap: 0;
    padding: 8px 16px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(11, 31, 58, 0.1);
  }
  .primary-nav.open a { display: block; padding: 12px 4px; }

  .hero { min-height: 500px; }
  .hero-art { opacity: 0.32; object-position: 65% center; }
  .hero-inner { padding: 56px 0 54px; }
  h1 { font-size: 38px; }
  .hero-copy { max-width: 520px; font-size: 17px; }
  .search { min-height: 58px; grid-template-columns: 22px minmax(0, 1fr) auto; padding-left: 15px; }
  .search button { min-width: 48px; width: 48px; padding: 0; font-size: 0; }
  .search button::after { content: "→"; font-size: 22px; }

  .categories { padding: 52px 0 58px; }
  .section-heading { align-items: start; }
  .section-heading h2,
  .info-copy h2 { font-size: 28px; }
  .text-link { display: none; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category { font-size: 12px; }
  .category-icon { width: 58px; height: 58px; }

  .popular-band { padding: 56px 0 62px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 122px; }

  .info-section { grid-template-columns: 1fr; gap: 48px; padding-top: 60px; padding-bottom: 66px; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav { display: grid; gap: 13px; }
  .copyright { grid-column: 1; }

  .simple-main { padding: 54px 0 70px; }
  .simple-main h1 { font-size: 36px; }
  .article-list article { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 420px) {
  .brand span:last-child { max-width: 145px; line-height: 1.15; white-space: normal; }
  .hero { min-height: 540px; }
  h1 { font-size: 34px; }
  .search { grid-template-columns: 20px minmax(0, 1fr) 44px; gap: 8px; }
  .search button { min-width: 44px; width: 44px; }
  .quick-links { gap: 7px; }
  .quick-links button { padding: 0 10px; font-size: 13px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { grid-template-columns: 44px 1fr 18px; padding: 20px; }
  .service-icon { width: 44px; height: 44px; }
}

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