/*
Theme Name: KSM.lt
Theme URI: https://www.ksm.lt/
Author: KSM.lt
Description: Greita, SEO optimizuota kavos aparatų remonto serviso tema. Veikia be papildomų įskiepių: struktūrizuoti duomenys, Open Graph, gedimų diagnostikos skydelis, nukalkinimo skaičiuoklė, darbo laiko indikatorius, 404 nukreipimas į pradžią.
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: ksm
*/

/* ---------- Šriftai (savame serveryje, be Google Fonts) ---------- */
@font-face { font-family: "Heros Cn"; src: url("assets/fonts/heroscn-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Spalvos ir dydžiai ---------- */
:root {
	--paper: #EDF0EC;
	--tint: #E1E7E3;
	--white: #FFFFFF;
	--ink: #20160F;
	--ink-2: #574B43;
	--enamel: #135E57;
	--enamel-d: #0C4540;
	--lamp: #F2A93B;
	--lamp-d: #D88E1E;
	--water: #3B86C4;
	--line: #C6CFCA;
	--ok: #3CC274;
	--off: #E0574B;
	--lcd: #10302C;
	--lcd-text: #D9F2E7;

	--f-display: "Heros Cn", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--r-s: 8px;
	--r-m: 14px;
	--r-l: 24px;
	--head-h: 72px;
}

/* ---------- Pagrindas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--f-text);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--enamel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--enamel-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lamp); color: var(--ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.ico { flex: none; }

/* ---------- Mygtukai ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .7em 1.1em; border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1.1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95em 1.4em; font-size: 1.0625rem; }
.btn--lamp { background: var(--lamp); color: var(--ink); }
.btn--lamp:hover { background: var(--lamp-d); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--call { background: var(--enamel); color: var(--white); padding: .6em 1em; }
.btn--call:hover { background: var(--enamel-d); color: var(--white); }

/* ---------- Darbo laiko lemputė ---------- */
.lamp { display: inline-flex; align-items: center; gap: .5em; font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.lamp__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.lamp.is-open .lamp__dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(60,194,116,.22), 0 0 10px rgba(60,194,116,.7); }
.lamp.is-closed .lamp__dot { background: var(--off); }
.lamp--big { font-size: 1.0625rem; color: inherit; margin-bottom: 1.5rem; }
.lamp--big .lamp__dot { width: 12px; height: 12px; }

/* ---------- Antraštė ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(237,240,236,.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
.site-head__row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; flex: none; }
.brand svg { width: 134px; height: auto; display: block; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__list a { display: block; padding: .5em .7em; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav__list a:hover, .nav__list .current-menu-item > a { background: var(--tint); color: var(--enamel-d); }
.site-head__act { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: var(--r-s); }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }

@media (max-width: 1120px) { .site-head__act .lamp { display: none; } }
@media (max-width: 980px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: var(--head-h) 0 auto 0; margin: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 24px; display: none;
		max-height: calc(100vh - var(--head-h)); overflow: auto;
	}
	.admin-bar .nav { top: calc(var(--head-h) + 46px); }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; }
	.nav__list a { font-size: 1.125rem; padding: .8em .6em; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-head__act { margin-left: auto; }
}
@media (max-width: 560px) {
	.btn--call span { display: none; }
	.btn--call { padding: .65em; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero__title {
	font-family: var(--f-display); font-weight: 700;
	font-size: clamp(2.9rem, 7.2vw, 5.6rem); line-height: .95; letter-spacing: -.015em;
	margin-bottom: .35em; max-width: 12ch;
}
.hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }

.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 20px 0 0; margin-right: 20px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: .875rem; color: var(--ink-2); }
.facts dd { margin: 0; font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--f-display); white-space: nowrap; }
@media (max-width: 560px) {
	.facts { grid-template-columns: 1fr 1fr; }
	.facts > div { border-right: 0; margin: 0; padding-right: 12px; }
	.facts > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
}

/* Diagnostikos skydelis – stilizuotas kaip aparato valdymo pultas */
.panel {
	background: var(--ink); color: var(--white);
	border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 48px -24px rgba(32,22,15,.5);
	position: relative;
}
.panel__title { font: 700 clamp(1.6rem, 2.4vw, 2rem)/1.05 var(--f-display); margin-bottom: .3em; }
.panel__hint { color: rgba(255,255,255,.7); font-size: .9375rem; margin-bottom: 20px; }
.panel__keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.key {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px; border-radius: 10px;
	background: #33271F; color: var(--white); text-decoration: none;
	font-weight: 600; font-size: .9375rem; line-height: 1.2;
	box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
	transition: background-color .15s;
}
.key:hover { background: #43342A; color: var(--white); text-decoration: none; }
.key__led { width: 8px; height: 8px; border-radius: 50%; background: #5E4F44; flex: none; transition: background-color .15s, box-shadow .15s; }
.key[aria-pressed="true"] { background: #4B3A2E; }
.key[aria-pressed="true"] .key__led { background: var(--lamp); box-shadow: 0 0 8px var(--lamp); }

.readout {
	margin-top: 16px; min-height: 200px;
	background: var(--lcd); color: var(--lcd-text);
	border-radius: var(--r-m); padding: 20px 22px;
	box-shadow: inset 0 2px 12px rgba(0,0,0,.45);
}
.readout__idle { margin: 0; color: rgba(217,242,231,.75); }
.readout__title { font: 700 1.375rem/1.15 var(--f-display); color: var(--white); margin-bottom: 12px; }
.readout dl { margin: 0; display: grid; gap: 10px; }
.readout dt { font-size: .8125rem; color: rgba(217,242,231,.65); }
.readout dd { margin: 0; font-size: .9375rem; }
.readout__row { display: flex; gap: 28px; flex-wrap: wrap; }
.readout__price { font: 700 1.5rem/1.1 var(--f-display); color: var(--lamp); }
.readout__more { display: inline-block; margin-top: 14px; color: var(--lcd-text); font-size: .9375rem; }
.readout__more:hover { color: var(--white); }
.readout.is-new { animation: blink .35s ease-out; }
@keyframes blink { from { opacity: .35; } to { opacity: 1; } }

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { max-width: 12ch; }
}

/* ---------- Skiltys ---------- */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec__title { font: 700 clamp(2.1rem, 4.4vw, 3.4rem)/1 var(--f-display); letter-spacing: -.01em; margin-bottom: .45em; max-width: 20ch; }
.sec__lead { font-size: 1.125rem; color: var(--ink-2); max-width: 42em; margin-bottom: 2.2rem; }
.sec--tint { background: var(--tint); }
.sec--enamel { background: var(--enamel); color: var(--white); }
.sec--enamel .sec__lead, .sec--enamel .fine { color: rgba(255,255,255,.82); }
.sec--enamel a:not(.btn) { color: var(--white); }
.sec--dark { background: var(--ink); color: var(--white); }
.sec--dark a:not(.btn) { color: var(--lamp); }
.fine { font-size: .875rem; color: var(--ink-2); margin-top: 1.2rem; max-width: 52em; }
.sec--dark .fine { color: rgba(255,255,255,.65); }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--calc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide, .split--calc { grid-template-columns: 1fr; } }

/* Paslaugos */
.svc { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.svc li { padding: 22px 0; border-top: 1px solid var(--line); }
.svc p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 640px) { .svc { grid-template-columns: 1fr; } }
.note { background: var(--white); border-left: 4px solid var(--lamp); padding: 18px 20px; border-radius: 0 var(--r-s) var(--r-s) 0; margin-top: 20px; font-size: 1rem; }

/* Nuotraukos */
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-m); background: var(--tint); }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo figcaption { font-size: .75rem; margin-top: 6px; }
.photo figcaption a { color: var(--ink-2); }
.split__side .photo { margin-top: 28px; }
.split__side .photo--tall { margin-top: 0; }

/* Kainos */
.price-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.price-tabs button {
	font: 600 .9375rem/1.2 var(--f-text); color: var(--white);
	background: transparent; border: 2px solid rgba(255,255,255,.45);
	padding: .7em 1.1em; border-radius: 999px; cursor: pointer;
}
.price-tabs button:hover { border-color: var(--white); }
.price-tabs button[aria-selected="true"] { background: var(--white); color: var(--enamel-d); border-color: var(--white); }
.price-group + .price-group { margin-top: 40px; }
.js .price-group + .price-group { margin-top: 0; }
.price-group[hidden] { display: none; }
.prices caption { text-align: left; padding-bottom: 12px; }
.prices__cap { display: block; font: 700 1.5rem/1.1 var(--f-display); }
.prices__note { display: block; font-size: .9375rem; color: rgba(255,255,255,.75); margin-top: 4px; }
.prices thead th { font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.7); text-align: left; padding: 8px 0; border-bottom: 2px solid rgba(255,255,255,.5); }
.prices thead th:last-child, .prices td { text-align: right; }
.prices tbody th, .prices td { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.22); vertical-align: top; text-align: left; font-weight: 400; }
.prices td { text-align: right; white-space: nowrap; font: 700 1.3rem/1.2 var(--f-display); color: var(--lamp); padding-left: 20px; }
.prices__name { display: block; font-weight: 600; font-size: 1.0625rem; }
.prices__desc { display: block; font-size: .9375rem; color: rgba(255,255,255,.75); max-width: 46em; }
@media (max-width: 560px) { .prices td { white-space: normal; font-size: 1.1rem; } }

/* Procesas – tikra seka, todėl numeruojama */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: var(--lamp); font: 700 1.5rem/1 var(--f-display);
}
.steps li::after { content: ""; position: absolute; top: 24px; left: 60px; right: -16px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; gap: 0; }
	.steps li { padding: 4px 0 28px 68px; }
	.steps li::after { top: 56px; bottom: 4px; left: 23px; right: auto; width: 2px; height: auto; }
	.steps li:last-child { padding-bottom: 0; }
}

/* Schema */
.schema { margin: 0; background: var(--white); border-radius: var(--r-l); padding: clamp(16px, 3vw, 28px); }
.schema svg { display: block; width: 100%; }
.schema figcaption { font-size: .875rem; color: var(--ink-2); margin-top: 8px; }
.s-body { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.s-part { fill: var(--white); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.s-line { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-bean ellipse { fill: #6B4A35; }
.s-coffee { fill: none; stroke: #6B4A35; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 6; }
.s-dot circle { fill: var(--ink-2); }
.s-screen { fill: var(--lcd); }
.s-water { fill: rgba(59,134,196,.28); }
.s-heat { fill: none; stroke: var(--lamp-d); stroke-width: 2.5; stroke-linejoin: round; }
.s-flow { fill: none; stroke: var(--water); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.s-hot { fill: none; stroke: var(--lamp); stroke-width: 4; stroke-linecap: round; }
.s-num circle { fill: var(--lamp); stroke: var(--ink); stroke-width: 2; }
.s-num text { font: 700 14px var(--f-text); text-anchor: middle; fill: var(--ink); }
.parts { list-style: none; counter-reset: part; display: grid; gap: 0; }
.parts li { counter-increment: part; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); }
.parts li::before {
	content: counter(part); position: absolute; left: 0; top: 15px;
	width: 28px; height: 28px; border-radius: 50%; background: var(--lamp); border: 2px solid var(--ink);
	display: grid; place-items: center; font: 700 .8125rem/1 var(--f-text);
}
.parts h3 { margin-bottom: .2em; font-size: 1.0625rem; }
.parts p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* Akordeonai */
.acc { border-top: 2px solid var(--ink); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary {
	display: flex; align-items: center; gap: 16px;
	padding: 20px 4px; cursor: pointer; list-style: none;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary h3 { margin: 0; flex: 1; font-size: 1.1875rem; }
.acc__item summary::after {
	content: ""; width: 14px; height: 14px; flex: none;
	background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
	transition: transform .2s;
}
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__item summary:hover h3 { color: var(--enamel); }
.acc__price { font: 700 1.125rem/1 var(--f-display); color: var(--enamel); white-space: nowrap; }
.acc__body { margin: 0 0 22px; padding: 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; max-width: 980px; }
.acc__body dt { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.acc__body dd { margin: 0; }
.acc--faq { max-width: 860px; }
.acc--faq .acc__body { display: block; max-width: 46em; }
.acc--faq .acc__body p { margin: 0; color: var(--ink-2); }
.acc__item:target { background: rgba(242,169,59,.14); }
@media (max-width: 640px) {
	.acc__body { grid-template-columns: 1fr; }
	.acc__price { display: none; }
}

/* Gamintojai */
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.brands__item { border-top: 2px solid var(--ink); padding: 18px 0 30px; }
.brands__item h3 { font: 700 1.5rem/1.1 var(--f-display); margin-bottom: .25em; }
.brands__models { font-size: .875rem; color: var(--enamel-d); font-weight: 600; margin-bottom: .6em; }
.brands__item p:last-child { color: var(--ink-2); font-size: .9375rem; margin: 0; }
@media (max-width: 980px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brands { grid-template-columns: 1fr; } }

/* Skaičiuoklė */
.calc { background: var(--white); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); }
.calc__row { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.calc__row > label, .calc__row legend { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; }
.calc__range { display: flex; align-items: center; gap: 16px; }
.calc__range input { flex: 1; accent-color: var(--enamel); height: 28px; }
.calc__range output { font: 700 2rem/1 var(--f-display); min-width: 2ch; text-align: right; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 8px; border: 2px solid var(--line); border-radius: 10px; text-align: center; font-weight: 600; font-size: .9375rem; line-height: 1.2; cursor: pointer; }
.seg small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-2); margin-top: 2px; }
.seg input:checked + span { border-color: var(--enamel); background: rgba(19,94,87,.08); }
.seg input:focus-visible + span { outline: 3px solid var(--lamp); outline-offset: 2px; }
@media (max-width: 520px) { .seg { grid-template-columns: 1fr 1fr; } }
.calc__check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.calc__check input { width: 20px; height: 20px; accent-color: var(--enamel); }
.calc__out { margin-top: 24px; padding: 18px 20px; background: var(--lcd); color: var(--lcd-text); border-radius: var(--r-m); }
.calc__big { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.05 var(--f-display); color: var(--white); margin: 0 0 6px; }
.calc__out p:last-child { margin: 0; }
.tips__title { font: 700 1.6rem/1.1 var(--f-display); }
.tips { list-style: none; }
.tips li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; font-size: 1rem; }
.tips li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--enamel); }

/* Remontuoti ar pirkti */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rules > div { border-top: 2px solid rgba(255,255,255,.6); padding-top: 18px; }
.rules h3 { font: 700 1.5rem/1.1 var(--f-display); }
.rules p { color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

/* Kontaktai */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__list { margin: 0 0 24px; display: grid; gap: 14px; }
.contact__list dt { font-size: .875rem; color: rgba(255,255,255,.65); }
.contact__list dd { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-display); }
.contact__list a { color: var(--white); text-decoration: none; }
.contact__list a:hover { color: var(--lamp); }
.hours { max-width: 420px; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.16); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--lamp); font-weight: 600; }
.map { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--enamel); min-height: 320px; display: grid; }
.map__face {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; padding: 28px;
	background:
		repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.07) 46px 48px),
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.07) 46px 48px),
		linear-gradient(160deg, #1A7168, var(--enamel-d));
}
.map__addr { font: 700 2rem/1.05 var(--f-display); margin: 0; }
.map__note { font-size: .8125rem; color: rgba(255,255,255,.7); margin: 0; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.bring { margin-top: 28px; }
.bring h3 { font: 700 1.5rem/1.1 var(--f-display); }
.bring ul { list-style: none; }
.bring li { padding: 10px 0 10px 28px; border-top: 1px solid rgba(255,255,255,.16); position: relative; }
.bring li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--lamp); border-bottom: 2px solid var(--lamp); transform: rotate(-45deg); }

/* ---------- Vidiniai puslapiai ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head__title { font: 700 clamp(2.2rem, 5vw, 3.8rem)/1 var(--f-display); letter-spacing: -.01em; }
.page-head__lead { font-size: 1.125rem; color: var(--ink-2); max-width: 40em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ink-2); margin-bottom: 16px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { border-top: 2px solid var(--ink); padding-top: 16px; }
.post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); margin-bottom: 14px; }
.post-card__title { font: 700 1.5rem/1.1 var(--f-display); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--enamel); }
.post-card__meta { font-size: .875rem; color: var(--ink-2); }
.entry__img img { width: 100%; border-radius: var(--r-l); margin-bottom: 32px; }
.entry__content { font-size: 1.125rem; line-height: 1.7; padding-bottom: 48px; }
.entry__content > * { max-width: 68ch; }
.entry__content h2 { font: 700 2rem/1.1 var(--f-display); margin-top: 1.6em; }
.entry__content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; margin-bottom: 1em; }
.entry__content li { margin-bottom: .35em; }
.entry__content blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--lamp); font-size: 1.2rem; }
.entry__content img { border-radius: var(--r-m); }
.entry__content table { margin: 1.5em 0; font-size: 1rem; }
.entry__content th, .entry__content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.entry__content .alignwide, .entry__content .alignfull { max-width: none; }
.wp-caption-text, .wp-element-caption { font-size: .875rem; color: var(--ink-2); }
.entry__nav .nav-links { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 48px; border-top: 1px solid var(--line); }
.entry__nav span { display: block; font-size: .8125rem; color: var(--ink-2); }
.pagination .nav-links, .posts-navigation .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.page-numbers { padding: .5em .9em; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.comments { padding-bottom: 48px; }
.comments__list { list-style: none; }

.cta-band { background: var(--enamel); color: var(--white); padding: 40px 0; }
.cta-band__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-band__title { font: 700 2rem/1.05 var(--f-display); margin-bottom: .2em; }
.cta-band p { margin: 0; }

/* ---------- Poraštė ---------- */
.site-foot { background: #170F0A; color: rgba(255,255,255,.78); padding: 64px 0 0; font-size: .9375rem; }
.site-foot a { color: var(--white); }
.site-foot a:hover { color: var(--lamp); }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot__brand svg { width: 150px; height: auto; margin-bottom: 14px; }
.site-foot__h { font: 600 .9375rem/1.2 var(--f-text); color: var(--white); margin-bottom: 12px; }
.site-foot__list { list-style: none; display: grid; gap: 6px; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.site-foot__base p { margin: 0; }
@media (max-width: 900px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ---------- Mobilus skambinimo juosta ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
	.callbar {
		display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: rgba(32,22,15,.96);
	}
	.callbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; border: 2px solid rgba(255,255,255,.5); }
	.callbar__btn--main { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
	.callbar__btn:hover { color: inherit; }
	body { padding-bottom: 72px; }
}

/* ---------- Mygtukas į viršų ---------- */
.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 55;
	width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: var(--lamp);
	box-shadow: 0 8px 20px -6px rgba(32,22,15,.5);
	opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .2s, transform .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--enamel); color: var(--white); }
.to-top .ico { width: 24px; height: 24px; }
@media (max-width: 760px) { .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; } }

/* ---------- WordPress būtinos klasės ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
	.site-head, .callbar, .to-top, .panel, .map, .site-foot { display: none !important; }
	body { background: #fff; }
	.sec--enamel, .sec--dark { background: #fff; color: #000; }
}
