/* ==========================================================================
   Keentegro 2026 — «креслярський аркуш»
   Кольори з брендбука (2016): Pantone 631C, 675C, Black, 541C, Cool Grey 1C.
   Mobile-first: базові стилі для 360px, далі @media (min-width).
   ========================================================================== */

/* ---------- Токени ---------- */
:root {
	--paper: #ffffff;
	--paper-2: #f2f5f6;          /* світлий фон секцій з відтінком бірюзи */
	--ink: #2d2d2c;              /* Pantone Black */
	--ink-2: #565c60;            /* другорядний текст, контраст 6.7:1 */
	--line: #dadad9;             /* Cool Grey 1C */
	--teal: #00b3c7;             /* Pantone 631C — для ліній і декору */
	--teal-ink: #00788a;         /* бірюза для тексту: контраст 5.0:1 (AA) */
	--magenta: #b32284;          /* Pantone 675C — дії, акценти: 5.9:1 */
	--magenta-ink: #9a1c71;
	--navy: #263c65;             /* Pantone 541C */
	--on-dark: #ffffff;
	--on-dark-2: #c9d3e3;
	--grid: rgba(0, 120, 138, .07);

	--f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gutter: 16px;
	--r: 2px;
	--hdr-h: 68px;
	--sec: 72px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --hdr-h: 76px; --sec: 104px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); }
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: 820px; }

/* Мітка-«штамп»: моноширинний шрифт, верхній регістр */
.label { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.sq { display: inline-block; width: 8px; height: 8px; background: var(--magenta); margin-right: 10px; vertical-align: 1px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: var(--r);
	font: 600 16px/1.2 var(--f-body); text-decoration: none; text-align: center;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.arrow { font-family: var(--f-mono); }
.more { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--magenta); padding-bottom: 2px; white-space: nowrap; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr { top: 0; } }
.hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--hdr-h); }
.logo { flex: none; display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }
@media (min-width: 1100px) { .logo img { height: 44px; } }

.nav { display: none; margin-left: auto; }
.nav .menu { list-style: none; padding: 0; display: flex; gap: 4px; }
.nav .menu > li { position: relative; }
.nav .menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid transparent; }
.nav .menu > li > a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a { border-color: var(--teal); color: var(--ink); }
.nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav .sub-menu {
	list-style: none; position: absolute; left: 0; top: 100%; min-width: 260px; padding: 8px 0;
	background: var(--paper); border: 1px solid var(--ink); visibility: hidden; opacity: 0; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.nav .sub-menu a { display: block; padding: 10px 18px; text-decoration: none; }
.nav .sub-menu a:hover { background: var(--paper-2); }

.hdr-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tel { display: none; font: 500 15px/1 var(--f-mono); text-decoration: none; white-space: nowrap; }
.lang { display: flex; gap: 6px; font: 500 13px/1 var(--f-mono); }
.lang a { color: var(--ink-2); text-decoration: none; padding: 6px 2px; }
.lang a[aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--magenta); }
.hdr .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 560px) { .hdr .hdr-cta { display: none; } }
@media (min-width: 1180px) {
	.nav { display: block; }
	.hdr-tools { margin-left: 0; }
	.tel { display: inline; }
	.burger { display: none; }
}

/* Мобільне меню */
.drawer { position: fixed; inset: var(--hdr-h) 0 0; z-index: 49; background: var(--paper); overflow-y: auto; padding-block: 16px 40px; border-top: 1px solid var(--line); }
.admin-bar .drawer { top: calc(var(--hdr-h) + 46px); }
.drawer[hidden] { display: none; }
.drawer .menu { list-style: none; padding: 0; }
.drawer .menu a { display: block; padding: 14px 0; font-size: 20px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .sub-menu { list-style: none; padding: 0 0 8px 16px; }
.drawer .sub-menu a { font-size: 17px; padding: 10px 0; border-bottom: 0; color: var(--ink-2); }
.drawer .drawer-contacts { margin-top: 28px; display: grid; gap: 14px; }
.drawer .drawer-contacts .tel { display: inline; font-size: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- Перший екран: фото на всю ширину + фірмове затемнення + сітка-креслення ---------- */
.grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.hero-shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(180deg, rgba(20,33,58,.55) 0%, rgba(20,33,58,.92) 75%);
}
@media (min-width: 1000px) {
	.hero-shade {
		background:
			linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
			linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
			linear-gradient(90deg, rgba(20,33,58,.94) 0%, rgba(20,33,58,.82) 42%, rgba(20,33,58,.25) 75%, rgba(20,33,58,.1) 100%);
	}
}
.hero .wrap { position: relative; display: grid; align-content: end; gap: 40px; min-height: min(78vh, 720px); padding-block: 96px 40px; }
@media (min-width: 1000px) { .hero .wrap { padding-block: 120px 56px; } }
.hero-text { max-width: 640px; }
.hero .label { color: #7fdbe6; }
.hero h1 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 18px; color: #fff; }
.hero h1 em { font-style: normal; color: #f39ad3; } /* світлий пурпур: контраст 6.9:1 на темно-синьому */
.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero .lead { color: #dbe3ef; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-meta { margin-top: 20px; font: 400 14px/1.5 var(--f-mono); color: #c9d3e3; }
.hero-meta a { text-decoration: none; color: #fff; }
.hero :focus-visible { outline-color: #7fdbe6; }

/* Штамп креслення */
.stamp { position: relative; width: min(100%, 420px); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; font-family: var(--f-mono); font-size: 13px; }
@media (min-width: 1000px) { .stamp { justify-self: end; margin-top: -24px; } }
.stamp > div { padding: 10px 14px; border-right: 1px solid var(--ink); min-width: 0; }
.stamp > div:last-child { border-right: 0; }
.stamp small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.stamp strong { font-weight: 500; }

/* ---------- Секції ---------- */
.sec { padding-block: var(--sec); }
.sec-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head h2, .h2 { font-size: clamp(28px, 3.2vw, 42px); margin-top: 12px; max-width: 20em; }

/* Шапка внутрішніх сторінок */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 32px 48px; }
@media (min-width: 1000px) { .page-head .wrap { padding-block: 48px 72px; } }
.page-head h1 { font-size: clamp(32px, 4.2vw, 54px); margin-top: 14px; max-width: 22em; }
.page-head .lead { margin-top: 18px; }
.page-head.has-media .wrap { display: grid; gap: 32px; }
@media (min-width: 1000px) { .page-head.has-media .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 56px; } }
.page-head.has-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }

.crumbs { font: 400 13px/1.4 var(--f-mono); color: var(--ink-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }

/* ---------- Клієнти ---------- */
.clients-strip { border-bottom: 1px solid var(--line); }
.clients-strip .wrap { padding-block: 36px; }
.logos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 600px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .logos.is-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logos li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 96px; display: grid; place-items: center; padding: 16px; background: var(--paper); }
.logos img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos li:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }
.logos .name { font: 600 14px/1.25 var(--f-body); color: var(--ink-2); text-align: center; }
.logos-big li { min-height: 140px; }
.logos-big img { max-height: 80px; }

/* ---------- Картки послуг ---------- */
.services { display: grid; gap: 24px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: border-color .15s; }
.svc:hover { border-color: var(--ink); color: inherit; }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc h3 { font-size: 24px; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc .go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--magenta); }

/* ---------- Чому нам довіряють ---------- */
.why { display: grid; gap: 48px; }
@media (min-width: 1000px) { .why { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); margin-top: 32px; }
.figures > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.figures > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.figures > div:nth-child(even) { padding-left: 16px; }
.figures b { display: block; font: 600 clamp(30px, 3.4vw, 44px)/1.05 var(--f-body); font-variant-numeric: tabular-nums; }
.figures span { font-size: 14px; color: var(--ink-2); }
.proofs { border-top: 1.5px solid var(--ink); }
.proof { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.proof i { font: 500 14px/1.6 var(--f-mono); font-style: normal; color: var(--magenta); }
.proof h3 { font-size: 20px; margin-bottom: 6px; }
.proof p { color: var(--ink-2); font-size: 16px; }

/* ---------- Етапи ---------- */
.steps { display: grid; border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .step { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px; } .step:first-child { padding-left: 0; } .step:last-child { border-right: 0; } }
.step .label { color: var(--magenta); }
.step h3 { font-size: 28px; margin: 10px 0; }
.step p { color: var(--ink-2); font-size: 16px; }

/* ---------- Картки проектів і статей ---------- */
.cards { display: grid; gap: 40px 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; }
.card .ph { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.card:hover img { transform: scale(1.03); }
.card .tag { position: absolute; left: 0; bottom: 0; background: var(--paper); font: 500 13px/1 var(--f-mono); padding: 8px 12px; color: var(--ink); }
.card h3 { font-size: 20px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--ink-2); }
.card time { font: 400 13px/1 var(--f-mono); color: var(--ink-2); }
.card:hover h3 { color: var(--magenta); }

/* ---------- Відгуки ---------- */
.reviews { display: grid; gap: 24px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rev { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.rev blockquote { margin: 0; font-size: 17px; }
.rev blockquote::before { content: "“"; display: block; font: 600 56px/.6 var(--f-body); color: var(--teal); margin-bottom: 10px; }
.rev figcaption { margin-top: auto; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; }
.rev figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.rev .scan { flex: none; display: block; width: 64px; border: 1px solid var(--line); line-height: 0; }
.rev .scan img { width: 64px; height: 88px; object-fit: cover; object-position: top; }

/* ---------- Запит КП ---------- */
.rfq { background: var(--navy); color: var(--on-dark); }
.rfq .wrap { display: grid; gap: 48px; padding-block: 80px; }
@media (min-width: 1000px) { .rfq .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding-block: 104px; } }
.rfq .label { color: #7fdbe6; }
.rfq h2 { font-size: clamp(28px, 3.2vw, 42px); margin-top: 12px; }
.rfq p { color: var(--on-dark-2); margin-top: 18px; max-width: 30em; }
.rfq a { color: var(--on-dark); }
.contacts { margin-top: 32px; display: grid; gap: 14px; font-family: var(--f-mono); font-size: 15px; }
.contacts small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #93a3bd; }
.contacts a { text-decoration: none; }

.rfq-form { display: grid; gap: 16px; background: var(--paper); color: var(--ink); padding: 24px; border-radius: var(--r); }
@media (min-width: 600px) { .rfq-form { grid-template-columns: 1fr 1fr; padding: 36px; } .rfq-form .full { grid-column: 1 / -1; } }
.fld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fld label { font-size: 14px; font-weight: 500; }
.fld input, .fld textarea, .fld select { font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-2); border-radius: var(--r); padding: 12px 14px; min-height: 48px; width: 100%; }
.fld input[type="file"] { padding: 10px; }
.fld textarea { min-height: 120px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal-ink); }
.fld [aria-invalid="true"] { border-color: var(--magenta); }
.err { font-size: 13px; color: var(--magenta-ink); }
.err:empty { display: none; }
.hint { font-size: 13px; color: var(--ink-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--magenta); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rfq-form .status { margin: 0; font-size: 15px; font-weight: 500; color: var(--teal-ink); }
.rfq-form .status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Пагінація ---------- */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Сторінка проекту ---------- */
.prj-facts { display: grid; border-top: 1.5px solid var(--ink); margin-top: 32px; }
@media (min-width: 700px) { .prj-facts { grid-template-columns: 2fr 1fr; } }
.prj-facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 700px) { .prj-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); } }
.prj-facts small { display: block; font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- Текст із редактора ---------- */
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--teal-ink); }
.prose a { color: var(--magenta-ink); }
.prose img { border-radius: var(--r); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--teal); font-size: 20px; }
.prose .wp-block-gallery { margin-top: 2em; gap: 12px; }
.prose .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.prose iframe { width: 100%; border: 0; }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper-2); }
.prose .wp-block-file .wp-block-file__button { background: var(--magenta); color: #fff; border-radius: var(--r); padding: 10px 18px; text-decoration: none; font-weight: 600; }
.prose .wp-block-table table { border-collapse: collapse; width: 100%; }
.prose .wp-block-table td, .prose .wp-block-table th { border: 1px solid var(--line); padding: 10px 12px; }
.alignwide { max-width: none; }

.layout-2 { display: grid; gap: 48px; }
@media (min-width: 1000px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }
.aside-card { border: 1.5px solid var(--ink); padding: 24px; display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--hdr-h) + 24px); }
.aside-card h2 { font-size: 22px; }
.aside-card p { font-size: 15px; color: var(--ink-2); }

/* Галерея проекту + перегляд на весь екран */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gallery a:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery a { display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 25, 28, .94); display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; padding: 56px 8px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 112px); width: auto; max-width: 100%; margin: auto; }
.lightbox button { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: 500 20px/1 var(--f-mono); cursor: pointer; border-radius: var(--r); }
.lightbox .lb-close { position: absolute; top: 12px; right: 12px; }
.lightbox .lb-count { position: absolute; top: 24px; left: 20px; color: #fff; font: 400 13px/1 var(--f-mono); }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; max-width: 45%; }
.post-nav small { display: block; font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 6px; }

/* Сертифікати */
.docs { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .docs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.docs a { display: block; border: 1px solid var(--line); padding: 12px; background: var(--paper); }
.docs a:hover { border-color: var(--ink); }
.docs img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; }

/* Контакти */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.contact-list { display: grid; border-top: 1.5px solid var(--ink); }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 20px; font-weight: 500; }
.map-link { display: block; position: relative; border: 1px solid var(--line); background: var(--paper-2); min-height: 320px; text-decoration: none; }

/* ---------- Підвал ---------- */
.ftr { border-top: 1px solid var(--line); font-size: 15px; }
.ftr .wrap { padding-block: 56px 28px; display: grid; gap: 36px; }
.ftr .cols { display: grid; gap: 32px; }
@media (min-width: 700px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ftr .cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.ftr h2 { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr .logo img { height: 40px; }
.ftr .tagline { margin-top: 14px; color: var(--ink-2); max-width: 22em; }
.ftr .social { display: flex; gap: 16px; }
.ftr .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; font: 400 13px/1.5 var(--f-mono); color: var(--ink-2); }

/* 404 */
.e404 .code { font: 500 clamp(80px, 14vw, 160px)/1 var(--f-mono); color: var(--line); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.hdr, .drawer, .ftr, .rfq, .hero-cta { display: none !important; }
}

/* Галерея документів (сертифікати): пропорції A4, без обрізання тексту */
.prose .docs-gallery img { aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.prose .docs-gallery figure { background: var(--paper); }

/* Плаваючий перемикач TranslatePress не потрібен: мови перемикаються в шапці */
.trp-floating-switcher, #trp-floater-ls { display: none !important; }

/* Кнопки з редактора блоків — у фірмовому стилі */
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 2px; background: var(--magenta); color: #fff; font-weight: 600; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--magenta-ink); color: #fff; }

/* Вакансії з robota.ua */
.prose .vac-list { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); margin-top: 1.5em; }
.prose .vac-list .vac { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (min-width: 700px) { .prose .vac-list .vac { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; } }
.prose .vac-title { font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; }
.prose .vac-title:hover { color: var(--magenta); }
.prose .vac-title::after { content: " ↗"; font-family: var(--f-mono); font-size: 14px; color: var(--ink-2); }
.prose .vac-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 14px/1.5 var(--f-mono); color: var(--ink-2); }
.prose .vac-salary { color: var(--teal-ink); }
.prose .vac-src { font-size: 14px; color: var(--ink-2); }

/* Карта на сторінці контактів */
.map-box { display: grid; border: 1px solid var(--line); background: var(--paper-2); min-width: 0; }
.map-frame { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.35); }
@media (min-width: 1000px) { .map-frame { min-height: 460px; } }
.map-caption { display: grid; gap: 8px; padding: 20px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.map-caption strong { font-size: 20px; }
.map-caption .more { justify-self: start; }
