/**
 * Секция переводов за границу на главной: конструктор заявки.
 *
 * Вёрстка реагирует на ширину самой секции (container queries), а не окна:
 * блок одинаково собирается и на главной, и в любом другом месте страницы.
 * Цвет направления ведёт карточку: свечение, значок, стрелку, кнопку и строку слева.
 */

.op-more {
	container-type: inline-size;
}

.op-tr {
	--c: #ea580c;
	--c-accent: #ea580c;
	--c-iban: #3b82f6;
	--c-card: #8b5cf6;
	--c-paypal: #06b6d4;
	--c-usdt: #16c47f;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
	align-items: center;
	gap: 50px;
}

.op-tr__copy { min-width: 0; }
.op-more .op-tr h2 { margin: 0 0 14px; font-family: var(--ui-h-font); font-size: 40px; font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; color: var(--ui-ink); }
.op-tr__lead { max-width: 440px; margin: 0 0 26px; color: var(--ui-text); font-size: 16.5px; line-height: 1.55; }

/* Направления строками: подсветка идёт синхронно с карточкой */
.op-tr__uses { display: grid; margin: 0 0 24px; }
.op-tr__use { display: grid; grid-template-columns: 124px 1fr; align-items: baseline; gap: 18px; padding: 13px 0; border-top: 1px solid var(--ui-line); }
.op-tr__use:last-child { border-bottom: 1px solid var(--ui-line); }
.op-tr__use b { display: flex; align-items: center; font-family: var(--ui-h-font); font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ui-ink); transition: color .25s ease; }
.op-tr__use.is-on b { color: var(--c); }
.op-tr__use span { color: var(--ui-text); font-size: 15px; }
.op-tr__use i { flex: none; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #cbd5e1; transition: background .25s ease, box-shadow .25s ease; }
.op-tr__use.is-on i { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }

.op-tr__fine { display: flex; align-items: flex-start; gap: 9px; max-width: 430px; margin: 0; color: var(--ui-muted); font-size: 13.5px; line-height: 1.5; }
.op-tr__fine svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: #94a3b8; }

/* Карточка */
.op-tr__pay {
	position: relative; padding: 26px; border-radius: 28px; overflow: hidden; color: #fff;
	background: linear-gradient(176deg, #2a1206 0%, #170c05 48%, #0d0704 100%);
	box-shadow: 0 34px 70px -40px rgba(10, 6, 3, .95);
}
.op-tr__pay::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .9; transition: background .35s ease;
	background:
		radial-gradient(620px 300px at 50% -16%, rgba(234, 88, 12, .62), transparent 74%),
		radial-gradient(420px 260px at 92% 4%, rgba(249, 115, 22, .3), transparent 70%);
}
.op-tr__pay > * { position: relative; }

.op-tr__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.op-tr__top b { font-family: var(--ui-h-font); font-size: 16.5px; font-weight: 700; }
.op-tr__rate { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; white-space: nowrap; }
.op-tr__rate i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-usdt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-usdt) 28%, transparent); }

.op-tr__dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.op-tr__dir {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 13px 4px 11px;
	border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .05);
	color: rgba(255, 240, 230, .82); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
	transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.op-tr__dir em { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: rgba(255, 238, 228, .72); transition: .2s; }
.op-tr__dir em svg { width: 18px; height: 18px; }
.op-tr__dir:hover,
.op-tr__dir:focus-visible { transform: translateY(-2px); color: #fff; border-color: rgba(234, 88, 12, .55); background: rgba(234, 88, 12, .12); }
.op-tr__dir:hover em { background: rgba(234, 88, 12, .22); color: #fdba74; }
.op-tr__dir[aria-pressed="true"] { border-color: rgba(234, 88, 12, .9); background: rgba(234, 88, 12, .16); color: #fff; }
.op-tr__dir[aria-pressed="true"] em { background: #ea580c; color: #fff; box-shadow: 0 10px 22px -10px rgba(234, 88, 12, .8); }
.op-tr__dir[aria-pressed="true"]:hover { background: rgba(234, 88, 12, .24); }
.op-tr__cur button:hover,
.op-tr__cur button:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.op-tr__cur button[aria-pressed="true"]:hover,
.op-tr__cur button[aria-pressed="true"]:focus-visible { background: #f2690f; color: #fff; }
.op-tr__quick button:focus-visible { border-color: rgba(234, 88, 12, .8); background: rgba(234, 88, 12, .18); color: #fff; }

/* Обмен: две равные половины, стрелка на линии раздела. Подписи постоянные,
   поэтому высота блока не меняется и карточка не дёргается при переключении. */
.op-tr__swap { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.op-tr__half { padding: 18px 20px; min-width: 0; }
.op-tr__half + .op-tr__half { border-left: 1px solid rgba(255, 255, 255, .09); padding-left: 32px; }
.op-tr__half small { display: block; margin-bottom: 9px; color: rgba(255, 245, 238, .82); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.op-tr__val { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-family: var(--ui-h-font); font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.op-tr__val u { flex: none; color: rgba(255, 240, 230, .8); font-size: 19px; font-weight: 700; text-decoration: none; }
.op-tr__val input { width: 100%; min-width: 0; padding: 0 0 4px; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .16); outline: 0; background: transparent; color: #fff; font: inherit; transition: border-color .2s; }
.op-tr__val input:focus,
.op-tr__val input:focus-visible,
.op-tr__val input:-webkit-autofill,
.op-tr__val input:-webkit-autofill:focus {
	outline: 0; background: transparent;
	/* Astra вешает на input:focus свою рамку и фон, поэтому гасим их тут целиком. */
	border: 0; border-bottom: 2px solid rgba(234, 88, 12, .9);
	box-shadow: none; -webkit-box-shadow: 0 0 0 1000px transparent inset;
	color: #fff; -webkit-text-fill-color: #fff;
	transition: border-color .2s, background-color 9999s ease-in-out 0s;
}
.op-tr__val input::selection { background: rgba(234, 88, 12, .45); color: #fff; }
.op-tr__arrow {
	position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34px; height: 34px;
	margin: -17px 0 0 -17px; border-radius: 50%; background: #ea580c; color: #fff;
	box-shadow: 0 8px 20px -6px rgba(234, 88, 12, .75);
}
.op-tr__arrow svg { width: 16px; height: 16px; stroke-width: 2.6; }

.op-tr__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 18px; }
.op-tr__cur { display: grid; grid-auto-flow: column; gap: 3px; min-width: 124px; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .09); }
.op-tr__cur button { min-width: 56px; padding: 8px 0; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 240, 230, .85); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: .18s; }
.op-tr__cur button[aria-pressed="true"] { background: #ea580c; color: #fff; }
.op-tr__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.op-tr__quick button { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: transparent; color: rgba(255, 240, 230, .85); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .18s; }
.op-tr__quick button:hover { border-color: rgba(234, 88, 12, .8); color: #fff; background: rgba(234, 88, 12, .18); }

.op-more a.op-tr__btn {
	display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 16px 20px;
	border: 0; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer;
	background: #ea580c;
	box-shadow: 0 16px 30px -16px rgba(234, 88, 12, .85);
	transition: transform .18s ease, box-shadow .25s ease;
}
.op-more a.op-tr__btn:hover { transform: translateY(-2px); background: #f2690f; box-shadow: 0 22px 38px -16px rgba(234, 88, 12, .95); }
.op-tr__btn svg { width: 16px; height: 16px; }
.op-tr__micro { margin: 11px 0 0; text-align: center; color: rgba(255, 238, 228, .72); font-size: 11.5px; }

.op-tr svg.op-tr__ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@container (max-width: 1040px) {
	.op-tr { grid-template-columns: 1fr; gap: 30px; }
	.op-more .op-tr h2 { font-size: 34px; }
}

/* Телефон: карточка сразу после заголовка, пояснения уходят под неё.
   Это отдельный порядок чтения, а не схлопнутый компьютер. */
@container (max-width: 760px) {
	.op-tr { display: flex; flex-direction: column; gap: 20px; }
	.op-tr__copy { display: contents; }
	.op-tr__head { order: 1; }
	.op-tr__pay { order: 2; }
	.op-tr__foot { order: 3; }
	.op-more .op-tr h2 { font-size: 27px; line-height: 1.12; }
	.op-tr__lead { margin-bottom: 0; font-size: 15.5px; }
	.op-tr__uses { margin-bottom: 16px; }
	.op-tr__use { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
	.op-tr__use b { font-size: 15px; }
	.op-tr__use span { font-size: 14px; color: var(--ui-muted); }
	.op-tr__fine { max-width: none; font-size: 13px; }

	.op-tr__pay { padding: 18px 16px; border-radius: 24px; }
	.op-tr__top { margin-bottom: 14px; }
	.op-tr__top b { font-size: 15.5px; }
	.op-tr__rate { padding: 5px 10px; font-size: 11.5px; }

	.op-tr__dirs { gap: 6px; margin-bottom: 14px; }
	.op-tr__dir { gap: 6px; padding: 10px 2px 9px; border-radius: 14px; font-size: 10.5px; }
	.op-tr__dir em { width: 30px; height: 30px; border-radius: 10px; }
	.op-tr__dir em svg { width: 16px; height: 16px; }

	.op-tr__swap { grid-template-columns: 1fr; }
	.op-tr__half { padding: 15px 16px; }
	.op-tr__half + .op-tr__half { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .09); padding-left: 16px; }
	.op-tr__half small { margin-bottom: 7px; }
	.op-tr__val { font-size: 27px; }
	.op-tr__val u { font-size: 17px; }
	.op-tr__arrow { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
	.op-tr__arrow svg { transform: rotate(90deg); }

	.op-tr__row { display: grid; gap: 8px; margin: 14px 0 16px; }
	.op-tr__cur { grid-auto-flow: column; width: 100%; }
	.op-tr__cur button { min-width: 0; padding: 11px 0; font-size: 13px; }
	.op-tr__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-left: 0; }
	.op-tr__quick button { padding: 10px 0; text-align: center; }

	.op-more a.op-tr__btn { padding: 17px 20px; font-size: 15.5px; }
}
