/* Сайт chipcontact.ru. Один файл стилей на все страницы. */

:root {
  --ink: #14161a;
  --ink-2: #1e2127;
  --ink-3: #2a2e36;
  --accent: #f05243;
  --accent-dark: #d93f31;
  --bg: #ffffff;
  --tint: #f4f5f7;
  --line: #e2e4e9;
  --text: #1b1d22;
  --muted: #666c78;
  --radius: 18px;
  --hdr: 78px;
  --font: "Manrope", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--hdr);
  font: 400 17px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.has-hero { padding-top: 0; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 48px, 1560px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- Знак «//» из двух наклонных штрихов ------------------------------------------------ */

.mark { display: inline-block; width: 22px; height: 15px; flex: none; position: relative; }
.mark::before, .mark::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px;
  background: var(--accent); transform: skewX(-22deg);
}
.mark::before { left: 3px; }
.mark::after { left: 13px; }

/* --- Кнопки --------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 34px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 8px 24px rgba(240, 82, 67, .35); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.ibtn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--tint); transition: background-color .18s, color .18s;
}
.ibtn:hover { background: var(--accent); color: #fff; }
.ibtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pop { position: relative; }
.pop__box {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; min-width: 270px; padding: 18px;
  display: grid; gap: 4px; background: #fff; color: var(--text); border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .22);
}
.pop__box[hidden] { display: none; }
.pop__box span { font-size: 13px; font-weight: 600; color: var(--muted); }
.pop__box b { font-size: 19px; font-weight: 700; white-space: nowrap; user-select: all; }
.pop__act { display: flex; gap: 8px; margin-top: 12px; }
.pop__act .btn { flex: 1; padding: 0 14px; }
.copy-buffer { position: fixed; left: -9999px; top: 0; }

/* --- Шапка ------------------------------------------------------------------------------ */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  background: rgba(255, 255, 255, .96); color: var(--text);
  box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 40px; height: auto; }
.logo__text { font-weight: 700; font-size: 18px; letter-spacing: .06em; }

.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 17px; padding: 8px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:hover::after { transform: scaleX(1); }

.hdr__act { display: flex; align-items: center; gap: 10px; flex: none; }

.hdr__search { position: relative; flex: 0 1 260px; }
.hdr__search input {
  width: 100%; height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--tint); outline: 0;
}
.hdr__search input:focus { border-color: var(--ink); background: #fff; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--tint); cursor: pointer; margin-left: auto; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto; position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Поверх обложки главной шапка тёмная и полупрозрачная, после прокрутки - обычная белая. */
.has-hero .hdr:not(.is-scrolled):not(.is-open) {
  background: rgba(20, 22, 26, .38); color: #fff; box-shadow: none;
}
.has-hero .hdr:not(.is-scrolled):not(.is-open) .ibtn,
.has-hero .hdr:not(.is-scrolled):not(.is-open) .burger { background: rgba(255, 255, 255, .14); }
.has-hero .hdr:not(.is-scrolled):not(.is-open) .ibtn:hover { background: var(--accent); }

/* --- Обложка главной -------------------------------------------------------------------- */

.hero {
  position: relative; min-height: max(100svh, 680px); display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 620px at 82% 30%, rgba(240, 82, 67, .30), transparent 68%),
    radial-gradient(700px 520px at 12% 100%, rgba(240, 82, 67, .13), transparent 70%),
    linear-gradient(180deg, rgba(20, 22, 26, .2), rgba(20, 22, 26, .92) 88%),
    url("/static/traces.svg") 0 0 / 480px 480px,
    linear-gradient(135deg, #23272f, #14161a 60%);
}
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end;
  padding-block: calc(var(--hdr) + 56px) 72px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 88px); line-height: 1.02; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em; max-width: 14ch; text-wrap: balance;
}
.hero__lead { margin-top: 24px; font-size: clamp(18px, 1.5vw, 23px); max-width: 44ch; color: rgba(255, 255, 255, .86); }
.hero .search { margin-top: 36px; max-width: 760px; }
.hero__eg { margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.hero__eg a { color: rgba(255, 255, 255, .9); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; margin-left: 8px; }
.hero__eg a:hover { text-decoration-color: var(--accent); }

.hero__stats { display: grid; gap: 34px; }
.hero__stats b { display: flex; align-items: flex-start; gap: 8px; font-size: clamp(32px, 2.8vw, 44px); line-height: 1; font-weight: 700; }
.hero__stats .mark { margin-top: 2px; }
.hero__stats span:last-child { display: block; margin: 8px 0 0 30px; color: rgba(255, 255, 255, .8); line-height: 1.35; }

/* --- Строка поиска ------------------------------------------------------------------------ */

.search { position: relative; display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 999px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.search input {
  flex: 1; min-width: 0; height: 56px; padding: 0 24px; border: 0; background: transparent; outline: 0;
  font-size: 19px; font-weight: 500; color: var(--text);
}
.search input::placeholder { color: #9aa0ab; font-weight: 400; }
.top .search { max-width: 820px; box-shadow: none; border: 1.5px solid var(--line); margin-top: 28px; }
.top .search:focus-within { border-color: var(--ink); }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; padding: 8px;
  background: #fff; color: var(--text); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.suggest a { display: flex; align-items: baseline; gap: 14px; padding: 11px 16px; border-radius: 12px; text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--tint); }
.suggest b { font-weight: 650; }
.suggest span { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr__search .suggest { right: auto; width: 360px; }

/* --- Разделы ---------------------------------------------------------------------------------- */

.sec { padding-block: 96px; }
.sec--flush { padding-top: 40px; }
.sec--tint { background: var(--tint); }
.sec--dark { background: var(--ink); color: #fff; }
.sec__title { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 44px; text-wrap: balance; }
.sec__title--sm { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 28px; }
.sec__lead { margin: -24px 0 36px; color: var(--muted); max-width: 60ch; font-size: 19px; }

.top { padding-block: 44px 8px; }
.top h1 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.top__lead { margin-top: 18px; color: var(--muted); font-size: 19px; max-width: 62ch; }
.top--msg { padding-block: 72px 96px; }
.top--msg .prose { margin-top: 20px; }
.top--msg > .wrap > p { margin-top: 28px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs a::after { content: "/"; margin-left: 10px; color: #b9bdc6; }

/* --- Карточки направлений -------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2; position: relative; min-height: 340px; padding: 26px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  color: #fff; text-decoration: none; border-radius: 6px; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, #2b2f37, #17191d 70%);
}
.card--lg { grid-column: span 3; min-height: 520px; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--art) right -30px bottom -30px / auto 82% no-repeat,
              radial-gradient(520px 380px at 85% 75%, rgba(240, 82, 67, .22), transparent 70%);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card:hover::before { transform: scale(1.05); }
.card h2, .card h3 { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.15; font-weight: 600; text-transform: uppercase; max-width: 18ch; padding-right: 36px; }
.card > .mark { position: absolute; top: 30px; right: 26px; }
.card__cap {
  align-self: flex-start; max-width: min(100%, 480px); padding: 16px 18px;
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); border-radius: 6px;
}
.card__cap p { font-size: 17px; line-height: 1.3; }
.more { display: inline-block; margin-top: 14px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.card:hover .more { text-decoration-color: var(--accent); color: #fff; }

.card--chip { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='3' stroke-linecap='round'%3E%3Crect x='50' y='50' width='100' height='100' rx='12'/%3E%3Crect x='76' y='76' width='48' height='48' rx='6' stroke='%23f05243' stroke-opacity='.8'/%3E%3Cpath d='M70 50V26M90 50V26M110 50V26M130 50V26M70 174v-24M90 174v-24M110 174v-24M130 174v-24M50 70H26M50 90H26M50 110H26M50 130H26M174 70h-24M174 90h-24M174 110h-24M174 130h-24'/%3E%3C/svg%3E"); }
.card--factory { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 170V96l44 26V96l44 26V96l44 26V40h20v130z'/%3E%3Cpath d='M50 146h16M94 146h16M138 146h16' stroke='%23f05243' stroke-opacity='.8'/%3E%3C/svg%3E"); }
.card--board { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='24' y='40' width='152' height='120' rx='10'/%3E%3Cpath d='M48 64h36l18 18h30M48 136h28l16-16h20M152 136v-30l-14-14'/%3E%3Ccircle cx='48' cy='64' r='5'/%3E%3Ccircle cx='48' cy='136' r='5'/%3E%3Ccircle cx='152' cy='136' r='5'/%3E%3Crect x='112' y='100' width='26' height='26' rx='3' stroke='%23f05243' stroke-opacity='.8'/%3E%3C/svg%3E"); }
.card--solder { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 160h140M56 160v-26h30v26M114 160v-26h30v26'/%3E%3Cpath d='M150 30 96 104l-10 26 24-14 54-74z'/%3E%3Cpath d='M86 130l-6 10' stroke='%23f05243' stroke-opacity='.9'/%3E%3C/svg%3E"); }
.card--sim { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='24' y='44' width='152' height='96' rx='10'/%3E%3Cpath d='M76 170h48M100 140v30'/%3E%3Cpath d='M44 110c22-34 44 12 60-10s30-30 52-6' stroke='%23f05243' stroke-opacity='.8'/%3E%3Ccircle cx='100' cy='92' r='22'/%3E%3Cpath d='M100 70v44M78 92h44'/%3E%3C/svg%3E"); }

/* --- Раздел «Услуги»: рисунок направления и текст рядом ------------------------------ */

.svc-intro { margin-bottom: 56px; }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.svc:nth-of-type(even) .card { order: 2; }
.svc .card { grid-column: auto; min-height: 340px; }
.svc__text h2 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; font-weight: 800; text-transform: uppercase; }
.svc__text h2 a { text-decoration: none; }
.svc__text h2 a:hover { color: var(--accent); }
.svc__text > p { margin-top: 16px; font-size: 19px; max-width: 56ch; }
.svc__text .btn { margin-top: 28px; }

/* --- Преимущества ----------------------------------------------------------------------- */

.adv { counter-reset: adv; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.adv li { counter-increment: adv; padding: 28px 24px 30px; background: #fff; border-radius: var(--radius); }
.adv li::before { content: counter(adv, decimal-leading-zero); display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 22px; }
.adv h3 { font-size: 20px; line-height: 1.2; font-weight: 700; margin-bottom: 10px; }
.adv p { color: var(--muted); font-size: 16px; }

/* --- Производители ------------------------------------------------------------------------ */

.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands a {
  display: block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .18s, color .18s, box-shadow .18s;
}
.brands a:hover { background: var(--ink); color: #fff; box-shadow: none; }

/* --- Блок заявки -------------------------------------------------------------------------- */

.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.cta .sec__title { margin-bottom: 24px; }
.cta__text p { font-size: 20px; color: rgba(255, 255, 255, .8); max-width: 44ch; }
.cta__contacts { margin-top: 36px; display: grid; gap: 6px; }
.cta__contacts a { font-size: clamp(22px, 2vw, 30px); font-weight: 700; color: #fff; text-decoration: none; }
.cta__contacts a:hover { color: var(--accent); }

.part__form { padding: 30px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 0 0 1.5px var(--line); }
.sec--dark .part__form { box-shadow: none; }
.part__form h2 { font-size: 26px; line-height: 1.15; font-weight: 800; text-transform: uppercase; }
.part__form > p { margin-top: 8px; color: var(--muted); }
.part__form .form { margin-top: 22px; }
.sec--dark .part__form .form { margin-top: 0; }

.form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f span { font-size: 14px; font-weight: 600; color: var(--muted); }
.f input, .f textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: 0;
  transition: border-color .15s;
}
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f textarea:focus { border-color: var(--ink); }
.f--sm input { max-width: 160px; }
.form__hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.f--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); }
.agree input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.agree a { color: var(--text); }

/* --- Список позиций ----------------------------------------------------------------------- */

.found { color: var(--muted); margin-bottom: 18px; }
.found b { color: var(--text); }
.rows { border-top: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(140px, .8fr) minmax(0, 2fr) auto;
  gap: 8px 24px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.row:hover { background: var(--tint); }
.row__pn { font-weight: 700; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
a.row__pn:hover { color: var(--accent); }
.row__mfg { font-weight: 500; }
.row__desc { color: var(--muted); font-size: 15px; }
.instock { color: #12804a; font-weight: 700; white-space: nowrap; }
.rows--plain .row { grid-template-columns: minmax(180px, 1fr) minmax(140px, 1fr) minmax(0, 2fr); }

.pager { display: flex; gap: 12px; justify-content: center; margin-top: 36px; }

.note { padding: 36px; background: var(--tint); border-radius: var(--radius); max-width: 820px; }
.note h2 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.note p { color: var(--muted); }

/* --- Страница детали ---------------------------------------------------------------------- */

.part { padding-block: 40px 96px; }
.part__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; }
.part h1 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.part__mfg { margin-top: 12px; font-size: 22px; font-weight: 600; color: var(--accent); }
.part__desc { margin-top: 18px; font-size: 19px; max-width: 62ch; }
.part__cta { display: none; }
.part__h2 { margin: 56px 0 20px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; text-transform: uppercase; }
.part__grid .part__form { position: sticky; top: calc(var(--hdr) + 20px); }

.facts { margin-top: 32px; border-top: 1.5px solid var(--ink); max-width: 720px; }
.facts > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--accent); }

/* --- Текстовые страницы ------------------------------------------------------------------- */

.prose { max-width: 820px; font-size: 18px; }
.prose > * + * { margin-top: 18px; }
.prose .lead { font-size: 22px; line-height: 1.45; font-weight: 500; }
.prose h2 { margin-top: 44px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 800; }
.prose ul { display: grid; gap: 8px; }
.prose ul li, .ticks li { position: relative; padding-left: 26px; }
.prose ul li::before, .ticks li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 7px; height: 13px;
  background: var(--accent); transform: skewX(-22deg);
}
.prose a:not(.btn) { color: var(--accent); }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.certs a { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .18s, transform .18s; }
.certs a:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 14px 30px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.certs img { width: 100%; height: auto; }
.ticks { display: grid; gap: 8px; margin-top: 20px; }
.ticks--err li::before { background: var(--ink); }

.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.contacts .facts { margin-top: 0; }
.contacts__info > p { margin-top: 28px; max-width: 60ch; }

/* --- Подвал ------------------------------------------------------------------------------- */

.ftr { background: #0e1013; color: rgba(255, 255, 255, .72); padding-block: 64px 28px; font-size: 16px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ftr .logo { color: #fff; }
.ftr__brand p { margin-top: 18px; max-width: 34ch; }
.ftr__col { display: grid; gap: 10px; align-content: start; }
.ftr__col b { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { color: #fff; }
.ftr__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* --- Плашка согласия на cookie ---------------------------------------------------------- */

.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 460px; padding: 20px;
  background: #fff; color: var(--text); border-radius: 16px; font-size: 15px; line-height: 1.45;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .25);
}
.cookie a { color: var(--text); }
.cookie__act { display: flex; gap: 8px; margin-top: 14px; }
.cookie__act .btn { flex: 1; padding: 0 16px; }
.linkbtn { margin-left: 18px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: #fff; }

/* --- Узкие экраны ------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .adv { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 22px; }
  .hdr__search { display: none; }
}

@media (max-width: 1040px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--hdr); margin: 0; padding: 12px 24px 24px;
    flex-direction: column; gap: 4px; background: #fff; color: var(--text); box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  }
  .nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .hdr.is-open .nav { display: flex; }
  .hdr__act > .btn { display: none; }
  .hdr__act { margin-left: auto; }
  .burger { order: 3; margin-left: 0; }
  .hdr__in { gap: 10px; }
  .hero__in, .cta, .part__grid, .contacts { grid-template-columns: minmax(0, 1fr); }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card--lg { grid-column: span 1; min-height: 320px; }
  .part__grid .part__form { position: static; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svc:nth-of-type(even) .card { order: 0; }
  .svc .card { grid-column: auto; min-height: 220px; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__mfg, .row__desc { grid-column: 1; }
  .row .btn { grid-column: 2; grid-row: 1 / span 3; }
  .rows--plain .row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  :root { --hdr: 66px; }
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, 1560px); }
  .sec { padding-block: 64px; }
  .sec--flush { padding-top: 28px; }
  .hero__in { padding-bottom: 44px; }
  .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .search { flex-direction: column; border-radius: 26px; }
  .search input { height: 52px; padding: 0 16px; font-size: 17px; }
  .cards, .adv, .ftr__in { grid-template-columns: minmax(0, 1fr); }
  .card, .card--lg { min-height: 260px; }
  .part__form { padding: 22px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  /* Карточка контакта на телефоне - во всю ширину под шапкой, а не от значка. */
  .pop { position: static; }
  .pop__box { left: 16px; right: 16px; top: calc(100% + 8px); min-width: 0; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .card::before { background-size: auto 62%, auto; background-position: right -24px top 56px, 0 0; }
  .part__cta { display: inline-flex; margin-top: 24px; }
}

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