/* ==========================================================================
   KabelEnergoService — main.css
   Токены сняты с текущего сайта keskabel.com (Tilda).
   ========================================================================== */

:root {
	--accent: #e4582e;
	--accent-hover: #ff8562;
	--dark: #31374b;
	--darker: #12131a;
	--light: #f5f7f9;
	--white: #fff;
	--text: #222;
	--muted: #7c8193;
	--muted-light: rgba(255, 255, 255, .55);
	--line: #dde0e5;
	--line-dark: rgba(255, 255, 255, .14);

	--font: Arial, "Helvetica Neue", Helvetica, sans-serif;
	--container: 1160px;
	--gutter: 20px;
	--header-h: 70px;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 20px 50px rgba(18, 19, 26, .12);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--fs-h1: clamp(34px, 5.2vw, 72px);
	--fs-h2: clamp(28px, 3.6vw, 48px);
	--section-y: clamp(64px, 8vw, 110px);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.icon { width: 24px; height: 24px; flex: none; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(900px + var(--gutter) * 2); }
.main { padding-top: var(--header-h); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: 48px 0 var(--section-y); }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 48px; }
.section__head .section__title { margin-bottom: 0; }
.section__title { font-size: var(--fs-h2); line-height: 1.1; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 48px; }
.section__title--center { text-align: center; }
.section__sub { max-width: 460px; color: var(--muted); }
.section--dark .section__sub { color: var(--muted-light); }

/* Заголовки «лесенкой» */
.t-line { display: block; }
.t-line--indent { padding-left: 1.05em; }
.section__title--center .t-line--indent { padding-left: 0; }

/* Text (wysiwyg) */
.text > * + * { margin-top: 1em; }
.text h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin-top: 1.6em; }
.text h3 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; margin-top: 1.4em; }
.text h2:first-child, .text h3:first-child { margin-top: 0; }
.text ul { padding-left: 0; }
.text ul li { position: relative; padding-left: 22px; }
.text ul li + li { margin-top: .4em; }
.text ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.text ol { list-style: decimal; padding-left: 1.3em; }
.text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.text a:hover { color: var(--accent-hover); }
.text table { margin: 1.5em 0; }
.text td, .text th { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 32px; border-radius: 30px; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { border-color: currentColor; color: inherit; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; }
.btn--lg { height: 60px; padding: 0 44px; font-size: 16px; }
.btn--sm { height: 42px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.link-arrow .icon { width: 20px; height: 20px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: var(--light); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 4px 24px rgba(18, 19, 26, .08); }
.header__inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.header__logo { flex: none; }
.header__logo img { width: 120px; height: 50px; object-fit: contain; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--accent); font-size: 20px; white-space: nowrap; }
.header__phone:hover { color: var(--accent-hover); }
.header__phone-icon { display: none; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__item--d0 > .nav__link { display: block; padding: 24px 16px; font-size: 15px; }
.nav__item--d0 > .nav__link:hover, .nav__item.is-current > .nav__link { color: var(--accent); }
.nav__toggle { display: none; }
.nav__mobile-footer { display: none; }

/* Dropdown / mega menu: уровень 2 — группы (заголовки без ссылок), уровень 3 — страницы */
.nav__item--d0.has-sub > .nav__link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nav__sub--1 { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); min-width: 260px; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.nav__item--d0:hover > .nav__sub--1, .nav__item--d0:focus-within > .nav__sub--1 { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub--1:has(.nav__sub--2) { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 28px; width: min(980px, calc(100vw - 40px)); }
.nav__sub .nav__link { display: block; padding: 6px 0; font-size: 15px; }
.nav__sub a.nav__link:hover { color: var(--accent); }
.nav__link--label { color: var(--muted); font-size: 12px !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.nav__sub--2 .nav__link { font-size: 15px; }

.burger { display: none; width: 44px; height: 44px; margin-left: 4px; position: relative; flex: none; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Breadcrumbs ------------------------------------------------------------ */
.crumbs { margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs__item:not(:last-child)::after { content: "›"; margin: 0 10px; opacity: .7; }
.crumbs a:hover { color: var(--accent); }
.crumbs--dark { color: var(--muted-light); }
.crumbs--dark [aria-current] { color: rgba(255, 255, 255, .85); }

/* Home hero -------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(560px, calc(100vh - var(--header-h)), 810px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #2b2f3c; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 19, 26, .62) 0%, rgba(18, 19, 26, .35) 55%, rgba(18, 19, 26, .1) 100%); }
.hero__inner { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero__title { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; max-width: 1100px; }
.hero__title .t-line--indent { padding-left: 1.2em; }
.hero__text { max-width: 470px; margin: 32px 0 36px 6px; font-size: 15px; line-height: 1.65; }

/* Advantages ------------------------------------------------------------- */
.advantages__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 60px; }
.advantages__item { padding: 36px 0; }
.advantages__item:nth-child(n+4) { border-top: 1px solid #c9ccd2; }
.advantages__icon { display: block; width: 79px; height: 79px; margin-bottom: 26px; }
.advantages__icon img { width: 100%; height: 100%; object-fit: contain; }
.advantages__text { max-width: 270px; font-size: 15px; line-height: 1.7; }
.advantages__text strong { display: block; }

/* Certificates slider ---------------------------------------------------- */
.certs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.certs__head .section__title { margin-bottom: 24px; }
h3.section__title { font-size: clamp(24px, 2.8vw, 36px); }
.certs__text { max-width: 560px; font-size: 15px; color: #444; }
.slider-nav { display: flex; gap: 10px; flex: none; }
.slider-nav__btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.slider-nav__btn:hover { background: var(--accent-hover); }
.slider-nav__btn[disabled] { opacity: .35; cursor: default; }
.slider-nav__btn .icon { width: 20px; height: 20px; }
.certs__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)) 16px; scrollbar-width: none; }
.certs__track::-webkit-scrollbar { display: none; }
.certs__item { flex: 0 0 auto; width: 318px; scroll-snap-align: start; scroll-margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.certs__link { position: relative; display: block; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(18, 19, 26, .06); }
.certs__link img { width: 100%; aspect-ratio: 318 / 450; object-fit: cover; transition: transform .4s var(--ease); }
.certs__link:hover img { transform: scale(1.03); }
.certs__zoom { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.certs__link:hover .certs__zoom, .certs__link:focus-visible .certs__zoom { opacity: 1; transform: none; }
.certs__caption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Home products ---------------------------------------------------------- */
.products .section__title { margin-bottom: 28px; }
.products__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.products__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; }
.product-card { position: relative; display: flex; flex-direction: column; height: 222px; padding: 20px; background: var(--light); border-radius: 12px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.products__cell--tall .product-card { height: 300px; }
a.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__name { position: relative; z-index: 1; font-size: 15px; }
.product-card__img { position: absolute; right: 0; bottom: 0; width: 72%; }
.product-card__img img { width: 100%; height: auto; mix-blend-mode: multiply; }

/* About ------------------------------------------------------------------ */
.about__title { margin-bottom: 64px; }
.about__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.about__label { font-size: 14px; color: var(--muted-light); }
.about__text { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .92); }
.about__img img { width: 100%; aspect-ratio: 1160 / 500; object-fit: cover; }

/* Partners --------------------------------------------------------------- */
.section--dark + .section--dark { padding-top: 0; }
.partners { padding-top: var(--section-y) !important; }
.partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partners__item { aspect-ratio: 1; border: 1px solid var(--line-dark); border-radius: 8px; display: grid; place-items: center; padding: 12%; transition: border-color .2s, background-color .2s; }
.partners__item:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .03); }
.partners__item img { width: 100%; height: 100%; object-fit: contain; }

/* SEO text --------------------------------------------------------------- */
.seo-text { font-size: 16px; line-height: 1.7; }
.section--dark.seo-text { color: rgba(255, 255, 255, .88); }
.seo-text__more { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.seo-text__more > :first-child { padding-top: 1.6em; }
.seo-text__more.is-open { opacity: 1; }
.seo-text__toggle { margin-top: 28px; height: 44px; padding: 0 26px; font-weight: 400; border-radius: 6px; }
.section--light.seo-text .text h2, .seo-text:not(.section--dark) .text h2 { color: var(--text); }

/* CTA -------------------------------------------------------------------- */
.cta { overflow: hidden; }
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; }
.cta__title { color: #fff; margin-bottom: 40px; }
.cta__row { display: flex; align-items: center; gap: 40px; }
.cta__text { max-width: 380px; font-size: 14px; color: var(--muted-light); }
.cta__img img { width: 100%; max-width: 560px; margin-left: auto; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--darker); color: #fff; padding: 80px 0 0; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__label { font-size: 14px; color: rgba(255, 255, 255, .3); margin-bottom: 36px; }
.footer__menu li + li { margin-top: 8px; }
.footer__menu a, .footer__menu .nav__link { font-size: 22px; padding: 0; }
.footer__menu a:hover { color: var(--accent); }
.footer__contacts li + li { margin-top: 8px; }
.footer__accent { color: var(--accent); font-size: 22px; }
a.footer__accent:hover { color: var(--accent-hover); }
.footer__addr { display: inline-flex; align-items: center; gap: 10px; }
.footer__addr .icon { width: 22px; height: 22px; }
.footer__brand { margin: 64px 0 0; font-size: clamp(44px, 8.4vw, 118px); line-height: 1; letter-spacing: -.02em; color: rgba(255, 255, 255, .08); white-space: nowrap; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 24px 0; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .4); }
.footer__bottom a:hover { color: #fff; }

/* Page head (каталог, обычные страницы) ---------------------------------- */
.page-head { background: var(--light); padding: 40px 0 56px; }
.page-head__title { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; font-weight: 700; text-transform: uppercase; }
.page-head__lead { max-width: 720px; margin-top: 20px; font-size: 17px; color: #444; }

/* Catalog ---------------------------------------------------------------- */
.catalog__group + .catalog__group { margin-top: 64px; }
.catalog__group-title { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.catalog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile { display: flex; flex-direction: column; height: 100%; background: var(--light); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-tile__img { display: flex; justify-content: flex-end; height: 170px; overflow: hidden; }
.cat-tile__img img { height: 100%; width: auto; mix-blend-mode: multiply; }
.cat-tile__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 0 22px 22px; }
.cat-tile__title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.cat-tile__text { font-size: 14px; color: var(--muted); }
.cat-tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 14px; font-weight: 700; }
.cat-tile__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.cat-tile:hover .cat-tile__more .icon { transform: translateX(4px); }

/* Category hero (слайдер) ------------------------------------------------ */
.cat-hero { background: var(--dark); color: #fff; padding: 32px 0 48px; position: relative; overflow: hidden; }
.cat-hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 88, 46, .22), transparent 70%); pointer-events: none; }
.cat-hero > .container { position: relative; }
.cat-hero__slider { display: grid; }
.cat-hero__slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.cat-hero__slide.is-active { opacity: 1; visibility: visible; }
/* На страницах каталога заголовки без капслока: регистр в марке значим (ВВГнг ≠ ВВГНГ, 4х16 ≠ 4Х16). */
.cat-hero__title { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; }
.is-category .section__title { text-transform: none; }
.nowrap { white-space: nowrap; }
.cat-hero__title--utp { font-size: clamp(28px, 3.6vw, 48px); }
.cat-hero__lead { max-width: 560px; margin-top: 24px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.cat-hero__media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.cat-hero__media::before { content: ""; position: absolute; width: min(400px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0%, #e9ecf1 70%); }
.cat-hero__media img { position: relative; width: auto; max-height: 360px; transform: rotate(-4deg); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .25)); }
.cat-hero__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 190px)); gap: 20px 28px; }
.facts__item { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.35; }
.facts__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.facts__icon .icon { width: 24px; height: 24px; }
.cat-hero__actions { display: flex; align-items: center; gap: 28px; }
.dots { display: flex; gap: 8px; }
.dots__dot { width: 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .3); transition: width .3s, background-color .3s; }
.dots__dot.is-active { width: 28px; background: var(--accent); }

/* Assortment ------------------------------------------------------------- */
.assort__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mark { display: flex; flex-direction: column; background: var(--light); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s; }
.mark:hover { box-shadow: var(--shadow); }
.mark__img { height: 190px; display: flex; justify-content: flex-end; overflow: hidden; background: linear-gradient(180deg, #fff, var(--light)); }
.mark__img img { height: 100%; width: auto; mix-blend-mode: multiply; }
.mark__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 6px 26px 26px; }
.mark__name { font-size: 21px; line-height: 1.2; }
.mark__name a:hover { color: var(--accent); }
.mark__name a::after { content: " →"; color: var(--accent); }
.mark__decoding { font-size: 14px; color: #555; }
.mark__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mark__meta > div { display: flex; gap: 6px; padding: 6px 12px; border-radius: 30px; background: #fff; font-size: 13px; }
.mark__meta dt { color: var(--muted); }
.mark__meta dd { font-weight: 700; }
.mark__purpose { font-size: 14px; color: var(--muted); }
.mark__btn { margin-top: auto; align-self: flex-start; }

/* Specs ------------------------------------------------------------------ */
.specs__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px 60px; align-items: start; }
.specs__title { position: sticky; top: calc(var(--header-h) + 30px); }
.specs__table-wrap { overflow-x: auto; }
.specs__table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.specs__table th, .specs__table td { padding: 18px 26px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs__table tr:last-child th, .specs__table tr:last-child td { border-bottom: 0; }
.specs__table th { width: 48%; font-weight: 400; color: var(--muted); }
.specs__table td { font-weight: 700; }
.specs__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Cores ------------------------------------------------------------------ */
.cores__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.core-tile { display: flex; align-items: center; gap: 22px; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .25s, transform .25s; }
a.core-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.core-tile__num { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 34px; font-weight: 700; }
.core-tile__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.core-tile__title { font-size: 18px; font-weight: 700; }
.core-tile__text { font-size: 14px; color: var(--muted); }
.core-tile__arrow { color: var(--accent); }

/* Production ------------------------------------------------------------- */
.production__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; margin-bottom: 48px; }
.production__head .section__title { margin-bottom: 0; }
.production__text { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .88); }
.production__photos { display: grid; gap: 20px; margin-bottom: 56px; }
.production__photos--2 { grid-template-columns: 1fr 1fr; }
.production__photos--3 { grid-template-columns: 2fr 1fr 1fr; }
.production__photo { display: block; overflow: hidden; }
.production__photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; transition: transform .5s var(--ease); }
.production__photos--1 .production__photo img { aspect-ratio: 1160 / 460; }
.production__photo:hover img { transform: scale(1.03); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps__item { padding-top: 22px; border-top: 2px solid var(--accent); }
.steps__num { display: block; font-size: 14px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.steps__title { font-size: 18px; margin-bottom: 8px; }
.steps__text { font-size: 14px; color: var(--muted-light); line-height: 1.6; }

/* Wholesale -------------------------------------------------------------- */
.wholesale__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.wholesale__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--light); color: var(--accent); display: grid; place-items: center; }
.wholesale__icon .icon { width: 48px; height: 48px; stroke-width: 1.2; }
.wholesale__title { margin-bottom: 16px; font-size: clamp(26px, 3vw, 40px); }
.wholesale__text { max-width: 640px; color: #444; }
.wholesale__links { display: flex; flex-direction: column; gap: 14px; padding-left: 40px; border-left: 1px solid var(--line); }

/* Lead form section ------------------------------------------------------ */
.lead__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lead__title { margin-bottom: 24px; font-size: clamp(26px, 3vw, 40px); }
.lead__text { color: rgba(255, 255, 255, .8); max-width: 480px; }
.lead__contacts { margin-top: 32px; display: grid; gap: 12px; }
.lead__contacts li { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.lead__contacts .icon { color: var(--accent); }
.lead__contacts a:hover { color: var(--accent); }
.lead__form { background: #fff; color: var(--text); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Form ------------------------------------------------------------------- */
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 13px; color: var(--muted); }
.field__input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field__input--area { height: auto; min-height: 88px; padding: 14px 16px; resize: vertical; }
.field__input::placeholder { color: #161616; opacity: .4; }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 88, 46, .15); }
.field.is-invalid .field__input { border-color: #d43030; }
.field__error { font-size: 12px; color: #d43030; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; cursor: pointer; }
.file__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file__btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border: 1px dashed #b8bdc6; border-radius: var(--radius-sm); font-size: 15px; transition: border-color .2s, color .2s; max-width: 100%; overflow: hidden; }
.file__btn .icon { width: 20px; height: 20px; color: var(--accent); }
.file:hover .file__btn, .file__input:focus-visible + .file__btn { border-color: var(--accent); color: var(--accent); }
.file.has-file .file__btn { border-style: solid; border-color: var(--accent); }
.file__hint { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 20px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box { flex: none; width: 20px; height: 20px; border-radius: 5px; border: 1px solid #b8bdc6; display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s; }
.check__box .icon { width: 14px; height: 14px; opacity: 0; stroke-width: 2.4; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { text-decoration: underline; }
.lead-form__submit { width: 100%; }
.lead-form__status { margin-top: 12px; font-size: 14px; min-height: 1em; }
.lead-form__status.is-ok { color: #1f8a4c; }
.lead-form__status.is-error { color: #d43030; }
.lead-form.is-sent .lead-form__grid, .lead-form.is-sent .check, .lead-form.is-sent .lead-form__submit { display: none; }
.lead-form.is-sent .lead-form__status { font-size: 18px; color: var(--text); padding: 30px 0; }
.lead-form__hp { position: absolute; left: -9999px; }

/* FAQ -------------------------------------------------------------------- */
.faq__inner { display: grid; grid-template-columns: 1fr 1.8fr; gap: 40px 60px; align-items: start; }
.faq__title { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__list { border-top: 1px solid var(--line); }
.section--dark .faq__list, .section--dark .faq__item { border-color: var(--line-dark); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .25s, background-color .2s, color .2s, border-color .2s; }
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__a { padding: 0 56px 24px 0; font-size: 15px; line-height: 1.7; color: #444; }
.section--dark .faq__a { color: rgba(255, 255, 255, .8); }

/* Popup ------------------------------------------------------------------ */
.popup { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; }
.popup__overlay { position: absolute; inset: 0; background: rgba(18, 19, 26, .7); animation: fade .25s; }
.popup__box { position: relative; width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 15px; padding: 44px 40px 34px; animation: pop .3s var(--ease); }
.popup__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.popup__close:hover { color: var(--text); background: var(--light); }
.popup__title { font-size: 28px; line-height: 1.15; font-weight: 700; margin-bottom: 12px; padding-right: 30px; }
.popup__text { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.popup__product { display: inline-block; margin: -8px 0 20px; padding: 8px 14px; border-radius: 30px; background: var(--light); font-size: 14px; font-weight: 700; }
body.is-locked { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(10, 11, 16, .92); display: grid; place-items: center; padding: 60px 70px; animation: fade .2s; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; background: #fff; box-shadow: var(--shadow); }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* 404 -------------------------------------------------------------------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound__code { font-size: clamp(90px, 16vw, 200px); line-height: 1; color: var(--accent); font-weight: 700; }
.notfound__text { max-width: 520px; margin: -20px 0 32px; color: rgba(255, 255, 255, .8); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reveal-анимация (как в Tilda, но лёгкая) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.nav__item--d0 > .nav__link { padding-left: 10px; padding-right: 10px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 220px)); }
	.catalog__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
	:root { --header-h: 64px; }
	.header__logo img { width: 100px; height: 42px; }
	.header__phone { font-size: 17px; }
	.burger { display: block; }

	/* Off-canvas меню */
	.nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between; background: #fff; padding: 12px var(--gutter) 28px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
	.nav.is-open { transform: none; visibility: visible; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item--d0 { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.nav__item--d0 > .nav__link { flex: 1; padding: 18px 0; font-size: 18px; }
	.nav__item--d0.has-sub > .nav__link::after { display: none; }
	.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; transition: transform .25s; }
	.nav__toggle[aria-expanded="true"] { transform: rotate(180deg); }
	.nav__sub--1, .nav__sub--1:has(.nav__sub--2) { position: static; transform: none; opacity: 1; visibility: visible; display: none; width: 100%; min-width: 0; padding: 0 0 16px 12px; box-shadow: none; border-radius: 0; grid-template-columns: 1fr; gap: 14px; }
	.nav__item--d0.is-open > .nav__sub--1 { display: grid; }
	.nav__item--d0:hover > .nav__sub--1 { transform: none; }
	.nav__mobile-footer { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; }
	.nav__phone { font-size: 22px; color: var(--accent); }

	.products__grid { grid-template-columns: repeat(3, 1fr); }
	.products__cell--tall .product-card { height: 222px; }
	.assort__grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.cat-hero__slide { grid-template-columns: 1fr .8fr; }
	.wholesale__inner { grid-template-columns: auto 1fr; }
	.wholesale__links { grid-column: 1 / -1; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 14px 32px; }
}

@media (max-width: 860px) {
	.section__title { margin-bottom: 32px; }
	.advantages__list { grid-template-columns: 1fr 1fr; gap: 0 32px; }
	.advantages__item:nth-child(n+3) { border-top: 1px solid #c9ccd2; }
	.certs__head { flex-direction: column; align-items: flex-start; }
	.about__row, .production__head, .lead__inner, .faq__inner, .specs__inner, .footer__cols { grid-template-columns: 1fr; }
	.faq__title, .specs__title { position: static; }
	.cta__inner { grid-template-columns: 1fr; }
	.cta__img img { max-width: 420px; margin: 0 auto; }
	.cores__grid { grid-template-columns: 1fr; }
	.catalog__grid { grid-template-columns: repeat(2, 1fr); }
	.partners__grid { grid-template-columns: repeat(3, 1fr); }
	.cat-hero__slide { grid-template-columns: 1fr; gap: 12px; }
	.cat-hero__media { order: -1; min-height: 220px; }
	.cat-hero__media::before { width: 220px; }
	.cat-hero__media img { max-height: 220px; }
	.cat-hero__bottom { flex-direction: column; align-items: stretch; }
	.cat-hero__actions { justify-content: space-between; }
	.production__photos--3 { grid-template-columns: 1fr 1fr; }
	.production__photos--3 .production__photo:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 15px; }
	.header__inner { gap: 10px; }
	.header__phone span { display: none; }
	.header__phone-icon { display: block; width: 24px; height: 24px; }
	.header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: #fff; }
	.hero { min-height: 600px; align-items: flex-end; }
	.hero__inner { padding-bottom: 48px; }
	.hero__title .t-line--indent { padding-left: .6em; }
	.hero__text { margin-left: 0; }
	.btn--lg { height: 56px; padding: 0 32px; width: 100%; }
	.t-line--indent { padding-left: .5em; }
	.advantages__list { grid-template-columns: 1fr; }
	.advantages__item { display: flex; gap: 20px; padding: 24px 0; }
	.advantages__item:nth-child(n+2) { border-top: 1px solid #c9ccd2; }
	.advantages__icon { width: 56px; height: 56px; flex: none; margin: 0; }
	.certs__item { width: 240px; }
	.products__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.product-card, .products__cell--tall .product-card { height: 190px; padding: 14px; font-size: 14px; }
	.assort__grid, .catalog__grid { grid-template-columns: 1fr; }
	.partners__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.cta__row { flex-direction: column; align-items: stretch; gap: 24px; }
	.facts { grid-template-columns: 1fr 1fr; gap: 16px; }
	.facts__icon { width: 40px; height: 40px; }
	.facts__item { font-size: 13px; gap: 10px; }
	.cat-hero__actions { flex-direction: column; align-items: stretch; gap: 20px; }
	.dots { justify-content: center; }
	.steps { grid-template-columns: 1fr; gap: 24px; }
	.specs__table th, .specs__table td { display: block; width: 100%; padding: 12px 18px; }
	.specs__table th { padding-bottom: 0; border-bottom: 0; }
	.wholesale__inner { grid-template-columns: 1fr; gap: 20px; }
	.wholesale__icon { width: 72px; height: 72px; }
	.wholesale__icon .icon { width: 36px; height: 36px; }
	.lead__form { padding: 24px 18px; }
	.lead__contacts li { font-size: 18px; }
	.lead-form__grid { grid-template-columns: 1fr; }
	.faq__q { font-size: 16px; padding: 18px 0; }
	.faq__a { padding-right: 0; }
	.popup { padding: 0; align-items: end; }
	.popup__box { max-width: none; border-radius: 15px 15px 0 0; padding: 36px 20px 24px; max-height: 92vh; }
	.popup__title { font-size: 22px; }
	.footer { padding-top: 56px; }
	.footer__label { margin-bottom: 16px; }
	.footer__menu a, .footer__accent { font-size: 19px; }
	.lightbox { padding: 60px 10px; }
	.lightbox__nav { top: auto; bottom: 10px; transform: none; }
}
