/*
Theme Name: Taisykla
Theme URI: https://www.taisykla7.lt/
Author: Net septyni, UAB
Description: Moderni tema remonto paslaugų svetainei: paslaugų skydelis meniu, paslaugų kortelės pradžioje, kontaktų kortelė paslaugų puslapiuose, tinklaraštis. Viskas lietuviškai, suderinta su TranslatePress ir Contact Form 7.
Version: 1.3.0
Requires at least: 6.0
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: taisykla
Tags: business, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. Kintamieji
   ========================================================= */

:root {
	--navy: #0e1a2b;
	--navy-2: #17263b;
	--ink: #101828;
	--ink-2: #475467;
	--ink-3: #667085;
	--line: #e4e7ec;
	--soft: #f4f6f9;
	--bg: #ffffff;
	--accent: #c2410c;
	--accent-hover: #9a3412;
	--accent-soft: #fff1e8;
	--accent-on-dark: #ff9363;
	--on-dark: #ffffff;
	--on-dark-2: #b6c2d1;

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--gutter: 20px;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
	--shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.14);
	--header-h: 72px;
}

/* =========================================================
   2. Pagrindai
   ========================================================= */

*,
*::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(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.has-drawer {
	overflow: hidden;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.icon {
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius-sm);
	font-weight: 700;
}

/* =========================================================
   3. Mygtukai
   ========================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:active {
	transform: translateY(1px);
}

.btn--sm {
	min-height: 42px;
	padding: 0 16px;
	font-size: 14.5px;
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn--accent {
	background: var(--accent);
	color: #fff;
}

.btn--accent:hover {
	background: var(--accent-hover);
	color: #fff;
}

.btn--dark {
	background: var(--ink);
	color: #fff;
}

.btn--dark:hover {
	background: var(--accent);
	color: #fff;
}

.btn--ghost {
	border-color: var(--line);
	background: var(--bg);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.btn--ghost-light {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.btn--ghost-light:hover {
	border-color: #fff;
	color: #fff;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
	background: var(--soft);
	color: var(--ink);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--accent);
	white-space: nowrap;
}

.link-arrow:hover {
	color: var(--accent-hover);
}

.link-arrow .icon {
	transition: transform 0.15s;
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

/* =========================================================
   4. Viršutinė juosta
   ========================================================= */

.topbar {
	background: var(--navy);
	color: var(--on-dark-2);
	font-size: 13.5px;
}

.topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.topbar__group {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	color: var(--on-dark-2);
}

a.topbar__item:hover {
	color: #fff;
}

.topbar__phone {
	font-weight: 700;
	color: #fff;
}

.topbar .icon {
	color: var(--accent-on-dark);
}

/* =========================================================
   5. Antraštė
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	        backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}

.site-header__in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.branding {
	flex: none;
	display: flex;
	align-items: center;
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

.site-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.site-title:hover {
	color: var(--ink);
}

.desktop-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.mega-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--soft);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.mega-toggle:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.mega-toggle[aria-expanded="true"] {
	background: var(--ink);
	color: #fff;
}

.mega-toggle .icon--chevron {
	transition: transform 0.2s;
}

.mega-toggle[aria-expanded="true"] .icon--chevron {
	transform: rotate(180deg);
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.primary-menu a:hover {
	background: var(--soft);
	color: var(--ink);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_parent > a {
	color: var(--accent);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.menu-toggle {
	display: none;
}

/* Kalbų perjungiklis */
.lang {
	position: relative;
}

.lang summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.lang summary::-webkit-details-marker {
	display: none;
}

.lang summary:hover,
.lang[open] summary {
	background: var(--soft);
}

.lang__list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 60;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
}

.lang__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 14.5px;
	color: var(--ink);
}

.lang__list a:hover {
	background: var(--soft);
}

.lang__list a[aria-current="true"] {
	color: var(--accent);
	font-weight: 700;
}

.lang__code {
	display: inline-block;
	min-width: 28px;
	font-size: 12px;
	font-weight: 800;
	color: var(--ink-3);
}

/* Paieška */
.header-search {
	border-top: 1px solid var(--line);
	padding: 18px 0;
	background: var(--bg);
}

.header-search[hidden],
.mega[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 680px;
}

.search-field {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
}

.search-field:focus {
	border-color: var(--ink);
	outline: none;
}

/* =========================================================
   6. Paslaugų skydelis
   ========================================================= */

.mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	max-height: calc(100vh - var(--header-h) - 60px);
	overflow-y: auto;
	background: var(--bg);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 24px 40px rgba(16, 24, 40, 0.12);
}

.mega__list {
	columns: 4 220px;
	column-gap: 32px;
	margin: 0;
	padding: 30px 0 14px;
	list-style: none;
}

.mega__list > li {
	break-inside: avoid;
	padding-bottom: 22px;
}

.mega__list > li > a {
	display: inline-block;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--ink);
}

.mega__list > li > a:hover {
	color: var(--accent);
}

.mega__list .sub-menu {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.mega__list .sub-menu a {
	display: block;
	padding: 4px 0;
	font-size: 14.5px;
	color: var(--ink-2);
}

.mega__list .sub-menu a:hover {
	color: var(--accent);
}

/* Trečias lygis (pvz., automobilių markės) skydelyje nerodomas –
   jis pasiekiamas per paslaugos puslapį ir mobiliajame meniu */
.mega__list .sub-menu .sub-menu {
	display: none;
}

/* =========================================================
   7. Mobilusis meniu
   ========================================================= */

.drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.drawer[hidden] {
	display: none;
}

.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 26, 43, 0.5);
}

.drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: min(420px, 100%);
	padding: 16px 20px 32px;
	overflow-y: auto;
	background: var(--bg);
	box-shadow: var(--shadow-lg);
	animation: drawer-in 0.22s ease-out;
}

@keyframes drawer-in {
	from { transform: translateX(24px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.drawer__title {
	font-size: 18px;
	font-weight: 800;
}

.drawer__label {
	margin: 4px 0 -6px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.drawer-menu ul,
ul.drawer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer-menu li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--line);
}

.drawer-menu li a {
	flex: 1;
	padding: 12px 0;
	font-weight: 700;
	color: var(--ink);
}

.drawer-menu .sub-menu {
	display: none;
	flex: 0 0 100%;
	padding: 0 0 8px 14px !important;
	border-left: 2px solid var(--line);
	margin-bottom: 10px !important;
}

.drawer-menu li.is-open > .sub-menu {
	display: block;
}

.drawer-menu .sub-menu li {
	border-bottom: 0;
}

.drawer-menu .sub-menu a {
	padding: 8px 0;
	font-weight: 500;
	font-size: 15.5px;
	color: var(--ink-2);
}

.sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
}

.sub-toggle svg {
	transition: transform 0.2s;
}

.is-open > .sub-toggle svg {
	transform: rotate(180deg);
}

.lang--drawer summary {
	padding-left: 0;
}

.lang--drawer .lang__list {
	position: static;
	box-shadow: none;
	margin-top: 6px;
}

.drawer__cta .cta-buttons .btn {
	flex: 1;
}

/* =========================================================
   8. Prisitaikymas antraštei
   ========================================================= */

@media (max-width: 1100px) {
	.topbar__hours {
		display: none;
	}
}

@media (max-width: 1000px) {
	:root {
		--header-h: 64px;
	}

	.desktop-nav,
	.lang--header {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.header-call span {
		display: none;
	}

	.header-call {
		width: 44px;
		padding: 0;
	}
}

@media (max-width: 640px) {
	.topbar__group:first-child {
		display: none;
	}

	.topbar__in {
		justify-content: center;
	}

	.topbar a.topbar__item:not(.topbar__phone) {
		display: none;
	}
}

/* =========================================================
   9. Pradžios puslapis
   ========================================================= */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow--light {
	color: var(--accent-on-dark);
}

.hero {
	position: relative;
	overflow: hidden;
	background:
		var(--navy);
	color: var(--on-dark);
}

.hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 88px;
}

.hero__title {
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #fff;
}

.hero__lead {
	max-width: 52ch;
	margin: 20px 0 0;
	font-size: 19px;
	line-height: 1.6;
	color: var(--on-dark-2);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 32px;
}

.hero__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #fff;
}

.hero__link:hover {
	color: var(--accent-on-dark);
}

.hero__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero__card {
	padding: 26px;
	border-radius: 20px;
	background: var(--bg);
	color: var(--ink);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero__card-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.hero__card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero__card li + li {
	border-top: 1px solid var(--line);
}

.hero__card a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	font-weight: 700;
	color: var(--ink);
}

.hero__card a:hover {
	color: var(--accent);
}

.hero__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
}

/* Faktai */
.facts {
	position: relative;
	margin-top: -40px;
}

.facts__in {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.facts__in > .fact:first-child {
	border-radius: var(--radius) 0 0 var(--radius);
}

.facts__in > .fact:last-child {
	border-radius: 0 var(--radius) var(--radius) 0;
}

.fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 24px 28px;
	background: var(--bg);
	box-shadow: var(--shadow);
}

.fact + .fact {
	border-left: 1px solid var(--line);
}

.fact__value {
	white-space: nowrap;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.fact__label {
	font-size: 15px;
	color: var(--ink-2);
}

@media (max-width: 1000px) {
	.hero__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		padding-top: 48px;
		padding-bottom: 80px;
	}
}

@media (max-width: 640px) {
	.hero__lead {
		font-size: 17px;
	}

	/* Paslaugų sąrašas yra žemiau, todėl telefone kortelė hero dalyje nerodoma */
	.hero__card {
		display: none;
	}

	.hero__in {
		padding-bottom: 64px;
	}

	.facts__in {
		grid-template-columns: minmax(0, 1fr);
	}

	.facts__in > .fact:first-child {
		border-radius: var(--radius) var(--radius) 0 0;
	}

	.facts__in > .fact:last-child {
		border-radius: 0 0 var(--radius) var(--radius);
	}

	.fact + .fact {
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.fact {
		flex-direction: row;
		align-items: baseline;
		gap: 12px;
		padding: 18px 22px;
	}

	.fact__value {
		font-size: 22px;
	}
}

/* =========================================================
   10. Skiltys
   ========================================================= */

.section {
	padding-top: 80px;
	padding-bottom: 8px;
}

.section--tight {
	padding-top: 48px;
}

.section--soft {
	margin-top: 80px;
	padding-bottom: 72px;
	background: var(--soft);
}

.section-head {
	margin-bottom: 32px;
}

.section-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.section-title {
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.03em;
}

.section-title--sm {
	font-size: 24px;
	margin-bottom: 20px;
}

.section-head .section-title--sm {
	margin-bottom: 0;
}

/* Paslaugų kortelės */
.services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.service {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service:hover {
	border-color: transparent;
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
}

.service__title {
	font-size: 19px;
	line-height: 1.3;
}

.service__title a {
	color: var(--ink);
}

/* Visa kortelė paspaudžiama per pavadinimą */
.service__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius);
}

.service__title a:hover {
	color: var(--accent);
}

.service__list {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service__list a {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--soft);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.service__list a:hover {
	background: var(--ink);
	color: #fff;
}

.service__more {
	background: transparent !important;
	color: var(--accent) !important;
}

@media (max-width: 640px) {
	.service {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 14px;
		padding: 18px;
	}

	.service__icon {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.service__title {
		flex: 1;
		min-width: 0;
		font-size: 17.5px;
	}

	.service__list {
		flex-basis: 100%;
	}
}

/* Paslaugų kvadratai */
.section-head--center {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.section-lead {
	margin: 12px 0 0;
	font-size: 18px;
	color: var(--ink-2);
}

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 1 / 1;
	padding: 22px 16px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--bg);
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tile:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
	color: var(--ink);
}

.tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 4px;
	border-radius: 20px;
	background: var(--accent-soft);
	color: var(--accent);
	transition: background 0.2s, color 0.2s;
}

.tile:hover .tile__icon {
	background: var(--accent);
	color: #fff;
}

.tile__title {
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ink);
	text-wrap: balance;
}

.tile__meta {
	font-size: 13.5px;
	color: var(--ink-3);
}

.tile__arrow {
	position: absolute;
	top: 14px;
	right: 14px;
	color: var(--accent);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s;
}

.tile:hover .tile__arrow {
	opacity: 1;
	transform: none;
}

@media (max-width: 640px) {
	.tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.tile {
		padding: 16px 10px;
		border-radius: 14px;
	}

	.tile__icon {
		width: 56px;
		height: 56px;
		border-radius: 16px;
	}

	.tile__title {
		font-size: 15px;
	}

	.section-lead {
		font-size: 16.5px;
	}
}

/* CTA blokas */
.cta-band {
	margin: 88px 0;
}

.cta-band__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: 48px 56px;
	border-radius: 24px;
	background:
		var(--navy);
	color: #fff;
}

@media (max-width: 640px) {
	.cta-band__in {
		padding: 36px 24px;
		border-radius: 18px;
	}
}

.cta-band__title {
	font-size: clamp(26px, 3vw, 36px);
	color: #fff;
}

.cta-band__text {
	margin: 8px 0 0;
	font-size: 18px;
	color: var(--on-dark-2);
}

/* =========================================================
   11. Straipsnių kortelės
   ========================================================= */

.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

@media (max-width: 1000px) {
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.card__thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--soft);
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .card__thumb img {
	transform: scale(1.04);
}

.thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--line);
}

.thumb-empty .icon {
	width: 48px;
	height: 48px;
}

.card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	flex: 1;
	padding: 20px 22px 22px;
}

.kicker {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.card__title {
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.card__title a {
	color: var(--ink);
}

.card__title a:hover {
	color: var(--accent);
}

.card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: auto 0 0;
	padding-top: 4px;
	font-size: 13.5px;
	color: var(--ink-3);
}

.meta > * + *::before {
	content: "·";
	margin: 0 8px;
}

/* =========================================================
   12. Puslapio antraštė ir kelias
   ========================================================= */

.page-hero {
	padding: 36px 0 40px;
	background: var(--soft);
	border-bottom: 1px solid var(--line);
}

.page-hero--center {
	text-align: center;
	padding: 72px 0;
}

.page-hero--center .page-lead,
.page-hero--center .page-search .search-form {
	margin-left: auto;
	margin-right: auto;
}

.page-title {
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	max-width: 24ch;
}

.page-hero--center .page-title {
	max-width: none;
}

.page-lead {
	max-width: 62ch;
	margin: 14px 0 0;
	font-size: 18.5px;
	color: var(--ink-2);
}

.page-lead p:last-child {
	margin-bottom: 0;
}

.page-count {
	margin: 10px 0 0;
	color: var(--ink-3);
}

.page-search {
	margin-top: 20px;
}

.meta--hero {
	margin-top: 14px;
	font-size: 14.5px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--ink-3);
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 9px;
	color: var(--line);
}

.breadcrumbs a {
	color: var(--ink-2);
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.breadcrumbs [aria-current] {
	display: inline-block;
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* =========================================================
   13. Turinys su šonine juosta
   ========================================================= */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 56px;
	align-items: start;
	padding-top: 44px;
}

@media (max-width: 1000px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

.sticky {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.feature-image {
	margin: 0 0 32px;
}

.feature-image img {
	width: 100%;
	border-radius: var(--radius);
}

.feature-image figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink-3);
}

/* Kontaktų kortelė */
.contact-card {
	padding: 26px;
	border-radius: var(--radius);
	background: var(--navy);
	color: var(--on-dark-2);
}

.contact-card__title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 800;
	color: #fff;
}

.contact-card__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
}

.contact-card__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.contact-card__phone:hover {
	color: var(--accent-on-dark);
}

.contact-card__phone .icon {
	color: var(--accent-on-dark);
}

.contact-card__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.contact-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.contact-card__list .icon {
	margin-top: 3px;
	color: var(--accent-on-dark);
}

.contact-card__list a {
	color: #fff;
}

.contact-card .btn--ghost {
	border-color: rgba(255, 255, 255, 0.3);
	background: transparent;
	color: #fff;
}

.contact-card .btn--ghost:hover {
	border-color: #fff;
	color: #fff;
}

/* Valdikliai */
.widget-title,
.widget .wp-block-heading {
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.layout__aside .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.layout__aside .widget li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.45;
}

.layout__aside .widget li a {
	font-weight: 600;
}

/* Susiję puslapiai, žymos */
.subpages {
	margin-top: 44px;
	padding: 26px;
	border-radius: var(--radius);
	background: var(--soft);
}

.subpages__title {
	margin-bottom: 14px;
	font-size: 18px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chips--center {
	justify-content: center;
}

.chips a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
}

.chips a:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.chips--tags {
	margin-top: 32px;
}

/* =========================================================
   14. Teksto turinys
   ========================================================= */

.entry-content {
	font-size: 18px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.7em;
	margin-bottom: 0.55em;
}

.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 19px; }

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--accent-hover);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content li::marker {
	color: var(--accent);
	font-weight: 700;
}

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 18px 22px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	font-size: 19px;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.entry-content figcaption {
	font-size: 14px;
	color: var(--ink-3);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.entry-content th,
.entry-content td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--soft);
	font-weight: 800;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2em 0;
}

.entry-content iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--radius-sm);
}

/* Blokų redaktoriaus mygtukai */
.entry-content .wp-block-button__link,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--accent-hover);
	color: #fff;
}

.entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid currentColor;
	color: var(--ink);
}

.entry-content .wp-block-cover {
	border-radius: var(--radius);
	overflow: hidden;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

@media (max-width: 640px) {
	.entry-content {
		font-size: 17px;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1.2em;
	}
}

.page-links {
	display: flex;
	gap: 8px;
	font-weight: 700;
}

/* =========================================================
   15. Formos (Contact Form 7, komentarai)
   ========================================================= */

.wpcf7-form p,
.comment-form p {
	margin-bottom: 16px;
}

.wpcf7-form label,
.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 700;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg);
	font-size: 16px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
	outline: none;
}

.wpcf7-form input[type="submit"],
.comment-form input[type="submit"] {
	min-height: 50px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
	background: var(--accent-hover);
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 14px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
}

/* Komentarai */
.comments {
	margin-top: 56px;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 24px;
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin: 4px 0 8px;
	font-size: 13.5px;
	color: var(--ink-3);
}

/* =========================================================
   16. Puslapiavimas, tušti rezultatai
   ========================================================= */

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
}

.page-numbers:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
}

.empty {
	max-width: 640px;
	color: var(--ink-2);
}

/* =========================================================
   17. Poraštė
   ========================================================= */

.site-footer {
	margin-top: 0;
	padding: 64px 0 32px;
	background: var(--navy);
	color: var(--on-dark-2);
	font-size: 15px;
}

body:not(.home) .site-footer {
	margin-top: 88px;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: var(--accent-on-dark);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 800px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.footer-title {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.footer-brand p {
	max-width: 40ch;
	margin-bottom: 18px;
}

.footer-contacts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-contacts .icon {
	color: var(--accent-on-dark);
}

.footer-heading,
.site-footer .widget-title,
.site-footer .widget .wp-block-heading {
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.footer-menu,
.site-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li,
.site-footer .widget li {
	padding: 4px 0;
}

.footer-menu a,
.site-footer .widget a {
	color: var(--on-dark-2);
}

.footer-menu a:hover,
.site-footer .widget a:hover {
	color: #fff;
}

.site-footer .widget p {
	margin-bottom: 0.6em;
}

.footer-bottom {
	padding-top: 24px;
	font-size: 13.5px;
}

.copyright {
	margin: 0 0 10px;
	color: #fff;
	font-weight: 600;
}

.legal {
	max-width: 110ch;
	margin: 0;
	line-height: 1.6;
	color: #8d9aab;
}

/* =========================================================
   Modernūs tamsūs fonai: brėžinio tinklelis, elektronikos
   takeliai ir švelnus šviesos atspindys
   ========================================================= */

.hero,
.site-footer,
.cta-band__in {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.hero::before,
.site-footer::before,
.cta-band__in::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='1.2'%3E%3Cpath d='M0 60h50l20 20h60l15-15h95'/%3E%3Cpath d='M40 240v-50l25-25v-45'/%3E%3Cpath d='M240 170h-60l-20 20h-40'/%3E%3Cpath d='M150 0v35l-15 15'/%3E%3Cg fill='%23ff9363' fill-opacity='0.35' stroke='none'%3E%3Ccircle cx='130' cy='80' r='2.5'/%3E%3Ccircle cx='65' cy='120' r='2.5'/%3E%3Ccircle cx='120' cy='190' r='2.5'/%3E%3Ccircle cx='135' cy='50' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 240px,
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 75% 95% at 72% 40%, #000 15%, transparent 72%);
	        mask-image: radial-gradient(ellipse 75% 95% at 72% 40%, #000 15%, transparent 72%);
}

.hero::after,
.site-footer::after,
.cta-band__in::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	width: 760px;
	height: 760px;
	right: -220px;
	top: -300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 120, 60, 0.26) 0%, rgba(255, 120, 60, 0.08) 35%, rgba(255, 120, 60, 0) 62%);
	animation: tk-glow 16s ease-in-out infinite alternate;
}

@keyframes tk-glow {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(-80px, 60px) scale(1.12); }
}

/* Antras, mėlynas atspindys apačioje kairėje */
.hero {
	background:
		radial-gradient(800px 520px at -5% 110%, rgba(64, 128, 255, 0.2), transparent 62%),
		var(--navy);
}

/* Poraštė: plona švytinti linija viršuje, atspindys kairėje */
.site-footer {
	background:
		linear-gradient(90deg, transparent, rgba(255, 147, 99, 0.7), transparent) 0 0 / 100% 1px no-repeat,
		radial-gradient(700px 420px at 105% 105%, rgba(64, 128, 255, 0.14), transparent 60%),
		var(--navy);
}

.site-footer::before {
	-webkit-mask-image: radial-gradient(ellipse 60% 80% at 15% 30%, #000 10%, transparent 70%);
	        mask-image: radial-gradient(ellipse 60% 80% at 15% 30%, #000 10%, transparent 70%);
}

.site-footer::after {
	right: auto;
	left: -320px;
	top: -380px;
	opacity: 0.7;
}

/* Kvietimo blokas */
.cta-band__in {
	background:
		radial-gradient(600px 300px at 0% 120%, rgba(64, 128, 255, 0.22), transparent 60%),
		var(--navy);
}

.cta-band__in::after {
	width: 520px;
	height: 520px;
	right: -160px;
	top: -240px;
}

/* =========================================================
   Mygtukas „Į viršų“ su skaitymo progreso žiedu
   ========================================================= */

.to-top {
	--p: 0;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 10px 30px rgba(14, 26, 43, 0.22), 0 0 0 1px rgba(14, 26, 43, 0.06);
	cursor: pointer;
	opacity: 0;
	transform: translateY(16px) scale(0.9);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

.to-top[hidden] {
	display: none;
}

.to-top.is-visible {
	opacity: 1;
	transform: none;
}

.to-top:hover {
	background: var(--accent);
	color: #fff;
}

.to-top:hover .to-top__arrow {
	transform: translateY(-2px);
}

.to-top__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.to-top__ring circle {
	fill: none;
	stroke-width: 3;
}

.to-top__track {
	stroke: var(--line);
}

.to-top__progress {
	stroke: var(--accent);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--p));
	transition: stroke-dashoffset 0.1s linear;
}

.to-top:hover .to-top__track {
	stroke: rgba(255, 255, 255, 0.3);
}

.to-top:hover .to-top__progress {
	stroke: #fff;
}

.to-top__arrow {
	position: relative;
	transition: transform 0.2s;
}

@media (max-width: 640px) {
	.to-top {
		right: 14px;
		bottom: 14px;
		width: 48px;
		height: 48px;
	}
}

body.has-drawer .to-top {
	display: none;
}

/* =========================================================
   18. Spausdinimas ir mažiau judesio
   ========================================================= */

@media print {
	.topbar,
	.site-header,
	.layout__aside,
	.cta-band,
	.to-top,
	.site-footer {
		display: none !important;
	}

	.layout {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
