/*
Theme Name: PS Photo
Theme URI: https://psphoto.sk
Author: Alex Adam
Description: Vlastná téma pre fotografické portfólio PS Photo – karusel najnovších fotiek, mozaikové galérie s lightboxom, cenník, fotoobrazy a kontaktný formulár. Plne responzívna, bez page builderov.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psphoto
Tags: photography, portfolio, custom-menu, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
 * 1. Tokens
 * ---------------------------------------------------------------------- */

:root {
	--ps-bg: #0f0f11;
	--ps-bg-2: #17171b;
	--ps-bg-3: #1e1e23;
	--ps-ink: #f4f2ef;
	--ps-muted: #a39f98;
	--ps-line: rgba(244, 242, 239, .13);
	--ps-accent: #c9a86a;
	--ps-accent-ink: #14130f;

	--ps-serif: "Didot", "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--ps-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--ps-maxw: 1320px;
	--ps-gap: 16px;
	--ps-radius: 3px;
	--ps-header-h: 74px;
	--ps-section-y: clamp(56px, 8vw, 112px);
	--ps-pad-x: clamp(18px, 5vw, 56px);
}

/* -------------------------------------------------------------------------
 * 2. Base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ps-header-h) + 20px);
}

body {
	margin: 0;
	background: var(--ps-bg);
	color: var(--ps-ink);
	font-family: var(--ps-sans);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body.ps-nav-open {
	overflow: hidden;
}

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

img {
	height: auto;
	display: block;
}

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

p a:not(.ps-btn) {
	color: var(--ps-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

:focus-visible {
	outline: 2px solid var(--ps-accent);
	outline-offset: 3px;
}

.ps-skip {
	position: absolute;
	left: -9999px;
}

.ps-skip:focus {
	left: 16px;
	top: 16px;
	z-index: 999;
	padding: 10px 16px;
	background: var(--ps-accent);
	color: var(--ps-accent-ink);
}

/* Headings */

.ps-h1,
.ps-h2,
.ps-h3 {
	font-family: var(--ps-serif);
	font-weight: 400;
	letter-spacing: .01em;
	margin: 0 0 .5em;
	line-height: 1.12;
}

.ps-h1 {
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
}

.ps-h2 {
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.ps-h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.ps-lead {
	color: var(--ps-muted);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	max-width: 62ch;
	margin: 0 auto;
}

.ps-sub {
	color: var(--ps-muted);
	margin: 0;
}

.ps-note {
	color: var(--ps-muted);
	text-align: center;
	margin: 34px auto 0;
	max-width: 60ch;
}

.ps-empty {
	color: var(--ps-muted);
	text-align: center;
	padding: 48px 0;
}

/* Layout */

.ps-section {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	padding: var(--ps-section-y) var(--ps-pad-x);
}

.ps-section--narrow {
	max-width: 820px;
}

.ps-section--flush {
	padding-top: 0;
}

.ps-section__head {
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.ps-page-head {
	text-align: center;
	padding-bottom: clamp(24px, 3vw, 40px);
	padding-top: calc(var(--ps-header-h) + clamp(28px, 5vw, 64px));
}

.ps-intro {
	text-align: center;
}

.ps-prose {
	padding-top: calc(var(--ps-header-h) + clamp(28px, 5vw, 64px));
}

.ps-prose h2 {
	font-family: var(--ps-serif);
	font-weight: 400;
}

/* Buttons */

.ps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1px solid var(--ps-accent);
	border-radius: var(--ps-radius);
	background: var(--ps-accent);
	color: var(--ps-accent-ink);
	font: inherit;
	font-size: .93rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ps-btn:hover {
	background: transparent;
	color: var(--ps-accent);
}

.ps-btn--lg {
	padding: 16px 34px;
}

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

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

.ps-btn--block {
	width: 100%;
	margin-top: auto;
}

/* -------------------------------------------------------------------------
 * 3. Header / navigation
 * ---------------------------------------------------------------------- */

.ps-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: transparent;
	transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
	border-bottom: 1px solid transparent;
}

.ps-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
	opacity: 1;
	transition: opacity .3s ease;
	pointer-events: none;
}

.ps-header.is-solid {
	background: rgba(15, 15, 17, .92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom-color: var(--ps-line);
}

.ps-header.is-solid::before {
	opacity: 0;
}

.ps-header__inner {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	padding: 0 var(--ps-pad-x);
	height: var(--ps-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ps-brand__text {
	font-family: var(--ps-serif);
	font-size: 1.5rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ps-brand img {
	max-height: 46px;
	width: auto;
}

.custom-logo-link {
	display: block;
}

.ps-menu,
.ps-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ps-menu {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.2vw, 34px);
}

.ps-menu > li {
	position: relative;
}

.ps-menu > li > a {
	display: block;
	padding: 10px 0;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ps-ink);
	position: relative;
}

.ps-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 4px;
	height: 1px;
	background: var(--ps-accent);
	transition: right .25s ease;
}

.ps-menu > li:hover > a::after,
.ps-menu > li.current-menu-item > a::after,
.ps-menu > li.current-menu-ancestor > a::after,
.ps-menu > li.current_page_item > a::after {
	right: 0;
}

.ps-menu .menu-item-has-children > a::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .7;
}

.ps-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 218px;
	padding: 8px 0;
	background: rgba(23, 23, 27, .98);
	backdrop-filter: blur(10px);
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.ps-menu > li:hover .sub-menu,
.ps-menu > li:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ps-menu .sub-menu a {
	display: block;
	padding: 9px 20px;
	font-size: .92rem;
	color: var(--ps-muted);
	transition: color .15s ease, background .15s ease;
}

.ps-menu .sub-menu a:hover {
	color: var(--ps-ink);
	background: rgba(255, 255, 255, .05);
}

/* Burger + mobile panel */

.ps-burger {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ps-burger span {
	display: block;
	width: 24px;
	height: 1.5px;
	margin: 5px auto;
	background: var(--ps-ink);
	transition: transform .25s ease, opacity .2s ease;
}

.ps-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.ps-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ps-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

.ps-mobile {
	position: fixed;
	inset: var(--ps-header-h) 0 0;
	z-index: 99;
	padding: 24px var(--ps-pad-x) 60px;
	background: rgba(15, 15, 17, .985);
	backdrop-filter: blur(6px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ps-mobile[hidden] {
	display: none;
}

.ps-mobile__menu,
.ps-mobile__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ps-mobile__menu > li {
	border-bottom: 1px solid var(--ps-line);
}

.ps-mobile__menu a {
	display: block;
	padding: 16px 2px;
	font-family: var(--ps-serif);
	font-size: 1.35rem;
}

.ps-mobile__menu .sub-menu {
	padding: 0 0 12px 14px;
}

.ps-mobile__menu .sub-menu a {
	font-family: var(--ps-sans);
	font-size: 1rem;
	padding: 9px 2px;
	color: var(--ps-muted);
}

.ps-mobile__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 28px;
	color: var(--ps-accent);
	font-size: 1.02rem;
}

/* -------------------------------------------------------------------------
 * 4. Hero carousel
 * ---------------------------------------------------------------------- */

.ps-hero {
	position: relative;
	height: min(92vh, 940px);
	min-height: 460px;
	background: var(--ps-bg-2);
	overflow: hidden;
}

.ps-hero__slider,
.ps-hero__track {
	height: 100%;
}

.ps-hero__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ps-hero__track::-webkit-scrollbar {
	display: none;
}

.ps-hero__slide {
	flex: 0 0 100%;
	height: 100%;
	margin: 0;
	scroll-snap-align: center;
	position: relative;
}

.ps-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ps-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(8, 8, 10, .82) 0%, rgba(8, 8, 10, .18) 42%, rgba(8, 8, 10, .42) 100%);
	pointer-events: none;
}

.ps-hero__overlay {
	position: absolute;
	inset: auto 0 clamp(56px, 10vh, 120px);
	z-index: 3;
	padding: 0 var(--ps-pad-x);
	text-align: center;
	pointer-events: none;
}

.ps-hero__overlay .ps-btn {
	pointer-events: auto;
}

.ps-hero__eyebrow {
	margin: 0 0 14px;
	font-size: .8rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: rgba(244, 242, 239, .82);
}

.ps-hero__title {
	font-family: var(--ps-serif);
	font-weight: 400;
	font-size: clamp(2.3rem, 7vw, 4.6rem);
	line-height: 1.06;
	margin: 0 0 28px;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}

.ps-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 52px;
	height: 52px;
	transform: translateY(-50%);
	border: 1px solid rgba(244, 242, 239, .35);
	border-radius: 50%;
	background: rgba(10, 10, 12, .35);
	color: var(--ps-ink);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background .2s ease, border-color .2s ease;
}

.ps-hero__arrow:hover {
	background: rgba(10, 10, 12, .7);
	border-color: var(--ps-accent);
	color: var(--ps-accent);
}

.ps-hero__arrow--prev {
	left: clamp(10px, 2.5vw, 28px);
}

.ps-hero__arrow--next {
	right: clamp(10px, 2.5vw, 28px);
}

.ps-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	z-index: 4;
	display: flex;
	justify-content: center;
	gap: 9px;
}

.ps-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(244, 242, 239, .38);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.ps-hero__dot.is-active {
	background: var(--ps-accent);
	transform: scale(1.35);
}

/* -------------------------------------------------------------------------
 * 5. Category tiles (rozcestník)
 * ---------------------------------------------------------------------- */

.ps-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: var(--ps-gap);
}

.ps-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--ps-radius);
	background: var(--ps-bg-2);
}

.ps-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
	filter: saturate(.92) brightness(.86);
}

.ps-tile:hover img,
.ps-tile:focus-visible img {
	transform: scale(1.06);
	filter: saturate(1) brightness(1);
}

.ps-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 8, 10, .8) 0%, rgba(8, 8, 10, .05) 62%);
}

.ps-tile__label {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ps-tile__name {
	font-family: var(--ps-serif);
	font-size: 1.5rem;
}

.ps-tile__count {
	font-size: .76rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ps-accent);
}

/* -------------------------------------------------------------------------
 * 6. About section
 * ---------------------------------------------------------------------- */

.ps-about {
	background: var(--ps-bg-2);
	max-width: none;
}

.ps-about__grid {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}

.ps-about__media img {
	width: 100%;
	border-radius: var(--ps-radius);
}

.ps-about__text p {
	color: var(--ps-muted);
}

/* -------------------------------------------------------------------------
 * 7. Gallery: filter + mosaic + lightbox
 * ---------------------------------------------------------------------- */

.ps-filter {
	position: sticky;
	top: var(--ps-header-h);
	z-index: 20;
	display: flex;
	gap: 8px;
	margin-bottom: 22px;
	padding: 12px 0;
	background: rgba(15, 15, 17, .94);
	backdrop-filter: blur(8px);
	overflow-x: auto;
	scrollbar-width: none;
	justify-content: center;
	flex-wrap: wrap;
}

.ps-filter::-webkit-scrollbar {
	display: none;
}

.ps-filter__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	padding: 9px 17px;
	border: 1px solid var(--ps-line);
	border-radius: 999px;
	background: transparent;
	color: var(--ps-muted);
	font: inherit;
	font-size: .84rem;
	letter-spacing: .06em;
	cursor: pointer;
	white-space: nowrap;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.ps-filter__item:hover {
	color: var(--ps-ink);
	border-color: var(--ps-accent);
}

.ps-filter__item.is-active {
	background: var(--ps-accent);
	border-color: var(--ps-accent);
	color: var(--ps-accent-ink);
	font-weight: 600;
}

.ps-filter__num {
	font-size: .72rem;
	opacity: .7;
}

.ps-mosaic {
	columns: 3;
	column-gap: var(--ps-gap);
}

.ps-mosaic__item {
	display: block;
	position: relative;
	margin: 0 0 var(--ps-gap);
	break-inside: avoid;
	border-radius: var(--ps-radius);
	overflow: hidden;
	background: var(--ps-bg-2);
	cursor: zoom-in;
}

.ps-mosaic__item.is-hidden {
	display: none;
}

.ps-mosaic__item img {
	width: 100%;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}

.ps-mosaic__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 10, .28);
	opacity: 0;
	transition: opacity .3s ease;
}

.ps-mosaic__item:hover img {
	transform: scale(1.04);
}

.ps-mosaic__item:hover::after {
	opacity: 1;
}

.ps-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 8, 10, .96);
	animation: ps-fade .2s ease;
}

.ps-lightbox[hidden] {
	display: none;
}

@keyframes ps-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.ps-lightbox__figure {
	margin: 0;
	max-width: 92vw;
	max-height: 90vh;
	text-align: center;
}

.ps-lightbox__figure img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
	border-radius: 2px;
}

.ps-lightbox__figure figcaption {
	margin-top: 14px;
	color: var(--ps-muted);
	font-size: .9rem;
}

.ps-lightbox__close,
.ps-lightbox__nav {
	position: absolute;
	border: 1px solid rgba(244, 242, 239, .25);
	border-radius: 50%;
	background: rgba(255, 255, 255, .05);
	color: var(--ps-ink);
	cursor: pointer;
	line-height: 1;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.ps-lightbox__close:hover,
.ps-lightbox__nav:hover {
	border-color: var(--ps-accent);
	color: var(--ps-accent);
	background: rgba(255, 255, 255, .1);
}

.ps-lightbox__close {
	top: 18px;
	right: 18px;
	width: 46px;
	height: 46px;
	font-size: 1.7rem;
}

.ps-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 1.9rem;
}

.ps-lightbox__nav--prev {
	left: 16px;
}

.ps-lightbox__nav--next {
	right: 16px;
}

.ps-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--ps-muted);
	font-size: .8rem;
	letter-spacing: .18em;
}

/* -------------------------------------------------------------------------
 * 8. Fotoobrazy – framed previews
 * ---------------------------------------------------------------------- */

.ps-frames {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(20px, 3vw, 40px);
}

.ps-frame {
	margin: 0;
	display: flex;
	justify-content: center;
	padding: 10px;
	background: linear-gradient(160deg, #1c1c20, #121215);
	border-radius: var(--ps-radius);
}

.ps-frame__mat {
	width: 100%;
	padding: clamp(14px, 2.4vw, 26px);
	background: #f7f5f1;
	border: clamp(9px, 1.4vw, 14px) solid #131315;
	box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.ps-frame__mat img {
	width: 100%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

/* -------------------------------------------------------------------------
 * 9. Pricing
 * ---------------------------------------------------------------------- */

.ps-prices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
	gap: var(--ps-gap);
	align-items: stretch;
}

.ps-price {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	background: var(--ps-bg-2);
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
}

.ps-price--featured {
	border-color: var(--ps-accent);
	background: linear-gradient(180deg, rgba(201, 168, 106, .09), var(--ps-bg-2) 55%);
}

.ps-price__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 14px;
	background: var(--ps-accent);
	color: var(--ps-accent-ink);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	border-radius: 999px;
	white-space: nowrap;
}

.ps-price__title {
	font-family: var(--ps-serif);
	font-size: 1.6rem;
	font-weight: 400;
	margin: 0;
}

.ps-price__sub {
	margin: 2px 0 0;
	color: var(--ps-muted);
	font-size: .82rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ps-price__value {
	margin: 16px 0 20px;
	font-family: var(--ps-serif);
	font-size: clamp(2.1rem, 4vw, 2.7rem);
	color: var(--ps-accent);
	line-height: 1;
}

.ps-price__list {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	color: var(--ps-muted);
}

.ps-price__list li {
	position: relative;
	padding: 9px 0 9px 24px;
	border-bottom: 1px solid var(--ps-line);
	font-size: .96rem;
}

.ps-price__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 17px;
	width: 9px;
	height: 5px;
	border-left: 1.5px solid var(--ps-accent);
	border-bottom: 1.5px solid var(--ps-accent);
	transform: rotate(-45deg);
}

.ps-custom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(20px, 4vw, 48px);
	margin-top: clamp(32px, 5vw, 60px);
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-bg-2);
}

.ps-custom h2 {
	margin-top: 0;
}

.ps-custom p {
	color: var(--ps-muted);
	margin-bottom: 0;
	max-width: 68ch;
}

/* -------------------------------------------------------------------------
 * 10. Contact + form
 * ---------------------------------------------------------------------- */

.ps-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(28px, 5vw, 64px);
}

.ps-form {
	display: grid;
	gap: 4px;
}

.ps-field {
	display: grid;
	gap: 7px;
	margin: 0 0 18px;
}

.ps-field label {
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ps-muted);
}

.ps-field input,
.ps-field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-bg-2);
	color: var(--ps-ink);
	font: inherit;
	font-size: 16px; /* keeps iOS from zooming on focus */
	transition: border-color .2s ease, background .2s ease;
}

.ps-field input:focus,
.ps-field textarea:focus {
	border-color: var(--ps-accent);
	background: var(--ps-bg-3);
	outline: none;
}

.ps-field textarea {
	resize: vertical;
	min-height: 150px;
}

.ps-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ps-notice {
	margin: 0 0 22px;
	padding: 14px 18px;
	border-left: 3px solid var(--ps-accent);
	background: var(--ps-bg-2);
	font-size: .96rem;
}

.ps-notice--err {
	border-left-color: #d96a5a;
}

.ps-contact__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.ps-contact__list li {
	display: grid;
	gap: 3px;
	padding: 13px 0;
	border-bottom: 1px solid var(--ps-line);
}

.ps-contact__list span {
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ps-muted);
}

.ps-social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ps-social a {
	padding: 8px 16px;
	border: 1px solid var(--ps-line);
	border-radius: 999px;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ps-ink);
	transition: border-color .2s ease, color .2s ease;
}

.ps-social a:hover {
	border-color: var(--ps-accent);
	color: var(--ps-accent);
}

/* -------------------------------------------------------------------------
 * 11. Footer + map + back-to-top
 * ---------------------------------------------------------------------- */

.ps-map {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	overflow: hidden;
	background: var(--ps-bg-3);
}

.ps-map--tall {
	aspect-ratio: 4 / 3;
	margin-top: 24px;
}

.ps-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(.6) contrast(1.05) brightness(.92);
}

.ps-footer {
	border-top: 1px solid var(--ps-line);
	background: var(--ps-bg-2);
}

.ps-footer__grid {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	padding: clamp(44px, 6vw, 76px) var(--ps-pad-x);
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
	gap: clamp(28px, 4vw, 56px);
}

.ps-footer__title {
	font-family: var(--ps-serif);
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: .06em;
	margin: 0 0 14px;
}

.ps-footer p {
	margin: 0 0 12px;
	color: var(--ps-muted);
}

.ps-footer a {
	color: var(--ps-muted);
	transition: color .2s ease;
}

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

.ps-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ps-footer__list li {
	padding: 5px 0;
}

.ps-footer__bottom {
	border-top: 1px solid var(--ps-line);
	padding: 20px var(--ps-pad-x);
	text-align: center;
}

.ps-footer__bottom p {
	margin: 0;
	font-size: .82rem;
}

.ps-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	width: 46px;
	height: 46px;
	border: 1px solid var(--ps-line);
	border-radius: 50%;
	background: rgba(23, 23, 27, .92);
	color: var(--ps-ink);
	font-size: 1.1rem;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}

.ps-top:hover {
	border-color: var(--ps-accent);
	color: var(--ps-accent);
}

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

/* Blog fallback bits */

.ps-teaser {
	padding: 24px 0;
	border-bottom: 1px solid var(--ps-line);
}

.ps-meta {
	color: var(--ps-muted);
	font-size: .84rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ps-404 {
	text-align: center;
}

.ps-404 .ps-btn {
	margin: 6px 4px;
}

/* -------------------------------------------------------------------------
 * 12. Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.ps-mosaic {
		columns: 2;
	}

	.ps-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.ps-footer__col--map {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.ps-nav {
		display: none;
	}

	.ps-burger {
		display: block;
	}

	.ps-about__grid,
	.ps-contact__grid,
	.ps-custom {
		grid-template-columns: 1fr;
	}

	.ps-custom {
		text-align: center;
		justify-items: center;
	}

	.ps-hero {
		height: min(78vh, 720px);
	}

	.ps-hero__arrow {
		width: 42px;
		height: 42px;
		font-size: 1.4rem;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	.ps-mosaic {
		columns: 2;
		column-gap: 10px;
	}

	.ps-mosaic__item {
		margin-bottom: 10px;
	}

	.ps-tiles {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ps-tile {
		aspect-ratio: 3 / 2;
	}

	.ps-filter {
		justify-content: flex-start;
		flex-wrap: nowrap;
		padding-left: 2px;
		padding-right: 2px;
	}

	.ps-hero__arrow {
		display: none;
	}

	.ps-lightbox__nav {
		width: 42px;
		height: 42px;
		font-size: 1.5rem;
	}

	.ps-lightbox__nav--prev {
		left: 6px;
	}

	.ps-lightbox__nav--next {
		right: 6px;
	}

	.ps-footer__grid {
		grid-template-columns: 1fr;
	}

	.ps-frames {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 380px) {
	.ps-mosaic {
		columns: 1;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

@media print {
	.ps-header,
	.ps-mobile,
	.ps-top,
	.ps-hero__arrow,
	.ps-hero__dots,
	.ps-map {
		display: none !important;
	}
}

/* -------------------------------------------------------------------------
 * 12. Hero headline, reviews, FAQ, steps, sticky CTA, cookie bar
 *     (added with the real client content – brief PspaniPhoto)
 * ---------------------------------------------------------------------- */

/* The SEO H1 is a long sentence, so it needs a calmer size than a slogan. */
.ps-hero__title {
	font-size: clamp(1.8rem, 4vw, 3.1rem);
	margin-bottom: 16px;
	max-width: 26ch;
	margin-inline: auto;
	text-wrap: balance;
}

.ps-hero__sub {
	margin: 0 auto 28px;
	max-width: 58ch;
	color: rgba(244, 242, 239, .88);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

/* Reviews ---------------------------------------------------------------- */

.ps-reviews {
	background: var(--ps-bg-2);
	max-width: none;
}

.ps-reviews__grid {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
}

.ps-review {
	margin: 0;
	padding: clamp(22px, 3vw, 32px);
	background: var(--ps-bg-3);
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ps-review__stars {
	margin: 0;
	color: var(--ps-accent);
	letter-spacing: .18em;
	font-size: 1rem;
}

.ps-review__text {
	margin: 0;
	font-family: var(--ps-serif);
	font-size: 1.06rem;
	line-height: 1.6;
}

.ps-review__author {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ps-review__name {
	font-weight: 600;
	letter-spacing: .04em;
}

.ps-review__role {
	color: var(--ps-muted);
	font-size: .88rem;
}

/* FAQ -------------------------------------------------------------------- */

.ps-faq__list {
	border-top: 1px solid var(--ps-line);
}

.ps-faq__item {
	border-bottom: 1px solid var(--ps-line);
}

.ps-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 2px;
	cursor: pointer;
	list-style: none;
	font-family: var(--ps-serif);
	font-size: 1.14rem;
	transition: color .2s ease;
}

.ps-faq__q::-webkit-details-marker {
	display: none;
}

.ps-faq__q::after {
	content: "+";
	flex: none;
	color: var(--ps-accent);
	font-family: var(--ps-sans);
	font-size: 1.4rem;
	line-height: 1;
	transition: transform .2s ease;
}

.ps-faq__item[open] .ps-faq__q::after {
	transform: rotate(45deg);
}

.ps-faq__q:hover {
	color: var(--ps-accent);
}

.ps-faq__a {
	padding: 0 2px 22px;
	color: var(--ps-muted);
}

.ps-faq__a p {
	margin: 0 0 12px;
}

.ps-faq__a p:last-child {
	margin-bottom: 0;
}

/* Fotoobrazy – ordering steps ------------------------------------------- */

.ps-steps__list {
	list-style: none;
	counter-reset: ps-step;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	gap: 4px;
}

.ps-steps__item {
	counter-increment: ps-step;
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 4px 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--ps-line);
}

.ps-steps__item::before {
	content: counter( ps-step, decimal-leading-zero );
	grid-row: span 2;
	color: var(--ps-accent);
	font-family: var(--ps-serif);
	font-size: 1.5rem;
	line-height: 1.2;
}

.ps-steps__title {
	margin: 0;
	font-family: var(--ps-serif);
	font-weight: 400;
	font-size: 1.16rem;
}

.ps-steps__item p {
	margin: 0;
	color: var(--ps-muted);
}

/* Contact form – two-column rows and the consent checkbox ---------------- */

.ps-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.ps-field select {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-bg-2);
	color: var(--ps-ink);
	font: inherit;
	font-size: 16px;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--ps-accent) 50%), linear-gradient(135deg, var(--ps-accent) 50%, transparent 50%);
	background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	transition: border-color .2s ease;
}

.ps-field select:focus {
	outline: none;
	border-color: var(--ps-accent);
}

.ps-field--check label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: start;
	font-size: .93rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ps-muted);
}

.ps-field--check input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--ps-accent);
}

.ps-note--boxed {
	max-width: 78ch;
	padding: 16px 20px;
	border: 1px solid var(--ps-line);
	border-left: 2px solid var(--ps-accent);
	border-radius: var(--ps-radius);
	background: var(--ps-bg-2);
	text-align: left;
	color: var(--ps-ink);
}

.ps-footer__seo {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	padding: 0 var(--ps-pad-x) 28px;
	color: var(--ps-muted);
	font-size: .86rem;
}

/* Sticky mobile CTA ------------------------------------------------------ */

.ps-sticky {
	display: none;
}

/* Cookie bar ------------------------------------------------------------- */

.ps-cookies {
	position: fixed;
	inset: auto 0 0;
	z-index: 90;
	padding: 16px var(--ps-pad-x);
	background: rgba(15, 15, 17, .96);
	border-top: 1px solid var(--ps-line);
	backdrop-filter: blur(8px);
}

.ps-cookies[hidden] {
	display: none;
}

.ps-cookies__inner {
	max-width: var(--ps-maxw);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.ps-cookies__text {
	margin: 0;
	flex: 1 1 380px;
	color: var(--ps-muted);
	font-size: .9rem;
}

.ps-cookies__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ps-btn--sm {
	padding: 9px 16px;
	font-size: .78rem;
}

@media (max-width: 700px) {
	.ps-form__row {
		grid-template-columns: 1fr;
	}

	.ps-steps__item {
		grid-template-columns: 36px 1fr;
	}

	/* Sticky “Rezervovať termín” bar, per the brief. */
	.ps-sticky {
		position: fixed;
		inset: auto 0 0;
		z-index: 80;
		display: flex;
		gap: 1px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: rgba(15, 15, 17, .94);
		border-top: 1px solid var(--ps-line);
		backdrop-filter: blur(8px);
	}

	.ps-sticky__call,
	.ps-sticky__cta {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 46px;
		padding: 10px 12px;
		border-radius: var(--ps-radius);
		font-size: .84rem;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
		text-decoration: none;
	}

	.ps-sticky__call {
		flex: 0 0 38%;
		border: 1px solid var(--ps-line);
		color: var(--ps-ink);
	}

	.ps-sticky__cta {
		background: var(--ps-accent);
		color: var(--ps-accent-ink);
	}

	/* Room for the bar above the footer and the back-to-top button. */
	body {
		padding-bottom: 66px;
	}

	.ps-top {
		bottom: 78px;
	}

	.ps-cookies {
		bottom: 66px;
	}
}

.ps-sticky__icon {
	flex: none;
}
