/* ==========================================================================
   AnyMan — Design tokens
   Palette:  --graphite (bg), --steel (surface), --steel-2 (surface alt),
             --ink (text), --mist (muted text), --heat-1 → --heat-2 (accent glow)
   Type:     Display — "Space Grotesk" (bold, technical, a little industrial)
             Body    — "Inter"
             Mono    — "IBM Plex Mono" (specs / model plates / codes)
   Signature: продукты показаны как "шильдики" (rating plate) — металлическая
              табличка с выгравированными характеристиками, как на настоящих
              бытовых приборах.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --graphite: #17181a;
  --graphite-2: #1e2023;
  --steel: #2a2d31;
  --steel-2: #33373c;
  --line: #3a3e44;
  --ink: #f2f1ee;
  --mist: #9a9fa6;
  --mist-dim: #6d7278;
  --heat-1: #ff8a3d;
  --heat-2: #ff3d3d;
  --ok: #52c98a;

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--graphite);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

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

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
h3{ font-size: 1.15rem; }
p{ margin:0 0 1em; color: var(--mist); }
.eyebrow{
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--heat-1);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--heat-1);
  display:inline-block;
}

/* ---------- header ---------- */
header.site{
  position: sticky; top:0; z-index: 50;
  background: rgba(23,24,26,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo{
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display:flex; align-items:center; gap:10px;
}
.logo .dot{
  width:10px; height:10px; border-radius:2px;
  background: linear-gradient(135deg, var(--heat-1), var(--heat-2));
}
.nav-links{ display:flex; gap: 28px; align-items:center; }
.nav-links a{
  font-size:.92rem; color: var(--mist);
  transition: color .15s;
}
.nav-links a:hover{ color: var(--ink); }
.nav-toggle{ display:none; background:none; border:none; color:var(--ink); font-size:1.5rem; cursor:pointer; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--body); font-weight:600; font-size:.92rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent;
  cursor:pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--heat-1), var(--heat-2));
  color: #1a1206;
  box-shadow: 0 8px 24px -8px rgba(255,80,50,.55);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px -6px rgba(255,80,50,.7); }
.btn-ghost{
  background: transparent; border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--mist); }
.btn-sm{ padding: 9px 16px; font-size: .82rem; }
.btn-block{ width:100%; }

/* ---------- hero ---------- */
.hero{
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(255,120,60,.14), transparent 60%),
    var(--graphite);
}
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }

/* ---------- rating plate (signature element) ---------- */
.plate{
  position: relative;
  background: linear-gradient(155deg, #2c2f33, #1c1e21 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  font-family: var(--mono);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.8);
}
.plate::before{
  content:"";
  position:absolute; inset: 8px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: calc(var(--radius) - 6px);
  pointer-events:none;
}
.plate-row{
  display:flex; justify-content:space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: .84rem;
}
.plate-row:last-child{ border-bottom:none; }
.plate-row .k{ color: var(--mist-dim); }
.plate-row .v{ color: var(--ink); text-align:right; }
.plate-head{
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom: 14px;
}
.plate-head .model{
  font-family: var(--display); font-size: 1.4rem; color:var(--ink);
}
.plate-head .badge{
  font-size:.68rem; letter-spacing:.08em; text-transform:uppercase;
  color: var(--heat-1); border:1px solid rgba(255,138,61,.4);
  padding: 4px 8px; border-radius: 999px;
}

/* ---------- product icon (SVG line-art, no photos) ---------- */
.icon-tile{
  aspect-ratio: 1/1;
  display:flex; align-items:center; justify-content:center;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18%;
}
.icon-tile svg{ width:100%; height:100%; }
.icon-tile img{ width:100%; height:100%; object-fit:contain; }

/* ---------- real product photo gallery ---------- */
.gallery{ display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.gallery figure{
  margin:0; background: var(--steel); border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden;
}
.gallery img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery figcaption{
  font-family: var(--mono); font-size:.74rem; color: var(--mist-dim);
  padding: 10px 12px; border-top:1px solid var(--line);
}
.gallery .tall{ grid-row: span 2; }
.gallery .tall img{ aspect-ratio: 3/4; }
.gallery .wide img{ aspect-ratio: 4/3; }
@media (max-width: 860px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gallery .tall{ grid-row: span 1; grid-column: span 2; }
  .gallery .tall img{ aspect-ratio: 16/9; }
}

/* ---------- cards / grid ---------- */
.section{ padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card{
  background: var(--graphite-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}
.card:hover{ border-color: var(--mist-dim); }

.product-card{
  display:flex; flex-direction:column; gap:18px;
  padding: 22px;
}
.product-card .meta{ display:flex; justify-content:space-between; align-items:baseline; }
.product-card .kind{ font-family:var(--mono); font-size:.72rem; color:var(--mist-dim); text-transform:uppercase; letter-spacing:.08em; }
.product-card h3{ margin:2px 0 6px; }
.swatches{ display:flex; gap:7px; margin: 4px 0 6px; }
.swatch{ width:16px; height:16px; border-radius:50%; border:1px solid rgba(255,255,255,.25); }

/* ---------- variant picker (product pages) ---------- */
.variant-block{ margin: 22px 0; }
.variant-label{ font-family: var(--mono); font-size:.75rem; color: var(--mist-dim); text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.chip-row{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  font-size:.86rem; padding: 9px 16px; border-radius: 999px;
  border:1px solid var(--line); background: var(--steel); color: var(--mist);
  cursor:pointer; transition: all .15s;
}
.chip.active{ border-color: var(--heat-1); color: var(--ink); background: var(--steel-2); box-shadow: 0 0 0 1px var(--heat-1) inset; }
.color-chip{ display:inline-flex; align-items:center; gap:8px; }
.color-dot{ width:14px; height:14px; border-radius:50%; border:1px solid rgba(255,255,255,.3); }

/* ---------- steps / instructions ---------- */
.steps{ counter-reset: step; display:flex; flex-direction:column; gap:0; }
.step{
  display:flex; gap:20px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child{ border-bottom:none; }
.step-num{
  font-family: var(--mono); font-size:.85rem; color: var(--heat-1);
  min-width: 34px;
}
.step-num::before{ counter-increment: step; content: counter(step, decimal-leading-zero); }

/* ---------- video ---------- */
.video-frame{
  aspect-ratio: 16/9; border-radius: var(--radius); overflow:hidden;
  border:1px solid var(--line); background: var(--steel);
}
.video-frame iframe{ width:100%; height:100%; border:0; }

/* ---------- table ---------- */
table.specs{ width:100%; border-collapse: collapse; font-size:.92rem; }
table.specs td{ padding: 12px 4px; border-bottom: 1px solid var(--line); }
table.specs td:first-child{ color: var(--mist-dim); font-family: var(--mono); font-size:.82rem; width: 46%; }

/* ---------- callout ---------- */
.callout{
  border-radius: var(--radius); border:1px solid var(--line);
  padding: 22px 24px; display:flex; gap:16px; align-items:flex-start;
  background: var(--graphite-2);
}
.callout.warn{ border-color: rgba(255,138,61,.35); }
.callout .ic{ font-size:1.3rem; line-height:1; }

/* ---------- faq ---------- */
details.faq{ border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary{ cursor:pointer; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; }
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{ content:"+"; font-family:var(--mono); color:var(--heat-1); font-size:1.2rem; }
details.faq[open] summary::after{ content:"–"; }
details.faq p{ margin-top: 12px; }

/* ---------- footer ---------- */
footer.site{
  padding: 46px 0 40px;
  color: var(--mist-dim);
  font-size:.86rem;
}
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }

/* ---------- breadcrumb ---------- */
.crumb{ font-family: var(--mono); font-size:.78rem; color: var(--mist-dim); margin-bottom: 18px; }
.crumb a{ color: var(--mist); }
.crumb a:hover{ color: var(--ink); }

/* ---------- placeholder marker (for you to replace real content) ---------- */
.todo{
  font-family: var(--mono); font-size:.72rem; color:#1a1206;
  background: repeating-linear-gradient(135deg, var(--heat-1), var(--heat-1) 6px, var(--heat-2) 6px, var(--heat-2) 12px);
  padding: 3px 8px; border-radius: 5px; display:inline-block; margin-bottom:8px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .nav-links{
    position:fixed; inset: 62px 0 0 0; background: var(--graphite);
    flex-direction:column; padding: 24px; gap: 18px;
    transform: translateX(100%); transition: transform .2s;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display:block; }
  .grid-3{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 40px; }
  .section{ padding: 52px 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}

/* keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible, .chip:focus-visible{
  outline: 2px solid var(--heat-1); outline-offset: 2px;
}
