/* Миктера · «Объём»: основа — токены, типографика, кнопки, шапка, подвал, формы, появление. */
:root {
  --orange: #f26b0f;
  --orange-hi: #ff8a3d;
  --orange-deep: #d9520a;
  --orange-ink: #a8430a;
  --ink: #151618;
  --graphite: #1d1f22;
  --graphite-2: #26292d;
  --graphite-3: #33373c;
  --paper: #f3eee7;
  --paper-2: #e9e2d7;
  --white: #fbf9f6;
  --steel: #9aa0a8;
  --light: #f4f1ec;
  --dim-d: rgba(244, 241, 236, 0.66);
  --dim-l: rgba(21, 22, 24, 0.66);
  --line-d: rgba(244, 241, 236, 0.14);
  --line-l: rgba(21, 22, 24, 0.14);
  --display: 'Wix Madefor Display', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Wix Madefor Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --pad: clamp(20px, 2.8vw, 40px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --r: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; overflow-x: clip; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--text); color: var(--ink); background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sec-dark :focus-visible, .foot :focus-visible { outline-color: var(--orange-hi); }
[data-tone='orange'] :focus-visible, .cta :focus-visible, .why-card :focus-visible { outline-color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 400; }
.wrap { width: min(var(--max), 100%); padding-inline: var(--pad); margin-inline: auto; position: relative; }

.skip { position: absolute; left: 8px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- кнопки ---------- */
.btn { --bh: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 500 1rem/1 var(--text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease); }
.btn .arr { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --bh: 44px; padding: 0 18px; font-size: 0.94rem; }
.btn-wide { width: 100%; }
.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: var(--orange-hi); box-shadow: 0 14px 30px -14px rgba(242, 107, 15, 0.9); }
.btn-ink { background: var(--ink); color: var(--light); }
.btn-ink:hover { background: #000; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--light); border-color: var(--ink); }
.sec-dark .btn-line:hover { background: var(--light); color: var(--ink); border-color: var(--light); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow span { transition: transform 0.35s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- объявление ---------- */
.announce { position: relative; z-index: 70; background: var(--ink); color: var(--light); font-size: 0.875rem; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 56px; text-align: center; }
.announce p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.announce a { color: var(--orange-hi); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 107, 15, 0.25); }
.announce-x { position: absolute; right: 8px; top: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--light); display: grid; place-items: center; border-radius: 50%; }
.announce-x:hover { background: rgba(255, 255, 255, 0.1); }
.announce[hidden] { display: none; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 60; height: 0; padding-inline: var(--pad); }
.hdr-in { position: relative; top: 12px; max-width: calc(var(--max) - 2 * 24px); margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid rgba(21, 22, 24, 0.22); color: var(--ink); background: rgba(255, 255, 255, 0); transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.hdr.scrolled .hdr-in { background: rgba(21, 22, 24, 0.9); border-color: rgba(255, 255, 255, 0.08); color: var(--light); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.18rem/1 var(--display); letter-spacing: -0.02em; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav > a, .nav-dd > a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; transition: background-color 0.25s; }
.nav > a:hover, .nav-dd > a:hover, .dd-btn:hover { background: rgba(127, 127, 127, 0.16); }
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a { padding-right: 4px; }
.dd-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.dd-btn svg { transition: transform 0.3s var(--ease); }
.dd-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); width: min(560px, 92vw); padding: 22px; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); border: 1px solid var(--line-l); animation: pop 0.35s var(--ease); }
.mega[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -8px); } }
.mega-t { color: var(--orange-ink); margin: 0 10px 10px; }
.mega ul { display: grid; }
.mega li a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 12px; text-decoration: none; font-size: 0.97rem; transition: background-color 0.2s, padding 0.3s var(--ease); }
.mega li a:hover { background: var(--paper); padding-left: 16px; }
.mega-all { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 10px 0; font-weight: 600; color: var(--orange-ink); text-underline-offset: 4px; }
.nav-m { display: none !important; }
.nav-foot { display: none; }
.mega-ic { flex: none; width: 30px; height: 30px; margin-right: 12px; border-radius: 8px; object-fit: cover; background: var(--paper); }
.mega-ic-a4 { object-fit: contain; padding: 3px; border: 1px solid var(--line-l); background: #fff; }
.fld input[aria-invalid='true'], .fld select[aria-invalid='true'], .fld textarea[aria-invalid='true'], .inp[aria-invalid='true'] { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.22); }
.check input[aria-invalid='true'] { outline: 2px solid #d92d20; outline-offset: 2px; border-radius: 4px; }
.hdr-act { display: flex; align-items: center; gap: 4px; }
.acct, .rfq-pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; font-size: 0.93rem; border-radius: 999px; white-space: nowrap; }
.acct:hover, .rfq-pill:hover { background: rgba(127, 127, 127, 0.16); }
.rfq-pill { font-weight: 600; font-variant-numeric: tabular-nums; }
.rfq-pill.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.btn-hdr { --bh: 46px; padding: 0 20px; font-size: 0.93rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(127, 127, 127, 0.18); flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- секции ---------- */
.sec { position: relative; padding-block: clamp(96px, 11vw, 168px); }
.sec-paper { background: var(--paper); color: var(--ink); }
.sec-dark { background: var(--graphite); color: var(--light); }
.sec-label { color: var(--orange-ink); margin-bottom: 28px; }
.sec-dark .sec-label { color: var(--orange-hi); }
.h2 { font: 500 clamp(2.6rem, 6.4vw, 6rem)/0.94 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-lead { max-width: 30rem; font-size: 1.125rem; line-height: 1.5; margin-top: 28px; color: var(--dim-l); }
.sec-head-row .sec-lead { margin-top: 0; }
.sec-dark .sec-lead { color: var(--dim-d); }
.sec-lead a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

/* ---------- аккордеон ---------- */
.acc { border-top: 1px solid var(--line-d); }
.sec-paper .acc, .cat-page .acc { border-color: var(--line-l); }
.acc-item { border-bottom: 1px solid var(--line-d); }
.sec-paper .acc-item { border-color: var(--line-l); }
.acc h3 { font: inherit; }
.acc-btn { width: 100%; display: grid; grid-template-columns: 72px 1fr 44px; align-items: center; gap: 16px; padding: 30px 0; min-height: 44px; border: 0; background: none; text-align: left; transition: color 0.3s; }
.acc-n { color: var(--orange-hi); }
.sec-paper .acc-n { color: var(--orange-ink); }
.acc-t { font: 500 clamp(1.5rem, 2.9vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.03em; transition: transform 0.45s var(--ease); }
.acc-btn:hover .acc-t { transform: translateX(10px); }
.acc-i { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.8; transition: transform 0.45s var(--ease), background-color 0.3s; }
.acc-i::before, .acc-i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.45s var(--ease); }
.acc-i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded='true'] .acc-i { transform: rotate(180deg); background: var(--orange); border-color: var(--orange); color: var(--ink); }
.acc-btn[aria-expanded='true'] .acc-i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.acc-p > .acc-pi { overflow: hidden; min-height: 0; }
.acc-item.open .acc-p { grid-template-rows: 1fr; }
.acc-pi > * { padding-left: 88px; }
.acc-item.open .acc-pi > :last-child { padding-bottom: 40px; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; max-width: 1080px; }
.ticks li { position: relative; padding-left: 26px; color: var(--dim-d); font-size: 1.02rem; }
.sec-paper .ticks li, .cat-page .ticks li { color: var(--dim-l); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.acc-more { margin-top: 24px; }
.acc-more a { color: var(--orange-hi); font-weight: 500; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- формы ---------- */
.form { background: var(--white); color: var(--ink); border-radius: var(--r); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 18px; align-content: start; }
.form-h { font: 500 2rem/1.05 var(--display); letter-spacing: -0.03em; margin-bottom: 6px; }
.fld { display: grid; gap: 8px; }
.fld label { font-size: 0.9rem; font-weight: 500; }
.fld input, .fld select, .fld textarea, .inp { width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(21, 22, 24, 0.2); background: #fff; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 107, 15, 0.22); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange-deep); flex: none; }
.check a { color: var(--orange-ink); font-weight: 600; text-underline-offset: 3px; }
.form-err { color: #b3261e; font-weight: 500; min-height: 1.2em; font-size: 0.95rem; }
.form-err:empty { min-height: 0; }
.form-ok { background: var(--paper); border-radius: 14px; padding: 14px 16px; font-weight: 500; }

/* ---------- подвал ---------- */
.foot { background: #0f1011; color: var(--light); padding-top: clamp(72px, 8vw, 112px); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand p { color: var(--dim-d); max-width: 26rem; margin-top: 20px; }
.foot-h { color: var(--orange-hi); margin-bottom: 16px; }
.foot ul { display: grid; gap: 2px; color: var(--dim-d); }
.foot ul a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--light); transition: color 0.2s; }
.foot ul a:hover { color: var(--orange-hi); }
.foot ul li { min-height: 40px; display: flex; align-items: center; }
.foot-mark { font: 600 clamp(5rem, 21vw, 19rem)/0.78 var(--display); letter-spacing: -0.06em; color: rgba(244, 241, 236, 0.055); text-align: center; margin: clamp(48px, 6vw, 96px) 0 0; padding-bottom: 0.06em; white-space: nowrap; user-select: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-d); padding-block: 20px 28px; color: var(--dim-d); font-size: 0.9rem; position: relative; }
.foot-bottom a { color: var(--dim-d); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }

/* ---------- cookie и уведомление ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(460px, calc(100% - 32px)); display: flex; gap: 18px; align-items: center; padding: 16px 16px 16px 22px; border-radius: 22px; background: rgba(21, 22, 24, 0.92); color: var(--light); font-size: 0.9rem; line-height: 1.45; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: rise 0.6s var(--ease) 0.6s backwards; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--orange-hi); }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 95; max-width: min(420px, calc(100% - 32px)); background: var(--orange); color: var(--ink); padding: 14px 20px; border-radius: 16px; font-weight: 500; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5); animation: rise 0.4s var(--ease); }
.toast[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- появление при прокрутке ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in, .js [data-reveal-group] > .in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .acct { display: none; }
  .nav > a, .nav-dd > a { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .burger { display: inline-flex; }
  .hdr-in { flex-wrap: wrap; border-radius: 28px; }
  .hdr-act { margin-left: auto; }
  .btn-hdr { display: none; }
  .nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 10px; margin: 0; }
  .hdr.menu-open .hdr-in { background: rgba(21, 22, 24, 0.95); color: var(--light); border-color: transparent; }
  .nav.open { display: flex; max-height: calc(100svh - 168px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-dd { flex-wrap: wrap; }
  .nav-dd > a { flex: 1; }
  .mega { position: static; transform: none; width: 100%; box-shadow: none; margin-top: 6px; animation: none; }
  .nav-m { display: inline-flex !important; }
  .nav-foot { display: grid; gap: 4px; position: sticky; bottom: 0; margin-top: 10px; padding: 14px 0 4px; border-top: 1px solid rgba(244, 241, 236, 0.16); background: rgb(21, 22, 24); }
  .nav-foot .btn { width: 100%; }
  .nav-tel { display: flex; align-items: center; justify-content: center; min-height: 48px; font: 600 1.1rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
}
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .acc-pi > * { padding-left: 0; }
  .acc-btn { grid-template-columns: 48px 1fr 44px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hdr-in { top: 8px; }
  .hdr-in { padding: 6px 6px 6px 12px; gap: 6px; }
  .brand span { font-size: 1.05rem; }
  .rfq-pill { padding: 0 8px; font-size: 0.86rem; }
  .announce { padding: 0 48px 0 16px; font-size: 0.82rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .acc-btn { padding: 22px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}
