/* ==========================================================================
   Autičkovo – obsahové stránky, kontakt, doplnky pre 404 a vyhľadávanie
   Základ .ak-prose je v core.css; tu sú rozšírenia pre dlhé texty.
   ========================================================================== */

/* ---------- Dlhé texty: nadpisy, perex, odkazy-tlačidlá ---------- */
.ak-page .ak-prose h2 {
	position: relative;
}

.ak-page .ak-prose h2::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 56px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--ak-accent), rgba(255, 107, 26, 0));
	box-shadow: 0 0 14px var(--ak-accent-glow);
}

.ak-page .ak-prose > h2:first-child::before {
	display: none;
}

.ak-page .ak-prose h3 {
	display: flex;
	align-items: baseline;
	gap: .55em;
}

.ak-page .ak-prose h3::before {
	content: "";
	flex: none;
	width: .42em;
	height: .42em;
	border-radius: 2px;
	background: var(--ak-accent);
	transform: translateY(-.12em) rotate(45deg);
}

.ak-page .ak-prose :is(.ak-lead) {
	max-width: 62ch;
	color: var(--ak-text);
	font-size: clamp(1.1rem, 1.7vw, 1.28rem);
	line-height: 1.6;
	letter-spacing: -.01em;
}

.ak-page .ak-prose > :is(.ak-lead):first-child {
	padding-bottom: 1.2em;
	border-bottom: 1px solid var(--ak-line);
}

.ak-page .ak-prose a.ak-btn {
	text-decoration: none;
}

.ak-page .ak-prose a.ak-btn--primary,
.ak-page .ak-prose a.ak-btn--primary:hover {
	color: var(--ak-accent-ink);
}

.ak-page .ak-prose a.ak-btn--ghost {
	color: var(--ak-text);
}

.ak-page .ak-prose a.ak-btn--ghost:hover {
	color: var(--ak-accent-2);
}

.ak-page .ak-prose .ak-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2.4em;
	padding-top: 1.6em;
	border-top: 1px solid var(--ak-line);
}

/* ---------- Poznámka / upozornenie ---------- */
.ak-page .ak-prose :is(.ak-note, .tc-usetri) {
	position: relative;
	padding: 1.05em 1.25em 1.05em 3.3em;
	border: 1px solid rgba(255, 107, 26, .22);
	border-radius: var(--ak-r);
	background:
		linear-gradient(135deg, rgba(255, 107, 26, .09), rgba(255, 107, 26, .02) 60%),
		var(--ak-surface);
	color: var(--ak-text);
}

.ak-page .ak-prose :is(.ak-note, .tc-usetri)::before {
	content: "i";
	position: absolute;
	left: 1.05em;
	top: 1.05em;
	display: grid;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: var(--ak-accent);
	color: var(--ak-accent-ink);
	font-family: var(--ak-font-display);
	font-size: .9em;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 0 0 4px rgba(255, 107, 26, .14);
}

.ak-page .ak-prose .ak-note > * + * {
	margin-top: .6em;
}

.ak-page .ak-prose .ak-note--warn {
	border-color: rgba(255, 194, 75, .3);
	background: linear-gradient(135deg, rgba(255, 194, 75, .09), rgba(255, 194, 75, .02) 60%), var(--ak-surface);
}

.ak-page .ak-prose .ak-note--warn::before {
	content: "!";
	background: var(--ak-warn);
	box-shadow: 0 0 0 4px rgba(255, 194, 75, .14);
}

/* ---------- Kroky (číslovaný postup) ---------- */
.ak-page .ak-prose ol.ak-steps {
	counter-reset: ak-step;
	display: grid;
	gap: 0;
	margin-top: 1.4em;
}

.ak-page .ak-prose ol.ak-steps > li {
	counter-increment: ak-step;
	position: relative;
	min-height: 3.4em;
	margin: 0;
	padding: .35em 0 1.5em 4.1em;
}

.ak-page .ak-prose ol.ak-steps > li:last-child {
	padding-bottom: 0;
}

.ak-page .ak-prose ol.ak-steps > li::before {
	content: counter(ak-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.7em;
	height: 2.7em;
	border: 1px solid rgba(255, 107, 26, .38);
	border-radius: 12px;
	background: linear-gradient(160deg, rgba(255, 107, 26, .18), rgba(255, 107, 26, .03));
	color: var(--ak-accent-2);
	font-family: var(--ak-font-display);
	font-size: .95em;
	font-weight: 600;
	letter-spacing: -.02em;
}

.ak-page .ak-prose ol.ak-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 2.95em;
	bottom: .25em;
	left: 1.35em;
	width: 1px;
	background: linear-gradient(var(--ak-line-2), rgba(255, 255, 255, 0));
}

.ak-page .ak-prose ol.ak-steps > li > strong:first-child {
	display: block;
	margin-bottom: .15em;
	font-family: var(--ak-font-display);
	font-size: 1.08em;
	letter-spacing: -.015em;
}

/* ---------- Tabuľky ---------- */
.ak-page .ak-prose table {
	background: var(--ak-surface);
}

.ak-page .ak-prose td strong {
	color: var(--ak-accent-2);
}

.ak-page .ak-prose table.ak-spec tbody th {
	width: 4.6em;
	background: transparent;
	color: var(--ak-accent);
	font-family: var(--ak-font-display);
	font-size: 1.35em;
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.2;
	text-align: center;
	border-right: 1px solid var(--ak-line);
}

.ak-page .ak-prose table.ak-spec tbody tr:first-child > th {
	background: transparent;
}

.ak-page .ak-prose .ak-cols {
	display: grid;
	gap: 16px;
}

.ak-page .ak-prose .ak-cols > table {
	display: table;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}

.ak-page .ak-prose .ak-cols td:first-child {
	width: 40%;
	color: var(--ak-text);
	font-family: var(--ak-font-display);
	font-weight: 600;
}

@media (min-width: 640px) {
	.ak-page .ak-prose .ak-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Bankové spojenie + QR ---------- */
.ak-page .ak-prose :is(.ak-pay, .tc-platba) {
	display: grid;
	gap: 20px;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid var(--ak-line);
	border-radius: var(--ak-r-lg);
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 107, 26, .08), transparent 55%),
		var(--ak-surface);
}

.ak-page .ak-prose .ak-pay__data {
	display: grid;
	gap: 0;
	margin: 0;
}

.ak-page .ak-prose .ak-pay__data > div {
	display: grid;
	gap: 2px;
	padding-block: 10px;
	border-bottom: 1px solid var(--ak-line);
}

.ak-page .ak-prose .ak-pay__data > div:first-child {
	padding-top: 0;
}

.ak-page .ak-prose .ak-pay__data > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ak-page .ak-prose .ak-pay__data dt {
	color: var(--ak-dim);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ak-page .ak-prose .ak-pay__data dd {
	margin: 0;
	color: var(--ak-text);
	font-family: var(--ak-font-display);
	font-size: 1.08rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: .01em;
	overflow-wrap: anywhere;
}

.ak-page .ak-prose .ak-pay__data > div:first-child dd {
	font-size: clamp(1.1rem, 2.4vw, 1.3rem);
	letter-spacing: .03em;
}

.ak-page .ak-prose :is(.ak-pay__qr, .tc-platba__qr) {
	display: grid;
	justify-items: start;
	gap: 10px;
	margin: 0;
}

.ak-page .ak-prose :is(.ak-pay__qr, .tc-platba__qr) img {
	width: 168px;
	height: auto;
	padding: 10px;
	border-radius: var(--ak-r);
	background: #fff;
}

.ak-page .ak-prose .ak-pay__qr figcaption,
.ak-page .ak-prose .tc-platba__qr p {
	max-width: 26ch;
	margin: 0;
	color: var(--ak-dim);
	font-size: .85rem;
	line-height: 1.5;
}

@media (min-width: 640px) {
	.ak-page .ak-prose :is(.ak-pay, .tc-platba) {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 28px;
	}
	.ak-page .ak-prose :is(.ak-pay__qr, .tc-platba__qr) {
		justify-items: center;
		text-align: center;
	}
}

/* ---------- Vzorový formulár v právnych textoch ---------- */
.ak-page .ak-prose .ak-form-box {
	padding: clamp(18px, 3vw, 28px);
	border: 1px dashed var(--ak-line-2);
	border-radius: var(--ak-r);
	background: var(--ak-bg-2);
	color: var(--ak-text);
	font-size: .95rem;
	overflow-wrap: anywhere;
}

.ak-page .ak-prose .ak-form-box > * + * {
	margin-top: .9em;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.ak-contact__intro {
	padding-top: clamp(8px, 2vw, 16px);
}

.ak-contact__grid {
	display: grid;
	gap: clamp(20px, 3vw, 32px);
	padding-block: clamp(16px, 3vw, 32px) clamp(48px, 7vw, 96px);
}

@media (min-width: 960px) {
	.ak-contact__grid {
		grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
		align-items: start;
		gap: clamp(28px, 4vw, 56px);
	}
	.ak-contact__side {
		position: sticky;
		top: calc(var(--ak-header-h) + 24px);
	}
}

.ak-contact__cards {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) and (max-width: 959.98px) {
	.ak-contact__cards {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

.ak-contact-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 16px;
	row-gap: 2px;
	align-items: start;
	padding: 20px;
	border: 1px solid var(--ak-line);
	border-radius: var(--ak-r);
	background: linear-gradient(180deg, var(--ak-surface-2), var(--ak-surface));
	isolation: isolate;
}

.ak-contact-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(90% 120% at 0% 0%, rgba(255, 107, 26, .12), transparent 60%);
	opacity: 0;
}

.ak-contact-card:hover,
.ak-contact-card:focus-within {
	border-color: rgba(255, 107, 26, .4);
}

.ak-contact-card:hover::before,
.ak-contact-card:focus-within::before {
	opacity: 1;
}

.ak-contact-card__icon {
	grid-row: 1 / span 3;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 107, 26, .3);
	border-radius: 14px;
	background: rgba(255, 107, 26, .1);
	color: var(--ak-accent);
}

.ak-contact-card__label {
	color: var(--ak-dim);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ak-contact-card__value {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ak-text);
	font-family: var(--ak-font-display);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	font-weight: 600;
	letter-spacing: -.015em;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ak-contact-card__value::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ak-contact-card__value:focus-visible {
	outline: none;
}

.ak-contact-card:has(.ak-contact-card__value:focus-visible) {
	outline: 2px solid var(--ak-accent);
	outline-offset: 3px;
}

.ak-contact-card:hover .ak-contact-card__value {
	color: var(--ak-accent-2);
}

.ak-contact-card__note {
	grid-column: 2;
	margin-top: 4px;
	color: var(--ak-muted);
	font-size: .88rem;
	line-height: 1.5;
}

.ak-contact-card--muted {
	background: transparent;
	border-style: dashed;
}

.ak-contact-card--muted .ak-contact-card__value {
	font-size: 1rem;
}

/* Formulárový panel */
.ak-contact__main {
	position: relative;
	padding: clamp(22px, 4vw, 44px);
	border-radius: var(--ak-r-lg);
	scroll-margin-top: calc(var(--ak-header-h) + 24px);
	overflow: hidden;
}

.ak-contact__main::before {
	content: "";
	position: absolute;
	top: 0;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ak-accent), transparent);
	opacity: .7;
	pointer-events: none;
}

.ak-contact__main::after {
	content: "";
	position: absolute;
	top: -140px;
	right: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 107, 26, .12), transparent);
	pointer-events: none;
}

.ak-contact__head {
	position: relative;
	z-index: 1;
	margin-bottom: clamp(20px, 3vw, 28px);
}

.ak-contact__title {
	font-family: var(--ak-font-display);
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.04em;
}

.ak-contact__sub {
	margin-top: 10px;
	color: var(--ak-muted);
}

.ak-form {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 18px;
}

.ak-form__row {
	display: grid;
	gap: 18px;
}

@media (min-width: 640px) {
	.ak-form__row--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ak-form .ak-field__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	color: var(--ak-text);
	font-size: .9rem;
	font-weight: 500;
}

.ak-field__opt {
	color: var(--ak-dim);
	font-size: .78rem;
	font-weight: 400;
}

.ak-form .ak-field__input {
	background-color: rgba(10, 11, 13, .6);
}

.ak-form .ak-field__textarea {
	min-height: 168px;
}

.ak-form [aria-invalid="true"] {
	border-color: var(--ak-err);
	box-shadow: 0 0 0 4px rgba(255, 92, 92, .14);
}

.ak-check {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 14px 16px;
	border: 1px solid var(--ak-line);
	border-radius: var(--ak-r-sm);
	background: rgba(255, 255, 255, .02);
}

.ak-check__input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.ak-check__label {
	color: var(--ak-muted);
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.55;
	cursor: pointer;
}

.ak-check__label a {
	color: var(--ak-accent-2);
	text-decoration: underline;
	text-underline-offset: .2em;
}

.ak-check:has([aria-invalid="true"]) {
	border-color: rgba(255, 92, 92, .5);
}

.ak-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ak-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin-top: 4px;
}

.ak-contact__submit {
	width: 100%;
	min-height: 58px;
	padding-inline: 1.9em;
	font-size: 1.05rem;
	justify-content: center;
}

.ak-contact__submit .ak-icon {
	flex: none;
}

@media (min-width: 640px) {
	.ak-contact__submit {
		width: auto;
	}
}

.ak-form__note {
	color: var(--ak-dim);
	font-size: .85rem;
}

/* Hlásenia po odoslaní */
.ak-alert {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin-bottom: 22px;
	padding: 16px 18px;
	border: 1px solid var(--ak-line-2);
	border-radius: var(--ak-r);
	background: var(--ak-surface);
}

.ak-alert:focus {
	outline: none;
}

.ak-alert__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.ak-alert__title {
	color: var(--ak-text);
	font-family: var(--ak-font-display);
	font-weight: 600;
	letter-spacing: -.01em;
}

.ak-alert__text {
	margin-top: 2px;
	color: var(--ak-muted);
	font-size: .93rem;
}

.ak-alert--ok {
	border-color: rgba(57, 217, 138, .38);
	background: linear-gradient(135deg, rgba(57, 217, 138, .1), rgba(57, 217, 138, .02) 70%), var(--ak-surface);
}

.ak-alert--ok .ak-alert__icon {
	background: rgba(57, 217, 138, .16);
	color: var(--ak-ok);
}

.ak-alert--err {
	border-color: rgba(255, 92, 92, .4);
	background: linear-gradient(135deg, rgba(255, 92, 92, .1), rgba(255, 92, 92, .02) 70%), var(--ak-surface);
}

.ak-alert--err .ak-alert__icon {
	background: rgba(255, 92, 92, .16);
	color: var(--ak-err);
}

/* Údaje o prevádzkovateľovi pod formulárom */
.ak-contact__details {
	padding-bottom: clamp(64px, 9vw, 128px);
}

.ak-contact__details > .ak-prose {
	padding-top: clamp(32px, 5vw, 56px);
	border-top: 1px solid var(--ak-line);
}

@media (min-width: 960px) {
	.ak-contact__details > .ak-prose {
		margin-left: calc(min(360px, 30%) + clamp(28px, 4vw, 56px));
	}
}

/* ==========================================================================
   404 a vyhľadávanie – doplnky
   ========================================================================== */
.ak-404::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--ak-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--ak-line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent);
	mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent);
	opacity: .5;
	pointer-events: none;
}

.ak-404 {
	isolation: isolate;
}

.ak-404__tire {
	filter: drop-shadow(0 0 28px var(--ak-accent-glow));
}

.ak-result__link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 24px;
	bottom: 24px;
	width: 2px;
	border-radius: 2px;
	background: var(--ak-accent);
	opacity: 0;
	transform: scaleY(.3);
}

.ak-result__link:hover::before,
.ak-result__link:focus-visible::before {
	opacity: 1;
	transform: none;
}

.ak-result__link:focus-visible {
	outline: 2px solid var(--ak-accent);
	outline-offset: 2px;
	border-radius: var(--ak-r-sm);
}

/* ==========================================================================
   Pohyb – len ak ho návštevník nevypol
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.ak-contact-card,
	.ak-contact-card::before {
		transition: border-color .25s var(--ak-ease), opacity .35s var(--ak-ease), transform .35s var(--ak-ease);
	}
	.ak-contact-card:hover {
		transform: translateY(-2px);
	}
	.ak-contact-card__value {
		transition: color .2s;
	}
	.ak-contact-card__value .ak-icon {
		transition: transform .3s var(--ak-ease);
	}
	.ak-contact-card:hover .ak-contact-card__value .ak-icon {
		transform: translateX(3px);
	}
	.ak-contact__submit .ak-icon {
		transition: transform .3s var(--ak-ease);
	}
	.ak-contact__submit:hover .ak-icon {
		transform: translateX(4px);
	}
	.ak-alert {
		animation: ak-alert-in .5s var(--ak-ease) both;
	}
	.ak-result__link::before {
		transition: opacity .25s var(--ak-ease), transform .35s var(--ak-ease);
	}
	@keyframes ak-alert-in {
		from { opacity: 0; transform: translateY(8px); }
		to { opacity: 1; transform: none; }
	}
}
