/* =====================================================================
   Аренда+ — дизайн публичного сайта.
   Свой CSS вместо шаблона: без Bootstrap и 17 JS-библиотек (было 11,6 МБ на главной).

   Идея: «строительный чертёж». Тёмные экраны с сеткой как на миллиметровке,
   фирменный бирюзовый из логотипа и сигнальный янтарный — цвет разметки и техники.
   Заголовки — Unbounded (технический гротеск), текст — Onest.
   ===================================================================== */

:root {
	--ink: #0e1a19;          /* основной текст и тёмные экраны */
	--ink-2: #15302e;
	--night: #081211;        /* самый тёмный фон */
	--muted: #5b6b69;
	--line: #e2eae8;
	--soft: #f2f6f5;
	--paper: #ffffff;

	--teal: #2f6f73;         /* фирменный — из логотипа */
	--teal-d: #245659;
	--teal-l: #5fb3b3;       /* свечение на тёмном */
	--teal-soft: #e3f0ef;

	--amber: #ffb81c;        /* сигнальный: цена, акценты, фокус */
	--amber-d: #e89d00;
	--wa: #1fae5b;
	--wa-d: #17914b;

	--r: 20px;
	--r-s: 12px;
	--shadow: 0 1px 2px rgba(14, 26, 25, .06), 0 8px 24px rgba(14, 26, 25, .06);
	--shadow-h: 0 2px 4px rgba(14, 26, 25, .06), 0 18px 40px rgba(14, 26, 25, .12);

	--f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
	--f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

	--wrap: 1240px;
	--header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 16px/1.55 var(--f-text);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* --- Метка секции «// 01 — Каталог» ---------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
	color: var(--teal);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--amber); }
.dark .eyebrow { color: var(--teal-l); }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 520px; }
.dark .section-head p { color: rgba(255, 255, 255, .65); }

/* --- Кнопки ----------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
	font: 600 16px/1 var(--f-text); text-decoration: none; white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(31, 174, 91, .28); }
.btn-wa:hover { background: var(--wa-d); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-d); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* =====================================================================
   Шапка
   ===================================================================== */
.header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	background: rgba(8, 18, 17, .86);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: #fff;
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-text { font: 700 19px/1 var(--f-display); letter-spacing: -.02em; }
.logo-text b { color: var(--amber); font-weight: 700; }

.header-nav { display: none; gap: 4px; margin-left: 12px; }
.header-nav a {
	text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .75);
	padding: 8px 12px; border-radius: 10px;
}
.header-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.header-contacts { margin-left: auto; display: flex; align-items: center; gap: 14px; }
/* Главный номер виден всегда, и на телефоне тоже (просьба клиента 30.09.2026);
   часы работы под ним — только на широком экране, в узкой шапке им нет места */
.header-phone { text-align: right; text-decoration: none; white-space: nowrap; }
.header-phone b { display: block; font: 600 16px/1.2 var(--f-text); letter-spacing: .01em; }
.header-phone span { display: none; font-size: 12px; color: rgba(255, 255, 255, .55); }
.header-call {
	flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	background: rgba(255, 255, 255, .08); color: #fff;
}
.header-call:hover { background: rgba(255, 255, 255, .16); }
.header-call svg { width: 20px; height: 20px; }
/* Значок 2ГИС — фирменный зелёный, чтобы узнавался с первого взгляда */
.header-2gis {
	flex: none; height: 42px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center;
	background: #1ba136; color: #fff; text-decoration: none; font: 700 13px/1 var(--f-text); letter-spacing: .02em;
}
.header-2gis:hover { background: #168a2d; }
@media (min-width: 900px) { .header-nav { display: flex; } .header-phone span { display: block; } }
/* Узкий телефон: логотип, номер и две кнопки должны уместиться в одну строку */
@media (max-width: 430px) {
	.header .wrap { gap: 10px; padding: 0 14px; }
	.header-contacts { gap: 8px; }
	.logo-text { font-size: 17px; }
	.header-phone b { font-size: 14.5px; letter-spacing: 0; }
	.header-call { width: 38px; height: 38px; border-radius: 11px; }
	.header-2gis { height: 38px; padding: 0 8px; border-radius: 11px; font-size: 12.5px; }
}
/* На самых узких экранах жертвуем значком 2ГИС — ссылка на него есть в контактах */
@media (max-width: 350px) { .header-2gis { display: none; } }

/* =====================================================================
   Тёмные экраны с «чертёжной» сеткой
   ===================================================================== */
.dark { background: var(--night); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.dark::before {
	/* Сетка как на миллиметровке: крупная клетка 80px, мелкая 16px */
	content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background-image:
		linear-gradient(rgba(95, 179, 179, .09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(95, 179, 179, .09) 1px, transparent 1px),
		linear-gradient(rgba(95, 179, 179, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(95, 179, 179, .035) 1px, transparent 1px);
	background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 85%);
	mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 85%);
}
.dark::after {
	/* Свечение фирменного цвета */
	content: ''; position: absolute; z-index: -1; pointer-events: none;
	width: 900px; height: 900px; right: -300px; top: -420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(47, 111, 115, .55), transparent 62%);
}

/* --- Первый экран главной --------------------------------------------------------- */
/* Результаты поиска выпадают ниже первого экрана — режем только по горизонтали
   (свечение уходит за край), а поверх липкой ленты разделов поднимаемся,
   только пока поиск в фокусе: иначе при прокрутке экран наезжал бы на ленту. */
.hero { padding: 56px 0 64px; overflow: visible; overflow-x: clip; }
.hero:focus-within { z-index: 45; }
@media (min-width: 900px) { .hero { padding: 96px 0 104px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.status {
	display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px;
	border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
	font: 500 13.5px/1 var(--f-text); color: rgba(255, 255, 255, .85);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8a9a98; }
.status.is-open i { background: #3ee07f; box-shadow: 0 0 0 0 rgba(62, 224, 127, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 127, 0); } }

.hero h1 {
	font-size: clamp(34px, 6.4vw, 68px); font-weight: 700; line-height: 1.02;
	margin: 22px 0 20px; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { font-size: clamp(17px, 2vw, 19px); color: rgba(255, 255, 255, .72); max-width: 580px; }

/* --- Поиск с выпадающими результатами -------------------------------------------- */
.search { position: relative; margin-top: 32px; max-width: 620px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
	width: 100%; height: 64px; border: 0; border-radius: 18px; padding: 0 64px 0 56px;
	font: 500 17px/1 var(--f-text); color: var(--ink); background: #fff;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .35);
	-webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8a9795; }
.search input:focus { outline: 3px solid var(--amber); outline-offset: 0; }
.search kbd {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	font: 600 12px/1 var(--f-mono); color: var(--muted); padding: 6px 8px; border-radius: 7px; background: var(--soft);
}
.search-results {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
	background: #fff; color: var(--ink); border-radius: 18px; padding: 8px; display: none;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3); max-height: 420px; overflow: auto;
}
.search-results.open { display: block; }
.search-results a {
	display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center;
	padding: 8px 10px; border-radius: 12px; text-decoration: none;
}
.search-results a:hover, .search-results a.active { background: var(--soft); }
.search-results img { width: 52px; height: 52px; object-fit: contain; background: var(--soft); border-radius: 10px; mix-blend-mode: multiply; }
.search-results b { font-weight: 600; font-size: 15.5px; }
.search-results small { display: block; color: var(--muted); font-size: 13px; }
.search-results .price { font: 600 14px/1 var(--f-display); color: var(--teal); white-space: nowrap; }
.search-empty { padding: 18px; color: var(--muted); font-size: 15px; }
.search-empty a { color: var(--wa-d); font-weight: 600; }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search-hints span { color: rgba(255, 255, 255, .5); font-size: 14px; padding: 6px 0; }
.search-hints button {
	border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .85);
	height: 32px; padding: 0 12px; border-radius: 99px; font-size: 14px; cursor: pointer;
}
.search-hints button:hover { border-color: var(--amber); color: #fff; }

/* --- Панель «приборов» справа в первом экране ------------------------------------ */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-cell {
	position: relative; padding: 22px; border-radius: var(--r);
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 255, 255, .09);
}
.dash-cell::after {
	/* «Винты» по углам, как на табличке оборудования */
	--bolt: radial-gradient(circle, rgba(255, 255, 255, .3) 2px, transparent 2.5px);
	content: ''; position: absolute; inset: 8px; pointer-events: none;
	background: var(--bolt) 0 0 / 6px 6px no-repeat, var(--bolt) 100% 0 / 6px 6px no-repeat,
		var(--bolt) 0 100% / 6px 6px no-repeat, var(--bolt) 100% 100% / 6px 6px no-repeat;
}
.dash-cell.wide { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash-num { font: 700 clamp(30px, 4vw, 42px)/1 var(--f-display); letter-spacing: -.03em; }
.dash-num small { font-size: .5em; font-weight: 600; color: var(--teal-l); margin-left: 4px; }
.dash-label { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.dash-cell.accent { background: linear-gradient(135deg, var(--amber), #ffcf5c); color: var(--ink); border-color: transparent; }
.dash-cell.accent .dash-label { color: rgba(14, 26, 25, .7); }
.dash-cell.accent::after { --bolt: radial-gradient(circle, rgba(14, 26, 25, .35) 2px, transparent 2.5px); }

/* --- Лента разделов под первым экраном ------------------------------------------- */
.cats-strip { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 40; }
.cats-strip .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cats-strip .wrap::-webkit-scrollbar { display: none; }
.chip {
	flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
	border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
	text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap;
	transition: border-color .15s ease, background-color .15s ease;
}
.chip svg { width: 18px; height: 18px; color: var(--teal); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active svg { color: var(--amber); }
.chip small { font: 600 12px/1 var(--f-mono); color: var(--muted); }
.chip.active small { color: rgba(255, 255, 255, .6); }

/* =====================================================================
   Карточки инструментов
   ===================================================================== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
	position: relative; display: flex; flex-direction: column; text-decoration: none;
	background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: transparent; }
.card-img {
	/* Фото у клиента разного размера и с белым фоном — вписываем в одинаковое окно
	   (в концепте карточки растягивались по высоте фото) */
	position: relative; aspect-ratio: 4 / 3; padding: 18px; display: grid; place-items: center;
	background: radial-gradient(ellipse at 50% 60%, #fff 30%, var(--soft) 100%);
}
.card-img img {
	/* Абсолютно внутри окна: процентная высота в grid-ячейке с aspect-ratio не работает,
	   и крупное фото растягивало окно — карточки в ряду выходили разной высоты */
	position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px);
	object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
	position: absolute; left: 12px; top: 12px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
	color: var(--teal-d); background: var(--teal-soft); padding: 6px 8px; border-radius: 7px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-name { font: 600 15.5px/1.3 var(--f-text); letter-spacing: -.005em; }
.card-price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price b { font: 700 18px/1 var(--f-display); letter-spacing: -.02em; }
.card-price span { font-size: 13px; color: var(--muted); }
.card-go {
	position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 10px;
	display: grid; place-items: center; background: var(--soft); color: var(--ink);
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.card-go svg { width: 16px; height: 16px; }
.card:hover .card-go { background: var(--amber); transform: rotate(-45deg); }
@media (max-width: 520px) {
	.card-body { padding: 12px 12px 14px; }
	.card-name { font-size: 14.5px; }
	.card-price b { font-size: 16px; }
	.card-go { display: none; }
	.card-img img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
}

/* --- Плитки разделов (тёмные) ------------------------------------------------------ */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cat-tile {
	position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 176px; padding: 22px;
	border-radius: var(--r); text-decoration: none; color: #fff; overflow: hidden;
	background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 255, 255, .1);
	transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.cat-tile:hover { border-color: var(--teal-l); transform: translateY(-3px); }
.cat-tile-icon {
	width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
	background: rgba(95, 179, 179, .14); color: var(--teal-l);
}
.cat-tile-icon svg { width: 26px; height: 26px; }
.cat-tile:hover .cat-tile-icon { background: var(--amber); color: var(--ink); }
.cat-tile h3 { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; line-height: 1.25; }
.cat-tile small { margin-top: auto; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.cat-tile::after {
	/* Номер раздела крупно на фоне — как маркировка на оборудовании */
	content: attr(data-n); position: absolute; right: 16px; top: 10px;
	font: 700 56px/1 var(--f-display); color: rgba(255, 255, 255, .05);
}

/* =====================================================================
   Каталог на главной
   ===================================================================== */
.group { scroll-margin-top: calc(var(--header-h) + 80px); }
.group + .group { margin-top: 56px; }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.group-head .cat-tile-icon { background: var(--teal-soft); color: var(--teal); }
.group-head h2 { font-size: clamp(20px, 2.6vw, 28px); }
.group-head a { margin-left: auto; font-weight: 600; font-size: 14.5px; color: var(--teal); white-space: nowrap; }
.nores { display: none; padding: 40px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }
.nores a { color: var(--wa-d); font-weight: 600; }

/* --- Шаги «Как арендовать» -------------------------------------------------------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.step { position: relative; padding: 28px; border-radius: var(--r); background: var(--soft); counter-increment: step; }
.step::before {
	content: '0' counter(step); display: block; margin-bottom: 36px;
	font: 700 14px/1 var(--f-mono); color: var(--teal); letter-spacing: .1em;
}
.step::after { content: ''; position: absolute; left: 28px; top: 52px; width: 36px; height: 3px; background: var(--amber); border-radius: 2px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* --- Условия ------------------------------------------------------------------------ */
.terms { display: grid; gap: 12px; }
@media (min-width: 700px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .terms { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.term { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.term-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--amber); margin-bottom: 18px; }
.term-icon svg { width: 22px; height: 22px; }
.term h3 { font: 600 17px/1.3 var(--f-text); letter-spacing: 0; margin-bottom: 6px; }
.term p { color: var(--muted); font-size: 15px; }

/* --- Вопросы ------------------------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--soft); transition: background-color .2s ease; }
.faq details[open] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.faq summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 22px; font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: '+'; flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
	font: 500 20px/1 var(--f-text); background: #fff; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--amber); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* --- Контакты ----------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 24px; } }
.contact-card { padding: 32px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.contact-card h3 { font-size: 22px; margin-bottom: 20px; }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.contact-row:first-of-type { border-top: 0; }
.contact-row svg { width: 22px; height: 22px; color: var(--amber); flex: none; margin-top: 2px; }
.contact-row b { display: block; font-weight: 600; }
.contact-row span, .contact-row a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.contact-row a:hover { color: #fff; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.phones { display: grid; gap: 10px; margin: 20px 0; }
.phones a { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--f-display); letter-spacing: -.02em; color: #fff; text-decoration: none; }
.phones a:hover { color: var(--amber); }

/* =====================================================================
   Страница инструмента
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; opacity: .5; }
.dark .crumbs, .dark .crumbs a { color: rgba(255, 255, 255, .55); }
.dark .crumbs a:hover { color: #fff; }

.product { display: grid; gap: 24px; padding-bottom: 56px; }
@media (min-width: 960px) { .product { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding-bottom: 88px; } }

.product-media {
	position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
	display: grid; place-items: center; padding: 8%;
	background: radial-gradient(ellipse at 50% 55%, #fff 35%, #e9f0ef 100%);
	border: 1px solid var(--line);
}
@media (min-width: 960px) { .product-media { position: sticky; top: calc(var(--header-h) + 20px); } }
.product-media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.product-media::before {
	/* Разметка «под линейку» по краю фото */
	content: ''; position: absolute; left: 20px; right: 20px; bottom: 20px; height: 10px; opacity: .35;
	background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px) bottom / 100% 10px no-repeat;
}
.product-media .card-tag { left: 20px; top: 20px; font-size: 12px; padding: 8px 10px; }

.product-info h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.03em; margin: 14px 0 0; }
.product-info h1 span { color: var(--teal); }
.product-sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

.price-box {
	margin-top: 28px; padding: 24px; border-radius: 24px; background: var(--ink); color: #fff;
	position: relative; overflow: hidden; isolation: isolate;
}
.price-box::before {
	content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(95, 179, 179, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 179, 179, .12) 1px, transparent 1px);
	background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(120deg, transparent 40%, #000);
	mask-image: linear-gradient(120deg, transparent 40%, #000);
}
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-main b { font: 700 clamp(36px, 5vw, 48px)/1 var(--f-display); letter-spacing: -.035em; color: var(--amber); }
.price-main span { color: rgba(255, 255, 255, .7); font-size: 16px; }

.calc { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 18px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, .15); flex-wrap: wrap; }
.calc-label { font-size: 14px; color: rgba(255, 255, 255, .6); width: 100%; }
.stepper { display: inline-flex; align-items: center; background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 4px; }
.stepper button {
	width: 44px; height: 44px; border: 0; border-radius: 11px; background: transparent; color: #fff; cursor: pointer;
	font: 500 22px/1 var(--f-text);
}
.stepper button:hover { background: rgba(255, 255, 255, .1); }
.stepper input {
	width: 64px; height: 44px; border: 0; background: transparent; color: #fff; text-align: center;
	font: 700 20px/1 var(--f-display); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-total { text-align: right; }
.calc-total small { display: block; font-size: 13px; color: rgba(255, 255, 255, .55); }
.calc-total b { font: 700 24px/1.1 var(--f-display); letter-spacing: -.02em; }
.price-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 520px) { .price-actions { grid-template-columns: 1.4fr 1fr; } }
/* Блок цены тёмный, но не .dark (без сетки на весь экран) — светлая обводка кнопки отдельно */
.price-box .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.price-box .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.price-note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .5); }

.variants { margin-top: 24px; }
.variants h2 { font: 600 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.variants ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants li { padding: 10px 14px; border-radius: 12px; background: var(--soft); font-weight: 500; font-size: 15px; }

.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--wa); }
.checks b { font-weight: 600; }
.checks span { color: var(--muted); }

.content { max-width: 820px; }
.content h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 16px; }
.content p + p { margin-top: 12px; }
.content .body { color: #33413f; font-size: 17px; }
.content .body ul { padding-left: 20px; }
.block + .block { margin-top: 56px; }

.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 45%; padding-right: 16px; }
.specs td { font-weight: 600; }

.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .uses { grid-template-columns: 1fr 1fr; } }
.uses li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--soft); font-weight: 500; }
.uses li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); flex: none; transform: rotate(45deg); }

/* --- Шапка страниц раздела и 404 -------------------------------------------------- */
.page-head { padding: 8px 0 56px; }
@media (min-width: 900px) { .page-head { padding: 12px 0 80px; } }
.page-head h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; margin: 18px 0 16px; max-width: 900px; }
.page-head h1 span { color: var(--amber); }
.page-head p { color: rgba(255, 255, 255, .7); font-size: 18px; max-width: 640px; }
/* Шапка с поиском (404): результаты выпадают ниже — как у первого экрана главной */
.page-head.has-search { overflow: visible; overflow-x: clip; }
.page-head.has-search:focus-within { z-index: 45; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-head .meta span {
	display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .85);
}
.page-head .meta svg { width: 16px; height: 16px; color: var(--amber); }

/* =====================================================================
   Подвал
   ===================================================================== */
.footer { padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.footer h3 { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.footer ul a:hover { color: var(--amber); }
.footer-maps { display: flex; gap: 12px; margin-top: 18px; }
.footer-maps a { display: block; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; transition: transform .15s; }
.footer-maps a:hover { transform: translateY(-2px); }
.footer-maps img { width: 100%; height: 100%; display: block; }
/* Метка Google без своей подложки — с отступом, чтобы не упиралась в края плитки */
.footer-maps img.map-google { padding: 5px; }
.footer-about p { color: rgba(255, 255, 255, .6); margin-top: 16px; max-width: 360px; font-size: 15px; }
.footer-bottom {
	margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .45); }

/* --- Круглые кнопки связи поверх страницы ------------------------------------------
   Слева звонок, справа WhatsApp; по нажатию — окно со всеми номерами. Висят чуть выше
   края экрана: панель, прижатую к самому низу, часть браузеров закрывала своей. */
.fab {
	position: fixed; z-index: 60; bottom: calc(22px + env(safe-area-inset-bottom));
	width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
	color: #fff; text-decoration: none;
	transition: transform .15s ease, background-color .15s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(.94); }
.fab svg { width: 28px; height: 28px; }
.fab-call { left: calc(18px + env(safe-area-inset-left)); background: var(--teal); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 10px 24px rgba(14, 26, 25, .35); }
.fab-call:hover { background: var(--teal-d); }
.fab-wa { right: calc(18px + env(safe-area-inset-right)); background: var(--wa); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 10px 24px rgba(31, 174, 91, .4); }
.fab-wa:hover { background: var(--wa-d); }
.fab-wa svg { width: 32px; height: 32px; }
/* Чтобы кнопки не закрывали последнюю строку подвала */
.footer { padding-bottom: 104px; }

/* --- Окно с номерами -------------------------------------------------------------------
   На телефоне выезжает снизу, под большой палец; на широком экране — по центру. */
.modal {
	position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
	background: rgba(8, 18, 17, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
@media (min-width: 600px) { .modal { align-items: center; } }
.modal-box {
	position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow: auto;
	padding: 26px 22px 22px; border-radius: 26px; background: #fff; color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.modal.open .modal-box { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
.modal-box h2 { font-size: 21px; padding-right: 44px; }
.modal-box p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.modal-close {
	position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 12px;
	display: grid; place-items: center; background: var(--soft); cursor: pointer;
}
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 18px; height: 18px; }
.modal-list { display: grid; gap: 8px; margin-top: 18px; }
.modal-list a {
	display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 16px; border-radius: 16px;
	background: var(--soft); text-decoration: none; transition: background-color .15s ease;
}
.modal-list a:hover { background: var(--teal-soft); }
.modal-list svg {
	flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--teal); color: #fff;
}
.modal-list.is-wa svg { padding: 7px; background: var(--wa); }
.modal-list b { font: 600 19px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 360px) { .modal-list b { font-size: 17px; } }
/* Пока окно открыто, страница под ним не прокручивается */
html.modal-open { overflow: hidden; }

/* Появление при прокрутке — только если человек не просил убрать анимацию */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
