/* ==========================================================================
   Asistprofcont Registru
   Concept: pagina de registru contabil — rânduri liniate, coloana sumelor
   separată de o linie dublă, totaluri cu subliniere dublă, marker pe cifre.
   ========================================================================== */

:root {
	--petrol: #0F3D3E;
	--petrol-2: #155456;
	--ink: #142322;
	--muted: #4C5E5B;
	--paper: #F3F6F2;
	--sheet: #FFFFFF;
	--rule: #C8D6CF;
	--rule-dark: #2C5B5B;
	--mark: #DDF05A;

	--f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

	/* scară tipografică ~1.25 */
	--t-sm: 0.875rem;
	--t-base: 1.0625rem;
	--t-md: 1.25rem;
	--t-lg: 1.5625rem;
	--t-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
	--t-hero: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);

	--line: 1.75rem;           /* pasul liniaturii */
	--wrap: 72rem;
	--gap: clamp(1.25rem, 3vw, 2.5rem);
	--radius: 4px;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id], .bk, .bk-times { scroll-margin-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--t-base);
	line-height: 1.6;
	font-feature-settings: "tnum" 0;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--petrol-2); text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--petrol);
	outline-offset: 3px;
	border-radius: 2px;
}
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--mark); }

.screen-reader-text {
	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:focus {
	clip: auto; width: auto; height: auto;
	z-index: 100; top: 0.5rem; left: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--mark); color: var(--ink);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gap);
}

/* ---------- Butoane ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.4rem;
	border: 2px solid var(--petrol);
	border-radius: var(--radius);
	font: 600 var(--t-base)/1.2 var(--f-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--petrol); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--mark); }
.btn-ghost { background: transparent; color: var(--petrol); }
.btn-ghost:hover { background: var(--sheet); color: var(--petrol); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--t-sm); }

/* ---------- Antet ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(243, 246, 242, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.5rem;
}

.brand img, .custom-logo { max-height: 52px; width: auto; }
.brand-text {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--ink);
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 2.6rem; height: 2.6rem;
	background: var(--petrol);
	color: var(--mark);
	font: 800 0.9rem/1 var(--f-display);
	border-radius: var(--radius);
}
.brand-name { font: 600 var(--t-md)/1 var(--f-display); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav .menu {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0; padding: 0;
}
.main-nav .menu a {
	display: block;
	padding: 0.5rem 0.7rem;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.97rem;
	border-bottom: 2px solid transparent;
}
.main-nav .menu a:hover,
.main-nav .current-menu-item > a {
	border-bottom-color: var(--petrol);
	color: var(--petrol);
}
.main-nav .sub-menu {
	display: none;
	position: absolute;
	list-style: none; margin: 0; padding: 0.5rem 0;
	background: var(--sheet);
	border: 1px solid var(--rule);
	min-width: 12rem;
}
.main-nav .menu > li { position: relative; }
.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu { display: block; }

.nav-toggle {
	display: none;
	width: 2.75rem; height: 2.75rem;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--sheet);
	cursor: pointer;
	position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	position: absolute;
	left: 50%;
	width: 1.25rem; height: 2px;
	background: var(--ink);
	transform: translateX(-50%);
	transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; transform: none; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gap) 1.5rem;
		background: var(--paper);
		border-bottom: 1px solid var(--rule);
	}
	.main-nav.is-open { display: flex; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
	.main-nav .sub-menu { display: block; position: static; border: 0; padding-left: 1rem; background: none; }
	.header-cta { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
	/* liniatura registrului */
	background:
		repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), rgba(15, 61, 62, 0.07) calc(var(--line) - 1px), rgba(15, 61, 62, 0.07) var(--line)),
		var(--paper);
	border-bottom: 1px solid var(--rule);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.hero-kicker {
	margin: 0 0 1.25rem;
	font-weight: 600;
	color: var(--muted);
	padding-left: 0.85rem;
	border-left: 3px solid var(--mark);
}
.hero-title {
	font-size: var(--t-hero);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
	max-width: 14ch;
	color: var(--petrol);
	font-variation-settings: "opsz" 96;
}
.hero-lead {
	font-size: var(--t-md);
	line-height: 1.55;
	color: var(--muted);
	max-width: 36rem;
	margin: 1.5rem 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Registrul (elementul memorabil) ---------- */
.ledger {
	margin: 0;
	background: var(--sheet);
	border: 1px solid var(--petrol);
	border-radius: var(--radius);
	box-shadow: 12px 12px 0 -1px var(--paper), 12px 12px 0 0 var(--petrol);
	padding: 1.25rem 1.5rem 1.5rem;
	position: relative;
}
.ledger-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--petrol);
	font: 600 var(--t-md)/1.2 var(--f-display);
	color: var(--petrol);
}
.ledger-date {
	font: 500 var(--t-sm)/1 var(--f-body);
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.ledger-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums lining-nums;
}
.ledger-table th,
.ledger-table td {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: baseline;
}
.ledger-table th {
	text-align: left;
	font-weight: 400;
	color: var(--muted);
	padding-right: 1rem;
	font-size: 0.97rem;
	line-height: 1.4;
}
/* coloana sumelor, separată de linia dublă — ca în registru */
.ledger-table td {
	text-align: right;
	white-space: nowrap;
	padding-left: 1rem;
	border-left: 3px double var(--rule-dark);
	font: 600 var(--t-md)/1.2 var(--f-display);
	color: var(--ink);
}
.ledger-table tfoot th,
.ledger-table tfoot td {
	border-bottom: 0;
	padding-top: 1rem;
	color: var(--petrol);
}
.ledger-table tfoot th { font-weight: 600; vertical-align: bottom; padding-bottom: 0.3rem; }
.total {
	display: inline-block;
	padding: 0.15em 0 0.2em;
	border-top: 1px solid var(--ink);
	border-bottom: 4px double var(--ink);   /* subliniere dublă a totalului */
	font-size: var(--t-base);
	white-space: normal;
	text-align: right;
}
.ledger-table tfoot td { white-space: normal; }

/* marker-ul */
mark.hl {
	color: inherit;
	padding: 0 0.15em;
	margin: 0 -0.05em;
	background-image: linear-gradient(100deg, rgba(221,240,90,0) 0.15em, var(--mark) 0.3em, var(--mark) calc(100% - 0.2em), rgba(221,240,90,0) 100%);
	background-repeat: no-repeat;
	background-size: 100% 78%;
	background-position: 0 70%;
	font-size: 1.35em;
	font-weight: 800;
}
@media (prefers-reduced-motion: no-preference) {
	.js .ledger mark.hl {
		background-size: 0% 78%;
		animation: apc-mark .55s cubic-bezier(.3,.7,.3,1) forwards;
	}
	.js .ledger tr:nth-child(2) mark.hl { animation-delay: .45s; }
	.js .ledger mark.hl { animation-delay: .2s; }
}
@keyframes apc-mark { to { background-size: 100% 78%; } }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.ledger { margin-right: 12px; }
}

/* ---------- Secțiuni ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
.section-lead { font-size: var(--t-md); color: var(--muted); margin: 0; line-height: 1.55; }

/* servicii ca rânduri de registru */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--petrol); }
.row {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 1rem 2.5rem;
	padding-block: 1.6rem;
	border-bottom: 1px solid var(--rule);
	align-items: baseline;
}
.row-title { font-size: var(--t-lg); margin: 0; color: var(--petrol); }
.row-text { margin: 0; color: var(--muted); max-width: 34rem; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 0.4rem; } }

/* comparație, pe fond închis */
.section-dark {
	background: var(--petrol);
	color: var(--paper);
}
.section-dark .section-lead { color: #B8CFCB; }
.compare-scroll { overflow-x: auto; }
.compare {
	width: 100%;
	min-width: 40rem;
	border-collapse: collapse;
}
.compare th, .compare td {
	text-align: left;
	padding: 1.1rem 1.25rem 1.1rem 0;
	border-bottom: 1px solid var(--rule-dark);
	vertical-align: top;
}
.compare thead th {
	font: 600 var(--t-md)/1.2 var(--f-display);
	border-bottom: 2px solid #8FB2AE;
	padding-bottom: 0.9rem;
}
.compare tbody th { font-weight: 600; width: 32%; }
.compare td { color: #B8CFCB; }
.compare .is-us { color: var(--paper); padding-left: 1.25rem; background: rgba(255,255,255,0.05); }
.compare thead .is-us { color: var(--ink); background: var(--mark); border-bottom-color: var(--mark); }

/* domenii */
.domains-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: var(--gap);
	align-items: start;
}
.domains {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 2px solid var(--petrol);
}
.domains li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1.2rem 1rem 1.2rem 0;
	border-bottom: 1px solid var(--rule);
}
.domains li:nth-child(odd) { border-right: 1px solid var(--rule); }
.domains li:nth-child(even) { padding-left: 1.25rem; }
.domains strong { font: 600 var(--t-lg)/1.2 var(--f-display); color: var(--petrol); }
.domains span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .domains-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
	.domains { grid-template-columns: 1fr; }
	.domains li:nth-child(odd) { border-right: 0; }
	.domains li:nth-child(even) { padding-left: 0; }
}

/* pași — secvență reală, deci numerotată */
.section-ruled { background: var(--sheet); border-block: 1px solid var(--rule); }
.steps {
	list-style: none;
	counter-reset: step;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}
.steps li {
	counter-increment: step;
	position: relative;
	padding-top: 4rem;
	border-top: 2px solid var(--petrol);
}
.steps li::before {
	content: counter(step);
	position: absolute;
	top: 0.9rem; left: 0;
	font: 800 2.25rem/1 var(--f-display);
	color: var(--petrol);
	font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--t-md); margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* video */
.video-wrap video,
.video-wrap iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 1px solid var(--petrol);
	border-radius: var(--radius);
	background: var(--ink);
}

/* ---------- Programare ---------- */
.section-book { border-top: 1px solid var(--rule); }
.book-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.book-contacts { list-style: none; margin: 2rem 0 1.5rem; padding: 0; border-top: 1px solid var(--rule); }
.book-contacts li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule);
	font-weight: 500;
}
.book-contacts span { color: var(--muted); font-weight: 400; }
.book-form {
	background: var(--sheet);
	border: 1px solid var(--petrol);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 3vw, 2.25rem);
}
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

/* formular */
.apc-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
.apc-form input,
.apc-form select,
.apc-form textarea,
.search-form input,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-bottom: 2px solid var(--rule-dark);
	border-radius: var(--radius) var(--radius) 0 0;
	padding: 0.75rem 0.8rem;
	transition: border-color .15s, background-color .15s;
}
.apc-form input:focus,
.apc-form select:focus,
.apc-form textarea:focus {
	outline: none;
	background: #FBFDF0;
	border-bottom-color: var(--petrol);
	box-shadow: 0 2px 0 0 var(--mark);
}
.apc-form button { justify-self: start; }
.form-hint { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.hp { position: absolute; left: -9999px; }
.form-notice { padding: 1rem 1.1rem; border-left: 4px solid; margin: 0 0 1.25rem; }
.form-notice.is-ok { border-color: var(--petrol); background: #E7F2DA; }
.form-notice.is-error { border-color: #A3312A; background: #F8E3E1; }

/* rețele */
.socials { display: flex; gap: 0.5rem; }
.social {
	display: grid; place-items: center;
	width: 2.6rem; height: 2.6rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--petrol);
}
.social:hover { background: var(--petrol); color: var(--paper); }

/* ---------- Pagini interioare ---------- */
.page-hero {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2rem);
	border-bottom: 2px solid var(--petrol);
	background:
		repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), rgba(15, 61, 62, 0.07) calc(var(--line) - 1px), rgba(15, 61, 62, 0.07) var(--line)),
		var(--paper);
}
.page-title {
	font-size: var(--t-xl);
	font-weight: 800;
	color: var(--petrol);
	letter-spacing: -0.02em;
	max-width: 22ch;
	margin: 0;
}
.page-meta { margin: 0 0 0.5rem; color: var(--muted); }

.entry-content { max-width: 46rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: var(--t-lg); margin-top: 2em; }
.entry-content h3 { font-size: var(--t-md); margin-top: 1.6em; }
.entry-content p, .entry-content li { max-width: 68ch; }
.entry-content blockquote {
	margin-inline: 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--mark);
	font-size: var(--t-md);
}
.entry-content table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.75rem 0.6rem 0; text-align: left; }
.entry-content .alignwide { max-width: calc(var(--wrap) - 2 * var(--gap)); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-thumb { border-radius: var(--radius); margin-bottom: 2rem; }
/* galerii: pagina Galeria */
.entry-content .wp-block-gallery,
.entry-content .gallery { max-width: calc(var(--wrap) - 2 * var(--gap)); }
.entry-content .wp-block-gallery img,
.entry-content .gallery img { border-radius: var(--radius); }
.page .entry-content:has(.wp-block-gallery) { max-width: none; }

/* listă articole */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--petrol); max-width: 52rem; }
.post-item {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--rule);
}
.post-date { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.3rem; border-right: 3px double var(--rule-dark); }
.post-title { font-size: var(--t-lg); margin: 0 0 0.35rem; }
.post-title a { text-decoration: none; color: var(--petrol); }
.post-title a:hover { text-decoration: underline; }
.post-excerpt { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
	.post-item { grid-template-columns: 1fr; gap: 0.25rem; }
	.post-date { border-right: 0; }
}
.pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border: 1px solid var(--rule); text-decoration: none; border-radius: var(--radius); }
.pagination .current { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.search-form { display: flex; gap: 0.5rem; max-width: 30rem; }
.empty p { font-size: var(--t-md); color: var(--muted); }

/* 404 */
.notfound .wrap { max-width: 44rem; }
.notfound-ledger { max-width: 22rem; margin-bottom: 2.5rem; }
.notfound .section-lead { margin: 1rem 0 2rem; }

/* comentarii */
.comments { margin-top: 3rem; }
.comment-list { padding-left: 1.25rem; }

/* ---------- Subsol ---------- */
.site-footer {
	background: var(--ink);
	color: #C9D6D3;
	padding-top: clamp(3rem, 6vw, 4.5rem);
	font-size: 0.97rem;
}
.site-footer a { color: var(--paper); }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: var(--gap);
	padding-bottom: 3rem;
}
.footer-name { font: 700 var(--t-lg)/1.2 var(--f-display); color: var(--paper); margin: 0 0 0.75rem; }
.footer-desc { max-width: 28rem; margin: 0 0 1.5rem; }
.footer-title { font-size: var(--t-base); color: var(--mark); margin-bottom: 1rem; font-weight: 600; }
.footer-contacts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.footer-contacts dt { color: #8FA5A1; }
.footer-contacts dd { margin: 0; }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-menu a, .site-footer .menu a { text-decoration: none; }
.footer-menu a:hover, .site-footer .menu a:hover { text-decoration: underline; }
.site-footer .social { color: var(--paper); }
.site-footer .social:hover { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-block: 1.25rem;
	position: relative;
	font-size: var(--t-sm);
	color: #8FA5A1;
}
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gap); right: var(--gap); border-top: 1px solid #2E3F3D; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .hero-actions, .book-form { display: none; }
	body { background: #fff; }
}

/* ==========================================================================
   Prețuri și programare online
   ========================================================================== */

/* lista de prețuri — registru cu coloana sumelor după linia dublă */
.price-ledger {
	width: 100%;
	border-collapse: collapse;
	border-top: 2px solid var(--petrol);
	font-variant-numeric: tabular-nums lining-nums;
}
.price-ledger thead th {
	text-align: left;
	font-weight: 500;
	color: var(--muted);
	font-size: var(--t-sm);
	padding: 0.75rem 1rem 0.75rem 0;
	border-bottom: 1px solid var(--rule);
}
.price-ledger tbody th,
.price-ledger tbody td {
	padding: 1.25rem 1rem 1.25rem 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: middle;
	text-align: left;
}
.pl-name { display: block; font: 600 var(--t-lg)/1.2 var(--f-display); color: var(--petrol); }
.pl-desc { display: block; margin-top: 0.3rem; font-weight: 400; color: var(--muted); font-size: 0.97rem; }
.price-ledger .pl-dur { white-space: nowrap; color: var(--muted); width: 7rem; }
.price-ledger .pl-price {
	width: 10rem;
	text-align: right;
	padding-left: 1rem;
	border-left: 3px double var(--rule-dark);
	white-space: nowrap;
}
.price-ledger tbody .pl-price { font: 700 var(--t-lg)/1.2 var(--f-display); color: var(--ink); }
.price-ledger .pl-act { width: 7.5rem; text-align: right; padding-right: 0; }
.price-note { margin: 1rem 0 0; color: var(--muted); }
@media (max-width: 700px) {
	.price-ledger thead { display: none; }
	.price-ledger tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0.5rem 1rem;
		padding: 1.1rem 0;
		border-bottom: 1px solid var(--rule);
	}
	.price-ledger tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
	.price-ledger tbody td { padding: 0; border: 0; width: auto; }
	.price-ledger .pl-dur { grid-column: 1; }
	.price-ledger .pl-price { grid-column: 2; grid-row: 2; border-left: 0; }
	.price-ledger .pl-act { grid-column: 1 / -1; text-align: left; }
}

/* file */
.tabs {
	display: flex;
	gap: 0.25rem;
	margin: calc(-1 * clamp(1.25rem, 3vw, 2.25rem)) calc(-1 * clamp(1.25rem, 3vw, 2.25rem)) 1.75rem;
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
	border-radius: var(--radius) var(--radius) 0 0;
	padding: 0.5rem 0.5rem 0;
}
.tab {
	flex: 1;
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	font: 600 var(--t-base)/1.2 var(--f-body);
	color: var(--muted);
	cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--petrol); border-bottom-color: var(--petrol); background: var(--sheet); border-radius: var(--radius) var(--radius) 0 0; }
.tab:hover { color: var(--petrol); }

/* pași */
.bk-steps {
	list-style: none;
	counter-reset: bk;
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1.75rem;
	padding: 0;
	font-size: var(--t-sm);
	color: var(--muted);
}
.bk-steps li {
	counter-increment: bk;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-top: 0.6rem;
	border-top: 3px solid var(--rule);
}
.bk-steps li::before {
	content: counter(bk);
	display: grid; place-items: center;
	width: 1.6rem; height: 1.6rem;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--rule-dark);
	font-weight: 600;
	font-size: var(--t-sm);
	font-variant-numeric: tabular-nums;
}
.bk-steps li.is-active { color: var(--ink); font-weight: 600; border-top-color: var(--petrol); }
.bk-steps li.is-active::before { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.bk-steps li.is-done { border-top-color: var(--petrol); }
.bk-steps li.is-done::before { content: "✓"; background: var(--mark); border-color: var(--mark); color: var(--ink); }
@media (max-width: 480px) { .bk-steps li { font-size: 0; gap: 0; } .bk-steps li.is-active { font-size: var(--t-sm); gap: 0.5rem; } }

.bk-legend { font: 600 var(--t-md)/1.3 var(--f-display); margin: 0 0 1rem; padding: 0; }
.bk-services { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bk-service {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	cursor: pointer;
	background: var(--sheet);
	transition: border-color .15s, background-color .15s;
}
.bk-service:hover { border-color: var(--rule-dark); }
.bk-service input { width: 1.15rem; height: 1.15rem; accent-color: var(--petrol); flex: none; margin: 0; }
.bk-service.is-checked { border-color: var(--petrol); background: #F7FBEA; box-shadow: inset 4px 0 0 var(--petrol); }
.bk-service-main { display: grid; gap: 0.15rem; flex: 1; }
.bk-service-name { font-weight: 600; }
.bk-service-meta { color: var(--muted); font-size: var(--t-sm); }
.bk-service-price { font: 700 var(--t-md)/1 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; }

.bk-nav { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.bk-nav .btn-primary:only-child { margin-left: auto; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.bk-muted { color: var(--muted); margin: 0; }

.bk-picked strong { white-space: nowrap; }
.bk-picked {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	background: var(--paper);
	border-left: 3px solid var(--petrol);
	font-size: 0.97rem;
}

/* calendar */
.bk-cal-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 1.5rem;
	align-items: start;
}
@media (max-width: 640px) { .bk-cal-wrap { grid-template-columns: 1fr; } }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.bk-cal-title { margin: 0; font: 600 var(--t-md)/1 var(--f-display); }
.bk-cal-btn {
	display: grid; place-items: center;
	width: 2.4rem; height: 2.4rem;
	border: 1px solid var(--rule);
	border-radius: 50%;
	background: var(--sheet);
	color: var(--petrol);
	cursor: pointer;
}
.bk-cal-btn:hover:not([disabled]) { border-color: var(--petrol); }
.bk-cal-btn[disabled] { opacity: 0.35; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bk-wd { text-align: center; font-size: 0.78rem; color: var(--muted); padding: 0.4rem 0; font-weight: 600; }
.bk-day {
	position: relative;
	aspect-ratio: 1;
	min-height: 2.4rem;
	display: grid; place-items: center;
	border: 0;
	border-radius: var(--radius);
	background: none;
	font: 500 0.97rem/1 var(--f-body);
	font-variant-numeric: tabular-nums;
	color: #9AA9A6;
}
.bk-day.is-loading { color: var(--rule); }
.bk-day.is-free { color: var(--ink); font-weight: 600; cursor: pointer; background: var(--paper); }
.bk-day.is-free::after {
	content: "";
	position: absolute;
	bottom: 18%;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--petrol);
}
.bk-day.is-free:hover { background: #E3EDE7; }
.bk-day.is-today { box-shadow: inset 0 0 0 1px var(--rule-dark); }
.bk-day.is-selected { background: var(--petrol); color: var(--paper); }
.bk-day.is-selected::after { background: var(--mark); }
.bk-cal-legend { display: flex; align-items: center; gap: 0.4rem; margin: 0.75rem 0 0; font-size: var(--t-sm); color: var(--muted); }
.bk-cal-legend .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--petrol); }
[aria-busy="true"] .bk-day { animation: bk-pulse 1s ease-in-out infinite alternate; }
@keyframes bk-pulse { from { opacity: 1; } to { opacity: 0.5; } }

/* ore */
.bk-times { min-height: 12rem; }
.bk-times .bk-legend { font-size: var(--t-base); font-family: var(--f-body); }
.bk-group { margin: 0.75rem 0 0.4rem; font-size: var(--t-sm); color: var(--muted); }
.bk-group:first-child { margin-top: 0; }
.bk-slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: 0.4rem; }
.bk-slot {
	padding: 0.6rem 0.25rem;
	border: 1px solid var(--rule-dark);
	border-radius: var(--radius);
	background: var(--sheet);
	color: var(--petrol);
	font: 600 0.97rem/1 var(--f-body);
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}
.bk-slot:hover { background: var(--paper); }
.bk-slot.is-selected { background: var(--petrol); color: var(--paper); border-color: var(--petrol); box-shadow: 3px 3px 0 var(--mark); }

/* rezumat */
.bk-summary { margin-bottom: 1.5rem; padding: 0.5rem 1.1rem 0.75rem; background: var(--paper); border-radius: var(--radius); }
.bk-ledger td { font-size: var(--t-base); white-space: normal; }
.bk-ledger tfoot td .total { font-size: var(--t-md); font-family: var(--f-display); font-weight: 700; }

.field-error { margin: 0; color: #A3312A; font-size: var(--t-sm); min-height: 0; }
.field-error:empty { display: none; }
.apc-form [aria-invalid="true"] { border-bottom-color: #A3312A; background: #FCF1F0; }

.bk-done:focus { outline: none; }
.bk-done-title { font-size: var(--t-lg); color: var(--petrol); padding-left: 0.85rem; border-left: 4px solid var(--mark); }
