/* JT Kuponai – Juoda Truoba dizaino sistema */
.jtk, .jtk-ty {
	--jtk-bg: #F4F2EC;
	--jtk-card: #FFFFFF;
	--jtk-dark: #262626;
	--jtk-ink: #1C1C1C;
	--jtk-muted: #6B665E;
	--jtk-faint: #9A9488;
	--jtk-desc: #4F4A42;
	--jtk-line: #E4DFD6;
	--jtk-border: #E7E3DC;
	--jtk-field: #D9D4CB;
	--jtk-err: #B3261E;
	font-family: inherit;
	color: var(--jtk-ink);
	box-sizing: border-box;
}
.jtk *, .jtk-ty * { box-sizing: border-box; }

.jtk {
	background: var(--jtk-bg);
	padding: 48px 24px 64px;
	margin: 0 calc(50% - 50vw);
	width: 100vw;
}
.jtk > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* Antraštė */
.jtk__head { margin-bottom: 32px; }
.jtk__kicker, .jtk-ty__kicker {
	font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--jtk-muted); margin-bottom: 10px;
}
.jtk h1.jtk__title {
	font-size: 46px; font-weight: 400; letter-spacing: .01em; line-height: 1.1; margin: 0 0 12px; color: var(--jtk-ink); text-transform: none;
}
.jtk__sub { font-size: 19px; line-height: 1.45; color: var(--jtk-desc); margin: 0; }
@media (min-width: 1000px) { .jtk__sub { white-space: nowrap; } }

/* Išdėstymas */
.jtk__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-bottom: 28px; }
.jtk-card { background: var(--jtk-card); border-radius: 8px; padding: 26px; }
.jtk-sum { position: sticky; top: 100px; }

.jtk-sec + .jtk-sec { border-top: 1px solid var(--jtk-line); margin-top: 24px; padding-top: 24px; }
.jtk-sec__h { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }

/* Sumos chip'ai */
.jtk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.jtk .jtk-chip {
	height: 44px; min-height: 0; margin: 0; padding: 0 12px; border: 1px solid var(--jtk-field); border-radius: 99px; background: #fff;
	color: var(--jtk-ink); font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s; box-shadow: none;
}
.jtk .jtk-chip:hover { border-color: var(--jtk-dark); }
.jtk .jtk-chip.is-on { background: var(--jtk-dark); border-color: var(--jtk-dark); color: #fff; }
.jtk .jtk-chip:focus-visible { outline: 2px solid var(--jtk-dark); outline-offset: 2px; }

/* Rekomenduojamos sumos */
.jtk-rec { margin-top: 16px; background: var(--jtk-bg); border-radius: 6px; padding: 14px 16px; }
.jtk-rec summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; position: relative; padding-right: 28px; }
.jtk-rec summary::-webkit-details-marker { display: none; }
.jtk-rec summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s; }
.jtk-rec[open] summary::after { transform: rotate(180deg); }
.jtk-rec summary span { display: block; font-weight: 400; font-size: 14px; color: var(--jtk-muted); margin-top: 2px; }
.jtk-rec__t { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: 15px; }
.jtk-rec__t th, .jtk-rec__t td { padding: 8px 6px; border-bottom: 1px solid var(--jtk-line); text-align: left; vertical-align: top; color: var(--jtk-ink); }
.jtk-rec__t th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--jtk-muted); font-weight: 700; }
.jtk-rec__t small { font-size: 13px; color: var(--jtk-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.jtk-rec__n { font-size: 14px; color: var(--jtk-muted); margin: 6px 0 0; line-height: 1.4; }

/* Laukai */
.jtk-f { display: block; margin: 0 0 16px; }
.jtk-f:last-child { margin-bottom: 0; }
.jtk-f__l { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.jtk-f__l i { font-style: normal; color: var(--jtk-err); }
.jtk-f__l em { font-style: normal; font-weight: 400; color: var(--jtk-muted); }
.jtk .jtk-f input[type=text], .jtk .jtk-f input[type=number] {
	display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--jtk-field); border-radius: 8px;
	background: #fff; font: inherit; font-size: 15px; color: var(--jtk-ink); box-shadow: none;
}
.jtk .jtk-f select {
	display: block; width: 100%; max-width: 320px; height: 46px; margin: 0; padding: 0 44px 0 14px; border: 1px solid var(--jtk-field); border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/16px no-repeat;
	font: inherit; font-size: 16px; font-weight: 700; color: var(--jtk-ink); box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.jtk .jtk-f select:focus { border-color: var(--jtk-dark); outline: none; box-shadow: 0 0 0 1px var(--jtk-dark); }
.jtk .jtk-f[hidden], .jtk .jtk-f__note[hidden] { display: none !important; }
.jtk-money { position: relative; display: block; max-width: 320px; }
.jtk .jtk-money input[type=number] { padding-right: 40px; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.jtk .jtk-money input::-webkit-outer-spin-button, .jtk .jtk-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jtk-money > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--jtk-muted); pointer-events: none; }
.jtk-f__note { display: block; font-size: 13px; color: var(--jtk-desc); margin-top: 4px; }
.jtk .jtk-f input[type=number]:focus, .jtk .jtk-f input[type=text]:focus { border-color: var(--jtk-dark); outline: none; box-shadow: 0 0 0 1px var(--jtk-dark); }
.jtk .jtk-f.is-err input[type=text] { border-color: var(--jtk-err); }
.jtk-f__h { display: block; font-size: 13px; color: var(--jtk-muted); margin-top: 6px; }
.jtk-f.is-err .jtk-f__h { color: var(--jtk-err); }

/* Pristatymo pasirinkimai */
.jtk-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--jtk-field); border-radius: 8px; margin: 0 0 10px; }
.jtk-opt:last-child { margin-bottom: 0; }
.jtk-opt__t { flex: 1; }
.jtk-opt strong { display: block; font-size: 16px; }
.jtk-opt small { display: block; font-size: 14px; color: var(--jtk-muted); margin-top: 2px; line-height: 1.35; }
.jtk-opt__i { display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--jtk-bg); color: var(--jtk-dark); }
.jtk-opt--on { border-color: var(--jtk-dark); }
.jtk-opt--check { cursor: pointer; position: relative; }
.jtk-opt--check input { position: absolute; opacity: 0; pointer-events: none; }
.jtk-opt--check::before {
	content: ""; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--jtk-field); border-radius: 6px; background: #fff; order: 0;
}
.jtk-opt--check.jtk-opt--on::before {
	background: var(--jtk-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
	border-color: var(--jtk-dark);
}
.jtk-thumb { flex: 0 0 64px; width: 64px; height: 72px; border-radius: 4px; background-color: #fff; background-repeat: no-repeat; border: 1px solid var(--jtk-border); }
.jtk-thumb--pdf { background-size: 194% auto; background-position: 4% 45%; }
.jtk-thumb--env { background-size: 258% auto; background-position: 88% 42%; }
.jtk-opt--check { flex-wrap: wrap; }
.jtk-opt__big { display: none; flex: 0 0 100%; padding: 14px 0 0 36px; }
.jtk-opt--check.jtk-opt--on .jtk-opt__big { display: block; }
.jtk-env { display: block; width: 100%; max-width: 280px; aspect-ratio: 1074 / 1194; border-radius: 6px; background-color: #fff; background-repeat: no-repeat; background-size: 230% auto; background-position: 90% 30%; border: 1px solid var(--jtk-border); }
.jtk-opt__big small { margin-top: 8px; }
.jtk-opt--check:focus-within { outline: 2px solid var(--jtk-dark); outline-offset: 2px; }
.jtk-opt__p { font-weight: 700; white-space: nowrap; }
.jtk-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

/* Suvestinė */
.jtk-prev { position: relative; container-type: inline-size; border: 1px solid var(--jtk-border); border-radius: 6px; overflow: hidden; margin-bottom: 20px; background: #fff; }
.jtk-prev img { display: block; width: 100%; height: auto; margin: 0; }
.jtk-prev span { position: absolute; font-family: Arial, "Liberation Sans", sans-serif; font-size: 2.35cqw; line-height: 1; color: #141414; text-align: center; white-space: nowrap; overflow: hidden; transform: translateY(-88%); }
.jtk-prev__msg { left: 12.4%; width: 75.1%; top: 80.2%; }
.jtk-prev__rec { left: 29.7%; width: 20%; top: 86.7%; }
.jtk-prev__sum { left: 59.6%; width: 27.9%; top: 87%; }

.jtk-sum__rows { border-top: 1px solid var(--jtk-line); padding-top: 14px; }
.jtk-sum__r { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 10px; }
.jtk-sum__r[hidden] { display: none; }
.jtk-sum__tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--jtk-line); padding-top: 14px; margin: 4px 0 18px; }
.jtk-sum__tot span { font-size: 15px; font-weight: 700; }
.jtk-sum__tot strong { font-size: 26px; font-weight: 900; }
.jtk-sum__fine { font-size: 13px; color: var(--jtk-muted); margin: 12px 0 0; line-height: 1.4; text-align: center; }
.jtk-terms { margin-top: 20px; background: var(--jtk-bg); border-left: 3px solid var(--jtk-dark); border-radius: 6px; padding: 16px 18px; }
.jtk-terms__h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.jtk-terms ul { list-style: none; margin: 0; padding: 0; }
.jtk-terms li { position: relative; margin: 0 0 8px; padding-left: 24px; font-size: 15px; line-height: 1.4; color: var(--jtk-ink); }
.jtk-terms li:last-child { margin-bottom: 0; }
.jtk-terms li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--jtk-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat; }
.jtk-terms strong { font-weight: 700; }

.jtk .jtk-btn, .jtk-ty .jtk-btn {
	display: inline-flex; align-items: center; justify-content: center; margin: 0; min-height: 0;
	background: var(--jtk-dark); color: #fff; border: 0; border-radius: 99px; padding: 15px 24px;
	font: inherit; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2;
	text-decoration: none; cursor: pointer; box-shadow: none;
}
.jtk .jtk-btn:hover, .jtk-ty .jtk-btn:hover { background: #000; color: #fff; }
.jtk .jtk-btn--full { width: 100%; }

/* Informacija */
.jtk-info { display: block; }
.jtk-jac { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 8px; padding: 18px; }
.jtk-jac strong { flex: 1; font-size: 16px; }
.jtk-jac .jtk-opt__i { background: var(--jtk-bg); }
.jtk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.jtk-steps li { counter-increment: s; margin: 0; font-size: 15px; line-height: 1.4; color: var(--jtk-desc); }
.jtk-steps li::before { content: counter(s); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--jtk-dark); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 8px; }
.jtk-steps strong { display: block; color: var(--jtk-ink); font-size: 16px; margin-bottom: 4px; }

/* Padėkos puslapis */
.jtk-ty { background: var(--jtk-bg); border-radius: 8px; padding: 24px 26px; margin: 0 0 28px; }
.jtk-ty__title { font-size: 26px; font-weight: 400; letter-spacing: .02em; line-height: 1.15; margin: 0 0 8px; }
.jtk-ty__lead { font-size: 15px; color: var(--jtk-muted); margin: 0 0 16px; }
.jtk-ty__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 10px; }
.jtk-ty__code { font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.jtk-ty__lbl { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--jtk-muted); }
.jtk-ty__meta { font-size: 15px; color: var(--jtk-muted); margin-top: 2px; }
.jtk-ty__note { font-size: 15px; color: var(--jtk-muted); margin: 10px 0 0; }

@media (max-width: 849px) {
	.jtk { padding: 32px 24px 48px; }
	.jtk__sub { font-size: 17px; }
	.jtk .jtk-f select { max-width: none; }
	.jtk h1.jtk__title { font-size: min(calc((100vw - 48px) / 9.2), 44px); }
	.jtk__grid, .jtk-info { grid-template-columns: 1fr; }
	.jtk-sum { position: static; }
	.jtk-steps { grid-template-columns: 1fr; }
	.jtk-opt__big { padding-left: 0; }
	.jtk-ty__row { flex-direction: column; align-items: stretch; }
	.jtk-ty .jtk-btn { width: 100%; }
}
@media (max-width: 480px) {
	.jtk h1.jtk__title { font-size: min(calc((100vw - 32px) / 9.2), 44px); }
	.jtk { padding-left: 16px; padding-right: 16px; }
	.jtk-card { padding: 20px; }
	.jtk-chips { grid-template-columns: repeat(3, 1fr); }
}
