/* ================= RESET ================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* ================= VARIABLES ================= */
:root {
  --bg: #ffffff;
  --panel: #f6f6f6;
  --panel-alt: #ededed;
  --text: #111111;
  --muted: #555555;
  --line: #dddddd;
  --btn: #e0e0e0;
  --btn-hover: #cfcfcf;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* ================= BASE ================= */
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
}

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

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

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

.nav a:hover {
  background: var(--panel);
  color: var(--text);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  padding: 90px 0 70px;
}

.hero-inner {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.lead {
  max-width: 60ch;
  margin: 0 0 20px;
  color: var(--muted);
}

/* ================= BUTTONS ================= */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--btn);
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

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

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

.btn.primary {
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
}

/* ================= BADGES ================= */
.badges {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}

/* ================= CARDS / GRID ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
}

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

/* ================= SPLIT ================= */
.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: center;
}

.placeholder {
  background: var(--panel-alt);
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ================= LIST ================= */
.list {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
}

/* ================= FORM ================= */
.form {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

input, textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

input:focus, textarea:focus {
  outline: none;
  border-color: #999;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.form-hint {
  color: var(--muted);
  font-size: 14px;
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
}

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

.backtotop {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }

  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 4%;
    top: 64px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
  }
}
