/* ============================================================
   huyb store — design system
   «quiet luxury / editorial terminal»: IBM Plex Mono, тёплая
   графитовая палитра, один приглушённый латунный акцент,
   волосяные линии, нумерованные секции. Без неона и градиентов.
   ============================================================ */

/* латиница + цифры + пунктуация + стрелки */
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* кириллица */
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-cyr-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-cyr-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-cyr-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-cyr-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --bg:        #0c0c0d;
  --bg-soft:   #111112;
  --surface:   #141414;
  --surface-2: #191919;
  --line:      #262624;
  --line-soft: #1d1d1c;
  --fg:        #e9e6df;   /* тёплый бумажный белый */
  --dim:       #9a958c;
  --faint:     #615d56;
  --brass:     #c2a06a;   /* единственный акцент, очень дозированно */
  --brass-dim: #8a7448;
  --maxw: 880px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* едва уловимое тёплое свечение сверху — не неон, а глубина */
  background-image: radial-gradient(120% 70% at 50% -10%, #131311 0%, var(--bg) 60%);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: #0c0c0d; }

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

/* ── eyebrow / метки ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

/* ── header ── */
header.site {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12,12,13,.72);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  height: 64px; display: flex; align-items: center; gap: 18px;
}
.wordmark {
  font-weight: 500; font-size: 15px; letter-spacing: 0.14em; color: var(--fg);
  text-transform: lowercase;
}
.wordmark .dot { color: var(--brass); margin: 0 1px; }
.wordmark .sub { color: var(--faint); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; margin-left: 2px; }
header.site nav { margin-left: auto; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
header.site nav a { color: var(--dim); transition: color .2s var(--ease); }
header.site nav a:hover { color: var(--fg); }
.crumb-sep { color: var(--faint); padding: 0 8px; }

/* ── общие секции ── */
main { padding: 72px 0 96px; }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule.flex { flex: 1; }

h1.display {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
}
.lede { color: var(--dim); max-width: 56ch; margin-top: 22px; font-size: 15px; }

/* ── каталог карточек ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.card {
  background: var(--bg);
  padding: 28px 26px 24px;
  display: flex; flex-direction: column; min-height: 188px;
  transition: background .25s var(--ease);
  position: relative;
}
.card:hover { background: var(--surface); }
.card .idx { font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 4px; }
.card .by { font-size: 12px; letter-spacing: 0.04em; color: var(--dim); }
.card .desc { font-size: 13.5px; color: var(--dim); margin-top: 14px; flex: 1; }
.card .meta { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.card .price { color: var(--fg); }
.card .arrow { margin-left: auto; color: var(--faint); transition: transform .25s var(--ease), color .25s var(--ease); }
.card:hover .arrow { color: var(--brass); transform: translateX(4px); }

/* ── панели ── */
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%); padding: 32px; }
.panel + .panel { margin-top: 1px; }
.panel h3.title { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.panel .price-tag { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.panel .price-note { color: var(--faint); font-size: 12px; letter-spacing: 0.06em; }

/* списки возможностей */
ul.features { list-style: none; margin: 18px 0 0; }
ul.features li { padding: 7px 0 7px 28px; position: relative; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line-soft); }
ul.features li:first-child { border-top: 0; }
ul.features li::before { content: "—"; position: absolute; left: 2px; color: var(--faint); }
ul.features li.pro { color: var(--fg); }
ul.features li.pro::before { content: "✦"; color: var(--brass); font-size: 12px; }

/* метаданные с точечными лидерами */
.kv { display: flex; align-items: baseline; font-size: 13px; color: var(--dim); margin: 6px 0; }
.kv .k { color: var(--faint); letter-spacing: 0.04em; }
.kv .dots { flex: 1; border-bottom: 1px dotted var(--line); margin: 0 8px; transform: translateY(-3px); }
.kv .v { color: var(--fg); }

/* ── кнопки ── */
.btnrow { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.btn {
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--fg); background: var(--fg); color: #0c0c0d;
  padding: 14px 26px; cursor: pointer; transition: all .2s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #0c0c0d; }
.btn.brass:hover { background: transparent; color: var(--brass); }

input[type=email], input[type=text] {
  font-family: inherit; font-size: 14px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line);
  padding: 13px 16px; width: 100%; max-width: 380px; transition: border-color .2s var(--ease);
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: var(--brass-dim); }

.note { font-size: 12px; color: var(--faint); margin-top: 14px; line-height: 1.7; }
.err { color: #d98a6a; font-size: 13px; margin-top: 12px; }
.kbd { border: 1px solid var(--line); padding: 1px 7px; font-size: 12px; color: var(--fg); }

/* hero-полотно (анимированные точки в стиле продукта, не неон) */
.hero { position: relative; border: 1px solid var(--line); background: #0a0a0b; overflow: hidden; aspect-ratio: 21/9; margin-top: 36px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .tag { position: absolute; left: 18px; bottom: 14px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); z-index: 2; }

/* ── разработчик ── */
.devhead { display: flex; gap: 24px; align-items: center; margin-bottom: 8px; }
.monogram {
  width: 88px; height: 88px; flex: none; border: 1px solid var(--brass-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 600; color: var(--brass); background: var(--surface);
  letter-spacing: 0;
}
.devhead .nm { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.devhead .real { color: var(--dim); font-size: 13px; letter-spacing: 0.04em; margin-top: 4px; }

/* ── footer ── */
footer.site { border-top: 1px solid var(--line-soft); margin-top: 96px; }
footer.site .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
footer.site a { color: var(--dim); }
footer.site a:hover { color: var(--fg); }

.keybox {
  border: 1px solid var(--brass-dim); background: var(--surface);
  padding: 16px 18px; font-size: 13px; color: var(--brass); word-break: break-all; margin: 16px 0; line-height: 1.5;
}

details { border-top: 1px solid var(--line-soft); padding: 14px 0; }
details summary { cursor: pointer; font-size: 13px; color: var(--dim); list-style: none; display: flex; gap: 10px; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; color: var(--brass); font-weight: 600; }
details[open] summary::before { content: "−"; }
details summary:hover { color: var(--fg); }
details .body { color: var(--faint); font-size: 13px; margin-top: 12px; padding-left: 20px; line-height: 1.75; }

@media (max-width: 560px) {
  main { padding: 48px 0 64px; }
  .wrap { padding: 0 20px; }
  .panel { padding: 24px 20px; }
  .grid { grid-template-columns: 1fr; }
}
