/*
Theme Name: Pravovyboru Child
Theme URI: https://pravovyboru.local
Description: Child theme for the redesigned Pravovyboru website.
Author: Codex
Template: twentytwentyfive
Version: 0.4.0
Text Domain: pravovyboru-child
*/

:root {
	--pv-blue: #063462;
	--pv-blue-mid: #0d4a8a;
	--pv-blue-soft: #d8e4f1;
	--pv-cream: #f7f3d6;
	--pv-cream-light: #fffceb;
	--pv-warm: #d1b920;
	--pv-ink: #1d2733;
	--pv-white: #ffffff;
	--pv-border: rgba(6, 52, 98, 0.12);
	--pv-shadow: 0 10px 30px rgba(6, 52, 98, 0.10);
	--pv-shadow-lg: 0 18px 50px rgba(6, 52, 98, 0.16);
	--pv-radius-sm: 8px;
	--pv-radius: 16px;
	--pv-radius-lg: 24px;
	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2rem;
	--sp-6: 3rem;
	--sp-8: 4rem;
	--sp-12: 6rem;
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(circle at top left, rgba(216, 228, 241, 0.55), transparent 32%),
		linear-gradient(180deg, #fbfcfe 0%, #ffffff 34%, #fffceb 100%);
	color: var(--pv-ink);
}

.wp-site-blocks {
	min-height: 100vh;
}

a {
	text-underline-offset: 0.14em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--pv-warm);
	outline-offset: 3px;
}

.pv-skip-link {
	position: absolute;
	left: 1rem;
	top: 0.5rem;
	z-index: 999;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: var(--pv-blue);
	color: var(--pv-white);
	transform: translateY(-200%);
	transition: transform 0.2s ease;
	text-decoration: none;
}

.pv-skip-link:focus {
	transform: translateY(0);
}

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--pv-border);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

header .wp-block-site-logo {
	padding: 0.5rem 0 !important;
}

header .wp-block-site-logo img {
	display: block;
	height: 64px !important;
	width: auto !important;
	max-width: 200px !important;
}

header .wp-block-navigation {
	gap: 0.35rem;
}

header .wp-block-navigation a {
	padding: 0.45rem 0.7rem !important;
	border-radius: 999px;
	font-size: 0.94rem !important;
	font-weight: 600 !important;
	color: var(--pv-ink) !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

header .wp-block-navigation a:hover,
header .wp-block-navigation a[aria-current="page"] {
	background: var(--pv-blue-soft) !important;
	color: var(--pv-blue) !important;
}

.pv-lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: 0.4rem;
}

.pv-lang-btn,
.pv-contrast-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--pv-border);
	border-radius: 999px;
	background: var(--pv-white);
	color: var(--pv-blue);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(6, 52, 98, 0.06);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pv-lang-btn:hover,
.pv-contrast-toggle:hover {
	transform: translateY(-1px);
	border-color: rgba(6, 52, 98, 0.22);
}

.pv-lang-btn.active {
	background: var(--pv-blue);
	color: var(--pv-white);
}

.pv-contrast-toggle {
	font-size: 1.15rem;
}

.pv-hero {
	padding: var(--sp-3) max(5vw, 1rem);
	background: linear-gradient(135deg, var(--pv-blue) 0%, var(--pv-blue-mid) 56%, #1c6db8 100%);
	color: var(--pv-white);
	border-radius: 0 0 var(--pv-radius-lg) var(--pv-radius-lg);
	box-shadow: var(--pv-shadow-lg);
}

.pv-hero__title {
	font-size: 2.75rem !important;
	line-height: 1.15 !important;
	color: var(--pv-white) !important;
	max-width: 760px;
	margin: 0 0 var(--sp-3) 0 !important;
}

.pv-hero__lead {
	font-size: 1.12rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9) !important;
	max-width: 48rem;
	margin: 0 0 var(--sp-4) 0 !important;
}

.pv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	margin: 0 0 var(--sp-2) 0 !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: var(--pv-white) !important;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pv-hero__img,
.pv-about__img,
.pv-card__img,
.pv-news-card__img {
	margin: 0 !important;
}

.pv-hero__img img {
	display: block;
	width: 100%;
	height: 440px;
	object-fit: cover;
	border-radius: var(--pv-radius-lg);
	box-shadow: var(--pv-shadow-lg);
	max-height: 260px;
	object-fit: cover;
}

.pv-section {
	padding: 4rem max(5vw, 1rem);
}

.pv-about {
	padding: 4rem max(5vw, 1rem);
	margin: 2rem max(5vw, 1rem) 0;
	background: #fffceb !important;
	border: 1px solid rgba(6, 52, 98, 0.06);
	border-radius: 24px;
	box-shadow: 0 12px 35px rgba(6, 52, 98, 0.06);
}

.pv-section__title {
	position: relative;
	padding-left: 1rem;
	margin: 0 0 var(--sp-2) 0 !important;
	font-size: 1.95rem !important;
	color: var(--pv-blue) !important;
}

.pv-section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	bottom: 0.18em;
	width: 4px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--pv-warm), var(--pv-blue));
}

.pv-section__lead {
	max-width: 44rem;
	margin: 0 0 var(--sp-4) 0 !important;
	color: #4f5f72;
	font-size: 1rem;
	line-height: 1.7;
}

.pv-card,
.pv-news-card {
	height: 100%;
	overflow: hidden;
	background: var(--pv-white);
	border: 1px solid var(--pv-border);
	border-radius: var(--pv-radius);
	box-shadow: var(--pv-shadow);
}

.pv-card {
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pv-card:hover,
.pv-news-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pv-shadow-lg);
}

.pv-card__img img,
.pv-news-card__img img,
.pv-about__img img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.pv-card__img img {
	height: 210px;
}

.pv-card__title,
.pv-news-card__title {
	margin: 0 !important;
	color: var(--pv-blue) !important;
	line-height: 1.3 !important;
}

.pv-card__title {
	padding: var(--sp-3) var(--sp-3) 0.35rem !important;
	font-size: 1.08rem !important;
}

.pv-card__text {
	padding: 0 var(--sp-3) var(--sp-3) !important;
	margin: 0 !important;
	color: #4f5f72;
	font-size: 0.96rem;
	line-height: 1.6;
}

.pv-about__img img {
	height: 390px;
	border-radius: var(--pv-radius);
	box-shadow: var(--pv-shadow-lg);
}

.pv-checklist {
	list-style: none !important;
	padding: 0 !important;
	margin: var(--sp-3) 0 var(--sp-4) !important;
}

.pv-checklist li {
	position: relative;
	padding: 0.5rem 0 0.5rem 1.8rem;
	border-bottom: 1px solid var(--pv-border);
}

.pv-checklist li:last-child {
	border-bottom: none;
}

.pv-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.45rem;
	color: var(--pv-warm);
	font-weight: 800;
}

.pv-stats-grid,
.pv-partners {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--sp-2);
}

.pv-stat {
	padding: var(--sp-3);
	background: #fffceb !important;
	border: 1px solid rgba(6, 52, 98, 0.08);
	border-radius: var(--pv-radius);
	box-shadow: 0 8px 26px rgba(6, 52, 98, 0.06);
}

.pv-stat__number {
	display: block;
	color: var(--pv-blue);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.35rem;
}

.pv-stat__label {
	display: block;
	color: #4f5f72;
	font-size: 0.96rem;
	line-height: 1.45;
}

.pv-partners {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pv-partner {
	display: flex;
	align-items: center;
	min-height: 4rem;
	padding: 1rem 1.1rem;
	background: var(--pv-white);
	border: 1px solid rgba(6, 52, 98, 0.08);
	border-radius: var(--pv-radius);
	box-shadow: 0 8px 24px rgba(6, 52, 98, 0.05);
	font-weight: 600;
	color: var(--pv-blue);
}

.pv-news-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--sp-3);
}

.pv-news-card {
	display: flex !important;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pv-news-card__img img {
	height: 180px;
}

.pv-news-card__body {
	flex: 1;
	padding: var(--sp-3) !important;
}

.pv-news-card__title {
	font-size: 1rem !important;
	margin: 0.3rem 0 0.55rem 0 !important;
}

.pv-meta {
	color: #7a8a9a;
	font-size: 0.85rem;
}

.wp-element-button,
.wp-block-button__link {
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 0.82rem 1.55rem !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
	text-decoration: none !important;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
.pv-lang-btn:focus-visible,
.pv-contrast-toggle:focus-visible {
	outline: 3px solid var(--pv-warm);
	outline-offset: 3px;
}

.wp-block-button__link {
	background: var(--pv-blue) !important;
	color: var(--pv-white) !important;
}

.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border: 2px solid var(--pv-blue) !important;
	color: var(--pv-blue) !important;
	box-shadow: none !important;
}

.pv-hero .wp-block-button__link {
	background: var(--pv-warm) !important;
	color: var(--pv-blue) !important;
}

.pv-hero .is-style-outline .wp-block-button__link {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.76) !important;
	color: var(--pv-white) !important;
}

.wp-block-separator.is-style-wide {
	border: 0;
	height: 1px;
	margin: 0;
	background: var(--pv-blue-soft);
}

footer.wp-block-template-part {
	background: var(--pv-blue) !important;
	color: var(--pv-white) !important;
}

footer .wp-block-navigation a,
footer a {
	color: var(--pv-white);
}

footer .wp-block-separator {
	opacity: 0.55;
}

footer .wp-block-site-title a {
	color: var(--pv-white) !important;
	text-decoration: none;
}

p,
li {
	line-height: 1.7;
}

.wp-block-post-excerpt__excerpt {
	color: #4f5f72;
	font-size: 0.95rem;
	line-height: 1.6;
}

html.is-contrast-mode body {
	background: #000 !important;
	color: #fff !important;
}

html.is-contrast-mode header.wp-block-template-part,
html.is-contrast-mode footer.wp-block-template-part,
html.is-contrast-mode .pv-hero,
html.is-contrast-mode .pv-about,
html.is-contrast-mode .pv-section,
html.is-contrast-mode .pv-card,
html.is-contrast-mode .pv-news-card,
html.is-contrast-mode .pv-stat,
html.is-contrast-mode .pv-partner {
	background: #000 !important;
	color: #fff !important;
	box-shadow: none !important;
	border-color: #fff !important;
}

html.is-contrast-mode .pv-section__title,
html.is-contrast-mode .pv-card__title,
html.is-contrast-mode .pv-news-card__title,
html.is-contrast-mode .wp-block-site-title a,
html.is-contrast-mode header .wp-block-navigation a,
html.is-contrast-mode footer .wp-block-navigation a,
html.is-contrast-mode footer a {
	color: #fff !important;
}

html.is-contrast-mode .pv-hero {
	background: #000 !important;
}

html.is-contrast-mode .pv-hero .wp-block-button__link,
html.is-contrast-mode .wp-element-button,
html.is-contrast-mode .wp-block-button__link {
	background: #ffd700 !important;
	color: #000 !important;
	border-color: #ffd700 !important;
}

html.is-contrast-mode .pv-lang-btn,
html.is-contrast-mode .pv-contrast-toggle {
	background: #000 !important;
	color: #fff !important;
	border-color: #fff !important;
}

html.is-contrast-mode .pv-eyebrow {
	background: transparent;
	border: 1px solid #fff;
}

html.is-contrast-mode .pv-checklist li,
html.is-contrast-mode .pv-section__lead,
html.is-contrast-mode .pv-card__text,
html.is-contrast-mode .pv-stat__label,
html.is-contrast-mode .pv-meta,
html.is-contrast-mode .wp-block-post-excerpt__excerpt {
	color: #fff !important;
}

html.is-contrast-mode .pv-checklist li::before {
	color: #ffd700;
}

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

	.pv-hero__title {
		font-size: 2.2rem !important;
		max-width: 100%;
	}
}

@media (max-width: 781px) {
	header .wp-block-columns {
		gap: 0.75rem;
	}

	header .wp-block-site-logo img {
		height: 56px !important;
	}

	.pv-lang-switcher {
		margin-left: 0;
	}

	.pv-hero,
	.pv-section,
	.pv-about {
		padding: var(--sp-6) 1rem;
	}

	.pv-hero__title {
		font-size: 1.9rem !important;
	}

	.pv-hero__lead {
		font-size: 1rem;
	}

	.pv-hero__img img,
	.pv-about__img img {
		height: 260px;
	}

	.pv-stats-grid,
	.pv-partners,
	.pv-news-grid {
		grid-template-columns: 1fr;
	}

	.pv-section__title {
		font-size: 2rem !important;
	}
}



/* Stats */
.wp-block-group.pv-stats {
	background: #f7f3d6 !important;
	padding: 3rem 5vw !important;
	border-radius: 24px !important;
	margin: 2rem auto !important;
}

/* Intro */
.wp-block-group.pv-intro {
	max-width: 760px;
	margin: 2rem auto;
	padding: 2rem 2rem 2rem 2.5rem;
	background: var(--pv-white);
	border-left: 4px solid var(--pv-warm);
	border-radius: var(--pv-radius);
	box-shadow: 0 2px 12px rgba(6,52,98,0.05);
}

/* Footer contacts list */
.pv-footer-contacts {
	list-style: none;
	padding: 0;
	margin: 0;
}
.pv-footer-contacts li {
	margin-bottom: 0.4rem;
}
.pv-footer-contacts a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Hero subtitle & meta */
.pv-hero__subtitle {
	font-size: 1.1rem;
	color: var(--pv-white);
	opacity: 0.85;
	margin-bottom: 0.5rem !important;
}
.pv-hero__meta {
	font-size: 0.9rem;
	color: var(--pv-white);
	opacity: 0.7;
}

/* === Hero Full Screen (no photo) === */
.pv-hero--full {
	min-height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: clamp(2rem, 8vh, 4rem) max(5vw, 2rem) !important;
}
.pv-hero--full .pv-hero__title {
	font-size: clamp(3rem, 8vw, 5rem) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	margin-bottom: 1.5rem !important;
	max-width: none;
}
.pv-hero--full .pv-hero__subtitle {
	font-size: clamp(1.25rem, 2.5vw, 1.6rem) !important;
	font-weight: 500 !important;
	opacity: 1 !important;
	color: var(--pv-white) !important;
	margin-bottom: 1rem !important;
	max-width: 700px;
}
.pv-hero--full .pv-hero__lead {
	font-size: clamp(1.3rem, 2.5vw, 1.7rem) !important;
	font-weight: 600 !important;
	color: var(--pv-white) !important;
	margin-bottom: 1rem !important;
	max-width: 700px;
}
.pv-hero--full .pv-hero__meta {
	font-size: 1.1rem !important;
	font-weight: 400;
	opacity: 0.9 !important;
	color: var(--pv-white) !important;
}

/* === Work section === */
.pv-section--work {
	padding: 4rem max(5vw, 1rem) !important;
}
.pv-work__text {
	font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
	font-weight: 400;
	line-height: 1.7;
	color: var(--pv-ink);
}
.pv-work__img {
	display: block;
}
.pv-work__img img {
	
	border-radius: var(--pv-radius);
	width: 100%;
	height: auto;
}

/* === Stronger section titles === */
.pv-section__title {
	font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
	font-weight: 800 !important;
}

/* === Bigger stat numbers === */
.pv-stat__number {
	font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
	font-weight: 800 !important;
}
.pv-stat__label {
	font-size: 1rem !important;
	font-weight: 500 !important;
}

/* Mobile hero fix */
@media (max-width: 768px) {
	.pv-hero--full {
		padding: 2rem 1.5rem !important;
	}
	.pv-hero--full .pv-hero__title {
		font-size: 2.5rem !important;
	}
	.pv-hero--full .pv-hero__meta {
		font-size: 1.125rem !important;
	}
	.pv-work__text {
		font-size: 1.125rem !important;
	}
	.pv-section--work {		padding-top: 1.5rem !important;	}
}

/* Inner pages typography */
.pv-single__main p,
.pv-single__main li {
	font-size: clamp(1.125rem, 1.4vw, 1.25rem);
	line-height: 1.7;
}
.pv-single__main h2 {
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 700;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}
.pv-single__main h3 {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

/* Shared gallery grid */
.pv-gallery-grid {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0 2.5rem;
}
.pv-gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pv-gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
	.pv-gallery-grid--3,
	.pv-gallery-grid--2 { grid-template-columns: 1fr; }
}
.pv-gallery-item {
	margin: 0;
}
.pv-gallery-item img {
	width: 100%;
	height: auto;
	border-radius: var(--pv-radius);
	display: block;
}
