:root {
  color-scheme: light;
  --ks-blue: #0b81e7;
  --ks-blue-dark: #0070d0;
  --ks-blue-soft: #eff8ff;
  --ks-orange: #fa7507;
  --ks-canvas: #f7fafd;
  --ks-text: #1f2937;
  --ks-muted: #64748b;
  --ks-border: #e5e7eb;
  --ks-white: #ffffff;
  --ks-danger: #dc2626;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: var(--ks-text);
  background: var(--ks-canvas);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--ks-canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ks-canvas);
}

button,
a {
  font: inherit;
}

.brand-header {
  color: var(--ks-white);
  background: var(--ks-blue);
  border-bottom: 3px solid var(--ks-orange);
}

.brand-header__inner {
  width: min(100% - 32px, 720px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ks-blue-dark);
  background: var(--ks-white);
  border-radius: 11px;
  box-shadow: 0 6px 18px rgb(0 64 128 / 18%);
}

.brand-header__label {
  font-size: 12px;
  opacity: 0.88;
}

.page-shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--ks-blue-soft);
  border: 1px solid #dceeff;
  border-radius: 20px;
}

.hero__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--ks-blue);
  background: var(--ks-white);
  border-radius: 16px;
}

.hero__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--ks-blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.25;
}

.hero__copy {
  margin: 8px 0 0;
  color: var(--ks-muted);
  font-size: 14px;
}

.content-card {
  min-height: 260px;
  margin-top: 16px;
  padding: 18px;
  background: var(--ks-white);
  border: 1px solid var(--ks-border);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgb(15 23 42 / 6%);
}

.state {
  min-height: 222px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.state[hidden],
#contact-state[hidden],
#about-state[hidden],
#faq-state[hidden],
#blog-state[hidden],
#article-state[hidden],
.notice[hidden] {
  display: none;
}

.state h2 {
  margin: 12px 0 6px;
  font-size: 20px;
}

.state p {
  max-width: 440px;
  margin: 0;
  color: var(--ks-muted);
  font-size: 14px;
}

.state--loading {
  gap: 14px;
}

.state__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ks-blue-dark);
  background: var(--ks-blue-soft);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #cfe9ff;
  border-top-color: var(--ks-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.button {
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 22px;
  color: var(--ks-white);
  background: var(--ks-blue-dark);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button:focus-visible,
.contact-item:focus-visible,
.faq-question:focus-visible,
.blog-card:focus-visible,
.back-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgb(250 117 7 / 42%);
  outline-offset: 3px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  color: inherit;
  background: var(--ks-blue-soft);
  border: 1px solid #dceeff;
  border-radius: 14px;
  text-decoration: none;
}

.contact-item:not([href]) {
  grid-template-columns: 44px minmax(0, 1fr);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ks-blue-dark);
  background: var(--ks-white);
  border-radius: 12px;
  font-size: 19px;
  font-weight: 800;
}

.contact-item__label,
.contact-item__value {
  margin: 0;
}

.contact-item__label {
  color: var(--ks-muted);
  font-size: 12px;
}

.contact-item__value {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
}

.contact-item__arrow {
  color: var(--ks-blue-dark);
  font-size: 23px;
}

.about-content {
  padding: 4px 2px;
  color: var(--ks-text);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

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

.faq-item {
  overflow: hidden;
  background: var(--ks-white);
  border: 1px solid var(--ks-border);
  border-radius: 14px;
}

.faq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question__copy {
  display: grid;
  gap: 4px;
}

.faq-category {
  width: fit-content;
  color: var(--ks-blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.faq-item[open] .faq-question {
  color: var(--ks-blue-dark);
  background: var(--ks-blue-soft);
  border-bottom: 1px solid #dceeff;
}

.faq-item__toggle {
  position: relative;
  width: 24px;
  height: 24px;
  color: var(--ks-blue-dark);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  position: absolute;
  top: 11px;
  left: 5px;
  width: 14px;
  height: 2px;
  content: "";
  background: currentcolor;
  border-radius: 2px;
  transition: transform 160ms ease;
}

.faq-item__toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__toggle::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 14px;
}

.faq-answer p {
  margin: 0;
  color: var(--ks-muted);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-card {
  display: block;
  padding: 16px;
  color: inherit;
  background: var(--ks-white);
  border: 1px solid var(--ks-border);
  border-radius: 15px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.blog-card:hover {
  border-color: #b9ddfb;
  box-shadow: 0 10px 24px rgb(15 23 42 / 7%);
  transform: translateY(-1px);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--ks-muted);
  font-size: 12px;
}

.blog-meta__item {
  position: relative;
}

.blog-meta__item + .blog-meta__item::before {
  position: absolute;
  left: -9px;
  content: "\2022";
  color: #b8c2cf;
}

.blog-card__title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.blog-card__excerpt {
  margin: 8px 0 0;
  color: var(--ks-muted);
  font-size: 14px;
  line-height: 1.65;
}

.blog-card__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--ks-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.page-shell--article {
  width: min(100% - 32px, 720px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ks-blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.article-card {
  margin-top: 8px;
  padding: clamp(20px, 5vw, 34px);
}

.article-title {
  margin-top: 12px;
  font-size: clamp(26px, 7vw, 36px);
}

.article-excerpt {
  margin: 14px 0 0;
  color: var(--ks-muted);
  font-size: 16px;
  line-height: 1.7;
}

.article-content {
  margin-top: 24px;
  padding-top: 22px;
  color: var(--ks-text);
  border-top: 1px solid var(--ks-border);
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.notice,
.security-note {
  margin: 14px 0 0;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.notice {
  color: #8a3c00;
  background: #fff5eb;
  border: 1px solid #ffd9b8;
}

.security-note {
  color: var(--ks-muted);
  background: #f8fafc;
  border: 1px solid var(--ks-border);
}

.page-footer {
  padding: 0 16px 28px;
  color: var(--ks-muted);
  font-size: 12px;
  text-align: center;
}

.page-footer p {
  margin: 0;
}

@media (max-width: 420px) {
  .brand-header__inner,
  .page-shell {
    width: min(100% - 28px, 680px);
  }

  .brand-header__label {
    display: none;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero {
    align-items: flex-start;
    padding: 17px;
  }

  .content-card {
    padding: 14px;
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
