/* kryolan.ru — окно входа и регистрации (kr_auth.js, 17.11.2026). Все ширины: ≤767 — шторка снизу, шире — окно 440 px по центру. */
.kr-auth { --a-navy: #002d62; --a-ink: #000623; --a-red: #cf0000; --a-bg: #f2f4f8; --a-line: #e3e7ee; --a-mute: #6b7487; --kr-kb: 0px;
	position: fixed; inset: 0; z-index: 100050; font: 15px/1.4 "roboto-example", Roboto, Arial, sans-serif; color: var(--a-ink); -webkit-tap-highlight-color: transparent; }
html.kr-auth-open, html.kr-auth-open body { overflow: hidden; }
html.kr-auth-open jdiv, html.kr-auth-open #pd-cookie, html.kr-auth-open .kr-pbar { display: none !important; }
.kr-auth *, .kr-auth *::before, .kr-auth *::after { box-sizing: border-box; }
.kr-auth__bg { position: absolute; inset: 0; background: rgba(0, 6, 35, .55); opacity: 0; transition: opacity .25s; }
.kr-auth.is-in .kr-auth__bg { opacity: 1; }
.kr-auth__p { position: absolute; left: 50%; top: 50%; width: 440px; max-width: calc(100% - 32px); max-height: calc(100% - 48px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 20, 60, .28); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.kr-auth.is-in .kr-auth__p { transform: translate(-50%, -50%); opacity: 1; }
.kr-auth__grip { display: none; }
.kr-auth__in { padding: 8px 28px 26px; }
.kr-auth__head { display: flex; align-items: center; gap: 4px; min-height: 52px; margin: 0 -14px 6px -6px; }
.kr-auth__title { flex: 1 1 auto; font-size: 22px; font-weight: 700; letter-spacing: -.01em; padding-left: 6px; }
.kr-auth__x, .kr-auth__back { flex: 0 0 44px; width: 44px; height: 44px; border: 0; padding: 0; background: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--a-ink); cursor: pointer; }
.kr-auth__x:hover, .kr-auth__back:hover { background: var(--a-bg); }
.kr-auth__back + .kr-auth__title { padding-left: 0; }

/* вкладки */
.kr-auth__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--a-bg); border-radius: 14px; }
.kr-auth__seg button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border: 0; border-radius: 11px; background: none; color: var(--a-mute); font: 500 15px "roboto-example", Roboto, Arial, sans-serif; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.kr-auth__seg button.is-on { background: #fff; color: var(--a-navy); box-shadow: 0 1px 3px rgba(0, 20, 60, .12); font-weight: 700; }

/* поля */
.kr-auth__f { display: flex; flex-direction: column; }
.kr-auth__lbl { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--a-mute); }
.kr-auth__lbl ~ .kr-auth__lbl { margin-top: 14px; }
.kr-auth__inp { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1.5px solid var(--a-line); border-radius: 14px; background: #fff;
	color: var(--a-ink); font: 17px "roboto-example", Roboto, Arial, sans-serif; outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.kr-auth__inp:focus { border-color: var(--a-navy); box-shadow: 0 0 0 3px rgba(0, 45, 98, .12); }
.kr-auth__inp::placeholder { color: #a6aebd; }
.kr-auth__tel { position: relative; }
.kr-auth__tel span { position: absolute; left: 16px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 17px; font-weight: 500; color: var(--a-ink); pointer-events: none; }
.kr-auth__tel .kr-auth__inp { padding-left: 46px; letter-spacing: .02em; }
.kr-auth__pw { position: relative; }
.kr-auth__pw .kr-auth__inp { padding-right: 52px; }
.kr-auth__pw button { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; color: var(--a-mute); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kr-auth__pw button.is-on { color: var(--a-navy); }
.kr-auth__code { height: 64px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .5em; padding: 0 0 0 .5em; font-variant-numeric: tabular-nums; }
.kr-auth__code::placeholder { letter-spacing: .5em; color: #c9cfda; }
.kr-auth__hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.kr-auth__cap { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.kr-auth__cap img { flex: 0 0 auto; width: 150px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--a-bg); border: 1.5px solid var(--a-line); }
.kr-auth__cap .kr-auth__inp { flex: 1 1 auto; min-width: 0; }

.kr-auth__err { display: none; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff1f1; color: #b00010; font-size: 14px; line-height: 1.35; }
.kr-auth__err.is-on { display: block; }

.kr-auth__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; margin: 18px 0 0; border: 0; border-radius: 14px; background: var(--a-navy); color: #fff;
	font: 700 16px "roboto-example", Roboto, Arial, sans-serif; letter-spacing: .01em; cursor: pointer; box-shadow: 0 8px 18px rgba(0, 45, 98, .22); transition: background .15s, transform .1s; }
.kr-auth__btn:hover { background: #003a7e; }
.kr-auth__btn:active { transform: scale(.99); }
.kr-auth__btn:disabled { opacity: .75; cursor: default; }
.kr-auth__btn.is-busy { color: transparent; position: relative; }
.kr-auth__btn.is-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: krAuthSpin .7s linear infinite; }
@keyframes krAuthSpin { to { transform: rotate(360deg); } }

.kr-auth__note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--a-bg); color: #3a4356; font-size: 13.5px; line-height: 1.4; }
.kr-auth__note svg { flex: 0 0 auto; margin-top: 1px; color: var(--a-navy); }
.kr-auth__hint { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.4; color: var(--a-mute); }
.kr-auth__legal { margin: 12px 2px 0; font-size: 12px; line-height: 1.4; color: var(--a-mute); }
.kr-auth__legal a, .kr-auth__alt a, .kr-auth__row a { color: var(--a-navy); text-decoration: underline; text-underline-offset: 2px; }
.kr-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; }
.kr-auth__row a { text-decoration: none; font-weight: 500; }
.kr-auth__chk { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.kr-auth__chk input { position: absolute; opacity: 0; pointer-events: none; }
.kr-auth__chk i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #b9c1cf; background: #fff; display: inline-block; position: relative; }
.kr-auth__chk input:checked + i { background: var(--a-navy); border-color: var(--a-navy); }
.kr-auth__chk input:checked + i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kr-auth__alt { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--a-line); text-align: center; font-size: 15px; color: var(--a-mute); }
.kr-auth__alt a { color: var(--a-navy) !important; font-weight: 700; text-decoration: none !important; }
.kr-auth__alt button { border: 0; padding: 0; background: none; color: var(--a-navy); font: inherit; font-weight: 700; cursor: pointer; }

.kr-auth__lead { margin: 0 0 16px; font-size: 15px; color: #3a4356; }
.kr-auth__lead b { color: var(--a-ink); white-space: nowrap; }
.kr-auth__test { display: block; width: 100%; margin: 0 0 14px; padding: 10px 12px; border: 1.5px dashed #e0a800; border-radius: 12px; background: #fff8e1; color: #6b5200; font: 13.5px/1.35 "roboto-example", Roboto, Arial, sans-serif; text-align: left; cursor: pointer; }
.kr-auth__resend { margin-top: 14px; text-align: center; font-size: 14px; color: var(--a-mute); min-height: 20px; }
.kr-auth__resend button { border: 0; padding: 0; background: none; color: var(--a-navy); font: inherit; font-weight: 700; cursor: pointer; }
.kr-auth__done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 18px; color: var(--a-navy); }
.kr-auth__done b { margin-top: 12px; font-size: 22px; color: var(--a-ink); }
.kr-auth__done span { margin-top: 4px; color: var(--a-mute); }


/* поля сайта (main.css: input[type=text|tel|password]) перебивают высоту и отступы — закрепляем */
html body .kr-auth input.kr-auth__inp[name] { height: 52px !important; min-height: 0 !important; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: normal !important;
	font-size: 17px !important; border: 1.5px solid var(--a-line) !important; border-radius: 14px !important; background: #fff !important; width: 100% !important; max-width: none !important; float: none !important; }
html body .kr-auth input.kr-auth__inp[name]:focus { border-color: var(--a-navy) !important; box-shadow: 0 0 0 3px rgba(0, 45, 98, .12) !important; }
html body .kr-auth .kr-auth__tel input.kr-auth__inp[name] { padding-left: 46px !important; padding-right: 16px !important; }
html body .kr-auth .kr-auth__pw input.kr-auth__inp[name] { padding-left: 16px !important; padding-right: 52px !important; }
html body .kr-auth input.kr-auth__inp.kr-auth__code[name] { height: 64px !important; font-size: 30px !important; padding: 0 0 0 .5em !important; }
html body .kr-auth .kr-auth__cap input.kr-auth__inp[name] { padding-left: 14px !important; padding-right: 14px !important; }

/* телефон: шторка снизу, над клавиатурой */
@media (max-width: 767px) {
	.kr-auth__p { left: 0; right: 0; top: auto; bottom: var(--kr-kb); width: auto; max-width: none; max-height: calc(100% - var(--kr-kb) - 24px); border-radius: 24px 24px 0 0;
		padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); opacity: 1; box-shadow: 0 -8px 30px rgba(0, 20, 60, .18); transition: transform .26s cubic-bezier(.2,.8,.2,1), bottom .15s; }
	.kr-auth.is-in .kr-auth__p { transform: none; }
	.kr-auth__grip { display: flex; justify-content: center; padding-top: 8px; }
	.kr-auth__grip span { width: 40px; height: 4px; border-radius: 2px; background: #d5dae3; }
	.kr-auth__in { padding: 0 18px 20px; }
	.kr-auth__head { margin: 0 -6px 4px -6px; }
	.kr-auth__title { font-size: 20px; }
	.kr-auth__seg button { font-size: 14.5px; }
}
@media (max-width: 359px) {
	.kr-auth__seg button svg { display: none; }
	.kr-auth__cap img { width: 120px; }
}

/* ---------- страницы /auth/ (вход, регистрация, забыли/смена пароля) на телефоне ≤767 — карточка вместо старых форм (kr_auth.js pageMount, 17.11.2026) ---------- */
.kr-ap { display: none; }
.kr-fp-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fff1f1; color: #b00010; }
.kr-fp-msg.is-ok { background: #eef7f0; color: #1b6b34; }
@media (max-width: 767px) {
	html.kr-ap-on .checkout { display: none !important; }
	.kr-ap { display: block; margin: 6px 0 30px; }
	.kr-auth.kr-auth--page { position: static; inset: auto; z-index: auto; }
	.kr-auth--page .kr-auth__in { padding: 6px 18px 22px; background: #fff; border: 1px solid var(--a-line); border-radius: 22px; box-shadow: 0 8px 28px rgba(0, 20, 60, .07); }
	.kr-auth--page .kr-auth__head { margin: 0 -6px 6px -6px; min-height: 56px; }
	html body .kr-auth--page h1.kr-auth__title { margin: 0; padding: 0 0 0 6px; font: 700 22px/1.2 "roboto-example", Roboto, Arial, sans-serif; letter-spacing: -.01em; color: var(--a-ink); text-transform: none; text-align: left; border: 0; }
	html body .kr-auth--page .kr-auth__back + h1.kr-auth__title { padding-left: 0; }
	.kr-auth--page a.kr-auth__back { color: var(--a-ink); text-decoration: none; }
	.kr-ap-msg { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff1f1; color: #b00010; font-size: 14.5px; line-height: 1.4; }
	.kr-ap-msg.is-ok { background: #eaf6ee; color: #17602f; }

	/* прежние формы (main.register, forgotpasswd, changepasswd) внутри карточки */
	html body .kr-ap .kr-ap-slot form { display: flex; flex-direction: column; margin: 0; padding: 0; float: none; width: auto; }
	html body .kr-ap .kr-ap-slot .columns-form { display: flex; flex-direction: column; gap: 16px; margin: 0 !important; padding: 0 !important; float: none; width: auto; }
	html body .kr-ap .kr-ap-slot .columns-form::before, html body .kr-ap .kr-ap-slot .columns-form::after { display: none; }
	html body .kr-ap .kr-ap-slot .input-group, html body .kr-ap .kr-ap-slot .bx-authform-formgroup-container { position: relative; display: block; width: auto; max-width: none; margin: 0 !important; padding: 0 !important; float: none; border: 0; }
	html body .kr-ap .kr-ap-slot .input-group-wrap, html body .kr-ap .kr-ap-slot .input-group .text, html body .kr-ap .kr-ap-slot .bx-authform-input-container { position: relative; display: block; width: auto; margin: 0; padding: 0; float: none; }
	html body .kr-ap .kr-ap-slot label, html body .kr-ap .kr-ap-slot .bx-authform-label-container { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; font: 500 13px/1.3 "roboto-example", Roboto, Arial, sans-serif; color: var(--a-mute); text-transform: none; letter-spacing: 0; text-align: left; }
	html body .kr-ap .kr-ap-slot label .red { color: var(--a-red); margin-left: 2px; }
	html body .kr-ap .kr-ap-slot input[type=text], html body .kr-ap .kr-ap-slot input[type=password], html body .kr-ap .kr-ap-slot input[type=email], html body .kr-ap .kr-ap-slot input[type=tel] {
		-webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100% !important; max-width: none !important; height: 52px !important; min-height: 0 !important; margin: 0 !important;
		padding: 0 16px !important; float: none !important; border: 1.5px solid var(--a-line) !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important;
		color: var(--a-ink) !important; font: 17px/normal "roboto-example", Roboto, Arial, sans-serif !important; outline: none; transition: border-color .15s, box-shadow .15s; }
	html body .kr-ap .kr-ap-slot input[type=text]:focus, html body .kr-ap .kr-ap-slot input[type=password]:focus { border-color: var(--a-navy) !important; box-shadow: 0 0 0 3px rgba(0, 45, 98, .12) !important; }
	html body .kr-ap .kr-ap-slot input::placeholder { color: #a6aebd; }
	html body .kr-ap .kr-ap-slot .input-group.error input { border-color: #d0021b !important; background: #fff8f8 !important; }
	html body .kr-ap .kr-ap-slot .input-ok, html body .kr-ap .kr-ap-slot .input-error { display: none !important; }
	html body .kr-ap .kr-ap-slot .kr-ap-pw input { padding-right: 52px !important; }
	.kr-ap-eye { display: none; }
	html body .kr-ap .kr-ap-eye { position: absolute; right: 4px; top: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; padding: 0; background: none; border-radius: 10px; color: var(--a-mute); cursor: pointer; }
	html body .kr-ap .kr-ap-eye.is-on { color: var(--a-navy); }
	/* ошибки сервера */
	html body .kr-ap .kr-ap-slot .error_red { order: -1; margin: 0 0 14px; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff1f1; color: #b00010; font-size: 14px; line-height: 1.4; }
	html body .kr-ap .kr-ap-slot .error_red * { color: inherit; font: inherit; margin: 0; }
	html body .kr-ap .kr-ap-slot > form > p { order: -1; margin: 0 0 14px; font-size: 14px; color: var(--a-mute); }
	/* капча */
	html body .kr-ap .kr-ap-slot .row.code, html body .kr-ap .kr-ap-slot .bx-authform-formgroup-container { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin: 14px 0 0; padding: 0; }
	html body .kr-ap .kr-ap-slot .row.code > label, html body .kr-ap .kr-ap-slot .bx-authform-label-container { grid-column: 1 / -1; margin: 0; }
	html body .kr-ap .kr-ap-slot .catcha-box, html body .kr-ap .kr-ap-slot .captcha, html body .kr-ap .kr-ap-slot .bx-captcha, html body .kr-ap .kr-ap-slot .row.code .text { float: none; width: auto; margin: 0; padding: 0; }
	html body .kr-ap .kr-ap-slot .row.code img, html body .kr-ap .kr-ap-slot .bx-captcha img { display: block; width: 150px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--a-bg); border: 1.5px solid var(--a-line); }
	/* кнопка и согласие */
	html body .kr-ap .kr-ap-slot .link-box { display: block; float: none; width: auto; margin: 20px 0 0 !important; padding: 0 !important; }
	html body .kr-ap .kr-ap-slot .link-box > span { display: block; float: none; width: auto; margin: 0; }
	html body .kr-ap .kr-ap-slot input[type=submit] { -webkit-appearance: none; appearance: none; display: block; width: 100% !important; height: 54px !important; margin: 0 !important; padding: 0 !important; float: none !important;
		border: 0 !important; border-radius: 14px !important; background: var(--a-navy) !important; color: #fff !important; font: 700 16px "roboto-example", Roboto, Arial, sans-serif !important; letter-spacing: .01em !important;
		text-transform: none !important; cursor: pointer; box-shadow: 0 8px 18px rgba(0, 45, 98, .22) !important; }
	html body .kr-ap .kr-ap-slot input[type=submit]:active { transform: scale(.99); }
	html body .kr-ap .kr-ap-slot .grey-text { display: block; margin: 12px 2px 0; font-size: 12px; line-height: 1.45; color: var(--a-mute); }
	html body .kr-ap .kr-ap-slot .grey-text a { color: var(--a-navy); text-decoration: underline; text-underline-offset: 2px; }
	/* смена пароля: ссылка «Авторизация» дублирует «Войти» внизу карточки; требования к паролю — подписью */
	html body .kr-ap .kr-ap-slot noindex, html body .kr-ap .kr-ap-slot form > br { display: none; }
	html body .kr-ap .kr-ap-slot .bx-authform-description-container { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.4; color: var(--a-mute); }
	html body .kr-ap .kr-ap-slot .bx-authform-description-container:empty { display: none; }
	/* забыли пароль: вход по SMS */
	.kr-ap-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--a-mute); font-size: 13px; }
	.kr-ap-or::before, .kr-ap-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--a-line); }
	html body .kr-ap .kr-ap-sms { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin: 0; padding: 0 12px; border: 1.5px solid var(--a-navy); border-radius: 14px; background: #fff;
		color: var(--a-navy); font: 700 15px "roboto-example", Roboto, Arial, sans-serif; cursor: pointer; }
}
