:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #637083;
  --line: #dbe3ee;
  --primary: #1463ff;
  --primary-dark: #0e48c6;
  --accent: #16a36f;
  --soft-blue: #eaf1ff;
  --soft-green: #e8f7f1;
  --shadow: 0 20px 55px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
}

a {
  color: inherit;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

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

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(20, 99, 255, 0.2);
}

.nav-button:hover,
.button:hover {
  background: var(--primary-dark);
}

.breadcrumb {
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  padding: 44px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.trust-note {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-card p {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-bottom: 56px;
}

.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
  padding: 32px;
}

.article h2 {
  margin: 32px 0 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin: 24px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.article p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.article li {
  margin-bottom: 8px;
}

.note {
  margin: 24px 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft-green);
  color: #0a5f40;
  font-weight: 700;
}

.sidebar {
  display: grid;
  gap: 16px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
}

.side-card h2,
.side-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.side-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

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

.link-list a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.84);
}

.cta-box .button {
  width: 100%;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.footer-social a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 32, 51, 0.62);
}

.legal-modal[hidden] {
  display: none;
}

.legal-dialog {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.legal-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.legal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.legal-content {
  padding: 22px;
}

.legal-content h3 {
  margin: 20px 0 8px;
  font-size: 19px;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 12px;
  color: var(--muted);
}

.legal-content a {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero-grid,
  .content {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-button,
  .button {
    width: 100%;
  }

  .article {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
