/*
Theme Name: Balanced Protection
Theme URI: https://balanced-protection.com.ua/
Description: Сайт виробника електрощитів: типи щитів, виконані роботи, заявка з файлом. Графітовий перший екран, сині кнопки, Inter. ТЗ від 01.12.2026.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: bp
*/

/* ---------- fonts ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.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 {
	--graphite: #1C1F26;
	--graphite-2: #262A33;
	--graphite-3: #343945;
	--light: #F7F8FA;
	--blue: #0057B8;
	--blue-hover: #004A9C;
	--ink: #1C1F26;
	--muted: #5B6270;
	--muted-on-dark: #B4BAC6;
	--line: #E1E4EA;
	--line-dark: #3A3F4B;
	--white: #fff;
	--ok: #1E7B45;
	--err: #B3261E;
	--radius: 10px;
	--radius-s: 6px;
	--wrap: 1200px;
	--pad: clamp(16px, 4vw, 32px);
	--sec: clamp(40px, 5vw, 68px);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 72px;
	--bar-h: 0px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; padding-bottom: var(--bar-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid #5B9BE6; outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-s); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--sec) 0; }
.sec--light { background: var(--light); }
.sec--dark { background: var(--graphite); color: var(--white); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(22px, 3vw, 32px); }
.sec__head h2 { margin: 0; }
.sec__head p { margin: 8px 0 0; color: var(--muted); max-width: 40rem; }
.sec__more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec__more::after { content: " →"; }
.label { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sec--dark .label, .hero .label { color: var(--muted-on-dark); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: var(--radius-s); font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #C7CCD5; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .sec--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .sec--dark .btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- photo slot (no photo uploaded yet) ---------- */
.slot { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; min-height: 160px; padding: 18px; background: repeating-linear-gradient(135deg, #E6E9EE 0 14px, #EDF0F3 14px 28px); color: #6B7280; font-size: 14px; line-height: 1.4; }
.slot::before { content: ""; position: absolute; top: 18px; left: 18px; width: 28px; height: 22px; border: 2px solid currentColor; border-radius: 4px; opacity: .55; }
.slot::after { content: ""; position: absolute; top: 25px; left: 28px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; opacity: .55; }
.slot span { position: relative; max-width: 30em; }
.slot--dark { background: repeating-linear-gradient(135deg, #2B3039 0 14px, #2F343E 14px 28px); color: #9AA1AE; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--white); }
.brand img { max-height: 40px; width: auto; }
.brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--blue); }
.brand__mark svg { width: 18px; height: 18px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; border-radius: var(--radius-s); color: #D9DDE4; text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover, .nav .is-current > a { color: var(--white); background: var(--graphite-3); }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.header-phone:hover { color: var(--white); text-decoration: underline; }
.header-phone svg { width: 18px; height: 18px; color: #7FB2EE; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; color: var(--white); cursor: pointer; border-radius: var(--radius-s); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
	:root { --header-h: 64px; }
	.site-header__bar { gap: 12px; }
	.brand { font-size: 17px; }
	.brand__text { display: none; }
	.header-phone { margin-left: auto; font-size: 16px; }
	.nav-toggle { display: inline-flex; }
	.nav { position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: var(--graphite); padding: 12px var(--pad) 32px; overflow-y: auto; display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { padding: 16px 4px; font-size: 20px; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
	.nav .is-current > a { background: transparent; color: #7FB2EE; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 380px) {
	.header-phone span { font-size: 15px; }
	.header-phone svg { display: none; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--graphite); color: var(--white); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(680px, calc(100svh - var(--header-h))); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__text h1 { margin-bottom: 20px; }
.hero__text p { font-size: clamp(18px, 1.7vw, 21px); color: #D3D7DF; max-width: 34rem; margin-bottom: 32px; }
.hero__media { position: relative; height: clamp(420px, 44vw, 600px); border-radius: var(--radius); overflow: hidden; background: var(--graphite-2); }
.hero__media img, .hero__media picture { width: 100%; height: 100%; object-fit: cover; }
.hero__media .slot { min-height: 100%; }

@media (max-width: 860px) {
	.hero__grid { display: block; position: relative; min-height: 0; padding: 0 var(--pad); }
	.hero__media { position: relative; height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 860px; border-radius: 0; margin: 0 calc(-1 * var(--pad)); }
	.hero__media .slot { align-items: flex-start; padding-top: 64px; }
	.hero__text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 120px var(--pad) 28px; background: linear-gradient(to bottom, rgba(28,31,38,0) 0, rgba(28,31,38,.78) 90px, rgba(28,31,38,.94) 100%); }
	.hero__text h1 { font-size: clamp(32px, 9vw, 42px); margin-bottom: 12px; }
	.hero__text p { font-size: 17px; margin-bottom: 22px; color: #E3E6EB; }
	.hero .btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
	.hero .btn { width: 100%; }
}

/* hero without a photo: text and buttons across the full width */
.hero--text .hero__grid { display: block; min-height: 0; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero--text .hero__text { max-width: 52rem; }
.hero--text .hero__text p { max-width: 42rem; }
@media (max-width: 860px) {
	.hero--text .hero__grid { padding: 44px var(--pad) 40px; }
	.hero--text .hero__text { position: static; padding: 0; background: none; }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { color: var(--ink); border-color: #B9C0CC; box-shadow: 0 10px 30px rgba(28,31,38,.08); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--light); }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { margin: 0; color: var(--muted); font-size: 16px; }
.card__go { margin-top: auto; padding-top: 18px; font-weight: 600; color: var(--blue); font-size: 16px; }
.card__go::after { content: " →"; }

.work-card__object { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.params { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.params li { padding: 4px 10px; border-radius: 999px; background: var(--light); border: 1px solid var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.card--slot { border-style: dashed; background: transparent; }
.card--slot .card__body p { font-size: 15px; }

/* ---------- start (two paths) ---------- */
.path { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.path__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #E8F0FA; color: var(--blue); margin-bottom: 20px; }
.path__icon svg { width: 26px; height: 26px; }
.path h3 { font-size: 24px; }
.path p { color: var(--muted); }
.path--why p { margin: 0; }
.path--why h3 { font-size: 21px; }
.path .btns { margin-top: auto; padding-top: 8px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 64px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); }
.process__media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.process__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA + form ---------- */
.cta { background: var(--graphite); color: var(--white); }
.cta__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta__phone { display: inline-block; margin: 12px 0 6px; font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.cta__phone:hover { color: #9CC3F2; }
.cta__note { color: var(--muted-on-dark); }
.cta__mail a { color: #9CC3F2; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: minmax(0, 1fr); } }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CDD2DA; border-radius: var(--radius-s); font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--white); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,184,.18); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.form__hint { font-size: 14px; color: var(--muted); margin: -4px 0 14px; }
.form__type { display: flex; gap: 8px; align-items: baseline; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius-s); background: var(--light); font-size: 15px; }
.form__type b { font-weight: 600; }
.field .file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px dashed #B8BFCB; border-radius: var(--radius-s); background: var(--light); cursor: pointer; font-size: 15px; }
.field .file:hover, .field .file:focus-within { border-color: var(--blue); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.file__name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__clear { position: relative; z-index: 2; margin-left: auto; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; padding: 6px; }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit[disabled] { opacity: .7; cursor: progress; }
.form__legal { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.form__msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-s); font-size: 15px; }
.form__msg.is-error { display: block; background: #FCECEA; color: var(--err); }
.form__done { display: none; text-align: center; padding: 28px 8px; }
.form__done svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 12px; }
.form__done h3 { margin-bottom: 6px; }
.form__done p { color: var(--muted); margin: 0 0 18px; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__done { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- inner pages ---------- */
.crumbs { font-size: 14px; color: var(--muted-on-dark); margin-bottom: 18px; }
.crumbs a { color: var(--muted-on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }
.page-hero { background: var(--graphite); color: var(--white); padding: clamp(32px, 5vw, 64px) 0; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); }
.page-hero p.lead { color: #D3D7DF; max-width: 44rem; margin-bottom: 0; }
.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero--split .btns { margin-top: 28px; }
.page-hero__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #fff; }
.page-hero__media img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) {
	.page-hero--split .wrap { grid-template-columns: 1fr; }
	.page-hero--split .page-hero__media { order: -1; margin: calc(-1 * clamp(32px, 5vw, 64px)) calc(-1 * var(--pad)) 0; border-radius: 0; aspect-ratio: 4 / 3; }
	.page-hero--split .btns { display: grid; grid-template-columns: 1fr; }
	.page-hero--split .btn { width: 100%; }
}

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose .wp-block-gallery, .prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--radius-s); }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }

.type-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.type-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.type-aside h3 { font-size: 19px; }
.type-aside .cta__phone { color: var(--ink); font-size: 28px; margin: 4px 0 2px; }
.type-aside .cta__phone:hover { color: var(--blue); }
.type-aside p { color: var(--muted); font-size: 15px; }
.type-aside .btn { width: 100%; margin-top: 8px; }
@media (max-width: 980px) { .type-layout { grid-template-columns: 1fr; } .type-aside { position: static; } }

.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 8px; padding: 0; }
.variants li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
.variants strong { display: block; font-size: 17px; }
.variants span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 640px) { .variants { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-s); background: var(--light); }
.features svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.type-aside .btn--ghost { color: var(--ink); border-color: #C7CCD5; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--blue); }
.checklist li::after { content: ""; position: absolute; left: 8px; top: 18px; width: 6px; height: 10px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.block { margin-bottom: clamp(40px, 5vw, 56px); }
.block > h2 { font-size: clamp(24px, 2.6vw, 30px); }
.block__note { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--light); font-size: 15px; color: var(--muted); }

.work-head { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.work-head li { padding: 6px 12px; border-radius: 999px; background: var(--graphite-3); font-size: 15px; font-weight: 600; }
.work-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 36px; }
.work-meta div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.work-meta dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.work-meta dd { margin: 6px 0 0; font-weight: 600; }

.contacts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contacts dl { margin: 0; }
.contacts dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.contacts dt:first-child { margin-top: 0; }
.contacts dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; }
.contacts dd a { color: var(--ink); text-decoration: none; }
.contacts dd a:hover { color: var(--blue); text-decoration: underline; }
.contacts .form { border: 1px solid var(--line); }
@media (max-width: 860px) { .contacts { grid-template-columns: minmax(0, 1fr); } }
.contacts dd { overflow-wrap: anywhere; }

.empty { padding: 32px; border: 1px dashed #C7CCD5; border-radius: var(--radius); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #15171C; color: #C4C9D2; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #E3E6EB; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8B92A0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-phone { font-size: 22px; font-weight: 700; color: var(--white) !important; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A2E37; color: #8B92A0; font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- bottom action bar ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 8px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(28,31,38,.97); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .2s ease; }
.actionbar .btn { flex: 1; min-width: 0; min-height: 48px; padding: 0 8px; gap: 6px; font-size: 16px; }
@media (max-width: 400px) { .actionbar .btn svg { display: none; } }
.actionbar.is-visible { transform: none; }
@media (max-width: 860px) {
	.actionbar { display: flex; }
	body.has-actionbar { --bar-h: calc(68px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .actionbar { transition: none; } html { scroll-behavior: auto; } }

/* ---------- 404 ---------- */
.notfound { padding: var(--sec) 0; }
.notfound .btns { margin-top: 24px; }

/* ---------- photo credit (temporary photos from other sites) ---------- */
.photo-credit { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(28,31,38,.72); color: #fff; font-size: 12px; line-height: 1.4; pointer-events: none; }
.contacts__map { font-size: 16px; font-weight: 500; color: var(--blue) !important; }

/* Partners: logo grid on the switchboard type pages */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.partners__item { background: var(--white); border: 1px solid var(--line, #E3E6EB); border-radius: 8px; display: flex; align-items: center; justify-content: center; aspect-ratio: 12 / 5; padding: 10px 14px; }
.partners__item img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .partners__item { padding: 6px 8px; } }
@media (max-width: 380px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
