/*
Theme Name: Респект Консулт 2012
Theme URI: https://tedbg.com
Author: TEDBG
Author URI: https://tedbg.com
Description: One-page corporate theme for rc2012.bg (investment design and independent construction supervision, Kardzhali). Montserrat, navy and silver palette, photo hero with the company slogan, anchored sections, WebP pictures, own contact form, no page builder, no jQuery.
Version: 2.1.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rc2012
Tags: custom-menu, featured-images, one-column, two-columns
*/

/* ============================================================
   1. Fonts (self-hosted Montserrat variable, cyrillic + latin)
   ============================================================ */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-normal-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-italic-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   2. Design tokens
   ============================================================ */
:root {
	--navy: #0b2545;
	--navy-2: #13315c;
	--navy-3: #1b3f73;
	--blue: #1d5fa8;
	--blue-2: #2a74c7;
	--sky: #7fb2f0;
	--sky-2: #d6e6fa;
	--silver: #e6eaf0;
	--silver-2: #d5dbe4;
	--bg: #f5f7fa;
	--white: #fff;
	--text: #1e293b;
	--muted: #5b6b7f;
	--ok-bg: #e7f6ec;
	--ok: #166534;
	--err-bg: #fdecec;
	--err: #991b1b;
	--r: 10px;
	--r-sm: 8px;
	--shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
	--shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.14);
	--hdr-h: 84px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--sec: clamp(56px, 8vw, 104px);
	--font: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============================================================
   3. Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	text-wrap: pretty;
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; 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:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--navy); color: #fff; z-index: 200; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.ico { flex: 0 0 auto; vertical-align: -0.2em; }
/* Anchored sections stop under the fixed header. */
section[id], article[id], #zapitvane { scroll-margin-top: calc(var(--hdr-h) + 8px); }

/* ============================================================
   4. Buttons, headings, shared bits
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 26px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	border: 1.5px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
	white-space: nowrap;
}
.btn .ico { transition: transform 0.2s; }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(29, 95, 168, 0.28); }
.btn-primary:hover { background: var(--blue-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
/* Phone buttons (header, menu): outlined rectangle, two of them, one per engineer. */
.btn-phone { background: transparent; color: var(--navy); border-color: var(--navy); border-radius: 6px; min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.btn-phone:hover { background: var(--navy); color: #fff; }

.eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue);
}
.sec-head { margin-bottom: 36px; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; }
.sec-head h1::after, .sec-head h2::after, .sec-head h3::after, .bar::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 16px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--blue), var(--sky));
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; }

/* ============================================================
   5. Header: logo left, menu + two phone buttons right.
      On the home page it sits over the hero picture (white) and turns
      solid white after scrolling. Elsewhere it is a sticky white bar.
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--silver);
	transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, 0.08); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hdr-h); transition: min-height 0.25s ease; }
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 56px; width: auto; transition: height 0.25s ease; }
/* Home page, top of the screen: big readable logo in a taller bar; it shrinks together with the sticky bar after scrolling. */
@media (min-width: 1025px) {
	body.is-onepage .site-header:not(.is-scrolled) .logo-img { height: 100px; }
	body.is-onepage .site-header:not(.is-scrolled) .hdr { min-height: 132px; }
}
.site-header .logo-white { display: none; }
.mnav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu li a {
	display: block;
	padding: 10px 13px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--navy);
	position: relative;
	transition: color 0.2s, background 0.2s;
}
.menu li a:hover { color: var(--blue); background: var(--bg); }
.menu li a::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 4px;
	height: 3px;
	border-radius: 2px;
	background: var(--blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s;
}
.menu li a.is-active::after, .menu li.is-current > a::after { transform: scaleX(1); }
.hdr-phones { display: flex; gap: 10px; }
.hdr-phones small { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-call { display: none; }
.hdr-call span { display: none; } /* icon only; theme.js still reads the number for the tel: link */
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; color: var(--navy); cursor: pointer; }
.burger:hover { background: var(--bg); }
.burger .b-close { display: none; }
.nav-backdrop { display: none; }

/* Home page: fixed, transparent over the hero, white text and logo. */
body.is-onepage .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
body.is-onepage .site-header.is-clear .logo-navy { display: none; }
body.is-onepage .site-header.is-clear .logo-white { display: block; }
body.is-onepage .site-header.is-clear .menu li a { color: #fff; }
body.is-onepage .site-header.is-clear .menu li a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
body.is-onepage .site-header.is-clear .menu li a::after { background: #fff; }
body.is-onepage .site-header.is-clear .btn-phone { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
body.is-onepage .site-header.is-clear .btn-phone:hover { background: #fff; color: var(--navy); border-color: #fff; }
body.is-onepage .site-header.is-clear .burger, body.is-onepage .site-header.is-clear .hdr-call { color: #fff; }
body.is-onepage .site-header.is-clear .burger:hover { background: rgba(255, 255, 255, 0.12); }
body.is-onepage .site-header.is-scrolled, body.is-onepage.nav-open .site-header { background: #fff; border-bottom-color: var(--silver); box-shadow: 0 6px 24px rgba(11, 37, 69, 0.08); }

@media (max-width: 1024px) {
	:root { --hdr-h: 68px; }
	.logo-img { height: 52px; }
	.burger { display: inline-flex; }
	.hdr-call { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--navy); }
	.hdr-call:hover { background: var(--bg); }
	.nav {
		display: none;
		position: fixed;
		top: var(--hdr-h);
		left: 0;
		right: 0;
		bottom: 0;
		margin: 0;
		padding: 16px var(--gutter) 32px;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		overflow-y: auto;
		z-index: 99;
		animation: rc-nav-in 0.22s ease;
	}
	@keyframes rc-nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	.menu { flex-direction: column; gap: 2px; }
	.menu li a { padding: 14px 12px; font-size: 1.08rem; border-bottom: 1px solid var(--silver); border-radius: 0; }
	.menu li a::after { display: none; }
	.hdr-phones { flex-direction: column; gap: 10px; margin-top: 22px; }
	.hdr-phones .btn-phone { justify-content: flex-start; min-height: 52px; }
	.hdr-phones small { display: inline; margin-left: auto; font-weight: 500; color: var(--muted); font-size: 0.85rem; }
	.hdr-phones .btn-phone:hover small { color: rgba(255, 255, 255, 0.8); }
	.mnav-toggle:checked ~ .hdr .nav { display: flex; }
	.mnav-toggle:checked ~ .hdr .burger .b-open { display: none; }
	.mnav-toggle:checked ~ .hdr .burger .b-close { display: inline-flex; }
	body.nav-open { overflow: hidden; }
	/* Open menu: the bar turns solid even at the top of the home page (CSS only, no JS needed). */
	body.is-onepage .site-header:has(.mnav-toggle:checked) { background: #fff; border-bottom-color: var(--silver); }
	body.is-onepage .site-header:has(.mnav-toggle:checked) .logo-navy { display: block; }
	body.is-onepage .site-header:has(.mnav-toggle:checked) .logo-white { display: none; }
	body.is-onepage .site-header:has(.mnav-toggle:checked) .burger, body.is-onepage .site-header:has(.mnav-toggle:checked) .hdr-call { color: var(--navy); }
	body.is-onepage .site-header:has(.mnav-toggle:checked) .menu li a { color: var(--navy); }
	body.is-onepage .site-header:has(.mnav-toggle:checked) .btn-phone { border-color: var(--navy); color: var(--navy); }
}

/* ============================================================
   6. Hero: full-screen photo with a navy shade, intro line and the
      company slogan on the left, two buttons.
   ============================================================ */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Full screen on every display (client, 15.10.2026): the picture fills the first screen, the next section starts below the fold. */
	min-height: max(620px, 100vh);
	min-height: max(620px, 100svh);
	padding: 180px 0 96px; /* clears the taller bar with the big logo at the top */
	background: var(--navy);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg, rgba(11, 37, 69, 0.9) 0%, rgba(11, 37, 69, 0.66) 46%, rgba(11, 37, 69, 0.3) 100%),
		linear-gradient(180deg, rgba(11, 37, 69, 0.45) 0%, rgba(11, 37, 69, 0) 28%, rgba(11, 37, 69, 0) 72%, rgba(11, 37, 69, 0.55) 100%);
}
.hero-in { width: 100%; }
.hero-box { max-width: 960px; }
.hero-kicker {
	max-width: 640px;
	margin: 0 0 26px;
	padding-left: 18px;
	border-left: 3px solid var(--sky);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}
/* The slogan as the client wrote it: four lines, Montserrat Italic, one size. */
.hero h1 {
	color: #fff;
	font-size: clamp(1.4rem, 2.5vw, 2.35rem);
	line-height: 1.3;
	font-style: italic;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 36px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) {
	.hero { min-height: max(560px, 100vh); min-height: max(560px, 100svh); padding: calc(var(--hdr-h) + 40px) 0 80px; }
	.hero-img { object-position: 70% 50%; }
}
@media (max-width: 560px) {
	.hero .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   7. About: the client's text on the left (Кои сме ние? / Нашият опит /
      Нашето обещание), picture with an offset frame and the list
      "Какво предлагаме" on the right.
   ============================================================ */
.about { padding: var(--sec) 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin: 0 0 16px; }
.about-prose h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.about-prose h2:not(:first-child) { margin-top: 40px; }
.about-prose p { color: #2b3a4e; font-size: 1.02rem; margin-bottom: 14px; }
.about-prose p:last-child { margin-bottom: 0; }
.about-side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.about-media { position: relative; margin: 0 24px 24px 0; }
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.about-media::after { content: ""; position: absolute; left: 24px; top: 24px; right: -24px; bottom: -24px; border: 2px solid var(--blue); border-radius: var(--r-sm); }
.offer { margin-top: 46px; }
.offer h3 { font-size: 1.15rem; margin-bottom: 16px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.offer-list a {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 14px;
	align-items: center;
	padding: 9px 12px;
	border-radius: var(--r-sm);
	color: var(--navy);
	font-weight: 600;
	font-size: 0.93rem;
	line-height: 1.35;
	transition: background 0.2s, color 0.2s;
}
.offer-list a:hover { background: var(--bg); color: var(--blue); }
.offer-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--sky-2); color: var(--blue); transition: background 0.2s, color 0.2s; }
.offer-list a:hover .offer-ico { background: var(--blue); color: #fff; }
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-side { position: static; }
	.about-media { margin-right: 18px; margin-bottom: 18px; }
	.about-media::after { left: 18px; top: 18px; right: -18px; bottom: -18px; }
}

/* ============================================================
   8. Services: title with bar, two columns of cards - picture on the
      left, navy box with the full name, the client's text and an
      expandable "Прочети повече".
   ============================================================ */
.services { padding: var(--sec) 0; background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.svc {
	display: grid;
	grid-template-columns: 210px 1fr;
	background: var(--navy);
	color: #fff;
	border-radius: var(--r-sm);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: box-shadow 0.25s, transform 0.25s;
}
.svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.svc:target { box-shadow: 0 0 0 3px var(--sky), var(--shadow-lg); }
.svc-media { display: block; position: relative; min-height: 240px; background: var(--navy-2); }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.svc:hover .svc-media img { transform: scale(1.03); }
.svc-num { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(11, 37, 69, 0.82); color: var(--sky); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; }
.svc-body { padding: 26px 28px 24px; }
.svc-body h3 { color: #fff; font-size: 1.2rem; line-height: 1.3; margin: 0 0 12px; }
.svc-body h3 a { color: #fff; }
.svc-body h3 a:hover { color: var(--sky); }
.svc-lead { margin: 0 0 12px; font-size: 0.94rem; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.svc-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-weight: 600; font-size: 0.92rem; color: var(--sky); }
.svc-link:hover { color: #fff; }
.svc-link .ico { transition: transform 0.2s; }
.svc-link:hover .ico { transform: translateX(3px); }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: 1fr; } }

/* Service page (/uslugi/<услуга>/): picture, short and full text, contacts and the other services aside. */
.svc-page { padding: var(--sec) 0; }
.svc-page-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-page-media { position: relative; margin: 0 0 28px; }
.svc-page-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.svc-page-media .svc-num { left: 16px; top: 16px; }
/* Two columns: the picture is at least as tall as the contact card beside it (--svc-card-h from theme.js). */
@media (min-width: 901px) { .svc-page-media img { min-height: var(--svc-card-h, 0px); } }
.svc-page-lead { color: var(--navy); font-weight: 500; margin-bottom: 20px; }
.svc-page-prose { max-width: none; }
.svc-page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--silver); }
.svc-page-aside { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 28px; }
.c-card-side h2, .svc-page-nav h2 { font-size: 1.15rem; margin-bottom: 14px; }
.c-card .c-lines .ico { color: var(--blue); }
.c-card .c-lines a { color: var(--text); font-weight: 500; }
.c-card .c-lines a:hover { color: var(--blue); }
.c-card .c-lines small { color: var(--muted); }
.svc-page-nav .is-current a { background: var(--sky-2); color: var(--navy); }
.svc-page-nav .is-current .offer-ico { background: var(--blue); color: #fff; }
@media (max-width: 900px) {
	.svc-page-grid { grid-template-columns: 1fr; }
	.svc-page-aside { position: static; }
}
@media (max-width: 640px) {
	.svc { grid-template-columns: 1fr; }
	.svc-media { min-height: 0; aspect-ratio: 16 / 9; }
	.svc-body { padding: 22px 20px 20px; }
}

/* ============================================================
   9. Contacts: office card + entrance photo, handshake photo + form,
      static map that opens Google Maps with the pin.
   ============================================================ */
.contact { padding: var(--sec) 0 0; background: #fff; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; margin-bottom: clamp(24px, 4vw, 48px); }
.c-card { background: var(--bg); border: 1px solid var(--silver); border-radius: var(--r-sm); padding: clamp(22px, 3vw, 34px); }
.c-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.c-dl { margin: 0; display: grid; gap: 18px; }
.c-dl dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.c-dl dt .ico { color: var(--blue); }
.c-dl dd { margin: 4px 0 0 28px; line-height: 1.6; }
.c-dl dd a { color: var(--text); font-weight: 500; }
.c-dl dd a:hover { color: var(--blue); }
.c-dl small { color: var(--muted); font-size: 0.85rem; }
.dd-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--blue) !important; font-size: 0.9rem; }
.c-photo { position: relative; margin: 0; min-height: 320px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--silver); }
.c-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-photo figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 36px 18px 14px;
	background: linear-gradient(180deg, rgba(11, 37, 69, 0), rgba(11, 37, 69, 0.85));
	color: #fff;
	font-size: 0.88rem;
	font-weight: 500;
}
.c-photo figcaption .ico { color: var(--sky); }
.c-card-form { background: #fff; box-shadow: var(--shadow); }
.c-card-form .eyebrow { margin-bottom: 6px; }
.c-card-form h3 { margin-bottom: 8px; }
.c-card-form .muted { font-size: 0.9rem; margin-bottom: 22px; }
/* Phone / e-mail text arrives reversed (anti-harvest, inc/obfuscate.php); shown right-to-left until theme.js restores it. */
.ob-f { unicode-bidi: bidi-override; direction: rtl; }
a.ob { cursor: pointer; }
@media (max-width: 900px) {
	.c-row { grid-template-columns: 1fr; }
	.c-photo { min-height: 0; aspect-ratio: 4 / 3; }
	.c-photo img { position: static; height: 100%; }
}

/* Form: one compact column (name, phone, e-mail, message). */
.c-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.f-row { display: grid; gap: 4px; }
.f-full { grid-column: 1 / -1; }
.f-row label { font-weight: 600; font-size: 0.86rem; color: var(--navy); }
.req { color: var(--err); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-left: 4px; }
.c-form input, .c-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1.5px solid #9aa7b8;
	border-radius: 6px;
	background: #fff;
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.c-form textarea { resize: vertical; min-height: 110px; }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.16); }
.c-form input:user-invalid, .c-form textarea:user-invalid { border-color: var(--err); }
.hp { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-status:empty { display: none; }
.f-status { grid-column: 1 / -1; }
.f-ok, .f-err { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 6px; font-weight: 500; }
.f-ok { background: var(--ok-bg); color: var(--ok); }
.f-err { background: var(--err-bg); color: var(--err); }
/* Cloudflare Turnstile (flexible width, but at least 300 px): space reserved so the button does not jump; on
   narrower forms theme.js sets --ts-scale and the widget shrinks instead of pushing the card wider. */
.c-row > *, .c-card-form, .c-form, .f-row { min-width: 0; }
.f-turnstile { min-height: 65px; overflow: hidden; }
.f-turnstile .cf-turnstile { transform: scale(var(--ts-scale, 1)); transform-origin: 0 0; }
.f-turnstile .cf-turnstile, .f-turnstile iframe { max-width: 100%; }
.f-submit { margin-top: 2px; }
.f-submit .btn { justify-self: start; min-height: 46px; max-width: 100%; }
@media (max-width: 420px) {
	/* 320 px phones: the submit button wraps its text instead of leaving the card (QA 19.10.2026). */
	.f-submit .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; padding: 12px 16px; }
}
.f-note { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }
.c-card-form .muted { margin-bottom: 16px; }

/* Map */
.map-frame { position: relative; display: block; height: clamp(300px, 42vw, 460px); background: var(--silver); overflow: hidden; color: var(--navy); }
.map-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.map-frame:hover img { transform: scale(1.02); }
.map-pill {
	position: absolute;
	left: var(--gutter);
	bottom: 24px;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	max-width: calc(100% - 2 * var(--gutter));
	padding: 12px 18px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--shadow-lg);
	font-weight: 600;
	font-size: 0.9rem;
	transition: transform 0.2s;
}
.map-pill em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.map-frame:hover .map-pill { transform: translateY(-2px); color: var(--blue); }
.map-pill .ico { color: var(--blue); }
.map-credit { position: absolute; right: 8px; bottom: 6px; font-size: 0.7rem; color: #334; background: rgba(255, 255, 255, 0.75); padding: 2px 6px; border-radius: 4px; }

/* ============================================================
   10. Inner pages (privacy policy, 404): navy band, prose
   ============================================================ */
.page-hero {
	padding: clamp(44px, 7vw, 84px) 0;
	background: var(--navy) linear-gradient(110deg, rgba(29, 95, 168, 0.45), transparent 60%);
	color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 12px; overflow-wrap: break-word; }
/* Small phones: long service titles ("предназначението", "инвестиционните") stuck out 14-20 px at 320 px. */
@media (max-width: 374px) { .page-hero h1 { font-size: clamp(1.5rem, 8.4vw, 1.9rem); } }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 820px; margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: 0.85rem; color: var(--sky); margin-bottom: 14px; }
.crumbs a { color: var(--sky); }
.crumbs a:hover { color: #fff; }
.page-body { padding: var(--sec) 0; }
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { font-size: 1.02rem; color: #2b3a4e; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sky-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5fa8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.prose ol li { margin-bottom: 10px; }
.prose img { border-radius: var(--r); }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--blue); background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.prose .btn { margin: 0 8px 8px 0; }

/* ============================================================
   11. Footer: logo + slogan, navigation, services (full names), contacts
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); }
.f-cols { display: grid; grid-template-columns: 1.4fr 0.8fr 1.3fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding: clamp(48px, 6vw, 72px) 0 40px; }
/* As big as the logo at the top of the home page (client, 15.10.2026). */
.f-brand .logo-img { height: 100px; margin-bottom: 24px; }
.f-slogan { max-width: 400px; margin: 0; font-style: italic; font-size: 0.98rem; line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.f-title { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.f-nav ul { list-style: none; margin: 0; padding: 0; }
.f-nav li { margin-bottom: 10px; line-height: 1.45; }
.f-nav a, .f-contact a { color: rgba(255, 255, 255, 0.82); font-weight: 500; }
.f-nav a:hover, .f-contact a:hover { color: #fff; }
.f-services a { font-size: 0.93rem; }
.c-lines { list-style: none; margin: 0; padding: 0; }
.c-lines li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: 16px; line-height: 1.5; }
.c-lines li:last-child { margin-bottom: 0; }
.c-lines .ico { color: var(--sky); margin-top: 3px; }
.c-lines small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.f-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.6);
}
.f-bottom a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.f-bottom a:hover { color: #fff; }
.f-bottom-r { display: flex; align-items: center; gap: 18px; }
.to-top { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; color: #fff; transition: background 0.2s, border-color 0.2s; }
.to-top:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
@media (max-width: 1024px) { .f-cols { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .f-cols { grid-template-columns: 1fr; } .f-brand .logo-img { height: 84px; } }

/* ============================================================
   12. Reveal on scroll (only when JS is there to add .is-in), print
   ============================================================ */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: calc(var(--i, 0) * 0.08s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv.is-in.no-anim { transition: none; } /* the anchor target of a page load is shown at once (theme.js) */
@media (prefers-reduced-motion: reduce) {
	.js .rv { opacity: 1; transform: none; transition: none; }
}
@media print {
	.site-header, .site-footer, .hero-img, .hero-shade, .map-frame, .c-card-form, .svc-num { display: none !important; }
	.rv { opacity: 1 !important; transform: none !important; }
	.hero { background: none; color: #000; min-height: 0; padding: 0; }
	.hero h1, .hero-kicker { color: #000; }
	.svc { background: none; color: #000; box-shadow: none; border: 1px solid #ccc; }
	.svc-body h3, .svc-lead, .svc-link { color: #000; }
	a { color: #000; }
}
