/* ==========================================================================
   AMŽINAS TAKAS — CTA sistema ir promo elementai
   Priklauso nuo main.css :root kintamųjų. Savų spalvų ir tarpų nekuriama.
   Blokai: .cta (4 variantai), .cta-band, .promo-strip, .qq
   ========================================================================== */

/* --------------------------------------------------------- 1. CTA variantai */

.cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	padding: clamp(26px, 4vw, 42px);
	overflow: hidden;
}

.cta__body { flex: 1 1 340px; min-width: 0; }

.cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border: var(--line);
	color: var(--moss-500);
}

.cta__svg { width: 26px; height: 26px; }

.cta__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.25rem, 2.2vw, 1.7rem);
	line-height: 1.25;
	color: var(--granite-900);
	margin: 0 0 .4em;
	max-width: 26ch;
}

.cta__text {
	margin: 0;
	font-size: 1rem;
	color: var(--granite-700);
	max-width: 56ch;
}

.cta__eyebrow {
	margin: 0 0 .3em;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--granite-500);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	flex: 0 1 auto;
}

/* --- dark: tamsi juosta ---------------------------------------------------- */

.cta--dark {
	background: var(--granite-900);
	color: rgba(255, 255, 255, .78);
}
.cta--dark .cta__stripe {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--moss-700) 0 50%, var(--sand-500) 50% 100%);
}
.cta--dark .cta__title { color: var(--white); }
.cta--dark .cta__text  { color: rgba(255, 255, 255, .7); }
.cta--dark .cta__icon  { border-color: rgba(255, 255, 255, .2); color: var(--sand-300); }
.cta--dark .btn {
	background: var(--white);
	border-color: var(--white);
	color: var(--granite-900);
}
.cta--dark .btn:hover { color: var(--white); border-color: var(--copper); }
.cta--dark .btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }

/* --- split: šviesus fonas su rėmeliu --------------------------------------- */

.cta--split {
	background: var(--stone-50);
	border: var(--line);
	border-left: 3px solid var(--moss-700);
	align-items: center;
}
.cta--split .cta__actions { flex-direction: column; align-items: stretch; min-width: 220px; }
.cta--split .cta__actions .btn { justify-content: center; }

/* --- inline: siaura eilutė turinio viduryje -------------------------------- */

.cta--inline {
	margin: 36px 0;
	padding: 18px 22px;
	background: var(--white);
	border-top: var(--line);
	border-bottom: var(--line);
	gap: 16px;
}
.cta--inline .cta__title {
	font-family: var(--font-body);
	font-size: 1.02rem;
	font-weight: 700;
	margin: 0;
	max-width: none;
}

/* --- phone: didelis numeris ------------------------------------------------ */

.cta--phone {
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--stone-50);
	border: var(--line);
}
.cta--phone .cta__body { flex: 1 1 auto; }
.cta--phone .cta__icon { margin: 0 auto 14px; color: var(--copper); border-color: var(--stone-300); }

.cta__phone {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.7rem, 4.6vw, 2.7rem);
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--granite-900);
	text-decoration: none;
	border-bottom: 3px solid var(--copper);
	padding-bottom: 4px;
	transition: color .25s var(--ease-sharp);
}
.cta__phone:hover,
.cta__phone:focus-visible { color: var(--copper); }
.cta--phone .cta__text { margin: 16px auto 0; color: var(--granite-700); }

/* ------------------------------------------------------------- 2. CTA juosta */

.cta-band {
	position: relative;
	background: var(--granite-900);
	color: rgba(255, 255, 255, .78);
	overflow: hidden;
}

/* Dvispalvė žalia / smėlio juosta viršuje. */
.cta-band__stripe {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	z-index: 3;
	background: linear-gradient(90deg, var(--moss-700) 0 50%, var(--sand-500) 50% 100%);
}

/* Akmens mūro raštas — toks pat kaip .bg-shapes main.css faile. */
.cta-band__texture {
	position: absolute;
	inset: -10%;
	z-index: 1;
	pointer-events: none;
	background-image:
		linear-gradient(30deg, transparent 47.5%, currentColor 47.5%, currentColor 48%, transparent 48%),
		linear-gradient(-30deg, transparent 47.5%, currentColor 47.5%, currentColor 48%, transparent 48%),
		linear-gradient(90deg, transparent 47.5%, currentColor 47.5%, currentColor 48%, transparent 48%);
	background-size: 120px 208px;
	color: var(--stone-200);
	opacity: .08;
}

.cta-band__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	opacity: .26;
}
.cta-band--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, var(--granite-900) 18%, rgba(28, 33, 38, .72) 70%, rgba(28, 33, 38, .45));
}

.cta-band > .container { position: relative; z-index: 2; }

.cta-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

.cta-band__eyebrow {
	margin: 0 0 .6em;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sand-300);
}

.cta-band__title {
	color: var(--white);
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	margin: 0 0 .45em;
	max-width: 20ch;
}

.cta-band__text {
	color: rgba(255, 255, 255, .72);
	max-width: 58ch;
	margin: 0 0 28px;
}

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__actions .btn {
	background: var(--white);
	border-color: var(--white);
	color: var(--granite-900);
}
.cta-band__actions .btn:hover { color: var(--white); border-color: var(--copper); }
.cta-band__actions .btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }

.cta-band__points { list-style: none; margin: 0; padding: 0; }
.cta-band__point {
	position: relative;
	padding: 14px 0 14px 34px;
	font-size: .98rem;
	color: rgba(255, 255, 255, .82);
	border-bottom: var(--line-dark);
}
.cta-band__point:first-child { border-top: var(--line-dark); }
.cta-band__point::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 22px;
	width: 12px;
	height: 6px;
	border-left: 2px solid var(--moss-300);
	border-bottom: 2px solid var(--moss-300);
	transform: rotate(-45deg);
}

@media (max-width: 860px) {
	.cta-band__inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ 3. Promo juosta */

.promo-strip {
	background: var(--copper);
	color: var(--white);
	position: relative;
}
.promo-strip[hidden] { display: none; }

.promo-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.promo-strip__msg {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: .98rem;
	font-weight: 600;
	line-height: 1.45;
	flex: 1 1 320px;
}

.promo-strip__icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--white);
}
.promo-strip__icon .cta__svg { width: 22px; height: 22px; }

.promo-strip__btn.btn--light {
	border-color: rgba(255, 255, 255, .7);
	color: var(--white);
	flex: 0 0 auto;
}
.promo-strip__btn.btn--light:hover { border-color: var(--white); }

/* Uždarymo mygtuką prideda cta.js. */
.promo-strip__close {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .35);
	color: var(--white);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .25s var(--ease-sharp);
}
.promo-strip__close:hover { background: rgba(255, 255, 255, .16); }
.promo-strip__close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* --------------------------------------------------------- 4. Skaičiuoklė */

.qq {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 1px;
	background: var(--stone-200);
	border: var(--line);
}

.qq__form,
.qq__result {
	background: var(--white);
	padding: clamp(22px, 3vw, 34px);
}

/* Be JavaScript rodoma tik statinė lentelė. */
.qq__form,
.qq__result { display: none; }
.qq__fallback {
	grid-column: 1 / -1;
	background: var(--white);
	padding: clamp(22px, 3vw, 34px);
}
.qq.is-js .qq__form,
.qq.is-js .qq__result { display: block; }
.qq.is-js .qq__fallback { display: none; }

.qq__group { border: 0; margin: 0 0 26px; padding: 0; }
.qq__group:last-child { margin-bottom: 0; }

.qq__legend {
	padding: 0;
	margin: 0 0 12px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--granite-500);
}

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

.qq__opt { position: relative; flex: 1 1 150px; }
.qq__opt input {
	position: absolute;
	opacity: 0;
	width: 1px; height: 1px;
	margin: 0;
}
.qq__opt-label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 16px;
	text-align: center;
	border: 1px solid var(--stone-300);
	background: var(--white);
	color: var(--granite-700);
	font-size: .96rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .25s var(--ease-sharp), color .25s var(--ease-sharp);
}
.qq__opt-label:hover { border-color: var(--granite-500); color: var(--granite-900); }
.qq__opt input:checked + .qq__opt-label {
	border-color: var(--granite-900);
	background: var(--granite-900);
	color: var(--white);
}
.qq__opt input:focus-visible + .qq__opt-label { outline: 2px solid var(--copper); outline-offset: 2px; }

.qq__result { background: var(--stone-50); }

.qq__result-label {
	margin: 0 0 .4em;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--granite-500);
}

.qq__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 .3em;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--granite-900);
	line-height: 1.05;
}
.qq__price-from { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--granite-500); }
.qq__price-num { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.qq__price-cur { font-size: clamp(1.4rem, 3vw, 2rem); }

.qq__summary {
	margin: 0 0 1em;
	font-size: .95rem;
	font-weight: 600;
	color: var(--granite-700);
	padding-bottom: 16px;
	border-bottom: var(--line);
}

.qq__note {
	margin: 0 0 22px;
	font-size: .9rem;
	line-height: 1.6;
	color: var(--granite-500);
}

.qq__cta { width: 100%; justify-content: center; }

.qq__fallback-lead { font-weight: 700; margin: 0 0 16px; }
.qq__table { width: 100%; }
.qq__table th, .qq__table td { text-align: left; }

@media (max-width: 860px) {
	.qq { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- 5. Sumažintas judesys */

@media (prefers-reduced-motion: reduce) {
	.cta,
	.cta__phone,
	.cta-band__point,
	.qq__opt-label,
	.promo-strip__close {
		transition: none !important;
		animation: none !important;
	}
}
