/*
Theme Name: 7betrally
Theme URI: https://www.7betrally.lt/
Author: 7betrally.lt
Author URI: https://www.7betrally.lt/
Description: Elektrinių paspirtukų remonto Klaipėdoje tema. Veikia be papildomų įskiepių: interaktyvi paspirtuko schema su gedimais ir kainomis, kainoraštis su sąmatos skaičiuokle, klaidų kodų paieška, priežiūros patarimai, DUK, schema.org duomenys, Open Graph, senų nuorodų 301 nukreipimai, mygtukas į viršų. Be išorinių šriftų ir be jQuery.
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: 7betrally
Tags: one-column, custom-menu, custom-logo, featured-images, accessibility-ready, translation-ready
*/

/* ================= Tokens ================= */
:root {
	--harbour: #0E2A47;
	--harbour-2: #17406B;
	--harbour-3: #2A5F94;
	--deep: #091D33;
	--signal: #FFC21A;
	--signal-d: #E0A400;
	--paper: #EEF2F5;
	--line: #D5DDE5;
	--ink: #15202B;
	--steel: #53647A;
	--live: #1E9E63;
	--closed: #C2413A;
	--white: #FFFFFF;

	--f-head: "Bahnschrift", "DIN Alternate", "DIN 2014", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
	--f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

	--r-s: 6px;
	--r-m: 12px;
	--r-l: 20px;
	--gap: clamp(16px, 2.4vw, 28px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 72px;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--harbour-3); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--harbour); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: inherit; font-weight: 700; font-stretch: 92%; }
h1 { font-size: clamp(2.15rem, 1.2rem + 3.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--signal); color: var(--ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
main:focus { outline: none; }

/* ================= Buttons ================= */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	min-height: 50px; padding: .7em 1.3em;
	border-radius: var(--r-s); border: 2px solid transparent;
	font-family: var(--f-head); font-size: 1.08rem; font-weight: 700; letter-spacing: .01em;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: #FFD24D; color: var(--ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); text-decoration: none; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 42px; padding: .45em 1em; font-size: 1rem; }
.text-link { font-weight: 600; }

/* ================= Status ================= */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--steel); flex: none; }
.status-dot.is-open { background: var(--live); box-shadow: 0 0 0 4px rgba(30,158,99,.2); }
.status-dot.is-soon { background: var(--signal); box-shadow: 0 0 0 4px rgba(255,194,26,.25); }
.status-dot.is-closed { background: var(--closed); }

/* ================= Header ================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); } }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14,42,71,.6); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--harbour); flex: none; }
.brand:hover { color: var(--harbour); text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.brand-tld { color: var(--harbour-3); }
.brand-sub { font-size: .78rem; color: var(--steel); margin-top: 3px; }
.custom-logo { max-height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav .menu a {
	display: block; padding: 10px 12px; border-radius: var(--r-s);
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.main-nav .menu a:hover, .main-nav .current-menu-item > a { background: var(--paper); color: var(--harbour); }
.main-nav .sub-menu { display: none; }
.header-call {
	display: inline-flex; align-items: center; gap: 10px; flex: none;
	padding: 8px 14px; border-radius: var(--r-s);
	background: var(--harbour); color: var(--white); text-decoration: none;
}
.header-call:hover { background: var(--harbour-2); color: var(--white); text-decoration: none; }
.header-call-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-call-num { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.header-call-status { font-size: .76rem; opacity: .85; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-s); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 1080px) {
	.header-call { display: none; }
}
@media (max-width: 900px) {
	:root { --header-h: 64px; }
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(14,42,71,.4);
		display: none; padding: 8px 20px 16px;
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu a { padding: 14px 8px; font-size: 1.08rem; border-bottom: 1px solid var(--paper); border-radius: 0; }
	.brand-sub { display: none; }
	.logo-mark { width: 40px; height: 40px; }
}

/* ================= Hero + schema ================= */
.hero {
	position: relative;
	background-color: var(--harbour);
	background-image:
		radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px),
		linear-gradient(160deg, var(--harbour) 0%, var(--deep) 100%);
	background-size: 22px 22px, 100% 100%;
	color: var(--white);
	padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 84px);
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { color: var(--white); max-width: 17ch; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.55; max-width: 38em; }
.hero .lead { color: #D6E2EE; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.facts > div { padding: 14px 22px 14px 0; margin-right: 22px; border-right: 1px solid rgba(255,255,255,.18); }
.facts > div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: .85rem; color: #A9BED3; }
.facts dd { margin: 0; font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: var(--signal); line-height: 1.15; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-status { margin: 18px 0 0; display: flex; align-items: center; gap: 10px; color: #D6E2EE; font-size: .95rem; }

.schematic { display: grid; gap: 16px; }
.schematic-stage {
	position: relative;
	aspect-ratio: 640 / 400;
	border-radius: var(--r-l);
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(255,255,255,.12);
}
.schematic-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #C9DBEC; }
.sc-ground { opacity: .35; stroke-dasharray: 2 8; }
.sc-beam { stroke: var(--signal); opacity: .5; stroke-dasharray: 4 6; }
.sc-thin, .sc-cells { opacity: .75; }
.sc-disc { color: #9FB7CF; }
.sc-hinge { stroke: var(--signal); }
.sc-red { stroke: #FF7A6B; fill: rgba(255,122,107,.35); }
.sc-draw .sc-line { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.js .schematic:not(.is-drawn) .sc-line { stroke-dashoffset: 1200; }
.schematic.is-drawn .sc-line { transition: stroke-dashoffset 1.6s cubic-bezier(.4,.1,.2,1); }

.hotspot {
	position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px;
	border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: var(--signal); color: var(--ink);
	box-shadow: 0 0 0 4px rgba(255,194,26,.25), 0 4px 10px rgba(0,0,0,.35);
	transition: transform .15s, box-shadow .15s;
}
.hotspot::before, .hotspot::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--harbour); border-radius: 2px; transform: translate(-50%, -50%); }
.hotspot::before { width: 12px; height: 2.5px; }
.hotspot::after { width: 2.5px; height: 12px; transition: transform .15s; }
.hotspot:hover, .hotspot:focus-visible { transform: scale(1.12); }
.hotspot[aria-pressed="true"] { background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.35); }
.hotspot[aria-pressed="true"]::after { transform: translate(-50%, -50%) scaleY(0); }
.hotspot-label {
	position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
	white-space: nowrap; pointer-events: none;
	background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 600;
	padding: 5px 9px; border-radius: var(--r-s); opacity: 0; transition: opacity .15s;
}
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label { opacity: 1; }
.js .schematic:not(.has-interacted) .hotspot { animation: pulse 2.4s ease-out 1.8s 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,194,26,.65), 0 4px 10px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 16px rgba(255,194,26,0), 0 4px 10px rgba(0,0,0,.35); } }

.schematic-panel {
	background: var(--white); color: var(--ink);
	border-radius: var(--r-l); padding: 22px 24px;
	min-height: 196px;
}
.part-intro-title { font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 .3em; color: var(--harbour); }
.part-intro p:last-child { margin: 0; color: var(--steel); }
.part-card { padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.part-card h3 { color: var(--harbour); margin-bottom: .6em; }
.js .part-card { display: none; border: 0; margin: 0; padding: 0; }
.js .part-card.is-active { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; animation: fadein .2s ease-out; }
.js .part-card.is-active h3 { grid-column: 1 / -1; }
.js .part-card.is-active .part-label:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.js .part-card.is-active .part-symptoms { grid-column: 1; grid-row: 3; }
.js .part-card.is-active .part-label:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.js .part-card.is-active .part-prices { grid-column: 2; grid-row: 3; }
.js .schematic.has-active .part-intro { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.part-label { font-size: .85rem; font-weight: 700; color: var(--steel); margin: 0 0 .35em; }
.part-symptoms, .part-prices { list-style: none; padding: 0; margin: 0 0 12px; font-size: .97rem; }
.part-symptoms li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.part-symptoms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--signal); border-radius: 2px; }
.part-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.part-prices li span { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.part-prices a { color: var(--ink); text-decoration: none; }
.part-prices a:hover { text-decoration: underline; }
.part-foot { margin: 6px 0 0; font-size: .88rem; color: var(--steel); }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero h1 { max-width: 16ch; }
}
@media (max-width: 560px) {
	.hotspot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
	.hotspot-label { display: none; }
	.js .part-card.is-active { display: block; }
	.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.facts > div { padding: 12px 10px 12px 0; margin-right: 10px; }
	.facts dt { font-size: .78rem; line-height: 1.3; }
	.facts dd { font-size: 1.25rem; }
	.hero-actions .btn { width: 100%; justify-content: center; }
}

/* ================= Sections ================= */
.section { padding: var(--section) 0; }
.section-tight { padding-top: 32px; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--steel); font-size: 1.08rem; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; max-width: none; }

/* Eiga */
.steps-section { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 22px 0 0; counter-increment: step; }
.steps li::before {
	content: counter(step); display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: var(--r-s);
	background: var(--harbour); color: var(--signal);
	font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 16px;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--harbour-3) 0 6px, transparent 6px 12px); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps p { color: var(--steel); margin: 0; font-size: .98rem; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; gap: 22px; }
	.steps li { padding: 0 0 0 64px; }
	.steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
	.steps li::after { left: 21px; top: 52px; bottom: -18px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--harbour-3) 0 6px, transparent 6px 12px); }
}

/* Kainos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--harbour); background: var(--paper); }
.price-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.price-group h3 { padding-bottom: 10px; border-bottom: 3px solid var(--harbour); margin-bottom: 0; }
.price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 400; padding-right: 12px; }
.price-table td { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; font-family: var(--f-head); font-size: 1.08rem; }
.price-table tr:target { background: #FFF6D6; }
.price-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.price-check input {
	appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0;
	width: 22px; height: 22px; border: 2px solid #9AABBD; border-radius: 5px; background: var(--white); cursor: pointer;
	display: grid; place-items: center; transition: background-color .12s, border-color .12s;
}
.price-check input::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.price-check input:checked { background: var(--signal); border-color: var(--signal-d); }
.price-check input:checked::after { opacity: 1; }
.price-check input:focus-visible { outline: 3px solid var(--harbour-3); outline-offset: 2px; }
.price-note { display: block; margin: 2px 0 0 34px; font-size: .85rem; color: var(--steel); }
.worth-it { margin-top: 48px; padding: 24px 28px; border-left: 5px solid var(--signal); background: var(--paper); border-radius: 0 var(--r-m) var(--r-m) 0; max-width: 860px; }
.worth-it h3 { margin-bottom: .4em; }
.worth-it p { margin: 0; }
.estimate { position: sticky; bottom: 0; z-index: 30; margin-top: 32px; background: var(--harbour); color: var(--white); box-shadow: 0 -10px 30px -12px rgba(9,29,51,.5); }
.estimate[hidden] { display: none; }
.estimate-row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.estimate-sum { margin: 0; font-size: 1.05rem; }
.estimate-sum strong { font-family: var(--f-head); font-size: 1.5rem; color: var(--signal); margin-left: 4px; }
.estimate-note { margin: 0; font-size: .88rem; color: #B9CBDC; flex: 1 1 260px; }
.estimate-actions { display: flex; gap: 8px; }
.estimate .btn-ghost-dark { color: var(--white); border-color: rgba(255,255,255,.4); }
.estimate .btn-ghost-dark:hover { border-color: var(--white); color: var(--white); }
@media (max-width: 760px) { .price-groups { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.estimate-row { padding-top: 10px; padding-bottom: 10px; justify-content: space-between; }
	.estimate-note { order: 3; flex-basis: 100%; font-size: .8rem; }
	.estimate-sum strong { font-size: 1.3rem; }
}

/* Kodėl */
.why-section { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.why-photo { margin: 0; }
.why-photo img, .guide-photo img, .rules-photo img { width: 100%; border-radius: var(--r-l); object-fit: cover; }
.why-photo img { aspect-ratio: 4 / 5; }
figcaption { font-size: .86rem; color: var(--steel); margin-top: 10px; }
.photo-fallback { aspect-ratio: 4 / 5; border-radius: var(--r-l); background: var(--harbour); background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.2px); background-size: 22px 22px; display: grid; place-items: center; }
.fallback-mark { width: 40%; height: auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; }
.ticks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticks .ico { color: var(--live); width: 24px; height: 24px; margin-top: 2px; }
.ticks strong { color: var(--harbour); }
.brands-title { font-weight: 700; margin-bottom: 12px; }
.brands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brands li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); padding: 5px 11px; font-size: .92rem; font-weight: 600; color: var(--harbour); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } .why-photo img, .photo-fallback { aspect-ratio: 16 / 10; } }

/* Klaidų kodai */
.codes-search { position: relative; max-width: 520px; margin-bottom: 20px; }
.codes-search label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); display: flex; }
.codes-search input {
	width: 100%; min-height: 52px; padding: 12px 16px 12px 46px;
	border: 2px solid var(--line); border-radius: var(--r-m); background: var(--white);
	font: inherit; color: var(--ink);
}
.codes-search input:focus { outline: none; border-color: var(--harbour-3); box-shadow: 0 0 0 4px rgba(42,95,148,.15); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-m); }
.codes-table { min-width: 760px; font-size: .96rem; }
.codes-table th, .codes-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.codes-table thead th { background: var(--harbour); color: var(--white); font-weight: 600; font-size: .9rem; position: sticky; top: 0; }
.codes-table tbody tr:nth-child(even) { background: #F7F9FB; }
.codes-table tbody tr:last-child th, .codes-table tbody tr:last-child td { border-bottom: 0; }
.code-badge { display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 8px; border-radius: var(--r-s); background: var(--signal); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.codes-empty { padding: 20px; margin: 0; }

/* Patarimai */
.guides-section { background: var(--paper); }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.guide { background: var(--white); border-radius: var(--r-m); padding: clamp(22px, 3vw, 32px); border-top: 4px solid var(--harbour); }
.guide-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; border-top-color: var(--signal); }
.guide-photo { margin: 0; }
.guide-photo img { aspect-ratio: 4 / 3; }
.guide h3 { color: var(--harbour); }
.guide ul { margin: 0; padding-left: 1.1em; }
.guide li { margin-bottom: .55em; }
.guide li::marker { color: var(--harbour-3); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border: 2px solid var(--harbour-3); border-radius: 4px; }
@media (max-width: 860px) { .guides, .guide-feature { grid-template-columns: 1fr; } }

/* Taisyklės */
.rules-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rules { list-style: none; padding: 0; margin: 0 0 20px; }
.rules li { padding: 14px 0 14px 20px; border-bottom: 1px solid var(--line); position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px; background: var(--signal); border-radius: 2px; }
.rules strong { color: var(--harbour); }
.rules-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.rules-photo img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } .rules-photo { position: static; } .rules-photo img { aspect-ratio: 16 / 10; } }

/* DUK */
.faq-section { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 20px); }
.faq-intro p { color: var(--steel); }
.faq { background: var(--white); border-radius: var(--r-m); margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.12rem; font-family: var(--f-body); font-weight: 700; line-height: 1.35; color: var(--ink); }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border: solid var(--harbour-3); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .18s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover h3 { color: var(--harbour-3); }
.faq p { padding: 0 22px 20px; margin: 0; color: #33424F; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-intro { position: static; } }

/* Įrašai */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--harbour); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback { display: grid; place-items: center; height: 100%; color: var(--signal); background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.2px); background-size: 18px 18px; }
.post-card-fallback .ico { width: 48px; height: 48px; }
.post-card-body { padding: 20px 22px 24px; }
.post-card-title { font-size: 1.2rem; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--harbour-3); text-decoration: underline; }
.post-card-body p:last-child { color: var(--steel); margin: 0; font-size: .97rem; }
.post-meta { font-size: .88rem; color: var(--steel); margin-bottom: .5em; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* Kontaktai */
.contact-section { background: var(--harbour); color: var(--white); background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 22px 22px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact-lead { color: #C9D7E5; font-size: 1.1rem; max-width: 34em; }
.contact-phone { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); color: var(--signal); text-decoration: none; letter-spacing: -.01em; line-height: 1.1; }
.contact-phone .ico { width: .8em; height: .8em; }
.contact-phone:hover { color: #FFD24D; text-decoration: none; }
.contact-status { display: flex; align-items: center; gap: 10px; color: #D6E2EE; margin: 14px 0 26px; }
.contact-meta { list-style: none; padding: 0; margin: 0; }
.contact-meta li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); color: #E3ECF4; }
.contact-meta .ico { color: var(--signal); margin-top: 3px; }
.contact-meta a { color: var(--white); }
.hours-card { background: var(--white); color: var(--ink); border-radius: var(--r-l); padding: 26px 28px; }
.hours-card h3 { color: var(--harbour); }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; 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: var(--harbour); }
.hours tr.is-today th::after { content: " (šiandien)"; font-weight: 400; color: var(--steel); font-size: .88rem; }
.hours-card .small { margin: 12px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Vidiniai puslapiai */
.page-hero { background: var(--paper); padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); color: var(--harbour); max-width: 22ch; }
.page-hero .lead { color: var(--steel); margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .9rem; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9AABBD; }
.crumbs a { color: var(--steel); }
.single-thumb { margin-top: 32px; margin-bottom: 0; }
.single-thumb img { width: 100%; border-radius: var(--r-l); }
.single-layout { padding-top: 40px; padding-bottom: var(--section); }
.toc { background: var(--paper); border-radius: var(--r-m); padding: 18px 22px; margin-bottom: 32px; }
.toc-title { font-weight: 700; margin: 0 0 8px; color: var(--harbour); }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 4px 0; }
.entry-content { font-size: 1.1rem; line-height: 1.7; }
.entry-content > * { max-width: 72ch; }
.entry-content h2 { margin-top: 1.6em; color: var(--harbour); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--r-m); }
.entry-content figure { margin: 1.6em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--signal); color: #33424F; }
.entry-content table { margin: 1.4em 0; font-size: .97rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-gallery, .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.inline-cta { margin: 40px 0; padding: 20px 24px; border-radius: var(--r-m); background: var(--harbour); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-cta p { margin: 0; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper); font-size: .88rem; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav div:last-child { text-align: right; }
.post-nav a { font-weight: 600; text-decoration: none; color: var(--ink); }
.post-nav a span { display: block; font-weight: 400; font-size: .85rem; color: var(--steel); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--harbour); color: var(--white); border-color: var(--harbour); }
.empty { padding: 32px; background: var(--paper); border-radius: var(--r-m); }

/* CTA juosta */
.cta-band { background: var(--harbour); color: var(--white); padding: 44px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #C9D7E5; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= Footer ================= */
.site-footer { background: var(--deep); color: #B9CBDC; padding: 64px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.site-footer a { color: var(--white); }
.brand-light, .brand-light:hover { color: var(--white); }
.brand-light .brand-tld { color: var(--signal); }
.brand-light .brand-sub { color: #93A9BF; }
.footer-brand p { margin-top: 16px; }
.footer-title { font-family: var(--f-head); font-size: 1.1rem; color: var(--white); margin-bottom: 12px; }
.footer-hours strong { color: var(--white); font-size: 1.15rem; }
.footer-phone { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 6px; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.open-line { display: flex; align-items: center; gap: 8px; }
.site-footer .muted { color: #8EA3B8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: #8EA3B8; }
.footer-bottom p { margin: 0 0 6px; }
.credits a { color: #B9CBDC; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================= Mobili skambučio juosta ================= */
.call-bar { display: none; }
@media (max-width: 760px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.call-bar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: var(--white); border-top: 1px solid var(--line);
		box-shadow: 0 -8px 24px -16px rgba(9,29,51,.5);
	}
	.call-bar-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r-s); background: var(--signal); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
	.call-bar-status { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--steel); max-width: 46%; line-height: 1.2; }
	.estimate { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ================= Į viršų ================= */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 55;
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--harbour); color: var(--white);
	box-shadow: 0 8px 20px -8px rgba(9,29,51,.6);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.has-estimate .to-top { bottom: 96px; }
.to-top:hover { background: var(--harbour-2); color: var(--white); }
.to-top-ico { width: 22px; height: 22px; position: relative; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.to-top-ring circle { stroke: rgba(255,255,255,.15); }
.to-top-ring .to-top-progress { stroke: var(--signal); stroke-dasharray: 132; stroke-dashoffset: 132; stroke-linecap: round; }
@media (max-width: 760px) {
	.to-top { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 46px; height: 46px; }
	.has-estimate .to-top { opacity: 0; visibility: hidden; }
}

/* ================= Judesio mažinimas ir spausdinimas ================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .schematic:not(.is-drawn) .sc-line { stroke-dashoffset: 0; }
}
@media print {
	.site-header, .call-bar, .to-top, .estimate, .nav-toggle, .hotspot, .cta-band { display: none !important; }
	.hero, .contact-section, .site-footer { background: none; color: #000; }
	.js .part-card { display: block !important; }
}
