/*
Theme Name: Bekamak Dealer
Description: Каталог станков Bekamak для официального дилера: витрина, карточки станков, заявки.
Version: 2.0.0
Text Domain: bkd
Requires PHP: 8.0
*/

/* ---------- Font: Manrope (variable, SIL Open Font License), files on this site ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--yellow: #ffc20e;
	--yellow-600: #e5ab00;
	--ink: #14161a;
	--graphite: #1d2025;
	--graphite-2: #272b31;
	--steel: #5b626d;
	--line: #e4e6ea;
	--paper: #f5f6f8;
	--white: #fff;
	--ok: #1f9d55;
	--err: #d33a2c;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .06);
	--container: 1240px;
	--font: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.5em; border-radius: 10px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-600); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--graphite-2); color: var(--white); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { color: var(--yellow); }
.btn--block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
	color: var(--steel);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.on-dark .eyebrow { color: #b8bdc6; }

/* ---------- Header ---------- */
:root { --header-h: 104px; }
@media (max-width: 1180px) { :root { --header-h: 72px; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header .container { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-weight: 900; color: var(--ink); font-size: 1.1rem; }
.brand__logo img { max-height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.05rem; }
.brand__tag { font-size: .72rem; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
/* BEKAMAK logo with the "official dealer" caption under it. */
.brand--bekamak { flex-direction: column; align-items: flex-start; gap: 5px; }
.brand__svg { display: block; width: 210px; height: auto; color: var(--ink); }
.brand--bekamak .brand__tag { font-size: .6rem; letter-spacing: .26em; line-height: 1; padding-left: 2px; }
.site-footer .brand__svg { color: var(--white); }
.site-footer .brand--bekamak .brand__tag { color: rgba(255, 255, 255, .6); }
@media (max-width: 420px) { .brand__svg { width: 150px; } .brand--bekamak .brand__tag { font-size: .52rem; letter-spacing: .2em; } }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--paper); color: var(--ink); }
/* Phone | button on the first row, hours under the phone, email under the button. */
.header-cta { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 20px; row-gap: 6px; }
.header-info { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .8rem; color: var(--steel); line-height: 1.2; }
.header-cta .header-info { padding-left: 2px; }
.header-info svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--yellow-600); }
a.header-info:hover { color: var(--ink); text-decoration: underline; }
.header-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 6px; }
.main-nav__extra .header-meta .header-info { font-size: .9rem; padding: 0; font-weight: 600; border-radius: 0; background: none; }
.main-nav__extra { display: none; }
@media (max-width: 1180px) { .main-nav__extra { display: grid; gap: 10px; margin-top: 24px; } }
.header-phone { font-weight: 800; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Narrow desktops: tighter header so logo, menu, phone and button fit in one line. */
@media (max-width: 1280px) {
	.site-header .container { gap: 20px; }
	.main-nav a { padding: 10px 8px; font-size: .9rem; }
	.site-header .brand__svg { width: 170px; }
}
@media (max-width: 1180px) {
	.nav-toggle { display: block; margin-left: auto; }
	.site-header .container { gap: 16px; }
	/* The header is sticky (a containing block), so the menu hangs from its bottom edge. */
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 60; background: var(--white); padding: 24px; overflow-y: auto; border-top: 1px solid var(--line); animation: bkd-slide .2s ease-out; }
	body.nav-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { font-size: 1.15rem; padding: 14px 16px; }
	.header-cta { display: none; }
	body.nav-open { overflow: hidden; }
}

@keyframes bkd-slide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
	.brand__tag { font-size: .62rem; }
	.brand__name { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--graphite); color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .38; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--graphite) 20%, rgba(29, 32, 37, .55) 60%, rgba(29, 32, 37, .2)); }
.hero .container { position: relative; padding-top: 110px; padding-bottom: 120px; }
.hero__content { max-width: 680px; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__lead { font-size: 1.15rem; color: #cfd3da; max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stripe { position: absolute; right: -60px; bottom: -60px; width: 360px; height: 360px; border: 40px solid var(--yellow); border-radius: 50%; opacity: .12; }

.stats { background: var(--ink); color: var(--white); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--yellow); line-height: 1; }
.stat__label { font-size: .85rem; color: #b8bdc6; margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 700px) {
	.stats .container { grid-template-columns: repeat(2, 1fr); }
	.stat { padding: 20px 0 20px 16px; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--graphite); color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head h2 { margin: 12px 0 0; }
.section__head p { color: var(--steel); max-width: 520px; margin: 12px 0 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 260px; padding: 22px; border-radius: var(--radius); overflow: hidden;
	background: var(--white); box-shadow: var(--shadow); isolation: isolate;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px 18px 80px; z-index: -1; transition: transform .35s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile:hover { color: var(--ink); }
.cat-tile__name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.cat-tile__count { font-size: .85rem; color: var(--steel); margin-top: 4px; display: flex; justify-content: space-between; }
.cat-tile__count span:last-child { color: var(--ink); font-weight: 700; transition: transform .2s; }
.cat-tile:hover .cat-tile__count span:last-child { transform: translateX(4px); }
.cat-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.cat-tile:hover::after { transform: scaleX(1); }

/* ---------- Machine cards ---------- */
.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.machine-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.machine-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.machine-card__img { aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; padding: 16px; }
.machine-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.machine-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.machine-card__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); font-weight: 700; }
.machine-card__title { font-size: 1.25rem; font-weight: 800; margin: 0; }
.machine-card__specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--steel); }
.machine-card__specs li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.machine-card__specs b { color: var(--ink); font-weight: 700; text-align: right; }
.machine-card__more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; }
.machine-card__more::after { content: "→"; }
.no-image { color: #b8bdc6; font-weight: 800; font-size: 1.4rem; letter-spacing: .1em; }

/* ---------- Catalog page ---------- */
.page-hero { background: var(--graphite); color: var(--white); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 14px 0 10px; }
.page-hero p { color: #cfd3da; max-width: 720px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: #9aa1ab; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
/* Breadcrumb-only strip (machine page): one line, at most 50px tall. */
.page-hero--crumbs { padding: 0; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.page-hero h1:first-child { margin-top: 0; }
.page-hero--crumbs .container { display: flex; align-items: center; height: 46px; }
.page-hero--crumbs .breadcrumbs { flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
.page-hero--crumbs .breadcrumbs > :last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; color: #cfd3da; }

.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-top: 48px; padding-bottom: 96px; }
.catalog__side { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.filter-box { background: var(--paper); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.filter-box h3, .filter-box .side-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); margin: 0 0 12px; }
/* Sidebar titles are not headings (they are not part of the page outline), but look like them. */
.side-cta .side-title { font-size: 1.15rem; font-weight: 800; line-height: 1.25; margin: 0 0 8px; color: inherit; }
.seo-text { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--ink-2, inherit); }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.filter-list a:hover { background: var(--white); color: var(--ink); }
.filter-list a.is-active { background: var(--ink); color: var(--white); }
.filter-list small { color: #9aa1ab; font-weight: 600; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; }
.catalog__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--steel); font-size: .92rem; gap: 12px; flex-wrap: wrap; }
.side-cta { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px; }
.side-cta p { color: #b8bdc6; font-size: .9rem; }
@media (max-width: 900px) {
	.catalog { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
	.catalog__side { position: static; }
	/* Catalog hub on phones: tiles already list the categories, keep only the search above them. */
	.catalog--hub .catalog__side > :not(:first-child) { display: none; }
	.filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
	.filter-list a { background: var(--white); }
	.side-cta { display: none; }
}

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; padding: 0 12px; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Single machine ---------- */
.product { padding: 40px 0 64px; }
.product__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery__main { aspect-ratio: 4 / 3; background: var(--paper); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__thumbs button { aspect-ratio: 1; padding: 6px; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--yellow); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__info h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 16px; }
.product__lead { color: var(--steel); font-size: 1.05rem; }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.key-spec { background: var(--paper); border-radius: var(--radius-sm); padding: 14px 16px; }
.key-spec small { display: block; color: var(--steel); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.key-spec b { font-size: 1.1rem; }
.product__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product__note { font-size: .85rem; color: var(--steel); margin-top: 14px; }
@media (max-width: 900px) { .product__top { grid-template-columns: 1fr; gap: 28px; } }

.tabs { margin-top: 64px; }
.tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs__nav button { background: none; border: 0; font: inherit; font-weight: 700; padding: 14px 18px; cursor: pointer; color: var(--steel); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__nav button.is-active { color: var(--ink); border-bottom-color: var(--yellow); }
.tabs__panel { padding: 32px 0; }
.tabs__panel[hidden] { display: none; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--steel); font-weight: 600; width: 45%; }
.spec-table td { font-weight: 700; }
.spec-table tr:nth-child(even) { background: var(--paper); }
.capacity { margin-bottom: 32px; }
.capacity h3 { margin-bottom: 14px; }
.capacity-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.capacity-table th { background: var(--ink); color: var(--white); padding: 12px; font-size: .85rem; font-weight: 700; }
.capacity-table th svg { width: 22px; height: 22px; display: block; margin: 0 auto 4px; color: var(--yellow); }
.capacity-table td { padding: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.capacity-table td:first-child { background: var(--paper); }
.table-scroll { overflow-x: auto; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--paper); border-radius: var(--radius-sm); font-weight: 600; }
.feature-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161a' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feature-list--opt li::before { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161a' stroke-width='3'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat; border: 2px solid var(--yellow); }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); max-width: 960px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content-body { max-width: 820px; }
.content-body img { border-radius: var(--radius); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.field label .req { color: var(--err); }
input[type=text], input[type=tel], input[type=email], input[type=search], textarea, select {
	width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 14, .4); }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--steel); }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.hp-field { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 16px; }
.form-msg--ok { background: #e6f6ec; color: #126b38; }
.form-msg--err { background: #fdecea; color: #9b2216; }
.on-dark .field label { color: var(--white); }
.on-dark .consent { color: #b8bdc6; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.cta-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.cta-block__text p { color: #cfd3da; font-size: 1.05rem; }
.cta-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.cta-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.cta-points li::before { content: ""; width: 10px; height: 10px; background: var(--yellow); border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; }
.cta-form { background: var(--graphite-2); border-radius: var(--radius); padding: 32px; }
@media (max-width: 900px) { .cta-block { grid-template-columns: 1fr; gap: 32px; } .cta-form { padding: 22px; } }

/* ---------- About / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.benefit { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.benefit__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 18px; }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit p { color: var(--steel); margin: 0; font-size: .95rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, .65); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; background: var(--white); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--paper); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.modal__dialog h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal__dialog > p { color: var(--steel); }
body.modal-open { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(10, 11, 13, .94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 10px; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; }
.lightbox__next { right: 20px; top: 50%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8bdc6; padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand__name { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer-bottom__row { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.footer-bottom__link { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__note { margin: 12px 0 0; font-size: .75rem; line-height: 1.5; opacity: .6; max-width: 820px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.empty-state { padding: 60px 20px; text-align: center; background: var(--paper); border-radius: var(--radius); color: var(--steel); }

/* ---------- v2: prices, stock, card actions ---------- */
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--steel); box-shadow: 0 0 0 1px var(--line) inset; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in_stock { color: #126b38; background: #e6f6ec; box-shadow: none; }
.stock--soon { color: #1d4f91; background: #e8f0fb; box-shadow: none; }
.badge { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); }

.machine-card { position: relative; }
.machine-card__img { position: relative; }
.machine-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.machine-card__title a::after { content: ""; position: absolute; inset: 0; }
.machine-card__title a:hover { color: inherit; }
.machine-card__foot { margin-top: auto; padding-top: 6px; display: grid; gap: 12px; }
.machine-card__price b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.price-request { font-weight: 700; color: var(--steel); }
.machine-card__actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.price-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 24px 0 18px; background: var(--white); box-shadow: var(--shadow); }
.price-box__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.price-box__label { display: block; color: var(--steel); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.price-box__price { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.price-box__price--request { color: var(--steel); font-size: 1.6rem; }
.price-box__orig { color: var(--steel); font-size: .85rem; margin-top: 2px; }
.price-box__stock { display: grid; justify-items: end; gap: 6px; text-align: right; }
.price-box__stock small { color: var(--steel); font-size: .82rem; }
.price-box .product__actions .btn { flex: 1 1 200px; }
.price-box__lease { margin: 14px 0 0; font-size: .92rem; }
.price-box__lease span { color: var(--steel); }
.price-box .product__note { margin: 10px 0 0; }
.product__phone { font-weight: 800; white-space: nowrap; margin-left: 4px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: .88rem; font-weight: 600; background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; }
.perks svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink); background: var(--yellow); border-radius: 6px; padding: 3px; box-sizing: content-box; }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } .price-box__stock { justify-items: start; text-align: left; } }

.catalog__filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.catalog__filters select { width: auto; padding: 8px 12px; font-size: .9rem; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.side-cta--light { background: var(--yellow); color: var(--ink); margin-top: 16px; }
.side-cta--light p { color: var(--ink); opacity: .8; }

/* ---------- Leasing calculator ---------- */
.modal--wide .modal__dialog { max-width: 920px; }
.lease { display: grid; gap: 28px; }
.lease__calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.lease__inputs { display: grid; gap: 18px; align-content: start; }
.lease__inputs .field label { display: flex; justify-content: space-between; align-items: baseline; }
.lease__inputs output { font-weight: 800; font-size: 1rem; color: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--steel); margin-top: -2px; }
.lease__result { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lease__main small { display: block; color: #b8bdc6; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.lease__main b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--yellow); line-height: 1.15; letter-spacing: -.02em; }
.lease__result dl { margin: 0; display: grid; gap: 0; }
.lease__result dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.lease__result dt { color: #b8bdc6; }
.lease__result dd { margin: 0; font-weight: 700; text-align: right; }
.lease__note { font-size: .78rem; color: #9aa1ab; margin: auto 0 0; }
.lease__form h4 { font-size: 1.1rem; margin-bottom: 14px; }
.lease-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.lease-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) {
	.lease__calc { grid-template-columns: 1fr; }
	.lease-benefits { grid-template-columns: 1fr; }
	.lease-card { padding: 20px; }
	.modal__dialog { padding: 24px 18px; }
}

.lease-band { background: var(--graphite); color: var(--white); padding: 44px 0; position: relative; overflow: hidden; }
.lease-band::before { content: ""; position: absolute; right: -80px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: var(--yellow); opacity: .08; }
.lease-band__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; position: relative; }
.lease-band__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.lease-band__icon svg { width: 32px; height: 32px; }
.lease-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 6px; }
.lease-band p { color: #cfd3da; margin: 0; }
.lease-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .lease-band__inner { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s; }
.faq__item[open] { border-color: var(--ink); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s, background .2s; }
.faq__item[open] summary::after { content: "–"; background: var(--yellow); }
.faq__answer { padding: 0 22px 18px; color: var(--steel); }
.faq__answer p:last-child { margin: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.project-card__img { aspect-ratio: 16 / 10; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 18px 20px 22px; }
.project-card time { font-size: .8rem; color: var(--steel); font-weight: 700; }
.project-card h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.project-card p { color: var(--steel); font-size: .92rem; margin: 0; }
.project-single { max-width: 980px; }
.project-single__img { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }

/* ---------- Floating contacts ---------- */
.float-contacts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 10px; }
.float-contacts__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: 0 6px 20px rgba(20, 22, 26, .25); transition: transform .15s; }
.float-contacts__btn:hover { transform: scale(1.06); color: var(--white); }
.float-contacts__btn svg { width: 24px; height: 24px; }
.float-contacts__btn--wa { background: #25d366; }
.float-contacts__btn--tg { background: #2aabee; }
.float-contacts__btn--phone { background: var(--yellow); color: var(--ink); display: none; }
.float-contacts__btn--phone:hover { color: var(--ink); }
@media (max-width: 1180px) { .float-contacts__btn--phone { display: grid; } .float-contacts { right: 14px; bottom: 14px; } }
body.modal-open .float-contacts, body.nav-open .float-contacts { display: none; }
.notice-404 { text-align: center; padding: 120px 0; }
.notice-404 .big { font-size: 8rem; font-weight: 900; color: var(--yellow); line-height: 1; }

/* ---------- Recently viewed ---------- */
.section--recent { padding: 64px 0; border-top: 1px solid var(--line); }
.section--recent .section__head { margin-bottom: 28px; }
.machine-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .machine-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .machine-grid--4 { grid-template-columns: 1fr; } .section--recent { padding: 48px 0; } }
/* ---------- Catalog hub: categories as tiles ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cat-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.cat-card__img { aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; padding: 18px; }
.cat-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.cat-card:hover .cat-card__img img { transform: scale(1.05); }
.cat-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 56px 20px 20px; flex: 1; }
.cat-card__name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.cat-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--steel); margin-top: auto; }
.cat-card__meta b { color: var(--ink); }
.cat-card__arrow { position: absolute; right: 18px; bottom: 18px; width: 30px; height: 30px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; font-weight: 800; transition: background .2s, transform .2s; }
.cat-card:hover .cat-card__arrow { background: var(--yellow); transform: translateX(3px); }
.cat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.cat-card:hover::after { transform: scaleX(1); }
@media (max-width: 600px) { .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cat-card__body { padding: 12px 12px 44px; } .cat-card__name { font-size: .92rem; } .cat-card__arrow { right: 12px; bottom: 12px; } .cat-card__img { padding: 10px; } }
/* Machine page: links to the category, service and leasing (internal linking) */
.product__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: .9rem; font-weight: 600; }
.product__links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.product__links a:hover { color: var(--yellow-600); }