:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #5d636b;
  --line: #e3e1da;
  --accent: #2f5d50;
  --accent-soft: #e4ece8;
  --maxw: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1112;
    --surface: #16191b;
    --ink: #eceae4;
    --muted: #9aa1a8;
    --line: #262a2d;
    --accent: #7fb8a6;
    --accent-soft: #18241f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
nav { display: flex; gap: 22px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 14ch;
}
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46ch; margin: 0 0 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 500; font-size: 16px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn span { transition: transform .15s ease; }
.btn:hover span { transform: translateX(3px); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 40px 0 96px; }
.principles article { padding: 32px 28px 8px 0; }
.principles article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.principles .num { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.principles h2 { font-size: 19px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact { padding: 72px 0 96px; }
.contact h1 { max-width: none; }
.mail-card {
  margin-top: 8px; padding: 32px; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.mail-card .label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mail-card a.mail {
  display: block; margin: 8px 0 20px;
  font-size: clamp(20px, 3.6vw, 28px); font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; word-break: break-all;
}
.mail-card a.mail:hover { color: var(--accent); }
.mail-card ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.mail-card li { display: flex; gap: 10px; padding: 4px 0; }
.mail-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: none; }

/* Form */
.form-card {
  max-width: 680px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  display: grid; gap: 20px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 46px;
}
textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.note { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-card .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aside { margin: 24px 0 0; color: var(--muted); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero, .contact { padding-top: 40px; }
  .principles { grid-template-columns: 1fr; margin-bottom: 64px; }
  .principles article, .principles article + article { padding: 24px 0; border-left: 0; }
  .principles article + article { border-top: 1px solid var(--line); }
  .mail-card { padding: 24px; }
  .form-card { padding: 24px 20px; }
  .row { grid-template-columns: 1fr; }
}

/* ALTCHA widget */
.captcha {
  --altcha-color-base: var(--bg);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--accent);
  --altcha-color-success: var(--accent);
  --altcha-border-color: var(--line);
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
}

/* Domain sale page */
.sale { padding-bottom: 40px; }
h1.domain {
  max-width: none;
  font-size: clamp(30px, 6vw, 64px);
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 36px;
}
.price-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.price { display: grid; gap: 2px; padding-right: 28px; border-right: 1px solid var(--line); }
.price .label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.price .amount { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
.price .amount-sm { font-size: clamp(24px, 3vw, 30px); }
.section-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500; font-size: clamp(26px, 4vw, 40px); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 28px; overflow-wrap: anywhere;
}
.contact#offer { padding-top: 0; }
footer span { max-width: 70ch; }
@media (max-width: 760px) {
  .price { border-right: 0; padding-right: 0; }
}
