:root {
  --bg: #f4f7fb;
  --bg-2: #f8fafd;
  --text: #111827;
  --muted: #5b6475;
  --line: #dce3f1;
  --panel: #fff;
  --panel-2: #eef4ff;
  --accent: #3157d5;
  --accent-strong: #2447b8;
  --accent-2: #0ea5e9;
  --violet: #6d5dfc;
  --graphite: #172033;
  --shadow: 0 20px 46px rgba(36, 71, 184, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 253, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  color: var(--graphite);
}
.brand-text { line-height: 1.05; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--graphite), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.brand-mark:before {
  content: "";
  position: absolute;
  width: 19px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 3px;
  transform: translateY(2px);
}
.brand-mark:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aee6ff;
  right: 8px;
  top: 8px;
}
.brand-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  left: 13px;
  bottom: 10px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.nav-links a:hover { color: var(--accent-strong); background: var(--panel-2); }
.nav-links a.is-active { color: #fff; background: var(--graphite); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 46%, #f7f9fd 100%);
  border-bottom: 1px solid var(--line);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(49, 87, 213, .08) 1px, transparent 1px), linear-gradient(180deg, rgba(49, 87, 213, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .76fr);
  gap: 36px;
  align-items: center;
}
.legal-hero { padding: 48px 0 30px; }
.hero-no-visual .hero-grid { grid-template-columns: minmax(0, 860px); }
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid #c9d6fb;
  background: #eef3ff;
  color: var(--accent-strong);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 850;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  margin: 16px 0 18px;
  letter-spacing: 0;
}
.legal-hero h1 { font-size: clamp(34px, 4vw, 52px); }
.lead { font-size: 19px; color: #394458; max-width: 760px; margin: 0 0 24px; }
.hero-actions, .cta-row, .prompt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  font: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: #fff; color: var(--graphite); border-color: var(--line); }
.btn-secondary:hover { border-color: #b8c7eb; background: #f7f9ff; }
.visual-panel {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.task-grid, .card-grid, .prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card, .task-card, .prompt-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.task-card {
  min-height: 196px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.task-card h3, .card h3, .prompt-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.task-card p, .card p {
  margin: 0;
  color: var(--muted);
}

.task-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: var(--accent);
  background: #eee7ff;
  font-weight: 850;
}

.legal-layout {
  max-width: 900px;
}

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

.prompt-card {
  display: flex;
  flex-direction: column;
}

.prompt-text {
  flex: 1;
  min-height: 172px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #303748;
}

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

.copy-status {
  min-height: 20px;
  color: var(--accent);
  font-weight: 750;
}
.hero-visual {
  margin: 0;
  display: grid;
  gap: 12px;
}
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #cdd8f6;
  background: #f7f9ff;
}
.hero-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--graphite);
}
.hero-visual figcaption strong { font-size: 16px; }
.hero-visual-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-visual-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 7px;
  padding: 4px 8px;
  background: var(--panel-2);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
}
section { padding: 52px 0; }
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head h2, .content-block h2, .article-body h2, .cta-band h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: 0;
}
.section-head p, .content-block p, .article-body p, .cta-band p { color: var(--muted); margin: 0 0 14px; }
.task-grid, .prompt-grid, .grid { display: grid; gap: 16px; }
.task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .prompt-card, .faq-item, .content-block, .cta-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
}
.card { text-decoration: none; display: block; min-height: 158px; box-shadow: 0 1px 0 rgba(17, 24, 39, .03); }
.prompt-card { display: flex; flex-direction: column; }
.card:hover { border-color: #b7c6ef; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(36, 71, 184, .10); }
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 21px;
  font-weight: 900;
}
.card h3, .prompt-card h3, .faq-item h3 { margin: 10px 0 8px; font-size: 19px; line-height: 1.25; }
.card p, .prompt-card p, .faq-item p { margin: 0; color: var(--muted); }
.article-body { max-width: 860px; }
.article-body ul, .content-block ul { padding-left: 22px; }
.prompt-text {
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  color: #243047;
  min-height: 156px;
  flex: 1;
}
.prompt-actions {
  margin-top: 16px;
}
.copy-status { min-width: 120px; color: var(--accent-strong); font-weight: 750; }
.cta-band { background: linear-gradient(135deg, #fff, #eef4ff); border-color: #cdd8f6; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; background: #fff; }
.related a:hover { border-color: #b7c6ef; background: #f7f9ff; }
.site-footer { background: var(--graphite); color: #eef4ff; padding: 38px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.footer-note { color: #c7d2e6; font-size: 14px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #fff; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-note { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .site-header.is-menu-open .nav-links { display: flex; }
  .hero-grid, .hero-no-visual .hero-grid, .footer-grid, .task-grid, .card-grid, .prompt-grid, .grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .visual-panel { order: -1; }
  .hero-no-visual .visual-panel { display: none; }
  .btn { width: 100%; }
  .prompt-actions .btn { width: auto; }
  .container { width: min(100% - 24px, 1120px); }
}
