@import url(../fonts/fonts.css);

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #fbf9f4;
  --ink: #1b1915;
  --ink-2: #4a463e;
  --ink-3: #8a8478;
  --line: #d9d2c3;
  --pla: #2f8f5b;
  --petg: #2a6fdb;
  --abs: #d9622b;
  --asa: #b8452a;
  --tpu: #8b4fc9;
  --no: #b3261e;
  --hl: #ffd84d;
  --r: 18px;
  --f-head: 'Unbounded', 'Arial Black', sans-serif;
  --f-body: 'Onest', -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--f-mono); font-feature-settings: 'zero' 0; }

/* ---------- верхняя навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 239, 230, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 52px; }
.nav__logo { font: 700 13px/1 var(--f-head); letter-spacing: .02em; white-space: nowrap; text-decoration: none; }
.nav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { flex: none; text-decoration: none; font-size: 14px; padding: 7px 11px; border-radius: 99px; color: var(--ink-2); }
.nav__links a:hover, .nav__links a.is-on { background: var(--ink); color: var(--paper); }

/* ---------- первый экран ---------- */
.hero { padding: 40px 0 28px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; }
.eyebrow { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.hero h1 {
  font: 800 clamp(44px, 8.6vw, 104px)/.95 var(--f-head);
  letter-spacing: -.035em;
  margin: 0 0 22px;
}
.hero h1 .layers {
  background: repeating-linear-gradient(180deg, var(--ink) 0 5px, #4a463e 5px 6px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 0 0 26px; }

.printer {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r); padding: 20px 20px 18px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px;
  max-width: 620px;
}
.printer__title { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid #3a372f; padding-bottom: 12px; }
.printer__title b { font: 700 16px/1.2 var(--f-head); }
.printer__title span { font: 400 12px/1.2 var(--f-mono); color: #a39d90; }
.printer dt { font: 400 12px/1.2 var(--f-mono); color: #a39d90; margin-bottom: 4px; }
.printer dd { margin: 0; font: 600 18px/1.25 var(--f-body); }
.printer dd small { display: block; font-weight: 400; font-size: 13px; color: #c9c2b4; margin-top: 2px; }

.vase-art { width: 100%; max-width: 360px; justify-self: center; }
.vase-art svg { width: 100%; height: auto; overflow: visible; }

/* ---------- секции ---------- */
section { padding: 56px 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; margin-bottom: 26px; }
.sec-num { font: 500 13px/1 var(--f-mono); color: var(--ink-3); grid-row: span 2; padding-top: 10px; }
.sec-head h2 { font: 700 clamp(28px, 4.6vw, 46px)/1.05 var(--f-head); letter-spacing: -.025em; margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 40em; }
.band { background: var(--paper-2); }

/* ---------- подбор ---------- */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 15px/1.2 var(--f-body); color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  padding: 11px 15px; border-radius: 99px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.answer {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; min-height: 230px; position: relative; overflow: hidden;
}
.answer::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c, var(--ink)); }
.answer__mat { font: 800 40px/1 var(--f-head); letter-spacing: -.02em; color: var(--c, var(--ink)); margin: 0 0 4px; }
.answer__alt { font: 400 13px/1.3 var(--f-mono); color: var(--ink-3); margin: 0 0 14px; }
.answer p { margin: 0 0 10px; }
.answer .tip { font-size: 15px; color: var(--ink-2); }
.answer .price-line { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; }
.answer .price-line b { font-family: var(--f-mono); font-weight: 600; }
.answer.flash { animation: flash .5s ease; }
@keyframes flash { from { transform: translateY(6px); opacity: .3; } to { transform: none; opacity: 1; } }

/* ---------- карточки пластиков ---------- */
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mat {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.mat__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mat__name { font: 800 34px/1 var(--f-head); letter-spacing: -.02em; color: var(--c); margin: 0; }
.mat__full { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.mat__spool { width: 54px; height: 54px; flex: none; }
.mat__one { font-weight: 600; font-size: 17px; line-height: 1.35; margin: 0; }
.mat__temps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mat__temps div { background: var(--paper); border-radius: 10px; padding: 8px 10px; }
.mat__temps dt { font: 400 11px/1.2 var(--f-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.mat__temps dd { margin: 3px 0 0; font: 600 15px/1.2 var(--f-mono); }
.bars { display: grid; gap: 7px; margin: 2px 0; }
.bar { display: grid; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.bar__track { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.is-visible .bar__fill { width: var(--w); }
.bar__v { font: 500 12px/1 var(--f-mono); color: var(--ink-3); text-align: right; }
.mat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.mat li { padding-left: 20px; position: relative; }
.mat li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.mat li.y::before { content: '+'; color: var(--pla); }
.mat li.n::before { content: '–'; color: var(--no); }
.mat__ghost { font-size: 14px; background: #fff6d6; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.mat__ghost b { font-weight: 600; }
.mat__price { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.mat__price .from { font: 600 24px/1.1 var(--f-mono); white-space: nowrap; }
.mat__price .usual { font: 400 13px/1.3 var(--f-mono); color: var(--ink-3); margin-top: 3px; }
.mat__price .lbl { font-size: 13px; color: var(--ink-3); }
.mat__price a { font-size: 14px; }

.mat--nope { background: rgba(255, 255, 255, .35); border: 1.5px dashed #d8a29e; gap: 14px; }
.mat--nope h3 { font: 700 22px/1.15 var(--f-head); margin: 0; color: var(--no); }
.mat--nope .nope__row h4 { margin: 0 0 4px; font: 700 16px/1.2 var(--f-head); color: var(--ink); }
.mat--nope .nope__row p { margin: 0; font-size: 15px; color: var(--ink-2); }
.mat--nope .nope__row .mono { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 4px; }
.mat--nope .nope__row + .nope__row { border-top: 1px dashed #e2bdb9; padding-top: 14px; }
.nope { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 22px; }
.nope__item { border: 1.5px dashed #d8a29e; border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, .35); }
.nope__item h4 { margin: 0 0 6px; font: 700 17px/1.2 var(--f-head); color: var(--no); }
.nope__item p { margin: 0; font-size: 15px; color: var(--ink-2); }
.nope__item .mono { font-size: 13px; color: var(--ink-3); display: block; margin-top: 8px; }

/* ---------- сравнение ---------- */
.cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
.cmp table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 700 15px/1 var(--f-head); background: var(--paper-2); }
.cmp thead th span { color: var(--c); }
.cmp td:first-child { color: var(--ink-2); white-space: nowrap; position: sticky; left: 0; background: var(--card); z-index: 1; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--c); }
.cmp td.mono { white-space: nowrap; }
.cmp small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 3px; font-family: var(--f-mono); }

/* ---------- внешний вид ---------- */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.look { background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.look__img { aspect-ratio: 1; background: #fff; position: relative; }
.look__img img { width: 100%; height: 100%; object-fit: cover; }
.look__tag { position: absolute; left: 10px; top: 10px; background: rgba(27, 25, 21, .82); color: #fff; font: 500 12px/1 var(--f-mono); padding: 6px 8px; border-radius: 8px; }
.look__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.look h3 { margin: 0; font: 700 19px/1.15 var(--f-head); letter-spacing: -.01em; }
.look p { margin: 0; font-size: 15px; color: var(--ink-2); }
.look .warn { font-size: 14px; color: #8a4b12; }
.look__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.look__foot b { font: 600 17px/1 var(--f-mono); }

/* ---------- скорость ---------- */
.layers-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.ld { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.ld__pic { height: 120px; border-radius: 12px; margin-bottom: 12px; background: var(--paper); position: relative; overflow: hidden; }
.ld__pic::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 0; top: 14%; border-radius: 40% 40% 8px 8px / 30% 30% 8px 8px; background: repeating-linear-gradient(0deg, #3f8f64 0 calc(var(--h) - 1px), #2a6b47 calc(var(--h) - 1px) var(--h)); }
.ld h3 { margin: 0 0 4px; font: 700 18px/1.2 var(--f-head); }
.ld .mono { font-size: 13px; color: var(--ink-3); }
.ld p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }

.runs { display: grid; gap: 10px; }
.run { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.run h4 { margin: 0; font-size: 16px; font-weight: 600; }
.run .meta { font: 400 13px/1.4 var(--f-mono); color: var(--ink-3); }
.run .cost { grid-row: span 2; text-align: right; font: 600 20px/1.1 var(--f-mono); align-self: center; }
.run .cost small { display: block; font: 400 12px/1.2 var(--f-body); color: var(--ink-3); }
.run__bar { grid-column: 1 / -1; height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.run__bar i { display: block; height: 100%; background: var(--pla); border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.is-visible .run__bar i { width: var(--w); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; margin-top: 26px; }
.fact { border-left: 3px solid var(--ink); padding: 4px 0 4px 14px; }
.fact b { display: block; font: 700 16px/1.25 var(--f-head); margin-bottom: 4px; }
.fact span { font-size: 15px; color: var(--ink-2); }

/* ---------- модельки ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.model { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.model:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(27, 25, 21, .1); }
.model__img { aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.model__img img { width: 100%; height: 100%; object-fit: cover; }
.model__body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model__cat { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.model__title { font-size: 14px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.model__price { font: 600 19px/1 var(--f-mono); margin-top: auto; padding-top: 6px; }
.model__self { font-size: 13px; color: var(--pla); line-height: 1.35; }

.cats { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 26px; overflow: hidden; }
.cats__head, .cat { display: grid; grid-template-columns: 1fr 150px 120px; gap: 4px 14px; padding: 11px 16px; align-items: baseline; }
.cats__head { font: 500 11.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: var(--paper-2); }
.cat + .cat { border-top: 1px solid var(--line); }
.cat h4 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.cat h4 small { display: block; font: 400 12.5px/1.35 var(--f-mono); color: var(--ink-3); margin-top: 2px; }
.cat .oz, .cat .me { font: 500 14.5px/1.2 var(--f-mono); white-space: nowrap; text-align: right; }
.cat .me { color: var(--pla); font-weight: 600; }

/* ---------- источники моделей ---------- */
.srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.src { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: border-color .15s; }
.src:hover { border-color: var(--ink); }
.src b { font: 700 18px/1.2 var(--f-head); display: block; margin-bottom: 4px; }
.src span { font-size: 15px; color: var(--ink-2); }

/* ---------- купить ---------- */
.buy { display: grid; gap: 12px; }
.buy__item { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-decoration: none; }
.buy__item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: #fff; }
.buy__item h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.buy__item p { margin: 0; font-size: 14px; color: var(--ink-2); }
.buy__item .p { font: 600 18px/1 var(--f-mono); white-space: nowrap; }

/* ---------- шпаргалка ---------- */
.cheat table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; }
.cheat th, .cheat td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cheat thead th { font: 500 12px/1.2 var(--f-mono); background: var(--paper-2); text-transform: uppercase; color: var(--ink-3); letter-spacing: .04em; }
.cheat td:first-child { font: 700 15px/1 var(--f-head); color: var(--c); }
.cheat td { font-family: var(--f-mono); font-size: 14px; }
.cheat td.t { font-family: var(--f-body); font-size: 14px; color: var(--ink-2); }

footer { padding: 36px 0 60px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar__fill, .run__bar i { transition: none; }
}

/* ---------- телефон ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding: 26px 0 10px; }
  .hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .vase-art { grid-row: 1; max-width: 150px; justify-self: start; margin: -6px 0 -4px -8px; }
  .picker { grid-template-columns: 1fr; }
  .chips .chip { font-size: 14.5px; padding: 10px 13px; }
  .layers-demo { grid-template-columns: 1fr; }
  .ld { display: grid; grid-template-columns: 96px 1fr; gap: 0 14px; align-items: center; }
  .ld__pic { height: 96px; margin: 0; grid-row: span 3; }
  .ld p { margin-top: 4px; }
  section { padding: 44px 0; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-num { grid-row: auto; padding: 0; }
  .mats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .models { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; padding: 9px 13px; font-size: 14px; }
  .cats__head, .cat { grid-template-columns: 1fr auto; padding: 10px 14px; }
  .cats__head span:nth-child(2) { display: none; }
  .cat .oz { grid-column: 1; grid-row: 2; text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 400; }
  .cat .oz::before { content: 'Ozon '; }
  .cat .me { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .cat h4 small { display: none; }
  .model__body { padding: 10px 11px 12px; }
  .model__price { font-size: 17px; }
  .looks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .look__body { padding: 12px; }
  .look h3 { font-size: 16px; }
  .look p { font-size: 14px; }
  .buy__item { grid-template-columns: 64px 1fr; }
  .buy__item img { width: 64px; height: 64px; }
  .buy__item .p { grid-column: 2; }
  .printer dd { font-size: 16px; }
}
@media (max-width: 400px) {
  .bar { grid-template-columns: 100px 1fr 26px; font-size: 13.5px; }
  .look p { font-size: 13.5px; }
  .look .warn { font-size: 13px; }
}
