/*
Theme Name: Технопрофи сервис
Theme URI: https://tehnoprofi-service.ru/
Author: Технопрофи сервис Крым
Description: Одностраничная тема-лендинг для компании «Технопрофи сервис Крым»: системы безопасности, видеонаблюдение, ОПС, СКУД, пожаротушение. Фирменные цвета по логотипу, контакты и карта настраиваются в «Внешний вид → Настроить».
Version: 1.10.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tehnoprofi
*/

/* Шрифт Inter (SIL OFL), встроен в тему */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/inter-400.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/inter-700.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:800;font-display:swap;src:url("assets/fonts/inter-800.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:900;font-display:swap;src:url("assets/fonts/inter-900.woff") format("woff")}

/* ---------- Tokens ---------- */
:root {
	--brand: #0000a0;
	--brand-dark: #00006e;
	--brand-deep: #00003f;
	--brand-bright: #5a6bff;
	--brand-soft: #e9ebff;
	--ink: #0e1030;
	--muted: #4f5476;
	--line: #dcdff0;
	--bg: #f5f6fc;
	--white: #fff;
	--ok: #0a7a3d;
	--err: #b3261e;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(0, 0, 80, .10);
	--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 200;
	background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Stripe motif (from logo) ---------- */
.stripes {
	display: inline-block; width: 34px; height: 14px; flex: none;
	background: repeating-linear-gradient(to bottom, var(--brand) 0 2px, transparent 2px 4px);
	border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 160, .25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 80, .10); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; height: 54px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
	display: block; padding: 10px 14px; border-radius: 8px;
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.header-phone {
	display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; padding-left: 20px; margin-left: 4px; border-left: 1px solid var(--line);
	color: var(--brand); font-weight: 800; font-size: 17px; white-space: nowrap;
}
.header-phone small { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px;
	border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 22px; height: 2px; background: var(--brand); border-radius: 2px;
	margin: 0 auto; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow {
	display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
	text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--brand);
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--brand-deep); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 420px at 85% 10%, rgba(90, 107, 255, .35), transparent 60%),
		linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 45%, var(--brand) 100%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .10) 0 2px, transparent 2px 9px);
	-webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 100%);
	mask-image: linear-gradient(100deg, transparent 38%, #000 100%);
}
.hero-in {
	position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 24px; align-items: center;
	padding: 72px 0 132px;
}
.hero .eyebrow { color: #c9cfff; }
.hero .eyebrow .stripes { background: repeating-linear-gradient(to bottom, #c9cfff 0 2px, transparent 2px 4px); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #dfe3ff; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Directions ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 0; overflow: hidden; display: flex; flex-direction: column;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.card .ico {
	width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; font-weight: 800; color: var(--brand-deep); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Services + steps ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 64px; }
.service {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 32px 28px; overflow: hidden;
}
.service::after {
	content: ""; position: absolute; right: -10px; top: 0; width: 90px; height: 100%;
	background: repeating-linear-gradient(to bottom, var(--brand-soft) 0 2px, transparent 2px 8px);
	-webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent);
}
.service .ico { color: var(--brand); margin-bottom: 14px; }
.service .ico svg { width: 38px; height: 38px; }
.service h3 { font-size: 22px; font-weight: 800; color: var(--brand-deep); }
.service p { color: var(--muted); margin: 0; position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
	counter-increment: step; content: counter(step);
	position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 19px;
}
.steps li::after {
	content: ""; position: absolute; top: 21px; left: 58px; right: -10px; height: 2px;
	background: repeating-linear-gradient(to right, var(--brand-bright) 0 6px, transparent 6px 12px); opacity: .5;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }
.subhead { font-size: 24px; font-weight: 800; color: var(--brand-deep); margin-bottom: 30px; }

/* ---------- Solutions (dark) ---------- */
.solutions {
	position: relative; color: #fff; overflow: hidden;
	background: linear-gradient(160deg, var(--brand-deep), var(--brand-dark));
}
.solutions::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .06) 0 2px, transparent 2px 9px);
	-webkit-mask-image: linear-gradient(260deg, #000, transparent 55%); mask-image: linear-gradient(260deg, #000, transparent 55%);
}
.solutions .wrap { position: relative; }
.solutions .section-head h2 { color: #fff; }
.solutions .section-head p { color: #cdd2ff; }
.solutions .eyebrow { color: #c9cfff; }
.solutions .eyebrow .stripes { background: repeating-linear-gradient(to bottom, #c9cfff 0 2px, transparent 2px 4px); }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol {
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 18px; padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.sol .ico { width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; margin-bottom: 18px; }
.sol .ico svg { width: 28px; height: 28px; }
.sol h3 { font-size: 24px; font-weight: 800; }
.sol p { color: #dfe3ff; }
.sol ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sol li { position: relative; padding-left: 28px; color: #eef0ff; }
.sol li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 8px;
	background: repeating-linear-gradient(to bottom, var(--brand-bright) 0 2px, transparent 2px 4px);
}

/* ---------- Advantages ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 18px; }
.about-grid .lead { color: var(--ink); font-size: 20px; font-weight: 600; }
.advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.adv .ico { color: var(--brand); margin-bottom: 10px; }
.adv .ico svg { width: 32px; height: 32px; }
.adv h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; color: var(--brand-deep); }
.adv p { font-size: 14.5px; margin: 0; color: var(--muted); }
.slogan {
	margin-top: 28px; padding: 22px 26px; border-radius: var(--radius);
	background: var(--brand); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .01em;
}

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
	flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand);
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }
.contact-list small { color: var(--muted); font-weight: 500; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; font-weight: 800; color: var(--brand-deep); margin-bottom: 4px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field textarea {
	width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
	font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 0, 160, .12); }
.field textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }
.notice.ok { background: #e6f6ec; color: var(--ok); }
.notice.err { background: #fdecea; color: var(--err); }
.map-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; position: relative; background: var(--bg); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #cdd2ff; padding: 52px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.foot-in img { height: 50px; width: auto; display: block; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cdd2ff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Content pages ---------- */
.page-main { padding: 64px 0 88px; min-height: 50vh; }
.page-main .entry { max-width: 820px; }
.page-main h1 { font-size: clamp(28px, 4vw, 42px); color: var(--brand-deep); }
.entry img { border-radius: 12px; }


/* ---------- v1.1: главная картинка, полоса, карточки с картинками, галерея ---------- */
.hero-visual { position: relative; }
.hero-art {
	display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto;
	filter: drop-shadow(0 30px 40px rgba(0, 0, 40, .35));
	animation: tp-float 7s ease-in-out infinite;
}
@keyframes tp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.strip {
	position: relative; z-index: 2; list-style: none; margin: -66px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 80, .18);
}
.strip li { display: flex; align-items: center; gap: 14px; padding: 22px 24px; font-weight: 800; color: var(--brand-deep); line-height: 1.25; }
.strip li + li { border-left: 1px solid var(--line); }
.strip .ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.strip .ico svg { width: 26px; height: 26px; }
#directions { padding-top: 96px; }

.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--brand-dark); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .ico {
	position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; margin: 0;
	border-radius: 12px; background: #fff; color: var(--brand); box-shadow: 0 8px 20px rgba(0, 0, 80, .3);
}
.card-media .ico svg { width: 26px; height: 26px; }
.card-body { padding: 22px 24px 26px; }

.sol-media { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sol-body { padding: 26px 26px 30px; }
.sol h3 { font-size: 22px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item {
	position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
	aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--brand-dark);
	box-shadow: var(--shadow); font: inherit;
}
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.06); }
.gal-cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; text-align: left;
	color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3;
	background: linear-gradient(to top, rgba(0, 0, 50, .88), rgba(0, 0, 50, 0));
}

.lb {
	position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center;
	gap: 14px; padding: 24px; background: rgba(0, 0, 40, .94);
}
.lb.is-open { display: flex; }
.lb img { max-width: min(1200px, 92vw); max-height: 76vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-cap { color: #e4e7ff; font-weight: 600; text-align: center; max-width: 800px; }
.lb button {
	position: absolute; width: 52px; height: 52px; padding: 0; border-radius: 50%; line-height: 1; font-size: 26px; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff;
}
.lb button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }
body.lb-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.header-phone small { display: none; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.hero-in { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 80px; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
	.steps li:nth-child(2)::after { display: none; }
	.sol-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
	.map-card { min-height: 360px; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.header-phone { margin-left: auto; margin-right: 0; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%; margin: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 80, .12);
		display: none; padding: 10px 20px 18px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 14px 10px; }
	.header-in { gap: 14px; }
	.header-phone { font-size: 15px; }
	.services { grid-template-columns: 1fr; }
	.foot-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.brand img { height: 44px; }
	.header-phone span.num { display: none; }
	.header-phone::before { content: "Позвонить"; }
	.cards, .advantages, .steps { grid-template-columns: 1fr; }
	.steps li::after { display: none; }
	.form-card { padding: 24px 20px; }
	.hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn, .card { transition: none; }
}

/* ---------- v1.1: адаптив ---------- */
@media (max-width: 1100px) {
	.header-phone small { display: none; }
}
@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.header-phone { margin-left: auto; margin-right: 0; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%; margin: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 80, .12);
		display: none; padding: 10px 20px 18px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 14px 10px; }
}
@media (max-width: 1024px) {
	.hero-in { padding: 56px 0 120px; }
	.hero-art { max-width: 520px; }
	.strip { grid-template-columns: repeat(2, 1fr); }
	.strip li:nth-child(3) { border-left: 0; }
	.strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.strip { grid-template-columns: 1fr; margin-top: -56px; }
	.strip li { border-left: 0 !important; padding: 16px 20px; }
	.strip li + li { border-top: 1px solid var(--line); }
	#directions { padding-top: 72px; }
	.gallery { grid-template-columns: 1fr; }
	.lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-art { animation: none; }
	.card-media img, .gal-item img { transition: none; }
}

/* ---------- v1.2: логотип, контакты, отзывы ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); }
.logo-mark { height: 46px; width: auto; flex: none; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 25px; font-weight: 900; letter-spacing: .015em; }
.logo-text i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .42em; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.logo-text i::after { content: ""; flex: 1; height: 6px; background: repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 3px); }
.site-footer .logo { color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.tile a, .tile .val { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.tile a:hover { color: var(--brand); text-decoration: underline; }
.tile small { color: var(--muted); }
.tile .tile-link { color: var(--brand); font-size: 14px; margin-top: 6px; }

.contact-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: stretch; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card { padding: 28px; }
.form-card .field textarea { min-height: 84px; }
.map-card { min-height: 460px; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.review::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font-size: 64px; line-height: 1; color: var(--brand-soft); font-weight: 900; }
.review blockquote { margin: 0 0 16px; position: relative; color: var(--ink); }
.review figcaption { font-weight: 800; color: var(--brand); }
.reviews-widget { max-width: 760px; height: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reviews-widget iframe { width: 100%; height: 100%; border: 0; }
.reviews-more { text-align: center; margin: 24px 0 0; font-weight: 700; }

@media (max-width: 1024px) {
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.contact-row { grid-template-columns: 1fr; }
	.map-card { min-height: 360px; }
	.header-phone { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
	.tiles { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.logo-mark { height: 38px; }
	.logo-text b { font-size: 20px; }
	.logo-text i { font-size: 9px; }
	.form-card { padding: 22px 18px; }
}

/* ---------- v1.3: мессенджеры и cookie ---------- */
.msgr { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.has-cookie .msgr { bottom: 96px; }
.msgr-toggle {
	width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
	background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 100, .4); transition: transform .2s, background .2s;
}
.msgr-toggle:hover { background: var(--brand-dark); transform: scale(1.06); }
.msgr-toggle .i-x { display: none; }
.msgr.is-open .msgr-toggle .i-x { display: block; }
.msgr.is-open .msgr-toggle .i-chat { display: none; }
.msgr-list { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 10px; align-items: flex-end; }
.msgr.is-open .msgr-list { display: flex; }
.msgr-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; color: var(--ink);
	text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgba(0, 0, 80, .22);
}
.msgr-btn:hover { color: var(--ink); transform: translateX(-3px); }
.msgr-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; }
.msgr-ico svg { width: 22px; height: 22px; }

.cookie {
	position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 95; max-width: 900px; margin: 0 auto;
	background: var(--brand-deep); color: #e6e8ff; border-radius: 14px; padding: 16px 20px;
	display: flex; gap: 18px; align-items: center; box-shadow: 0 14px 40px rgba(0, 0, 60, .4); font-size: 14.5px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: #fff; }
.cookie .btn { flex: none; padding: 10px 22px; }
.foot-bottom a { color: #cdd2ff; }
@media (max-width: 640px) {
	.msgr { right: 14px; bottom: 14px; }
	.has-cookie .msgr { bottom: 216px; }
	.cookie { font-size: 13.5px; padding: 14px 16px; }
	.cookie { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; gap: 12px; }
}

/* ---------- v1.4: шрифт заголовков как в логотипе, скрытый e-mail ---------- */
h1, h2, h3, h4, .card h3, .service h3, .sol h3, .adv h3, .subhead, .form-card h3, .strip li {
	font-family: var(--font); font-weight: 900; letter-spacing: .015em;
}
.section-head h2 { text-transform: uppercase; letter-spacing: .02em; }
.hero h1 { font-weight: 900; letter-spacing: .01em; }
.em-reveal {
	font: inherit; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 8px;
	padding: 6px 12px; cursor: pointer; text-align: left; align-self: flex-start;
}
.em-reveal:hover { background: var(--brand); color: #fff; }
.site-footer .em-reveal { background: rgba(255, 255, 255, .12); color: #fff; }
.site-footer .em-reveal:hover { background: #fff; color: var(--brand-deep); }
.captcha input { max-width: 120px; }
.captcha .cap-q { color: var(--brand); white-space: nowrap; }

/* Карта на сенсорных экранах: верхний слой не даёт карте перехватывать прокрутку страницы */
.map-shield { display: none; }
@media (hover: none), (max-width: 1024px) {
	.map-shield {
		display: flex; position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; cursor: pointer;
		align-items: flex-end; justify-content: center; background: transparent; touch-action: pan-y;
	}
	.map-shield span {
		margin-bottom: 14px; background: rgba(0, 0, 80, .82); color: #fff; font-weight: 700; font-size: 14px;
		padding: 9px 16px; border-radius: 999px;
	}
	.map-card.is-active .map-shield { display: none; }
}

/* ---------- v1.8: логотип владельца, поставщики ---------- */
.logo-img { display: block; height: 54px; width: auto; }
.foot-in .logo-img { height: 60px; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 15px; text-decoration: none; }
.card-link svg { width: 16px; height: 16px; }
.card-link:hover { text-decoration: underline; }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.partner {
	display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--ink); }
.partner-name { font-size: 28px; font-weight: 900; color: var(--brand); letter-spacing: .01em; }
.partner-text { color: var(--muted); }
.partner-go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.partner-go svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .logo-img { height: 44px; } }

/* v1.8.1: карточки партнёров с логотипами */
.partner { align-items: center; text-align: center; gap: 18px; padding: 30px 28px; }
.partner-logo { display: grid; place-items: center; height: 84px; width: 100%; }
.partner-logo img { max-height: 76px; max-width: 220px; width: auto; height: auto; }
.partner-text { max-width: 36ch; }

.card-body .card-link { margin-right: 18px; }

/* v1.10 — баннер выезда */
.visit { display: flex; align-items: center; gap: 24px; margin-top: 28px; padding: 28px 32px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--brand) 0%, #1a22d8 100%); box-shadow: 0 18px 40px -22px rgba(0,0,160,.7); }
.visit-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.14); }
.visit-ico svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.8; }
.visit-body { flex: 1; min-width: 0; }
.visit-title { margin: 0 0 6px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; line-height: 1.25; color: #fff; }
.visit-body p { margin: 0; color: #dfe3ff; line-height: 1.5; }
.visit .btn { flex: none; background: #fff; color: var(--brand); }
@media (max-width: 760px) { .visit { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px; } .visit .btn { width: 100%; justify-content: center; } }
