/*
Theme Name: Konsolių nuoma
Theme URI: https://example.lt/
Author: MB „Enter prekyba“
Description: Žaidimų konsolių nuomos tema su rezervacijomis, kainų skaičiuokle, užimtumo kalendoriumi ir el. laiškais. Be mokamų papildinių.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: konsoliu-nuoma
License: GPLv2 or later
*/

:root {
	--bg: #edeff6;
	--paper: #ffffff;
	--ink: #17192e;
	--muted: #585d78;
	--line: #d6dae8;
	--accent: #2f43f0;
	--accent-deep: #1f2fc4;
	--tag: #ffd43b;
	--ok: #1e8e5a;
	--err: #c4312b;
	--font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1180px;
	--r-lg: 22px;
	--r-md: 14px;
	--r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-variation-settings: "opsz" 14;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- Mygtukai ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.4em;
	border: 0; border-radius: 999px;
	font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--primary[disabled] { background: #9aa2c9; cursor: not-allowed; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--tag); color: var(--ink); }
.btn--wide { width: 100%; }
.link { font-weight: 600; }

/* ---------- Kainos etiketė: vienintelis „garsus“ elementas ---------- */
.tag {
	--hole: 12px;
	display: inline-block;
	padding: .18em .55em .18em calc(var(--hole) + .7em);
	background:
		radial-gradient(circle at calc(var(--hole) + 1px) 50%, transparent 3.5px, var(--tag) 4px);
	color: var(--ink);
	font-weight: 800;
	font-stretch: 85%;
	line-height: 1.25;
	white-space: nowrap;
	clip-path: polygon(var(--hole) 0, 100% 0, 100% 100%, var(--hole) 100%, 0 50%);
	border-radius: 0 6px 6px 0;
}
.tag.is-bump { animation: bump .35s ease-out; }
@keyframes bump { 0% { transform: rotate(-4deg) scale(1.08); } 100% { transform: none; } }

/* ---------- Antraštė ---------- */
.site-head { background: var(--accent); color: #fff; position: relative; z-index: 20; }
.site-head__in { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.2rem; font-stretch: 85%; }
.brand:hover { color: inherit; }
.brand__mark { width: 40px; height: 27px; color: var(--tag); --pad-mark: var(--accent); flex: none; }
.brand__logo { max-height: 44px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav__list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav__list a { color: #fff; text-decoration: none; font-weight: 550; }
.nav__list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav__phone { color: var(--ink); background: var(--tag); padding: .5em 1em; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav__phone:hover { color: var(--ink); background: #fff; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 0; width: 48px; height: 48px; color: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; margin: auto; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--accent); color: #fff; padding: 3rem 0 4.5rem; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 3.5rem; align-items: center; }
.hero__title {
	font-size: clamp(2.6rem, 6.4vw, 5.2rem);
	font-weight: 800;
	font-stretch: 75%;
	font-variation-settings: "opsz" 96;
	line-height: .94;
	letter-spacing: -.012em;
	margin-bottom: .45em;
	text-wrap: balance;
}
.hero__lede { font-size: 1.2rem; max-width: 34em; color: #e6e9ff; }
.hero__facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.hero__facts li { display: flex; gap: .7rem; align-items: baseline; }
.hero__facts li::before { content: ""; flex: none; width: .6em; height: .6em; background: var(--tag); border-radius: 2px; transform: rotate(45deg) translateY(-.05em); }

.calc {
	background: var(--paper); color: var(--ink);
	border-radius: var(--r-lg);
	padding: 1.6rem;
	box-shadow: 0 24px 0 -12px rgba(23, 25, 46, .28);
}
.calc__h { font-size: 1.35rem; font-stretch: 85%; margin-bottom: 1rem; }

/* ---------- Formos ---------- */
.field { margin-bottom: 1rem; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field small, .check small { color: var(--muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
	width: 100%; min-height: 48px;
	padding: .6em .8em;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: var(--r-sm);
	appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5em; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 67, 240, .2); }
.choice { border: 0; padding: 0; }
.choice label { display: flex; align-items: center; gap: .6rem; font-weight: 500; padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin-bottom: .45rem; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--accent); background: #f3f5ff; }
.choice small { margin-left: auto; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; font-size: .95rem; cursor: pointer; }
.check input { margin-top: .2em; }

.quote { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; margin: .25rem 0 .5rem; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
.quote__tag { font-size: 2rem; }
.quote__lines { display: grid; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.quote__lines span:first-child { color: var(--ink); font-weight: 600; }
.quote__warn { color: var(--err); font-weight: 600; font-size: .95rem; margin: .5rem 0; }
.calc .btn { margin-top: .75rem; }
.booking__note { font-size: .88rem; color: var(--muted); margin: .8rem 0 0; }
.booking__closed { font-weight: 600; }

.notice { padding: 1rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1.2rem; border-left: 5px solid; }
.notice--ok { background: #e8f6ef; border-color: var(--ok); }
.notice--err { background: #fcebea; border-color: var(--err); }

/* ---------- Sekcijos ---------- */
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0 1rem; }
.section--soft { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-stretch: 80%; font-weight: 800; font-variation-settings: "opsz" 48; letter-spacing: -.005em; }
.section__head .section__title { margin: 0; }
.section__lede { color: var(--muted); max-width: 38em; margin: 0; }

/* Konsolių eilutės */
.rows { display: grid; gap: .75rem; }
.row {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) 250px 140px;
	gap: 1.5rem; align-items: center;
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: var(--r-md);
	padding: .9rem 1.4rem .9rem .9rem;
}
.row__media { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #e3e6f3; }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); --pad-mark: #e3e6f3; background: #e3e6f3; }
.row__ph svg { width: 44%; }
.row__ph--big { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.row__ph--big svg { width: 28%; }
.row__title { font-size: 1.35rem; font-stretch: 85%; margin: 0 0 .2rem; }
.row__title a { color: var(--ink); text-decoration: none; }
.row__title a:hover { color: var(--accent); }
.row__short { margin: 0 0 .25rem; }
.row__games { margin: 0; font-size: .9rem; color: var(--muted); }
.row__prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.row__prices div { display: grid; gap: .1rem; justify-items: start; }
.row__prices dt { font-size: .82rem; color: var(--muted); }
.row__prices dd { margin: 0; font-weight: 700; font-size: 1.15rem; font-stretch: 85%; }
.row__prices dd.tag { font-size: 1.15rem; }
.row__cta { display: grid; gap: .3rem; justify-items: center; }
.row__cta small { color: var(--muted); font-size: .82rem; }
.row__off { font-weight: 600; color: var(--muted); }

/* Žingsniai (tikra seka) */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid rgba(255, 255, 255, .22); padding-top: 1.2rem; }
.steps li::before { content: counter(s); display: block; font-size: 3.4rem; font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--tag); margin-bottom: .6rem; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: #c9cce0; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.split .section__title { font-size: 1.7rem; }
.split p { max-width: 36em; }

.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 650; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 11px; height: 11px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.2rem; max-width: 42em; color: var(--muted); }

.cta { background: var(--tag); }
.cta__in { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.cta__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-stretch: 75%; font-weight: 800; margin: 0; }
.cta p { margin: 0; grid-column: 1; }
.cta .btn { grid-column: 2; grid-row: 1 / span 2; background: var(--ink); color: #fff; }
.cta .btn:hover { background: var(--accent); color: #fff; }

/* ---------- Konsolės puslapis ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding: 1.4rem 0 1rem; }
.crumbs a { color: var(--muted); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 3rem; align-items: start; }
.product__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -.01em; }
.product__lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.product__media { margin: 1.5rem 0 2rem; }
.product__media img { border-radius: var(--r-md); width: 100%; }
.product__side { position: sticky; top: 1rem; }
.panel { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.panel__h { font-size: 1.35rem; font-stretch: 85%; }

.prices { width: 100%; border-collapse: collapse; margin: 0 0 2rem; background: var(--paper); border-radius: var(--r-md); overflow: hidden; }
.prices caption { text-align: left; font-weight: 700; font-size: 1.3rem; font-stretch: 85%; padding-bottom: .6rem; }
.prices th, .prices td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.prices th { font-size: .88rem; color: var(--muted); font-weight: 600; }
.prices tr:last-child td { border-bottom: 0; }
.prices td:nth-child(2) { font-weight: 700; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.kit h2 { font-size: 1.3rem; font-stretch: 85%; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .45em; height: .8em; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); }

.prose { max-width: 42em; }
.prose h2 { font-size: 1.6rem; font-stretch: 85%; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- Puslapiai ---------- */
.page { padding-bottom: 4rem; }
.page__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; font-stretch: 75%; line-height: 1.02; }
.page .section__lede { margin-bottom: 2rem; }
.contacts { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 2rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; }
.contacts dt { font-weight: 700; }
.contacts dd { margin: 0; }
.posts { display: grid; gap: 1.5rem; }
.post-item h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.post-date { color: var(--muted); font-size: .9rem; }

/* ---------- Poraštė ---------- */
.site-foot { background: var(--ink); color: #c9cce0; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.brand--foot { color: #fff; margin-bottom: .8rem; }
.brand--foot .brand__mark { --pad-mark: var(--ink); }
.site-foot__brand p { max-width: 26em; }
.site-foot__h { font-size: 1rem; color: #fff; margin-bottom: .8rem; }
.site-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; color: #9ea2bd; }

.call-fab { display: none; }

/* ---------- Adaptyvumas ---------- */
@media (max-width: 1080px) {
	.row { grid-template-columns: 110px minmax(0, 1fr) 250px; }
	.row__cta { grid-column: 2 / -1; justify-items: start; grid-auto-flow: column; align-items: center; gap: 1rem; }
	.product__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--accent); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .2); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
	.nav__phone { margin-top: 1rem; text-align: center; }
	.hero { padding: 2rem 0 3rem; }
	.hero__in { grid-template-columns: 1fr; gap: 2rem; }
	.hero__title { font-size: clamp(2.6rem, 11vw, 4rem); }
	.product__grid { grid-template-columns: 1fr; }
	.product__side { position: static; }
	.steps, .split, .kit { grid-template-columns: 1fr; gap: 2rem; }
	.site-foot__grid { grid-template-columns: 1fr 1fr; }
	.site-foot__brand { grid-column: 1 / -1; }
	.cta__in { grid-template-columns: 1fr; }
	.cta .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 1rem; }
	.call-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--tag); color: var(--ink); z-index: 30; box-shadow: 0 6px 18px rgba(23, 25, 46, .3); }
	.call-fab svg { width: 24px; height: 24px; }
}
@media (max-width: 620px) {
	body { font-size: 1rem; }
	.wrap { width: min(100% - 2rem, var(--wrap)); }
	.section { padding: 3rem 0; }
	.row { grid-template-columns: 88px minmax(0, 1fr); gap: .9rem 1rem; padding: .8rem; }
	.row__prices { grid-column: 1 / -1; background: var(--bg); border-radius: var(--r-sm); padding: .6rem .8rem; }
	.row__cta { grid-column: 1 / -1; grid-auto-flow: row; justify-items: stretch; text-align: center; }
	.row__cta .btn { width: 100%; }
	.field-row { gap: .6rem; }
	.calc, .panel { padding: 1.2rem; }
	.quote__tag { font-size: 1.7rem; }
	.contacts { grid-template-columns: 1fr; gap: .2rem; }
	.contacts dd { margin-bottom: .6rem; }
}
@media (max-width: 360px) {
	.field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
