@charset "UTF-8";

:root {
	--green: #1f5f3a;
	--green-dark: #123c25;
	--green-mid: #2f7a4b;
	--green-soft: #edf7f1;
	--gold: #b99644;
	--gold-text: #7b5a16;
	--gold-light: #f4d26a;
	--text: #1f2a24;
	--muted: #5f6f66;
	--bg: #f7f4ec;
	--white: #ffffff;
	--border: #dfe7df;
	--danger: #9d2c2c;
	--shadow: 0 18px 45px rgba(18, 60, 37, .14);
	--radius: 24px;
	--container: 1320px;
	--content-width: 1180px;
	--header-height: 82px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

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

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

a {
	color: inherit;
}

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

.skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--gold-light);
	color: var(--green-dark);
	font-weight: 800;
	text-decoration: none;
	transform: translateY(-150%);
}

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

/* Hlavička odpovídající hlavnímu webu */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(223, 231, 223, .9);
}

.header-inner {
	width: min(var(--container), calc(100% - 40px));
	min-height: var(--header-height);
	margin: 0 auto;
	padding: 14px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.logo-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-weight: 800;
	color: var(--green-dark);
}

.logo-link img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.logo-text {
	line-height: 1.2;
}

.logo-text span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	color: var(--green-dark);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	flex: 0 0 46px;
	box-shadow: 0 8px 18px rgba(18, 60, 37, .1);
}

.nav-toggle[hidden] {
	display: none;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
	background: var(--green-soft);
	border-color: rgba(31, 95, 58, .35);
}

.nav-toggle:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.nav-toggle__line {
	display: block;
	width: 23px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.main-nav a,
.footer-inner a,
.back-link a {
	position: relative;
	display: inline-block;
	padding-bottom: 3px;
	color: var(--green-dark);
	text-decoration: none;
	overflow: hidden;
}

.main-nav a::after,
.footer-inner a::after,
.back-link a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: var(--gold);
	transform: translateX(-105%);
	transition: transform .26s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after,
.footer-inner a:hover::after,
.footer-inner a:focus-visible::after,
.back-link a:hover::after,
.back-link a:focus-visible::after {
	transform: translateX(0);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
	color: var(--green);
}

.main-nav .phone-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	overflow: visible;
	box-shadow: 0 8px 18px rgba(18, 60, 37, .14);
	transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.main-nav .phone-link::after {
	display: none;
}

.main-nav .phone-link:hover,
.main-nav .phone-link:focus-visible {
	background: var(--green-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(18, 60, 37, .18);
}

.phone-link__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Společné úvody stránek */

.directory-hero,
.tool-hero {
	min-height: 440px;
	color: #fff;
	background:
		radial-gradient(circle at 84% 18%, rgba(244, 210, 106, .12), transparent 30%),
		linear-gradient(92deg, rgba(18, 60, 37, .98) 0%, rgba(18, 60, 37, .9) 48%, rgba(23, 77, 47, .6) 100%),
		url("/pomucky/assets/img/hero-kod-pomucky.webp") center 44% / cover no-repeat;
	overflow: hidden;
}

.directory-hero__inner,
.tool-hero__inner {
	width: min(var(--content-width), calc(100% - 40px));
	min-height: inherit;
	margin: 0 auto;
	padding: 22px 0 42px;
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
}

/* Rezerva pod sdílením zahrnuje i přesah formuláře přes okraj banneru. */
.tool-hero__inner {
	padding-bottom: 72px;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	color: rgba(255, 255, 255, .74);
}

.breadcrumbs a {
	color: #fff;
	text-underline-offset: 4px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
	color: var(--gold-light);
}

.eyebrow {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	padding: 7px 12px;
	margin-bottom: 14px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	font-size: 14px;
	font-weight: 800;
}

.directory-hero h1,
.tool-hero h1 {
	max-width: 980px;
	margin: 0 0 12px;
	font-size: clamp(38px, 5.2vw, 62px);
	line-height: 1.04;
	letter-spacing: -.04em;
}

.directory-hero h1 span,
.tool-hero h1 span {
	color: var(--gold-light);
}

.directory-hero p,
.tool-hero p {
	max-width: 900px;
	margin: 0;
	font-size: clamp(18px, 1.8vw, 21px);
	color: rgba(255, 255, 255, .88);
}

.page-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 48px;
	margin-top: 16px;
}

.page-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	backdrop-filter: blur(6px);
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.page-action svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.page-action:hover,
.page-action:focus-visible {
	border-color: rgba(255, 255, 255, .7);
	background: rgba(255, 255, 255, .22);
	transform: translateY(-1px);
}

.page-action:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.page-action-status {
	flex: 1 1 260px;
	min-height: 21px;
	font-size: 13px;
	color: rgba(255, 255, 255, .86);
}

/* Rozcestník */

.directory-section,
.content-section {
	width: min(var(--content-width), calc(100% - 40px));
	margin: 0 auto;
	padding: 68px 0;
}

.directory-section h2,
.content-section h2 {
	margin: 0 0 28px;
	font-size: clamp(30px, 3.5vw, 44px);
	line-height: 1.14;
	letter-spacing: -.03em;
	color: var(--green-dark);
}

.section-kicker {
	margin-bottom: 9px;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
	font-weight: 900;
	color: var(--gold-text);
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
	gap: 20px;
}

.tool-link-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	max-width: none;
	min-height: 180px;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: 0 10px 30px rgba(31, 95, 58, .07);
	color: inherit;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-link-card:hover,
.tool-link-card:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(185, 150, 68, .65);
	box-shadow: 0 18px 42px rgba(31, 95, 58, .13);
	outline: none;
}

.tool-link-card:focus-visible {
	box-shadow: 0 0 0 4px var(--gold-light), 0 18px 42px rgba(31, 95, 58, .13);
}

.tool-link-card__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	border-radius: 22px;
	background: var(--green-soft);
	color: var(--green-dark);
	font-size: 21px;
	font-weight: 900;
	white-space: nowrap;
}

.tool-link-card__content strong,
.tool-link-card__content span {
	display: block;
}

.tool-link-card__content strong {
	margin-bottom: 7px;
	font-size: 23px;
	line-height: 1.25;
	color: var(--green-dark);
}

.tool-link-card__content span {
	color: var(--muted);
}

.tool-link-card__arrow {
	color: var(--gold-text);
	font-size: 32px;
	font-weight: 800;
	transition: transform .18s ease;
}

.tool-link-card:hover .tool-link-card__arrow,
.tool-link-card:focus-visible .tool-link-card__arrow {
	transform: translateX(4px);
}

/* Formulář pomůcky */

.tool-shell {
	position: relative;
	z-index: 2;
	width: min(var(--content-width), calc(100% - 40px));
	margin: -24px auto 0;
	scroll-margin-top: 105px;
}

.tool-card {
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid var(--border);
	border-radius: 30px;
	background: var(--white);
	box-shadow: var(--shadow);
}

.mode-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.form-alert {
	margin: 0 0 22px;
	padding: 13px 16px;
	border: 1px solid rgba(157, 44, 44, .3);
	border-left: 5px solid var(--danger);
	border-radius: 12px;
	background: #fff2f2;
	color: #702020;
	font-weight: 700;
}

.mode-fieldset legend {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 800;
	color: var(--green-dark);
}

.mode-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mode-option {
	position: relative;
	cursor: pointer;
}

.mode-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
	overflow: hidden;
}

.mode-option > span {
	display: flex;
	min-height: 82px;
	padding: 16px 18px;
	border: 2px solid var(--border);
	border-radius: 18px;
	background: #fff;
	flex-direction: column;
	justify-content: center;
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mode-option strong,
.mode-option small {
	display: block;
}

.mode-option strong {
	font-size: 17px;
	color: var(--green-dark);
}

.mode-option small {
	margin-top: 2px;
	font-size: 14px;
	color: var(--muted);
}

.mode-option:hover > span {
	border-color: rgba(31, 95, 58, .38);
	background: var(--green-soft);
}

.mode-option input:checked + span {
	border-color: var(--green);
	background: var(--green-soft);
	box-shadow: inset 0 0 0 1px var(--green);
}

.mode-option input:focus-visible + span {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.mode-explanation {
	margin-top: 12px;
	font-size: 15px;
	color: var(--muted);
}

.filename-options {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 22px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: #fbfcfb;
}

.filename-options[hidden] {
	display: none;
}

.filename-options__heading {
	width: 100%;
	font-size: 14px;
	font-weight: 800;
	color: var(--green-dark);
}

.check-option {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	font-size: 15px;
	color: var(--text);
}

.check-option input {
	width: 19px;
	height: 19px;
	margin: 0;
	accent-color: var(--green);
}

.check-option input:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 2px;
}

.text-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 26px;
}

.field-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 9px;
}

.field-heading label {
	font-size: 17px;
	font-weight: 800;
	color: var(--green-dark);
}

.field-heading span {
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
}

.text-panel textarea {
	display: block;
	width: 100%;
	min-height: 260px;
	resize: vertical;
	padding: 17px 18px;
	border: 2px solid #d7e0d8;
	border-radius: 17px;
	background: #fff;
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-size: 16px;
	line-height: 1.55;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.text-panel textarea:hover {
	border-color: rgba(31, 95, 58, .48);
}

.text-panel textarea:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(31, 95, 58, .13);
	outline: none;
}

.text-panel--result textarea {
	background: var(--green-soft);
}

.text-panel textarea::placeholder {
	color: #829086;
}

.tool-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 800;
	line-height: 1.2;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(18, 60, 37, .16);
}

.button:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.button:disabled {
	cursor: not-allowed;
	opacity: .5;
}

.button-primary {
	background: var(--gold-light);
	color: #17331f;
}

.button-primary:hover:not(:disabled),
.button-primary:focus-visible:not(:disabled) {
	background: #ffe083;
}

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

.button-copy:hover:not(:disabled),
.button-copy:focus-visible:not(:disabled) {
	background: var(--green-dark);
}

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

.button-quiet:hover:not(:disabled),
.button-quiet:focus-visible:not(:disabled) {
	border-color: rgba(31, 95, 58, .4);
	background: var(--green-soft);
}

.tool-status,
.noscript-note {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.noscript-note {
	padding: 12px 14px;
	border-left: 4px solid var(--gold);
	background: #fff8df;
}

/* Počítadlo, třídění a společné formulářové prvky */

.counter-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
	gap: 28px;
	align-items: start;
}

.counter-layout .text-panel textarea {
	min-height: 390px;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.metric-card {
	min-height: 112px;
	padding: 17px;
	border: 1px solid var(--border);
	border-radius: 17px;
	background: #fbfcfb;
}

.metric-card--primary {
	border-color: rgba(31, 95, 58, .38);
	background: var(--green-soft);
}

.metric-card dt {
	font-size: 14px;
	line-height: 1.35;
	color: var(--muted);
}

.metric-card dd {
	margin: 7px 0 0;
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	color: var(--green-dark);
}

.settings-grid {
	display: grid;
	gap: 18px;
}

.settings-grid--sorter {
	grid-template-columns: minmax(280px, 1.15fr) repeat(2, minmax(210px, .85fr));
	align-items: start;
}

.compact-options {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.pill-option {
	position: relative;
	cursor: pointer;
}

.pill-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
	overflow: hidden;
}

.pill-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border: 2px solid var(--border);
	border-radius: 999px;
	background: #fff;
	color: var(--green-dark);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.pill-option:hover span,
.pill-option input:checked + span {
	border-color: var(--green);
	background: var(--green-soft);
}

.pill-option input:checked + span {
	box-shadow: inset 0 0 0 1px var(--green);
}

.pill-option input:focus-visible + span {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.select-field > label:first-child,
.select-field > span:first-child,
.number-field > span:first-child,
.range-field > label:first-child {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 800;
	color: var(--green-dark);
}

.select-field select,
.custom-delimiter input,
.number-field__control,
.range-field__number {
	width: 100%;
	border: 2px solid #d7e0d8;
	border-radius: 13px;
	background: #fff;
	color: var(--text);
}

.select-field select,
.custom-delimiter input {
	height: 48px;
	padding: 9px 13px;
}

.select-field select:focus,
.custom-delimiter input:focus,
.number-field__control:focus-within,
.range-field__number:focus-within {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(31, 95, 58, .13);
	outline: none;
}

.custom-delimiter {
	display: block;
	margin-top: 10px;
}

.custom-delimiter > span {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	color: var(--muted);
}

.option-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 11px 24px;
	margin-top: 22px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: #fbfcfb;
}

/* Kalkulátor cen */

.print-heading {
	display: none;
}

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

.calculator-block {
	position: relative;
	display: flex;
	gap: 16px;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: #fbfcfb;
}

.calculator-block--sales {
	border-color: rgba(31, 95, 58, .32);
	background: #f8fcf9;
}

.calculator-block--quantity {
	border-color: rgba(35, 103, 159, .26);
	background: #f8fbfe;
}

.calculator-block__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	background: var(--green-dark);
	color: #fff;
	font-weight: 900;
}

.calculator-block__content {
	min-width: 0;
	width: 100%;
}

.calculator-block h2,
.calculator-summary h2 {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.2;
	color: var(--green-dark);
}

.calculator-block .mode-fieldset + .number-field,
.calculator-block .number-field + .mode-fieldset,
.calculator-block .mode-fieldset + .quantity-entry,
.calculator-block .field-help + .range-field {
	margin-top: 18px;
}

.field-help {
	margin: -8px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.field-help--after {
	margin: 10px 0 0;
}

.number-field {
	display: block;
}

.number-field__control,
.range-field__number {
	display: flex;
	align-items: center;
	min-height: 50px;
	padding: 0 13px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.number-field__control input,
.range-field__number input {
	width: 100%;
	min-width: 0;
	padding: 10px 4px;
	border: 0;
	background: transparent;
	color: var(--text);
	font-weight: 700;
	outline: none;
}

.number-field__control > span,
.range-field__number > span:not(.sr-only) {
	padding-left: 8px;
	color: var(--muted);
	font-weight: 700;
}

.vat-fieldset {
	margin-top: 18px;
}

.range-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px;
	gap: 12px;
	align-items: center;
}

.range-field > label:first-child {
	grid-column: 1 / -1;
	margin-bottom: -2px;
}

.range-field input[type="range"] {
	width: 100%;
	accent-color: var(--green);
}

.range-field__number {
	min-height: 46px;
}

.quantity-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px;
	gap: 12px;
	align-items: end;
}

.inline-results,
.result-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
}

.inline-results > div,
.result-cards > div {
	padding: 13px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--border);
}

.inline-results dt,
.result-cards dt {
	font-size: 12px;
	line-height: 1.35;
	color: var(--muted);
}

.inline-results dd,
.result-cards dd {
	margin: 5px 0 0;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.3;
	color: var(--green-dark);
}

.result-cards--green > div {
	border-color: rgba(31, 95, 58, .26);
	background: var(--green-soft);
}

.result-cards--blue > div {
	border-color: rgba(35, 103, 159, .25);
	background: #edf6fc;
}

.result-cards--blue dd {
	color: #174f7d;
}

.result-cards > div:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.calculator-summary {
	margin-top: 24px;
	padding: 26px;
	border: 2px solid rgba(31, 95, 58, .25);
	border-radius: 22px;
	background: var(--green-soft);
}

.calculator-summary .section-kicker {
	margin-bottom: 6px;
}

.calculator-summary h2 {
	margin-bottom: 14px;
}

.summary-table-wrap {
	overflow-x: auto;
}

.summary-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
}

.summary-table th,
.summary-table td {
	padding: 11px 15px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
	border-bottom: 0;
}

.summary-table th {
	width: 62%;
	font-weight: 700;
	color: var(--muted);
}

.summary-table td {
	font-weight: 900;
	color: var(--green-dark);
}

.calculator-actions {
	justify-content: flex-end;
}

/* Obrázkové a barevné pomůcky */

.privacy-banner {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 26px;
	padding: 15px 17px;
	border: 1px solid rgba(31, 95, 58, .28);
	border-radius: 16px;
	background: var(--green-soft);
	color: var(--green-dark);
}

.privacy-banner svg {
	width: 25px;
	height: 25px;
	flex: 0 0 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.privacy-banner strong,
.privacy-banner span {
	display: block;
}

.privacy-banner strong {
	font-size: 15px;
}

.privacy-banner span {
	margin-top: 2px;
	font-size: 14px;
	color: var(--muted);
}

.image-color-layout,
.color-picker-layout,
.image-text-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
	gap: 22px;
	align-items: start;
}

.image-text-layout {
	grid-template-columns: minmax(350px, .82fr) minmax(0, 1.18fr);
}

.image-workspace,
.color-results,
.color-picker-panel,
.image-text-controls,
.image-text-preview-panel {
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: #fbfcfb;
}

.image-workspace h2,
.color-results h2,
.color-picker-panel h2,
.image-text-controls h2,
.image-text-preview-panel h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	color: var(--green-dark);
}

.image-workspace__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.image-workspace__heading > span {
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
}

.zoom-controls {
	display: inline-grid;
	grid-template-columns: 42px 72px 42px;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.zoom-controls button {
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--green-dark);
	cursor: pointer;
	font-size: 23px;
}

.zoom-controls button:hover:not(:disabled),
.zoom-controls button:focus-visible:not(:disabled) {
	background: var(--green-soft);
}

.zoom-controls button:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid var(--gold-light);
	outline-offset: -3px;
}

.zoom-controls button:disabled {
	cursor: not-allowed;
	opacity: .38;
}

.zoom-controls output {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	border-right: 1px solid var(--border);
	border-left: 1px solid var(--border);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 13px;
	color: var(--muted);
}

.image-drop-zone {
	display: flex;
	min-height: 470px;
	border: 2px dashed #d2ddd4;
	border-radius: 17px;
	background: #f5f8f6;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: border-color .18s ease, background-color .18s ease;
}

.image-drop-zone.is-dragging,
.compact-upload.is-dragging {
	border-color: var(--green);
	background: var(--green-soft);
}

.image-empty-state {
	display: flex;
	max-width: 360px;
	padding: 30px;
	text-align: center;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	color: var(--muted);
}

.image-empty-state[hidden] {
	display: none;
}

.image-empty-state svg {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	fill: none;
	stroke: var(--green);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.image-empty-state strong,
.image-empty-state span {
	display: block;
}

.image-empty-state strong {
	color: var(--green-dark);
}

.image-empty-state span {
	margin-top: 4px;
	font-size: 14px;
}

.image-canvas-viewport {
	width: 100%;
	height: 470px;
	padding: 2px;
	overflow: auto;
	overscroll-behavior: contain;
	background:
		linear-gradient(45deg, #e8ece9 25%, transparent 25%),
		linear-gradient(-45deg, #e8ece9 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e8ece9 75%),
		linear-gradient(-45deg, transparent 75%, #e8ece9 75%),
		#fff;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-size: 16px 16px;
}

.image-canvas-viewport[hidden] {
	display: none;
}

.image-canvas-surface {
	position: relative;
	min-width: 1px;
	min-height: 1px;
	margin: auto;
}

.image-canvas-surface canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: crosshair;
	touch-action: none;
}

.image-canvas-surface canvas:focus-visible {
	outline: 4px solid var(--gold-light);
	outline-offset: -4px;
}

.pixel-marker {
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #111, 0 2px 7px rgba(0, 0, 0, .4);
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.pixel-marker[hidden] {
	display: none;
}

.image-file-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.image-file-meta {
	min-width: 0;
	margin-right: auto;
	font-size: 13px;
	color: var(--muted);
	word-break: break-word;
}

.file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.file-input:focus-visible + *,
label:has(+ .file-input:focus-visible) {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.button-small {
	min-height: 42px;
	padding: 9px 15px;
	font-size: 14px;
}

.url-loader {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.url-loader > label,
.text-input-field > span,
.color-setting > label,
.preset-colors > strong,
.rgb-fieldset legend {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 800;
	color: var(--green-dark);
}

.url-loader__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 9px;
}

.url-loader input,
.text-input-field input,
.text-input-field textarea,
.color-setting input[type="text"],
.rgb-inputs input {
	width: 100%;
	border: 2px solid #d7e0d8;
	border-radius: 12px;
	background: #fff;
	color: var(--text);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.url-loader input,
.text-input-field input,
.color-setting input[type="text"],
.rgb-inputs input {
	height: 46px;
	padding: 9px 12px;
}

.text-input-field textarea {
	display: block;
	min-height: 78px;
	padding: 11px 12px;
	resize: vertical;
}

.url-loader input:focus,
.text-input-field input:focus,
.text-input-field textarea:focus,
.color-setting input[type="text"]:focus,
.rgb-inputs input:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(31, 95, 58, .13);
	outline: none;
}

[aria-invalid="true"] {
	border-color: var(--danger) !important;
}

.url-loader p {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--muted);
}

.color-results {
	background: #fff;
}

.color-preview {
	--sample-color: #edf7f1;
	position: relative;
	display: flex;
	min-height: 210px;
	margin-top: 17px;
	border: 1px solid rgba(18, 60, 37, .12);
	border-radius: 16px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		linear-gradient(45deg, #e3e7e4 25%, transparent 25%),
		linear-gradient(-45deg, #e3e7e4 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e3e7e4 75%),
		linear-gradient(-45deg, transparent 75%, #e3e7e4 75%),
		#fff;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
	background-size: 20px 20px;
}

.color-preview::before {
	position: absolute;
	inset: 0;
	background: var(--sample-color);
	content: "";
}

.color-preview strong {
	position: relative;
	z-index: 1;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: clamp(23px, 3.5vw, 38px);
	line-height: 1;
	text-shadow: 0 1px 2px rgba(255, 255, 255, .2);
}

.sample-coordinate {
	min-height: 23px;
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.color-values {
	margin: 14px 0 0;
}

.color-values > div {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) 36px;
	gap: 10px;
	align-items: center;
	min-height: 52px;
	border-bottom: 1px solid var(--border);
}

.color-values > div:last-child {
	border-bottom: 0;
}

.color-values dt {
	font-size: 13px;
	color: var(--muted);
}

.color-values dd {
	min-width: 0;
	margin: 0;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 13px;
	text-align: right;
	color: var(--green-dark);
	word-break: break-word;
}

.copy-value-button {
	display: inline-flex;
	width: 36px;
	height: 36px;
	padding: 8px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--green);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.copy-value-button:hover:not(:disabled),
.copy-value-button:focus-visible:not(:disabled) {
	background: var(--green-soft);
}

.copy-value-button:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 1px;
}

.copy-value-button:disabled {
	cursor: not-allowed;
	opacity: .35;
}

.copy-value-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.tool-status--error {
	color: var(--danger);
	font-weight: 700;
}

.is-loading .image-drop-zone,
.is-loading .url-loader {
	opacity: .7;
}

/* Samostatná paleta */

.sv-picker {
	position: relative;
	margin-top: 17px;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.sv-picker canvas {
	display: block;
	width: 100%;
	height: auto;
	max-height: 340px;
	cursor: crosshair;
	touch-action: none;
}

.sv-picker canvas:focus-visible {
	outline: 4px solid var(--gold-light);
	outline-offset: -4px;
}

.sv-picker__pointer {
	position: absolute;
	width: 19px;
	height: 19px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #222, 0 2px 6px rgba(0, 0, 0, .35);
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.hue-control {
	display: block;
	margin-top: 18px;
}

.hue-control > span,
.image-range > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 800;
	color: var(--green-dark);
}

.hue-control input,
.image-range input {
	display: block;
	width: 100%;
	height: 22px;
	margin: 0;
	accent-color: var(--green);
}

.hue-control input {
	border-radius: 999px;
	background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.color-entry-grid {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 12px;
	margin-top: 20px;
}

.native-color-field > span,
.text-input-field > span {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 800;
	color: var(--green-dark);
}

.native-color-field input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 4px;
	border: 2px solid #d7e0d8;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.native-color-field input:focus-visible {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(31, 95, 58, .13);
	outline: none;
}

.rgb-fieldset {
	margin: 20px 0 0;
	padding: 0;
	border: 0;
}

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

.rgb-inputs label {
	display: grid;
	grid-template-columns: 25px minmax(0, 1fr);
	align-items: center;
	font-size: 13px;
	font-weight: 900;
	color: var(--green-dark);
}

.rgb-inputs input {
	min-width: 0;
	padding-right: 5px;
	padding-left: 8px;
}

.preset-colors {
	margin-top: 20px;
}

.preset-colors > div {
	display: grid;
	grid-template-columns: repeat(6, 38px);
	gap: 9px;
}

.preset-colors button {
	position: relative;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--preset-color);
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(18, 60, 37, .22);
}

.preset-colors button:hover,
.preset-colors button:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 0 0 3px var(--gold-light);
	outline: none;
}

/* Text do obrázku */

.compact-upload {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 76px;
	margin-top: 18px;
	padding: 14px;
	border: 2px dashed #d2ddd4;
	border-radius: 15px;
	background: #fff;
	transition: border-color .18s ease, background-color .18s ease;
}

.compact-upload > span {
	min-width: 0;
	font-size: 13px;
	color: var(--muted);
	word-break: break-word;
}

.image-text-controls > .text-input-field,
.image-text-controls > .select-field,
.image-range,
.image-background-option {
	display: block;
	margin-top: 18px;
}

.settings-row {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.settings-row--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-setting > div {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 8px;
}

.color-setting input[type="color"] {
	display: block;
	width: 52px;
	height: 46px;
	padding: 3px;
	border: 2px solid #d7e0d8;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.color-setting input[type="color"]:focus-visible {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(31, 95, 58, .13);
	outline: none;
}

.image-range output {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.image-background-option {
	align-items: flex-start;
}

.image-text-preview {
	display: flex;
	min-height: 520px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 16px;
	align-items: center;
	justify-content: center;
	overflow: auto;
	background:
		linear-gradient(45deg, #e8ece9 25%, transparent 25%),
		linear-gradient(-45deg, #e8ece9 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e8ece9 75%),
		linear-gradient(-45deg, transparent 75%, #e8ece9 75%),
		#fff;
	background-position: 0 0, 0 9px, 9px -9px, -9px 0;
	background-size: 18px 18px;
}

.image-text-preview canvas {
	display: block;
	max-width: 100%;
	max-height: 680px;
	width: auto;
	height: auto;
	box-shadow: 0 10px 26px rgba(18, 60, 37, .16);
}

.image-text-preview canvas[hidden] {
	display: none;
}

.image-text-actions {
	justify-content: flex-end;
}

/* Informační obsah */

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
	gap: 28px;
	align-items: start;
}

.content-copy p {
	margin: 0 0 18px;
	font-size: 18px;
	color: var(--muted);
}

.content-copy p:last-child {
	margin-bottom: 0;
}

.content-section.content-section--compact {
	padding-top: 0;
}

/* První návod pod formulářem potřebuje vlastní horní odstup. */
.tool-shell + .content-section.content-section--compact {
	padding-top: clamp(36px, 5vw, 64px);
}

/* Související pomůcky – stejné zvýraznění jako u kategorií. */
.related-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.related-tools li { max-width: 100%; }

.related-tools a {
	display: inline-flex;
	align-items: center;
	color: var(--green-dark);
	overflow-wrap: anywhere;
	min-height: 44px;
	padding: 9px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
	.related-tools a:hover {
		color: #fff;
		background: var(--green);
		border-color: var(--green);
		box-shadow: 0 6px 16px rgba(18, 60, 37, .16);
		transform: translateY(-2px);
	}
}

.related-tools a:focus-visible {
	color: #fff;
	background: var(--green);
	border-color: var(--green);
	outline: 3px solid var(--green);
	outline-offset: 3px;
	box-shadow: 0 6px 16px rgba(18, 60, 37, .16);
	transform: translateY(-2px);
}

.related-tools a:active {
	color: #fff;
	background: var(--green-dark);
	border-color: var(--green-dark);
	box-shadow: 0 2px 6px rgba(18, 60, 37, .12);
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.related-tools a { transition: none; }
	.related-tools a:hover,
	.related-tools a:focus-visible,
	.related-tools a:active { transform: none; }
}

.content-copy p.answer-lead {
	font-size: 20px;
	line-height: 1.65;
	color: var(--text);
}

.steps-list {
	display: grid;
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: tool-steps;
}

.steps-list li {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 13px;
	align-items: start;
	counter-increment: tool-steps;
	font-size: 17px;
	color: var(--muted);
}

.steps-list li::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--green-soft);
	color: var(--green-dark);
	content: counter(tool-steps);
	font-weight: 900;
}

.steps-list strong {
	color: var(--green-dark);
}

.conversion-example {
	margin: 0;
}

.conversion-example div + div {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.conversion-example dt {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
}

.conversion-example dd {
	margin: 0;
}

.conversion-example code {
	display: inline-block;
	max-width: 100%;
	padding: 6px 9px;
	border-radius: 8px;
	background: var(--green-soft);
	color: var(--green-dark);
	font-size: 15px;
	word-break: break-word;
}

.faq-list {
	display: grid;
	gap: 12px;
	max-width: 1000px;
}

.faq-item {
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--white);
	box-shadow: 0 8px 24px rgba(31, 95, 58, .05);
}

.faq-item[open] {
	border-color: rgba(31, 95, 58, .34);
}

.faq-item summary {
	padding: 18px 22px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 800;
	color: var(--green-dark);
}

.faq-item summary::marker {
	color: var(--gold-text);
}

.faq-item summary:focus-visible {
	border-radius: 15px;
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.faq-item p {
	margin: -3px 0 0;
	padding: 0 22px 20px;
	color: var(--muted);
}

.info-card {
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: 0 10px 30px rgba(31, 95, 58, .07);
}

.info-card h3 {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.3;
	color: var(--green-dark);
}

.info-card p,
.info-card ul {
	margin: 0;
	color: var(--muted);
}

.info-card ul {
	padding-left: 21px;
}

.info-card li + li {
	margin-top: 6px;
}

.back-link {
	margin: 34px 0 0;
}

.back-link a {
	font-weight: 800;
}

/* Zápatí */

.site-footer {
	margin-top: 20px;
	padding: 30px 0;
	background: #102d1d;
	color: rgba(255, 255, 255, .82);
}

.footer-inner {
	width: min(var(--container), calc(100% - 40px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: start;
	font-size: 14px;
}

.footer-inner a {
	color: #fff;
	font-weight: 600;
}

.footer-inner a::after {
	background: var(--gold-light);
}

.footer-note {
	max-width: 1050px;
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .68);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 18px;
}

.footer-link-button {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0 0 3px;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
}

.footer-link-button::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: var(--gold-light);
	transform: translateX(-105%);
	transition: transform .26s ease;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
	color: var(--gold-light);
}

.footer-link-button:hover::after,
.footer-link-button:focus-visible::after {
	transform: translateX(0);
}

/* Responzivní zobrazení */

@media (max-width: 1100px) {
	.header-inner,
	.footer-inner {
		width: min(var(--container), calc(100% - 36px));
	}

	.directory-hero__inner,
	.tool-hero__inner,
	.directory-section,
	.content-section,
	.tool-shell {
		width: min(var(--content-width), calc(100% - 36px));
	}

	.main-nav {
		gap: 13px;
		font-size: 14px;
	}
}

@media (max-width: 1000px) {
	.header-inner {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 12px;
	}

	.logo-link {
		flex: 1 1 0;
		min-width: 0;
	}

	.nav-toggle:not([hidden]) {
		display: inline-flex;
		margin-left: auto;
	}

	.main-nav {
		width: 100%;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 8px 0 4px;
		border-top: 1px solid var(--border);
		white-space: normal;
	}

	.main-nav.is-collapsible {
		display: none;
	}

	.main-nav.is-collapsible.is-open {
		display: flex;
		max-height: calc(100vh - 94px);
		overflow-y: auto;
	}

	.main-nav a {
		display: block;
		width: 100%;
		padding: 12px 4px;
	}

	.main-nav a:hover,
	.main-nav a:focus-visible,
	.main-nav a[aria-current="page"] {
		background: var(--green-soft);
	}

	.main-nav .phone-link {
		width: 100%;
		margin-top: 7px;
		padding: 12px 16px;
	}

	.tools-grid,
	.text-grid,
	.content-grid,
	.counter-layout,
	.calculator-grid,
	.settings-grid--sorter,
	.image-color-layout,
	.color-picker-layout,
	.image-text-layout {
		grid-template-columns: 1fr;
	}

	.tool-shell {
		margin-top: -24px;
	}
}

@media (max-width: 620px) {
	.directory-hero,
	.tool-hero {
		min-height: 560px;
		background-position: center, center, 72% 44%;
	}

	.header-inner,
	.footer-inner,
	.directory-hero__inner,
	.tool-hero__inner,
	.directory-section,
	.content-section,
	.tool-shell {
		width: calc(100% - 32px);
	}

	.logo-link img {
		width: 44px;
		height: 44px;
	}

	.logo-text {
		font-size: 15px;
	}

	.logo-text span {
		font-size: 12px;
	}

	.directory-hero__inner,
	.tool-hero__inner {
		padding: 28px 0 48px;
	}

	.tool-hero__inner {
		padding-bottom: 72px;
	}

	.directory-hero h1,
	.tool-hero h1 {
		font-size: clamp(36px, 11vw, 48px);
	}

	.directory-section,
	.content-section {
		padding: 52px 0;
	}

	.tool-card {
		padding: 22px;
		border-radius: 22px;
	}

	.mode-switch {
		grid-template-columns: 1fr;
	}

	.mode-option > span {
		min-height: 72px;
	}

	.text-panel textarea {
		min-height: 220px;
	}

	.counter-layout .text-panel textarea {
		min-height: 260px;
	}

	.page-action-status {
		flex-basis: 100%;
	}

	.tool-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.tool-link-card {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 16px;
		padding: 22px;
		border-radius: 20px;
	}

	.tool-link-card__mark {
		width: 66px;
		height: 66px;
		border-radius: 17px;
		font-size: 18px;
	}

	.tool-link-card__arrow {
		display: none;
	}

	.info-card {
		padding: 22px;
		border-radius: 20px;
	}

	.calculator-block {
		padding: 20px;
		border-radius: 18px;
	}

	.calculator-summary {
		padding: 20px;
		border-radius: 18px;
	}

	.image-workspace,
	.color-results,
	.color-picker-panel,
	.image-text-controls,
	.image-text-preview-panel {
		padding: 20px;
		border-radius: 18px;
	}

	.image-workspace__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.image-drop-zone,
	.image-canvas-viewport {
		min-height: 380px;
		height: 380px;
	}

	.image-file-row,
	.compact-upload {
		align-items: stretch;
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.image-file-row .button,
	.compact-upload .button {
		width: 100%;
	}

	.image-text-preview {
		min-height: 360px;
	}

	.summary-table th,
	.summary-table td {
		padding: 10px 12px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-links {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.directory-hero,
	.tool-hero {
		min-height: 590px;
	}

	.page-action {
		width: 100%;
	}

	.metrics-grid,
	.inline-results,
	.result-cards,
	.quantity-entry,
	.range-field,
	.settings-row--two,
	.color-entry-grid,
	.url-loader__controls {
		grid-template-columns: 1fr;
	}

	.color-entry-grid {
		gap: 16px;
	}

	.preset-colors > div {
		grid-template-columns: repeat(4, 38px);
	}

	.color-values > div {
		grid-template-columns: 52px minmax(0, 1fr) 36px;
	}

	.range-field > label:first-child,
	.range-field__number,
	.result-cards > div:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.calculator-block {
		gap: 11px;
		padding: 17px;
	}

	.calculator-block__number {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
	}

	.summary-table th,
	.summary-table td {
		display: block;
		width: 100%;
	}

	.summary-table th {
		padding-bottom: 2px;
		border-bottom: 0;
	}

	.summary-table td {
		padding-top: 2px;
	}
}

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

	.nav-toggle__line,
	.main-nav a::after,
	.footer-inner a::after,
	.back-link a::after,
	.main-nav .phone-link,
	.tool-link-card,
	.tool-link-card__arrow,
	.mode-option > span,
	.text-panel textarea,
	.button,
	.page-action,
	.pill-option span,
	.image-drop-zone,
	.compact-upload,
	.preset-colors button {
		transition: none;
	}

	.main-nav .phone-link:hover,
	.main-nav .phone-link:focus-visible,
	.tool-link-card:hover,
	.tool-link-card:focus-visible,
	.button:hover,
	.button:focus-visible {
		transform: none;
	}
}

@media print {
	@page {
		margin: 16mm;
	}

	body {
		background: #fff;
		color: #111;
		font-size: 11pt;
	}

	.site-header,
	.tool-hero,
	.directory-hero,
	.calculator-grid,
	.calculator-actions,
	.tool-status,
	.noscript-note,
	.content-section,
	.site-footer,
	.google-advertising {
		display: none !important;
	}

	.tool-shell {
		width: 100%;
		margin: 0;
	}

	.tool-card {
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.print-heading {
		display: block;
		margin: 0 0 18px;
		font-size: 22pt;
		color: #123c25;
	}

	.calculator-summary {
		margin: 0;
		padding: 0;
		border: 0;
		background: #fff;
	}

	.summary-table {
		border: 1px solid #bbb;
	}

	.summary-table th,
	.summary-table td {
		display: table-cell;
		width: auto;
		padding: 8px 10px;
		border-bottom: 1px solid #ccc;
	}

	.summary-table th {
		width: 62%;
	}
}
