/*
Theme Name: ForestMedikams
Theme URI: https://www.forestmedikams.lt/
Author: ForestMedikams
Description: Greita, SEO optimizuota tema spausdintuvų remonto svetainei Klaipėdoje. Veikia be papildomų įskiepių: savas SEO (meta, Open Graph, Schema.org), peradresavimai, gedimų gidas, kainų skaičiuoklė, darbo laiko būsena, mygtukas „į viršų“, galerijos peržiūra. Suderinama su LiteSpeed Cache.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forestmedikams
*/

/* ---------- Žetonai ---------- */
:root {
	--paper: #f3f6f4;
	--sheet: #ffffff;
	--mint: #e2ede7;
	--ink: #10261e;
	--ink-2: #44574e;
	--ink-3: #8fa198;
	--line: #d2ddd7;
	--forest: #1e5a43;
	--forest-d: #164634;
	--leaf: #2f7a5c;
	--cyan: #00a0dc;
	--magenta: #d6007a;
	--yellow: #ffd400;
	--ok: #1f9d5c;
	--warn-bg: #fff6d6;
	--warn-ink: #6b4d00;

	--font-head: "Bahnschrift", "DIN Alternate", "DIN Next LT Pro", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", "DejaVu Sans Condensed", system-ui, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem);
	--step-3: clamp(1.85rem, 1.3rem + 2.2vw, 2.8rem);
	--step-4: clamp(2.45rem, 1.5rem + 4.2vw, 4.4rem);

	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
	--header-h: 72px;
}

/* ---------- Pagrindas ---------- */
*, *::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;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-stretch: semi-condensed;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ink);
	text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
table { border-collapse: collapse; width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }

.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 {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: #fff; }
.site-main:focus { outline: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: 2rem var(--section); }

/* Pjovimo žymės – „spaudos lapas“: naudojamos tik pagrindiniams lapams (gidas, kainos, skaičiuoklė). */
.crop { position: relative; }
.crop::before {
	content: ""; position: absolute; inset: -14px; pointer-events: none; color: var(--ink-3);
	background:
		linear-gradient(currentColor 0 0) 0 0 / 10px 1px,
		linear-gradient(currentColor 0 0) 0 0 / 1px 10px,
		linear-gradient(currentColor 0 0) 100% 0 / 10px 1px,
		linear-gradient(currentColor 0 0) 100% 0 / 1px 10px,
		linear-gradient(currentColor 0 0) 0 100% / 10px 1px,
		linear-gradient(currentColor 0 0) 0 100% / 1px 10px,
		linear-gradient(currentColor 0 0) 100% 100% / 10px 1px,
		linear-gradient(currentColor 0 0) 100% 100% / 1px 10px;
	background-repeat: no-repeat;
}

/* ---------- Mygtukai ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	min-height: 46px; padding: 0.7rem 1.15rem; border-radius: 8px;
	font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-d); color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-lg { min-height: 54px; padding: 0.85rem 1.4rem; font-size: 1.0625rem; }

/* ---------- Antraštė ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 246, 244, 0.94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header::before {
	content: ""; display: block; height: 4px;
	background: linear-gradient(90deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--ink) 75%) left / 120px 100% no-repeat, var(--forest);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 419px) { .brand-tag { display: none; } }

.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav .current-menu-item > a, .site-nav a[aria-current="page"] { color: var(--forest); }
.nav-call { display: none; }
.nav-toggle {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.75rem;
	background: transparent; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink);
	font: 600 0.95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-call { display: none; white-space: nowrap; flex: none; }

@media (max-width: 1079px) {
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--sheet); border-bottom: 1px solid var(--line);
		box-shadow: 0 18px 30px -18px rgba(16, 38, 30, .35);
		padding: 0.5rem var(--gutter) 1.25rem; display: none;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu li { border-bottom: 1px solid var(--line); }
	.site-nav .menu a { display: block; padding: 0.85rem 0; font-size: 1.1rem; }
	.site-nav .sub-menu { list-style: none; padding: 0 0 0.5rem 1rem; margin: 0; }
	.site-nav .sub-menu li { border: 0; }
	.site-nav .sub-menu a { padding: 0.45rem 0; font-size: 1rem; }
	.nav-call { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; background: var(--forest); color: #fff !important; padding: 0.9rem; border-radius: 8px; font-weight: 600; }
}
@media (min-width: 640px) { .header-call { display: inline-flex; } }
@media (min-width: 1080px) and (max-width: 1279px) {
	.brand-tag { display: none; }
	.header-call { padding-inline: 0.8rem; }
	.header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@media (min-width: 1080px) {
	.nav-toggle { display: none; }
	.site-nav .menu { display: flex; gap: 0.15rem; }
	.site-nav .menu > li { position: relative; }
	.site-nav .menu > li > a { display: block; padding: 0.55rem 0.6rem; border-radius: 6px; font-size: 0.97rem; }
	.site-nav .menu > li > a:hover { background: var(--mint); }
	.site-nav .sub-menu {
		list-style: none; margin: 0; padding: 0.4rem; position: absolute; top: 100%; left: 0; min-width: 220px;
		background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 30px -18px rgba(16, 38, 30, .35);
		visibility: hidden; opacity: 0; transition: opacity .15s;
	}
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
	.site-nav .sub-menu a { display: block; padding: 0.5rem 0.7rem; border-radius: 6px; }
	.site-nav .sub-menu a:hover { background: var(--mint); }
}

/* ---------- Herojus ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 11ch; margin-bottom: 0.4em; }
.hero-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); color: var(--ink-2); max-width: 54ch; }
.hero-status, .contact-status { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; margin: 1.25rem 0 1.5rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
[data-state="open"] .status-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 92, .18); }
[data-state="closed"] .status-dot { background: #b8c4be; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual { position: relative; }
.hero-art { width: 100%; max-width: 560px; margin-inline: auto; display: block; overflow: visible; }
@media (min-width: 900px) {
	.hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

/* Vienas orkestruotas judesys: lapas išvažiuoja, lupa parodo praleistą liniją. */
.hero-sheet { animation: fm-feed 1.9s cubic-bezier(.22, .8, .25, 1) .35s both; }
.hero-loupe { transform-box: fill-box; transform-origin: 30% 30%; animation: fm-loupe .55s cubic-bezier(.3, 1.5, .5, 1) 2.15s both; }
.hero-led { animation: fm-led 1s steps(2, jump-none) .2s 2; }
@keyframes fm-feed { from { transform: translateY(-178px); } to { transform: none; } }
@keyframes fm-loupe { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fm-led { 50% { opacity: .25; } }

.facts {
	display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(2rem, 5vw, 3.5rem) 0 0;
	border-top: 2px solid var(--ink);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.15rem; padding: 1rem 1rem 0 0; }
.fact dt { font-size: var(--step--1); color: var(--ink-2); }
.fact dd { margin: 0; font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
	.facts { grid-template-columns: repeat(4, 1fr); }
	.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 719px) {
	.fact:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
}

/* ---------- Sekcijų antraštės ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--ink-2); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; }
.section-head-row h2 { margin: 0; }

/* ---------- Gedimų gidas ---------- */
.diag { background: var(--sheet); border-block: 1px solid var(--line); }
.diag-layout { display: grid; gap: 2rem; }
.diag-picker { display: none; flex-wrap: wrap; gap: 0.5rem; }
.js .diag-picker { display: flex; }
.js .diag-sheet { display: none; }
.js .diag-sheet.is-active { display: block; }
.diag-chip {
	font: 500 0.95rem/1.3 var(--font-body); color: var(--ink); text-align: left;
	background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
	padding: 0.5rem 0.9rem; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.diag-chip:hover { border-color: var(--forest); }
.diag-chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.diag-results { display: grid; gap: 3rem; }
.diag-sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 24px 40px -32px rgba(16, 38, 30, .45); }
.diag-sheet.is-entering { animation: fm-print .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes fm-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.diag-sheet-head { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.diag-sheet-head h3 { font-size: var(--step-2); margin: 0; }
.diag-type { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.diag-sheet-body { display: grid; gap: 1.5rem; padding: 1.5rem; }
.diag-block h4 { color: var(--forest); font-size: 1.02rem; margin-bottom: 0.4rem; }
.diag-block p { margin: 0; }
.diag-steps { margin: 0; padding-left: 1.3rem; }
.diag-steps li { margin-bottom: 0.4rem; padding-left: 0.2rem; }
.diag-steps li::marker { font-family: var(--font-head); font-weight: 700; color: var(--forest); }
.diag-warn { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem !important; padding: 0.75rem 0.9rem; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; font-size: 0.95rem; }
.diag-warn .icon { margin-top: 0.15em; }
.diag-sheet-foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 1.5rem; border-top: 2px dashed var(--line); background: linear-gradient(var(--paper), var(--paper));
}
.diag-price { margin: 0; display: flex; flex-direction: column; }
.diag-price span { font-size: var(--step--1); color: var(--ink-2); }
.diag-price strong { font-family: var(--font-head); font-stretch: semi-condensed; font-size: 1.35rem; line-height: 1.2; }
.js .diag-results { gap: 0; }
@media (min-width: 760px) { .diag-sheet-body { grid-template-columns: 1fr 1.1fr; gap: 2rem; } }
@media (min-width: 1000px) {
	.diag-layout { grid-template-columns: minmax(260px, 330px) 1fr; gap: 3rem; align-items: start; }
	.diag-picker { flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--line); }
	.diag-chip { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0.8rem 0.9rem 0.8rem 1rem; position: relative; }
	.diag-chip::before { content: ""; position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 3px; border-radius: 2px; background: transparent; }
	.diag-chip:hover { background: var(--paper); }
	.diag-chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 650; }
	.diag-chip[aria-pressed="true"]::before { background: var(--magenta); }
	.diag-results { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Paslaugos ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 3rem; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.service-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: var(--forest); display: grid; place-items: center; grid-row: span 2; }
.service-icon .icon { width: 24px; height: 24px; }
.service-body h3 { margin-bottom: 0.3rem; }
.service-body p { margin: 0; color: var(--ink-2); }
.service-price { grid-column: 2; margin: 0.35rem 0 0; font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; }
@media (min-width: 820px) { .service-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Kainos ---------- */
.prices-section { background: var(--sheet); border-block: 1px solid var(--line); }
.prices-layout { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .prices-layout { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } .prices-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.price-sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 24px 40px -34px rgba(16, 38, 30, .5); }
.prices th, .prices td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); padding-top: 0; border-bottom: 2px solid var(--ink); }
.prices tbody th { font-weight: 500; padding-right: 1rem; }
.prices td { text-align: right; white-space: nowrap; font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.prices thead th:last-child { text-align: right; }
.price-note { display: block; font-size: 0.9rem; font-weight: 400; color: var(--ink-2); margin-top: 0.2rem; }
.price-part { display: block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.price-terms { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.price-terms p { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; color: var(--ink-2); }
.price-terms .icon { color: var(--forest); margin-top: 0.15em; }
.price-terms .price-more { margin-top: 0.75rem; }
.price-sheet-full { margin-bottom: var(--section); }
.price-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.price-toc a { padding: 0.45rem 0.85rem; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.price-toc a:hover { border-color: var(--forest); }
.price-group + .price-group { margin-top: 2.5rem; }
.price-group h2 { font-size: var(--step-2); }
.price-print { margin-top: 1rem; }
.price-explain { padding-bottom: var(--section); }
.explain-grid { display: grid; gap: 1.5rem 2.5rem; }
.explain-grid p { color: var(--ink-2); }
@media (min-width: 820px) { .explain-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Skaičiuoklė ---------- */
.calc-section { background: var(--mint); }
.calc-layout { display: grid; gap: 2rem; }
.calc-hint { font-weight: 600; color: var(--ink) !important; }
@media (min-width: 960px) { .calc-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.calc { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.4rem; }
.calc-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.35rem 1rem; }
.calc-field label { font-weight: 600; }
.calc-field output { font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc-field input { grid-column: 1 / -1; width: 100%; accent-color: var(--forest); height: 28px; cursor: pointer; }
.calc-result { border-top: 2px dashed var(--line); padding-top: 1.25rem; }
.calc-meter { position: relative; height: 10px; background: var(--paper); border-radius: 999px; overflow: visible; margin-bottom: 1rem; }
.calc-meter span { position: absolute; inset: 0 auto 0 0; width: 20%; border-radius: 999px; background: var(--forest); transition: width .25s, background-color .25s; }
.calc-limit { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); left: 50%; }
.calc-verdict { font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: var(--step-2); margin: 0 0 0.25rem; color: var(--forest); }
.calc-explain { margin: 0; color: var(--ink-2); }
[data-verdict="maybe"] .calc-verdict { color: var(--warn-ink); }
[data-verdict="maybe"] .calc-meter span { background: #c99a00; }
[data-verdict="replace"] .calc-verdict { color: #a3005d; }
[data-verdict="replace"] .calc-meter span { background: var(--magenta); }

/* ---------- Eiga ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.step::before { content: counter(step); display: block; font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--forest); margin-bottom: 0.6rem; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps-compact { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Palyginimas ---------- */
.compare-section { background: var(--sheet); border-block: 1px solid var(--line); }
.compare-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .compare-layout { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; } }
.compare-figure { margin: 2rem 0 0; }
.compare-figure img { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1rem; }
.compare-figure figcaption { font-size: 0.82rem; color: var(--ink-2); margin-top: 0.6rem; max-width: 52ch; }
.compare-table-wrap { overflow-x: auto; }
.compare { min-width: 520px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-head); font-stretch: semi-condensed; font-size: 1.2rem; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--ink-2); }

/* ---------- Patarimai ---------- */
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 3rem; }
@media (min-width: 820px) { .tips { grid-template-columns: 1fr 1fr; } }
.tip { display: flex; gap: 1rem; align-items: flex-start; }
.tip-icon { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--forest); color: #fff; stroke-width: 2.4; }
.tip h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.tip p { margin: 0; color: var(--ink-2); }

/* ---------- Markės ---------- */
.brands-section { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.brands-layout { display: grid; gap: 1.25rem; }
.brands-layout h2 { font-size: var(--step-2); margin: 0; }
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.brands li { font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); color: var(--ink-2); }
@media (min-width: 960px) { .brands-layout { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; } }

/* ---------- DUK ---------- */
.faq-section { background: var(--sheet); border-top: 1px solid var(--line); }
.faq-layout { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } }
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.15rem; }
.faq-item summary:hover h3 { color: var(--forest); }
.faq-icon { transition: transform .2s; color: var(--forest); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 2.5rem 1.2rem 0; color: var(--ink-2); }
.faq-answer p { margin: 0; }

/* ---------- Kontaktai ---------- */
.contact-band { background: var(--forest); color: #e6f0eb; padding-block: var(--section); }
.contact-band h1, .contact-band h2, .contact-band h3 { color: #fff; }
.contact-band a { color: #fff; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: start; } }
.contact-lead { max-width: 52ch; color: #cfe1d8; }
.contact-phone { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.1; text-decoration: none; margin: 0.5rem 0 0.25rem; }
.contact-phone .icon { width: 0.8em; height: 0.8em; color: var(--yellow); }
.contact-phone:hover { color: var(--yellow); }
.contact-band [data-state="open"] .status-dot { background: #5be39a; box-shadow: 0 0 0 4px rgba(91, 227, 154, .2); }
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.contact-list .icon { color: var(--yellow); margin-top: 0.2em; }
.contact-list a { margin-left: 0.25rem; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: #fff; }
.hours tr.is-today th { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 0.75rem; }
.contact-note { font-size: 0.9rem; color: #bcd3c7; margin-top: 1rem; }

/* ---------- Tinklaraštis ---------- */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.post-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.post-card-media { display: block; aspect-ratio: 16 / 10; background: var(--mint); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--forest); }
.post-card-placeholder .icon { width: 48px; height: 48px; stroke-width: 1.3; }
.post-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.post-card-title { font-size: 1.25rem; margin-bottom: 0.4rem; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--forest); text-decoration: underline; }
.post-card-body p:last-child { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: var(--step--1); color: var(--ink-2); margin-bottom: 0.5rem; }
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 0.6rem; border: 1.5px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--sheet); }
.pagination .page-numbers.current { background: var(--forest); border-color: var(--forest); color: #fff; }
.empty { padding: 2rem; background: var(--sheet); border: 1px dashed var(--line); border-radius: 6px; }

/* ---------- Vidiniai puslapiai ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); max-width: 22ch; }
.page-head-tight { padding-block: 1.25rem 0; }
.page-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: var(--step--1); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.contact-band .crumbs a, .contact-band .crumbs { color: #cfe1d8; }

.entry-content { max-width: 72ch; padding-bottom: var(--section); }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.1rem); margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 4px solid var(--forest); font-size: 1.12rem; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin: 1.75em 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.5rem; }
.entry-content table { margin: 1.5em 0; font-size: 0.96rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; }
.entry-content .wp-block-button__link { background: var(--forest); color: #fff; border-radius: 8px; padding: 0.75rem 1.2rem; text-decoration: none; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .wp-block-gallery, .entry-content .gallery { gap: 0.75rem; }
.entry-content .wp-block-gallery img, .entry-content .gallery img { cursor: zoom-in; }
.page-article .entry-content:has(.wp-block-gallery), .page-article .entry-content:has(.gallery) { max-width: none; }

.post-hero img { width: 100%; border-radius: 6px; margin-bottom: 2rem; }
.post-layout { display: grid; gap: 2rem; }
.post-layout .entry-content { margin-inline: auto; width: 100%; }
@media (min-width: 1080px) {
	.post-layout.has-toc { grid-template-columns: 250px minmax(0, 1fr); gap: 4rem; }
	.post-layout.has-toc .entry-content { margin-inline: 0; }
	.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.toc { background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; font-size: 0.95rem; }
.toc-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.3rem 0; }
.toc .toc-l3 { padding-left: 0.9rem; font-size: 0.9rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--forest); text-decoration: underline; }
.post-help { margin: 3rem 0 1.5rem; padding: 1.5rem; background: var(--mint); border-radius: 6px; }
.post-help-title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: 0.3rem; }
.post-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-tags a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; text-decoration: none; }

.cta-strip { background: var(--mint); padding-block: 2.5rem; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.cta-inner p { margin: 0; color: var(--ink-2); }
.cta-title { font-family: var(--font-head); font-stretch: semi-condensed; font-weight: 700; font-size: var(--step-2); color: var(--ink) !important; margin-bottom: 0.2rem !important; }

/* ---------- Poraštė ---------- */
.site-footer { background: var(--ink); color: #c4d4cb; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr; gap: 4rem; } }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.footer-about p { max-width: 44ch; }
.footer-contacts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-contacts li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contacts .icon { color: var(--yellow); margin-top: 0.2em; }
.footer-title { color: #fff; font-size: 1.15rem; margin-bottom: 0.8rem; }
.hours-compact th, .hours-compact td { border-bottom-color: rgba(255, 255, 255, .1); padding: 0.4rem 0; }
.footer-note { font-size: 0.88rem; color: #93aa9f; margin-top: 0.8rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-menu a { text-decoration: none; color: #c4d4cb; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.85rem; color: #93aa9f; }
.footer-bottom p { margin: 0; }

/* ---------- Mobilioji skambučio juosta ---------- */
.call-bar { display: none; }
@media (max-width: 639px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.call-bar {
		display: flex; align-items: center; gap: 0.75rem; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--sheet); border-top: 1px solid var(--line);
		box-shadow: 0 -10px 24px -18px rgba(16, 38, 30, .45);
	}
	.call-bar-call { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; background: var(--forest); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; }
	.call-bar-call:hover { color: #fff; }
	.call-bar-status { flex: 1; font-size: 0.85rem; line-height: 1.3; color: var(--ink-2); }
}

/* ---------- Mygtukas „į viršų“ ---------- */
.to-top {
	position: fixed; z-index: 55; right: 1.25rem; bottom: 1.25rem; width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
	background: var(--sheet); color: var(--forest); box-shadow: 0 10px 24px -10px rgba(16, 38, 30, .5);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest); color: #fff; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.to-top-ring .to-top-progress { stroke: var(--magenta); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.to-top-icon { position: relative; width: 22px; height: 22px; stroke-width: 2.2; }
@media (max-width: 639px) { .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); right: 0.9rem; width: 48px; height: 48px; } }

/* ---------- Galerijos peržiūra ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(9, 22, 17, .94); display: grid; place-items: center; padding: 3.5rem 1rem; }
.lb[hidden] { display: none; }
.lb img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #c4d4cb; font-size: 0.9rem; }

/* ---------- Mažiau judesio ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Spausdinimas (taip, spausdintuvų meistrams tai svarbu) ---------- */
@media print {
	.site-header, .site-footer, .call-bar, .to-top, .nav-toggle, .hero-actions, .diag-picker, .btn, .cta-strip, .contact-band, .calc-section, .price-toc, .related { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; padding: 0; }
	.diag-sheet { display: block !important; break-inside: avoid; margin-bottom: 1rem; }
	.price-sheet, .diag-sheet { box-shadow: none; border: 0; padding: 0; }
	a { color: #000; text-decoration: none; }
	.section, .page-head { padding-block: 1rem; }
}
