/*
Theme Name: Creditron
Theme URI: https://creditron.com.ua/
Author: Creditron
Description: Україномовна тема для прозорого порівняння кредитних пропозицій.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: creditron
*/

:root {
	--color-ink: #202020;
	--color-muted: #202020;
	--color-green: #006b3c;
	--color-green-dark: #004f2d;
	--color-green-soft: #e9f5ef;
	--color-blue: #005ea8;
	--color-surface: #ffffff;
	--color-canvas: #f6f8f7;
	--color-border: #ccd8d2;
	--color-warning: #202020;
	--color-warning-bg: #fff7e6;
	--shadow-card: 0 18px 45px rgba(23, 35, 30, 0.09);
	--radius-small: 10px;
	--radius-medium: 18px;
	--radius-large: 28px;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-surface);
	color: var(--color-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

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

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-blue);
	text-underline-offset: 0.18em;
}

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

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

button,
summary,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid #8a4f00;
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

.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;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 10000;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto !important;
	background: var(--color-surface);
	color: var(--color-ink);
	font-weight: 700;
	white-space: normal;
	box-shadow: var(--shadow-card);
}

.site-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

.container {
	width: calc(100% - 32px);
	max-width: 1180px;
	margin-inline: auto;
}

.container--narrow {
	max-width: 880px;
}

.container--content {
	max-width: 860px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--color-border);
	backdrop-filter: blur(12px);
}

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

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 76px;
	min-width: 0;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--color-ink);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
}

.site-brand__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 11px 11px 11px 3px;
	background: var(--color-green);
	transform: rotate(-5deg);
}

.site-brand__mark > span {
	display: block;
	width: 14px;
	height: 9px;
	border-bottom: 3px solid #fff;
	border-left: 3px solid #fff;
	transform: translateY(-2px) rotate(-45deg);
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 26px;
	flex-wrap: wrap;
}

.site-nav a {
	padding: 8px 0;
	color: var(--color-ink);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.5;
	text-decoration: none;
}

.site-nav a:hover {
	color: #202020;
}

.hero {
	padding: 80px 0 88px;
	background: var(--color-green-soft);
	border-bottom: 1px solid var(--color-border);
}

.hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
	align-items: center;
	gap: clamp(48px, 7vw, 94px);
}

.hero__content,
.hero__note,
.section-heading > *,
.responsible-section__layout > *,
.about-section__layout > * {
	min-width: 0;
}

.eyebrow {
	margin: 0 0 14px;
	color: #202020;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
}

.hero h1 {
	max-width: 800px;
	margin: 0;
	font-size: clamp(38px, 5.4vw, 66px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.hero__lead {
	max-width: 720px;
	margin: 24px 0 32px;
	color: #202020;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.55;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius-small);
	font-size: 16px;
	font-weight: 750;
	line-height: 1.5;
	text-decoration: none;
}

.button--primary {
	background: var(--color-green);
	color: #fff;
}

.button--primary:hover {
	background: var(--color-green-dark);
	color: #fff;
}

.hero__note {
	display: flex;
	gap: 16px;
	padding: 26px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-medium);
	box-shadow: 0 14px 35px rgba(23, 35, 30, 0.08);
}

.hero__note-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	background: var(--color-green);
	color: #fff;
	font-weight: 800;
}

.hero__note h2 {
	margin: 1px 0 7px;
	font-size: 18px;
	line-height: 1.5;
}

.hero__note p {
	margin: 0;
	color: var(--color-muted);
	font-size: 15px;
	line-height: 1.6;
}

.offers-section,
.guide-section,
.faq-section,
.about-section {
	padding: clamp(64px, 8vw, 104px) 0;
}

.offers-section {
	background: var(--color-canvas);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 38px;
}

.section-heading--compact {
	margin-bottom: 30px;
}

.section-heading h2,
.responsible-section h2,
.about-section h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 46px);
	letter-spacing: -0.025em;
	line-height: 1.18;
}

.section-heading > p {
	max-width: 570px;
	margin: 0;
	color: var(--color-muted);
	font-size: 16px;
	line-height: 1.6;
}

.offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
	align-items: stretch;
	gap: 22px;
}

/*
 * У межах рекламної картки використано лише три кольори тексту:
 * #202020, #005ea8 для підкреслених посилань і білий для CTA/позначки.
 * Усі умови кредиту мають однакові 16px/24px, гарнітуру, вагу та колір.
 */
.offer-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
	background: #fff;
	color: #202020;
	border: 1px solid #ccd8d2;
	border-radius: 18px;
	box-shadow: var(--shadow-card);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 24px;
}

.offer-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 48px;
	margin-bottom: 20px;
}

.offer-card__mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	background: #006b3c;
	color: #fff;
	border-radius: 14px 14px 14px 5px;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.offer-card__title {
	margin: 0;
	color: #202020;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 28px;
	overflow-wrap: anywhere;
}

.offer-card__legal {
	margin: -8px 0 18px;
	color: #202020;
	font: inherit;
	overflow-wrap: anywhere;
}

.offer-card__conditions {
	padding: 16px;
	background: #f3f8f5;
	border: 1px solid #d6e3dc;
	border-radius: 12px;
	color: #202020;
	font: inherit;
}

.offer-card__conditions p,
.offer-card__notice {
	margin: 0;
	color: #202020;
	font: inherit;
}

.offer-card__conditions p + p {
	margin-top: 10px;
}

.offer-card__documents {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
	margin: 18px 0;
}

.offer-card__documents a {
	color: #005ea8;
	font: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

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

.offer-card__notice {
	margin-bottom: 20px;
}

.offer-card__action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 54px;
	margin-top: auto;
	padding: 12px 16px;
	background: #006b3c;
	color: #fff;
	border: 2px solid #006b3c;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
}

.offer-card__action:hover {
	background: #004f2d;
	color: #fff;
	border-color: #004f2d;
}

.offers-updated {
	margin: 24px 0 0;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.6;
}

.status-message {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 24px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
}

.status-message--warning {
	margin-bottom: 24px;
	background: var(--color-warning-bg);
	color: var(--color-warning);
	border-color: #e6c98f;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	padding: 26px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-medium);
}

.steps li > span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 22px;
	background: var(--color-green-soft);
	color: #202020;
	border-radius: 50%;
	font-weight: 800;
}

.steps h3 {
	margin: 0 0 9px;
	font-size: 20px;
	line-height: 1.4;
}

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

.responsible-section {
	padding: clamp(64px, 8vw, 94px) 0;
	background: #0c3828;
	color: #fff;
}

.responsible-section .eyebrow {
	color: #fff;
}

.responsible-section__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(42px, 8vw, 100px);
}

.responsible-section p {
	margin: 20px 0 0;
	color: #fff;
	font-size: 17px;
}

.check-list {
	display: grid;
	gap: 15px;
	align-content: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding: 17px 18px 17px 52px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-small);
}

.check-list li::before {
	position: absolute;
	top: 18px;
	left: 19px;
	content: "✓";
	color: #fff;
	font-weight: 800;
}

.faq-section {
	background: var(--color-canvas);
}

.faq-list {
	border-top: 1px solid var(--color-border);
}

.faq-list details {
	border-bottom: 1px solid var(--color-border);
}

.faq-list summary {
	position: relative;
	padding: 22px 54px 22px 0;
	cursor: pointer;
	font-size: 19px;
	font-weight: 750;
	line-height: 1.45;
	list-style: none;
}

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

.faq-list summary::after {
	position: absolute;
	top: 21px;
	right: 4px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	content: "+";
	background: var(--color-green-soft);
	color: #202020;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
}

.faq-list details[open] summary::after {
	content: "−";
}

.faq-list details p {
	max-width: 760px;
	margin: -4px 54px 24px 0;
	color: var(--color-muted);
}

.about-section__layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(40px, 8vw, 100px);
}

.about-section__copy {
	font-size: 17px;
}

.about-section__copy p {
	margin: 0;
}

.about-section__copy p + p {
	margin-top: 16px;
}

.site-footer {
	padding: 58px 0 22px;
	background: #10231b;
	color: #fff;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr 1fr;
	gap: 48px;
	padding-bottom: 42px;
}

.site-brand--footer {
	margin-bottom: 17px;
	color: #fff;
}

.site-footer__about p {
	max-width: 440px;
	margin: 0;
	color: #fff;
}

.site-footer h2 {
	margin: 0 0 13px;
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
}

.site-footer__nav,
.site-footer__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

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

.site-footer__contacts p,
.site-footer__contacts address {
	margin: 0;
	font-style: normal;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 14px;
}

.site-footer__bottom p {
	margin: 0;
}

.content-page,
.blog .site-main,
.archive .site-main,
.search .site-main,
.single .site-main,
.error404 .site-main {
	padding: 64px 0 90px;
}

.blog .site-main,
.archive .site-main,
.search .site-main,
.single .site-main,
.error404 .site-main {
	width: calc(100% - 32px);
	max-width: 860px;
	margin-inline: auto;
}

.entry-title,
.page-title {
	margin: 0 0 24px;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.2;
}

.entry-title a {
	color: var(--color-ink);
	text-decoration: none;
}

.entry-meta,
.entry-footer {
	color: var(--color-muted);
	font-size: 14px;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	line-height: 1.3;
}

.entry-content p,
.entry-content li {
	line-height: 1.7;
}

.post,
.search article {
	margin-bottom: 48px;
}

.post-thumbnail {
	margin: 24px 0;
}

.navigation.posts-navigation,
.navigation.post-navigation,
.comments-area {
	margin-top: 48px;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 24px;
}

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

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	padding: 11px 13px;
	color: var(--color-ink);
	background: #fff;
	border: 1px solid #8da198;
	border-radius: 7px;
}

input[type="submit"],
button[type="submit"] {
	padding: 11px 18px;
	background: var(--color-green);
	color: #fff;
	border: 0;
	border-radius: 7px;
	font-weight: 700;
	cursor: pointer;
}

.search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
	max-width: 620px;
}

.search-form label {
	flex: 1;
}

.widget {
	margin-bottom: 30px;
}

.privacy-page {
	background: var(--color-canvas);
}

.privacy-document {
	padding: clamp(24px, 5vw, 54px);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-large);
	box-shadow: var(--shadow-card);
}

.privacy-document__header {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--color-border);
}

.privacy-document__header .entry-title {
	margin-bottom: 12px;
}

.privacy-document__updated {
	margin: 0 0 22px;
	font-size: 14px;
}

.privacy-document__lead {
	max-width: 760px;
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
}

.privacy-admin-note,
.privacy-summary,
.privacy-toc {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-medium);
}

.privacy-admin-note {
	background: var(--color-warning-bg);
}

.privacy-admin-note ul {
	margin: 12px 0 0;
	padding-left: 22px;
}

.privacy-summary {
	background: var(--color-green-soft);
}

.privacy-summary h2,
.privacy-toc h2 {
	margin: 0 0 14px;
	font-size: 23px;
}

.privacy-summary > p:last-child,
.privacy-toc ol {
	margin-bottom: 0;
}

.privacy-operator {
	margin: 20px 0;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
}

.privacy-operator > div {
	display: grid;
	grid-template-columns: minmax(130px, 0.35fr) 1fr;
	gap: 16px;
	padding: 13px 16px;
}

.privacy-operator > div + div {
	border-top: 1px solid var(--color-border);
}

.privacy-operator dt {
	font-weight: 700;
}

.privacy-operator dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.privacy-toc {
	background: #fff;
}

.privacy-toc ol {
	padding-left: 24px;
	columns: 2;
	column-gap: 42px;
}

.privacy-toc li {
	break-inside: avoid;
	margin-bottom: 8px;
}

.privacy-toc a,
.privacy-sections a,
.privacy-document__edit a,
.privacy-admin-note a {
	color: #005ea8;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.privacy-sections {
	margin-top: 38px;
}

.privacy-sections section {
	scroll-margin-top: 110px;
}

.privacy-sections section + section {
	margin-top: 38px;
	padding-top: 38px;
	border-top: 1px solid var(--color-border);
}

.privacy-sections h2 {
	margin: 0 0 18px;
	font-size: clamp(25px, 3vw, 32px);
	line-height: 1.25;
}

.privacy-sections h3 {
	margin: 24px 0 10px;
	font-size: 19px;
	line-height: 1.4;
}

.privacy-sections p,
.privacy-sections li,
.privacy-summary p,
.privacy-operator,
.privacy-toc li,
.privacy-admin-note {
	line-height: 1.7;
}

.privacy-sections ul {
	padding-left: 24px;
}

.privacy-sections li + li {
	margin-top: 8px;
}

.privacy-configuration-required {
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-medium);
	background: var(--color-green-soft);
}

.privacy-configuration-required h2 {
	margin-top: 0;
}

.privacy-preline {
	white-space: pre-line;
}

.privacy-sections code {
	font: inherit;
	overflow-wrap: anywhere;
}

.privacy-table-wrap {
	margin: 24px 0;
	overflow-x: auto;
}

.privacy-table {
	width: 100%;
	min-width: 660px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.6;
}

.privacy-table th,
.privacy-table td {
	padding: 13px 14px;
	border: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.privacy-table th {
	background: var(--color-green-soft);
}

.privacy-document__editor-content--has-content,
.privacy-document__edit {
	margin-top: 38px;
	padding-top: 28px;
	border-top: 1px solid var(--color-border);
}

.privacy-document__edit {
	font-size: 14px;
}

@media (max-width: 900px) {
	.hero__layout,
	.responsible-section__layout,
	.about-section__layout {
		grid-template-columns: 1fr;
	}

	.hero__note {
		max-width: 650px;
	}

	.steps {
		grid-template-columns: 1fr;
	}

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

	.site-footer__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.privacy-document {
		padding: 22px 18px;
		border-radius: var(--radius-medium);
	}

	.privacy-toc ol {
		columns: 1;
	}

	.privacy-operator > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}
}

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

@media (max-width: 720px) {
	.site-header {
		position: static;
	}

	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
		padding: 15px 0 12px;
	}

	.site-nav {
		width: 100%;
		justify-content: flex-start;
		gap: 1px 20px;
	}

	.hero {
		padding: 58px 0 64px;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.container {
		width: calc(100% - 24px);
	}

	.hero h1 {
		font-size: 36px;
	}

	.hero__lead {
		font-size: 18px;
	}

	.hero__note,
	.offer-card,
	.steps li {
		padding: 20px;
	}

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

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.site-footer__about {
		grid-column: auto;
	}

	.nav-links {
		flex-direction: column;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.button,
	.offer-card__action {
		display: none !important;
	}

	.hero,
	.offers-section,
	.guide-section,
	.responsible-section,
	.faq-section,
	.about-section {
		padding: 24px 0;
		background: #fff !important;
		color: #202020 !important;
	}

	.offer-card {
		box-shadow: none;
		break-inside: avoid;
	}

	.privacy-document {
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.privacy-admin-note,
	.privacy-toc,
	.privacy-document__edit {
		display: none !important;
	}
}
