:root {
  --bg: #fffdf5;
  --panel: #ffffff;
  --ink: #202124;
  --muted: #62666d;
  --line: #e9dfc8;
  --accent: #f5be24;
  --accent-strong: #d99100;
  --green: #1f8a5b;
  --blue: #3468c8;
  --shadow: 0 18px 50px rgba(80, 61, 20, 0.11);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.footer-links a,
.related a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.related a:hover {
  color: var(--accent-strong);
}

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

.hero {
  padding: 64px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8dc;
  color: #6c4c00;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 21px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.content-block {
  max-width: 820px;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.hero-visual {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.visual-card {
  min-height: 210px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f2;
}

.visual-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.visual-chip {
  min-height: 86px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f2;
  border: 1px solid var(--line);
}

.visual-card img,
.visual-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

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

.card,
.prompt-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(80, 61, 20, 0.05);
}

.card p,
.prompt-card p,
.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 12px;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.step::before {
  content: counter(steps);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 900;
}

.cta-band {
  padding: 28px;
  border-radius: 8px;
  background: #202124;
  color: white;
}

.cta-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
}

.cta-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.prompt-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-groups a {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-decoration: none;
}

.prompt-groups a:hover {
  color: var(--accent-strong);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.info-table th {
  background: #fff8dc;
}

.info-table tr:last-child td {
  border-bottom: 0;
}

.prompt-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.prompt-text {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f7f2;
  color: #303030;
  font-size: 14px;
}

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

.prompt-copy {
  cursor: pointer;
}

.copy-status {
  min-height: 22px;
  color: var(--green);
  font-size: 14px;
}

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

.intent-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

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

.site-footer {
  margin-top: 44px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 620px);
  gap: 24px;
  align-items: start;
}

.footer-grid > div {
  min-width: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
}

.footer-note {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: min(420px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: #fff8dc;
  }

  .hero-grid,
  .grid,
  .grid.two,
  .intent-grid,
  .prompt-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .prompt-groups a {
    flex: 1 1 150px;
  }

  .prompt-actions .btn {
    width: 100%;
  }

  .cookie-banner {
    position: static;
    width: auto;
    margin: 16px;
  }
}
