:root {
  --bg: #f8f9fc;
  --bg-alt: #eef1f9;
  --card: #ffffff;
  --text: #2f3140;
  --muted: #666a7e;
  --line: #dfe4f1;
  --accent: #6464f6;
  --accent-deep: #4f4fdf;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 14px 30px rgba(23, 23, 44, 0.09);
  --max: 1200px;
  --max-narrow: 980px;
  --btn-height: 38px;
  --btn-width: 138px;
  --brand-size: 21px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcff 0%, #f5f7fd 100%);
  line-height: 1.7;
  font-size: 15px;
}

main {
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.container.narrow {
  width: min(calc(100% - 40px), var(--max-narrow));
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  gap: 10px;
}

.logo-image {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #d8def3;
}

.logo-text {
  font-size: var(--brand-size);
  font-weight: 600;
  line-height: 1.1;
}

.logo-note {
  font-size: 11px;
  color: #6464f6;
  font-weight: 600;
  margin-left: 2px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  height: var(--btn-height);
  min-width: var(--btn-width);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--accent-deep);
}

.menu-btn {
  display: none;
}

.hero {
  padding: 62px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #d6dcf5;
  background: #f3f5ff;
  color: #6871d9;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: none;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 8px 0 10px;
  font-weight: 600;
}

h1 {
  font-size: clamp(23px, 2.8vw, 33px);
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 700;
}

h2 {
  font-size: clamp(19px, 2.2vw, 26px);
}

h3 {
  font-size: 16px;
}

.lead {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
  font-size: 14px;
}

.hero-actions,
.article-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: var(--btn-height);
  min-width: var(--btn-width);
  padding: 0 14px;
  font-weight: 600;
  font-size: 12px;
  background: #fff;
  line-height: 1;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stat-row article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-row strong {
  display: block;
  font-size: 21px;
  color: var(--accent);
  line-height: 1.1;
}

.stat-row span {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  background: linear-gradient(160deg, #f0f3ff, #ffffff);
  border: 1px solid #d8def3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}

.hero-media {
  height: 100%;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(34, 40, 70, 0.2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 22px;
}

.section-head.narrow-head {
  max-width: 760px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 8px 14px rgba(41, 46, 66, 0.04);
  height: 100%;
}

.card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.line-icon {
  width: 20px;
  height: 20px;
  color: #5258d9;
  flex: 0 0 auto;
}

.line-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cfd6f5;
  background: #eef2ff;
  color: #4f56d8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.timeline {
  counter-reset: step;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: var(--max-narrow);
}

.timeline li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 18px 74px;
  display: grid;
  gap: 4px;
  position: relative;
}

.timeline li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 28px;
  border-radius: 999px;
  background: #ecefff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.timeline li span {
  color: var(--muted);
}

.post-card .post-date,
.post-date {
  font-size: 13px;
  color: var(--muted);
}

.post-card h2,
.post-card h3 {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.post-card a:hover {
  color: var(--accent);
}

.tags {
  margin-top: 10px;
  font-size: 13px;
  color: #5b6096;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.faq-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.faq-grid-two details {
  margin-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.faq-button-grid {
  gap: 16px;
}

.faq-button-item {
  display: grid;
  gap: 10px;
}

.faq-q-btn {
  width: 100%;
  border: 1px solid #cfd6f1;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.faq-q-btn:hover {
  border-color: #b9c4eb;
}

.faq-q-btn .faq-q-text {
  flex: 1 1 auto;
  padding-right: 10px;
}

.faq-q-btn .faq-q-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f56d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.faq-q-btn[aria-expanded="true"] .faq-q-mark {
  transform: rotate(45deg);
}

.faq-a-btn {
  border: 1px solid #d9e0f5;
  background: #f7f9ff;
  color: #5a6282;
  border-radius: 14px;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}

.faq-a-btn.is-open {
  border-color: #c6d2f2;
}

.seo-block {
  border: 1px solid #d6deef;
  background: linear-gradient(180deg, #f5f8ff, #f1f4fb);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
}

.seo-block .lead {
  max-width: 120ch;
  width: min(100%, 120ch);
  text-wrap: pretty;
}

.seo-points {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-points span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccd6ef;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: #5b6385;
  font-weight: 700;
}

.section-page {
  min-height: calc(100vh - 180px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.search-form .btn {
  min-width: var(--btn-width);
}

.search-form input,
.form input,
.form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #cfd6eb;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  background: #fff;
}

.form label,
.admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #353954;
}

.form,
.admin-form {
  display: grid;
  gap: 12px;
}

.empty {
  margin-top: 18px;
  border: 1px dashed #ccd3e9;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.mt-24 {
  margin-top: 24px;
}

.pager {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.pager a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
}

.pager a.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.article {
  max-width: 860px;
}

.article .cover {
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 18px 0;
}

.article-content {
  margin-top: 18px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.article-content p,
.article-content li {
  color: #444a63;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-form {
  align-content: start;
}

.alert {
  margin: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.alert.success {
  background: #ecf8ef;
  color: #1a7e3c;
}

.alert.error {
  background: #ffecec;
  color: #a41f1f;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  background: #fcfdff;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.15fr;
  gap: 24px;
  padding: 24px 0;
}

.footer-grid p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  font-size: var(--brand-size);
  line-height: 1.2;
  font-weight: 600;
}

.footer-grid h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
}

.footer-links a {
  font-size: 13px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 16px;
  max-width: 300px;
}

.footer-keywords .keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-keywords .keyword-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5dbef;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #646c8a;
  font-size: 11px;
  line-height: 1.2;
}

.copyright {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
}

.admin-shell {
  width: min(calc(100% - 40px), 1100px);
  margin: 30px auto;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions .btn {
  min-width: 112px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: #fff;
}

.compare-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}

.compare-table th {
  background: #f6f8fe;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555d7c;
}

.status-mark {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -1px;
  flex: 0 0 auto;
}

.status-mark.ok {
  border-radius: 50%;
  background: #20b368;
}

.status-mark.no {
  position: relative;
}

.status-mark.no::before,
.status-mark.no::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  background: #a8aebe;
  border-radius: 999px;
}

.status-mark.no::before {
  transform: rotate(45deg);
}

.status-mark.no::after {
  transform: rotate(-45deg);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  font-size: 14px;
}

.admin-table th {
  background: #f6f8fe;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.published {
  background: #eaf7ee;
  color: #1f7b3b;
}

.badge.draft {
  background: #f2f3f8;
  color: #586080;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .footer-grid,
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .faq-grid-two {
    grid-template-columns: 1fr;
  }

  .row-between {
    align-items: start;
    flex-direction: column;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(22px, 6.5vw, 30px);
  }

  .hero h1 {
    font-size: clamp(23px, 7vw, 33px);
  }

  .hero-media {
    height: auto;
    min-height: 240px;
  }

  .timeline li {
    padding: 18px 16px 18px 64px;
  }

  .faq summary {
    font-size: 14px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .logo-note {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }
}
