/*
Theme: v4
Main stylesheet only. No remote assets. No @import font rules.
*/

:root {
  --bg: #eef4ff;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f2f6fd;
  --surface-3: #e6eefc;
  --text: #142033;
  --muted: #5a6b85;
  --line: #d8e2f1;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #0f172a;
  --accent-soft: #21314d;
  --success: #0f766e;
  --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.06);
  --shadow: 0 22px 60px rgba(19, 35, 68, 0.10);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
  --content: 760px;
  --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #eef4ff 38%, #f7f9fc 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p, ul, ol, blockquote, table, figure, pre { margin: 0 0 18px; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.section { padding: 72px 0; }
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.button,
.btn,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.button:hover,
.btn:hover,
.button-primary:hover,
.button-secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.button,
.btn,
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}
.button-secondary {
  background: rgba(255,255,255,0.72);
  color: var(--accent);
  border-color: var(--line);
}
.text-link {
  font-weight: 700;
  color: var(--primary-strong);
}
.empty-state {
  padding: 28px;
}
.section-heading {
  margin-bottom: 26px;
}
.split-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: end;
}
.compact-heading {
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}
.section-intro {
  max-width: 540px;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 255, 0.78);
  border-bottom: 1px solid rgba(216, 226, 241, 0.8);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-brand {
  display: inline-block;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.site-brand:hover { text-decoration: none; }
.site-tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone,
.header-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
}
.header-phone:hover,
.header-home-link:hover { text-decoration: none; }

.home-hero {
  padding-top: 38px;
}
.hero-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  border: 1px solid rgba(216, 226, 241, 0.9);
  box-shadow: var(--shadow);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.9rem;
}
.hero-title {
  margin-top: 18px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}
.hero-title-main,
.hero-title-accent {
  display: block;
}
.hero-title-accent {
  color: var(--primary-strong);
}
.hero-description {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--accent-soft);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-aside {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}
.hero-note-card {
  padding: 24px;
}
.hero-note-title,
.post-side-title {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
}
.hero-note-text,
.post-side-text,
.footer-text,
.cta-text {
  color: var(--muted);
}
.hero-phone {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
}
.hero-image-wrap,
.hero-pattern {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, #dbeafe 0%, #f8fbff 100%);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-pattern {
  padding: 30px;
  display: grid;
  align-content: center;
  gap: 16px;
}
.hero-pattern-line {
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(15,23,42,.08));
}
.hero-pattern-line.short { width: 68%; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.category-card h3 {
  font-size: 1.28rem;
}
.category-card-text {
  color: var(--muted);
}
.category-card-link {
  margin-top: auto;
  font-weight: 800;
}

.post-teaser-list {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.post-teaser {
  padding: 26px;
}
.post-teaser:nth-child(3n) {
  grid-column: 1 / -1;
}
.post-teaser h3 {
  font-size: 1.4rem;
}
.post-teaser-excerpt,
.post-card-excerpt {
  color: var(--muted);
}
.post-teaser-excerpt .article-toc,
.post-card-excerpt .article-toc {
  margin: 10px 0 0;
}

.page-listing {
  padding: 8px;
}
.page-listing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
}
.page-listing-row:last-child {
  border-bottom: 0;
}
.page-listing-row h3 {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.editorial-note {
  padding: 30px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.92));
  color: #eff6ff;
  border: 0;
  box-shadow: var(--shadow);
}
.editorial-note h2,
.editorial-note h3,
.editorial-note p,
.editorial-note a,
.editorial-note strong {
  color: inherit;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2,
.cta-band .eyebrow,
.cta-band .cta-text {
  color: #fff;
}
.cta-phone {
  white-space: nowrap;
  background: #fff;
  color: var(--accent);
}

.category-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}
.category-header h1,
.page-header h1,
.post-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
}
.category-header-copy {
  max-width: 760px;
}
.category-description {
  color: var(--muted);
  max-width: 64ch;
}
.category-visual {
  width: 360px;
}
.category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.subcat-card {
  padding: 14px;
}
.subcat-card h3 {
  margin-top: 14px;
  font-size: 1.1rem;
}
.category-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.post-card {
  overflow: hidden;
}
.post-card-media {
  display: block;
}
.post-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}
.post-card-body {
  padding: 20px;
}
.post-card-body h3 {
  font-size: 1.16rem;
}
.pagination-wrap {
  margin-top: 26px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pagination-current {
  font-weight: 800;
  color: var(--accent);
}

.page-shell {
  max-width: calc(var(--content) + 60px);
}
.page-header {
  margin-bottom: 20px;
}
.page-image {
  width: 100%;
  max-width: 760px;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.page-content-box {
  padding: 34px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.post-columns {
  display: grid;
  grid-template-columns: minmax(0, var(--content)) 320px;
  gap: 28px;
  align-items: start;
  justify-content: center;
}
.post-header {
  margin-bottom: 22px;
}
.post-summary {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.post-image {
  width: 100%;
  max-width: 760px;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.post-sidebar {
  display: grid;
  gap: 18px;
}
.post-side-card {
  padding: 22px;
}
.sticky-card {
  position: sticky;
  top: 108px;
}
.sidebar-phone {
  margin-top: 14px;
  width: 100%;
}

.article-content {
  color: var(--text);
  font-size: 1.06rem;
}
.article-content > *:last-child {
  margin-bottom: 0;
}
.article-content h2 {
  margin-top: 48px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
}
.article-content h3 {
  margin-top: 34px;
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}
.article-content h4 {
  margin-top: 26px;
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: var(--accent-soft);
}
.article-content p {
  color: var(--text);
  margin-bottom: 18px;
}
.article-content a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 700;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-content li {
  margin-bottom: 10px;
}
.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
  margin-top: 10px;
  margin-bottom: 10px;
}
.article-content blockquote {
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, #f7fbff, #edf4ff);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-soft);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-content figure {
  margin: 26px 0;
}
.article-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}
.article-content code,
.article-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-content code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #eaf1ff;
  color: #163477;
}
.article-content pre {
  padding: 18px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: #0b1220;
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}
.article-toc {
  padding: 20px;
  margin: 0 0 30px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  box-shadow: var(--shadow-sm);
}
.article-toc-title {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.article-toc li {
  margin: 0;
}
.article-toc li ul {
  margin-top: 10px;
  padding-left: 12px;
}
.article-toc a {
  display: block;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #d9e5fb;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.article-toc a:hover {
  background: #fff;
  border-color: #bfd3fb;
  text-decoration: none;
}

.not-found-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 42px;
  text-align: center;
}
.not-found-box h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}
.not-found-box .button {
  margin-top: 10px;
}

.site-footer {
  margin-top: 30px;
  padding: 38px 0 26px;
  background: #0f172a;
  color: #d7e0ef;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}
.footer-brand {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
}
.footer-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 800;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.site-footer a {
  color: #c7d7ff;
}
.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.kp-credit {
  margin: 0;
  color: #96a6c5;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .hero-panel,
  .split-heading,
  .post-columns,
  .category-header,
  .footer-inner,
  .cta-band,
  .post-teaser-list {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .subcat-grid,
  .category-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-visual {
    width: 100%;
    max-width: 360px;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .header-inner {
    min-height: 74px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }
  .hero-copy,
  .editorial-note,
  .not-found-box,
  .page-content-box,
  .cta-band {
    padding: 24px;
  }
  .hero-title,
  .category-header h1,
  .page-header h1,
  .post-title,
  .not-found-box h1 {
    letter-spacing: -0.03em;
  }
  .category-grid,
  .subcat-grid,
  .category-post-grid,
  .post-teaser-list {
    grid-template-columns: 1fr;
  }
  .page-listing-row {
    grid-template-columns: 1fr;
  }
  .page-image {
    max-width: 328px;
    height: 220px;
  }
  .post-image {
    max-width: 328px;
    height: 220px;
  }
  .category-image {
    height: 200px;
  }
  .post-card-image {
    height: 190px;
  }
}
