/* Тема cyprus2026: страницы в новом дизайне (информационные, блог, кабинет). Подключается вместе с c26.css */

/* ---------- Верх страницы: крошки и шапка с фото (как у категории) ---------- */
.ipage { padding-top: 10px; }
.itop { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--ink); transition: color .2s; }
.crumbs a:hover { color: var(--teal); }
.crumbs span { color: var(--teal); }
.crumbs i { font-style: normal; opacity: .5; }

.ihero { position: relative; display: flex; align-items: flex-end; min-width: 0; overflow: hidden; border-radius: var(--r-xl); }
.ihero__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.ititle { font-size: clamp(30px, 3.4vw, 50px); }
.ihero__lead { color: var(--text); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }

.ihero--img { min-height: clamp(300px, 30vw, 420px); padding: clamp(24px, 3.4vw, 48px); background: #e9dcc8; }
.ihero--img picture { display: contents; }
.ihero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ihero--img::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(247, 241, 232, .95) 0%, rgba(247, 241, 232, .88) 42%, rgba(247, 241, 232, 0) 74%); pointer-events: none; }
/* Без фото (информационные страницы и др.): компактный заголовок по краю контента */
.ihero:not(.ihero--img) { overflow: visible; padding: 6px 0 clamp(4px, 1vw, 14px); border-radius: 0; }
.ihero:not(.ihero--img) .ihero__text { gap: 12px; max-width: 900px; }
.ihero:not(.ihero--img) .ititle { font-size: clamp(30px, 3vw, 46px); }
/* После компактного заголовка текст ближе: общий шаг между блоками (до 72 px) рассчитан на шапку с фото */
.ipage > .itop:has(.ihero:not(.ihero--img)) { margin-bottom: calc(clamp(36px, 5vw, 72px) * -1 + clamp(20px, 2.2vw, 32px)); }

/* ---------- Текст и содержание ---------- */
.ibody { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.ibody--toc { grid-template-columns: 300px minmax(0, 1fr); }
.imain { min-width: 0; max-width: 820px; }

.itoc { position: sticky; top: calc(var(--hdr-h, 80px) + 20px); }
.itoc__box { padding: 22px 14px 14px; border-radius: var(--r-l); background: var(--island); }
.itoc__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; list-style: none; cursor: default; }
.itoc__title::-webkit-details-marker { display: none; }
.itoc__title .chev { display: none; }
.itoc__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; max-height: calc(100vh - var(--hdr-h, 80px) - 120px); overflow-y: auto; scrollbar-width: thin; }
.itoc__link { display: block; padding: 10px 12px; border-radius: var(--r-s); color: var(--text); font-size: 14px; line-height: 1.35; transition: background .2s, color .2s; }
.itoc__link:hover { background: var(--white); color: var(--ink); }
.itoc__link.is-on { background: var(--white); color: var(--teal-d); font-weight: 500; box-shadow: 0 1px 2px rgba(22, 25, 26, .05); }

/* Текст страницы из админки: в нём много встроенных стилей (размер, отступы) — приводим к одному виду */
.prose { color: var(--text); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose > div[style], .prose div[style*="max-width"] { max-width: none !important; }
.prose h2 { margin: 52px 0 16px !important; color: var(--ink); font-size: clamp(24px, 2.1vw, 30px) !important; line-height: 1.2 !important; font-weight: 600 !important; letter-spacing: -.02em; scroll-margin-top: 110px; }
.prose > h2:first-child, .prose > div:first-child > h2:first-child { margin-top: 0 !important; }
.prose h3, .prose h4, .prose h5 { margin: 32px 0 10px !important; color: var(--ink); font-size: 20px !important; line-height: 1.35 !important; font-weight: 600 !important; }
.prose p, .prose li { color: var(--text) !important; font-size: 17px !important; line-height: 1.7 !important; }
.prose p { margin: 0 0 18px !important; }
.prose p:empty, .prose p:has(> br:only-child) { display: none; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--teal-d); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--teal); }
.prose img { height: auto; margin: 24px 0; border-radius: var(--r-m); }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose .tick { color: var(--teal); }

/* ---------- Без содержания: справа карточка «Остались вопросы?» ---------- */
.ibody--side { grid-template-columns: minmax(0, 1fr) 360px; }
.ibody--side .imain { max-width: none; }
.iside { position: sticky; top: calc(var(--hdr-h, 80px) + 20px); }
.iask { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 26px; border-radius: var(--r-xl); background: #13363d; color: #fff; isolation: isolate; }
.iask__glow { position: absolute; z-index: -1; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 168, 194, .75), rgba(27, 135, 159, 0) 68%); transform: translate3d(calc(var(--px, 0) * -2), calc(var(--py, 0) * -2), 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.iask::after { content: ''; position: absolute; z-index: -1; left: -60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 227, 176, .22), rgba(95, 227, 176, 0) 70%); pointer-events: none; }
.iask .auth__eyebrow { animation: none; }
.iask__h { color: #fff; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.iask__p { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.5; }
.iask__tel { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 8px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; transition: background .2s, color .2s; }
.iask__tel svg { color: var(--teal); transition: color .2s; }
.iask__tel:hover { background: var(--teal); color: #fff; }
.iask__tel:hover svg { color: #fff; }
.iask__msg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.iask__m { display: grid; place-items: center; height: 52px; border-radius: 999px; color: #fff; transition: transform .2s; }
.iask__m > * { position: relative; z-index: 2; }
.iask__m:hover { transform: translateY(-2px); }
.iask__more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: 14px; transition: color .2s; }
.iask__more:hover { color: #fff; }

/* ---------- Вопросы и ответы (модуль FAQ) ---------- */
.ifaq .faq { margin-top: 56px; }
.prose:has(> p:only-child > br:only-child) + .ifaq .faq, .prose:empty + .ifaq .faq { margin-top: 0; }
/* Заголовок блока FAQ на старых страницах был скрыт — так и оставляем */
.ifaq .faq-title { display: none; margin-bottom: 20px; color: var(--ink); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.ifaq ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ifaq .faq-question { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); cursor: pointer; transition: background .2s, border-color .2s; }
.ifaq .faq-question:hover { border-color: #d2d2d7; }
.ifaq .faq-question.active { border-color: transparent; background: var(--island); }
.ifaq .faq-link { position: relative; padding: 20px 64px 20px 24px; color: var(--ink); font-size: 17px; line-height: 1.4; font-weight: 500; }
.ifaq .faq-link::before, .ifaq .faq-link::after { content: ''; position: absolute; right: 26px; top: 50%; width: 14px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s; }
.ifaq .faq-link::after { transform: rotate(90deg); }
.ifaq .faq-question.active .faq-link::after { transform: rotate(0deg); }
.ifaq .faq-text { padding: 0 24px 22px; color: var(--text); font-size: 16px; line-height: 1.65; }
.ifaq .faq-text [itemprop="text"] { white-space: pre-line; }

@media (max-width: 1023px) {
	.ibody--toc, .ibody--side { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.iside { position: static; }
	.itoc { position: static; }
	.itoc__box { padding: 0; border-radius: var(--r-m); }
	.itoc__title { padding: 16px 20px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
	.itoc__title .chev { display: block; transition: transform .25s; }
	.itoc__box[open] .itoc__title .chev { transform: rotate(180deg); }
	.itoc__list { max-height: none; padding: 0 8px 10px; }
	.imain { max-width: none; }
}

@media (max-width: 767px) {
	.ipage { padding-top: 4px; }
	.ipage > .itop:has(.ihero:not(.ihero--img)) { margin-bottom: -8px; }
	.ihero--img { min-height: 340px; padding: 22px 20px; align-items: flex-start; }
	.ihero--img::after { background: linear-gradient(180deg, rgba(247, 241, 232, .94) 0%, rgba(247, 241, 232, .8) 46%, rgba(247, 241, 232, 0) 78%); }
	.ihero__img { object-position: 60% 50%; }
	.ititle { font-size: clamp(28px, 8vw, 36px); }
	.ihero__lead { font-size: 15px; }
	.prose, .prose p, .prose li { font-size: 16px !important; }
	.prose h2 { margin-top: 40px !important; font-size: 23px !important; }
	.ifaq .faq-link { padding: 18px 56px 18px 18px; font-size: 16px; }
	.ifaq .faq-link::before, .ifaq .faq-link::after { right: 20px; }
	.ifaq .faq-text { padding: 0 18px 18px; font-size: 15px; }
}

/* ======================================================================
   Вход и регистрация: слева видео со стеклянными карточками, справа форма
   ====================================================================== */
.apage { padding-top: 10px; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); min-height: min(820px, calc(100vh - var(--hdr-h, 80px) - 40px)); }

.auth__hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 640px; padding: clamp(28px, 4vw, 64px); border-radius: var(--r-xl); background: #1d4a52; color: #fff; isolation: isolate; }
.auth__video { position: absolute; inset: -4%; z-index: -2; width: 108%; height: 108%; object-fit: cover; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.02); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.auth__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 36, .06) 0%, rgba(10, 30, 36, .3) 28%, rgba(8, 24, 30, .66) 52%, rgba(8, 24, 30, .84) 100%), linear-gradient(90deg, rgba(8, 24, 30, .3), rgba(8, 24, 30, 0) 75%); }
.auth__content { display: flex; flex-direction: column; gap: 16px; max-width: 520px; transform: translate3d(calc(var(--px, 0) * -.5), calc(var(--py, 0) * -.5), 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.auth__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.auth__title { color: #fff; font-size: clamp(34px, 3.6vw, 54px); text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.auth__lead { color: rgba(255, 255, 255, .88); font-size: 16px; line-height: 1.6; }
.auth__list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.auth__item { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 22px; border-radius: 22px; font-size: 15px; font-weight: 500; }
.auth__item > * { position: relative; z-index: 2; }
.auth__item svg { flex: 0 0 auto; opacity: .95; }

/* Появление: заголовок, текст, затем карточки по одной */
@media (prefers-reduced-motion: no-preference) {
	.auth__eyebrow, .auth__title, .auth__lead, .auth__item { animation: auth-in .9s cubic-bezier(.2, .8, .2, 1) both; }
	.auth__title { animation-delay: .08s; }
	.auth__lead { animation-delay: .16s; }
	.auth__item { animation-delay: calc(.32s + var(--i, 0) * .11s); }
	.auth__card .auth__box { animation: auth-in .8s .1s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes auth-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.auth__card { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 64px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.auth__box { width: 100%; max-width: 380px; }
.auth__h { margin-bottom: 26px; color: var(--ink); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }

/* Переключатель «Войти / Регистрация» — как «Купить / Снять» на главной */
.aseg { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 54px; margin-bottom: 26px; padding: 4px; border-radius: 999px; background: var(--island); }
.aseg__thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--white); box-shadow: 0 3px 10px rgba(16, 20, 24, .1), inset 0 1px 1px #fff; transition: transform .38s cubic-bezier(.3, 1.35, .5, 1); }
.aseg--two .aseg__thumb, .aseg.is-go .aseg__thumb { transform: translateX(100%); }
.aseg--two.is-go .aseg__thumb { transform: none; }
.aseg__a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 500; transition: color .25s; }
.aseg__a.is-on { color: var(--ink); }
.aseg__a:not(.is-on):hover { color: var(--teal); }

.anote { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--r-s); font-size: 14px; line-height: 1.45; }
.anote--ok { background: #e7f5f0; color: #18684f; }
.anote--err { background: #fdecec; color: #a12a2a; }

.aform { display: flex; flex-direction: column; gap: 16px; }
.afield { display: flex; flex-direction: column; gap: 8px; }
.afield__l { color: var(--text); font-size: 13px; font-weight: 500; }
.afield__wrap { position: relative; display: block; }
.afield__in { width: 100%; height: 54px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--island); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.afield__in:hover { background: var(--island-2); }
.afield__in:focus { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(27, 135, 159, .12); }
.afield__wrap .afield__in { padding-right: 56px; }
.afield__eye { position: absolute; right: 8px; top: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transform: translateY(-50%); transition: color .2s, background .2s; }
.afield__eye:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
.afield__eye .eye-off, .afield__eye[aria-pressed="true"] .eye-on { display: none; }
.afield__eye[aria-pressed="true"] .eye-off { display: block; }
.aform__forgot { align-self: flex-end; margin-top: -4px; color: var(--teal); font-size: 14px; transition: color .2s; }
.aform__forgot:hover { color: var(--teal-d); }
.aform__go { width: 100%; min-height: 56px; margin-top: 6px; font-size: 15px; }

.asocial { margin-top: 28px; }
.asocial__t { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.asocial__t::before, .asocial__t::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line); }
.asocial .oneall_social_login { display: flex; justify-content: center; min-height: 64px; }

@media (max-width: 1023px) {
	.auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.auth__hero { min-height: 520px; }
}
@media (max-width: 767px) {
	.apage { padding-top: 4px; }
	/* На телефоне главное — форма: шапка с видео ниже, преимущества плиткой 2×2 */
	.auth__hero { min-height: 0; padding: 26px 18px 18px; }
	.auth__shade { background: linear-gradient(180deg, rgba(8, 24, 30, .5) 0%, rgba(8, 24, 30, .62) 50%, rgba(8, 24, 30, .8) 100%); }
	.auth__content { gap: 12px; }
	.auth__title { font-size: clamp(30px, 8.6vw, 38px); }
	.auth__lead { font-size: 14px; line-height: 1.5; }
	.auth__lead br { display: none; }
	.auth__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
	.auth__item { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 0; padding: 14px; border-radius: 18px; font-size: 13px; line-height: 1.3; }
	.auth__item svg { width: 18px; height: 18px; }
	.auth__card { padding: 28px 20px; border: 0; border-radius: var(--r-xl); background: var(--island); }
	.auth__card .aseg { background: var(--white); }
	.auth__card .afield__in { background: var(--white); }
}

/* ======================================================================
   Новости: список и статья
   ====================================================================== */
.bhero { padding-bottom: 6px; }
.bhero .ihero__text { max-width: 900px; }
.bhero__intro { display: flex; flex-direction: column; gap: 10px; color: var(--text); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; }
.bhero__intro p { margin: 0; }
.bhero__intro p:empty, .bhero__intro p:has(> br:only-child) { display: none; }
.bhero__intro [style] { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; margin: 0 !important; }
.bhero__intro b, .bhero__intro strong { color: var(--ink); font-weight: 600; }
.bhero__intro p + p { margin-top: 10px; }

.blist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.bcard { display: flex; flex-direction: column; }
.bcard .nw__img { aspect-ratio: 16 / 10; border-radius: var(--r-l); }
.bcard .nw__date { margin-top: 16px; }
.bcard__t { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; transition: color .2s; }
.bcard__d { display: -webkit-box; overflow: hidden; margin-top: 10px; color: var(--text); font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--teal); font-size: 14px; font-weight: 500; transition: color .2s, gap .2s; }
.bcard__more:hover { gap: 9px; color: var(--teal-d); }
.bpager { padding-top: 6px; }

.bmeta { color: var(--muted); font-size: 14px; }
.ihero--img .bmeta { color: var(--text); }
.btitle { font-size: clamp(28px, 3vw, 46px); font-weight: 500; letter-spacing: -.025em; }
.js-btoc:not(.is-ready) { visibility: hidden; }
.brel { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.brel__h { font-size: clamp(24px, 2.2vw, 34px); }
.blist--rel .bcard__t { font-size: 17px; }

@media (max-width: 1023px) {
	.blist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.blist { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.btitle { font-size: clamp(24px, 6.6vw, 28px); line-height: 1.15; }
	.bhero__intro { font-size: 14px; line-height: 1.55; }
	.bcard__t { font-size: 18px; }
	.blist--rel { display: flex; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.blist--rel::-webkit-scrollbar { display: none; }
	.blist--rel .bcard { flex: 0 0 78%; scroll-snap-align: start; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ======================================================================
   Контакты: офисы слева, форма справа
   ====================================================================== */
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.clist { display: flex; flex-direction: column; gap: 12px; }
.coffice { display: flex; align-items: flex-start; gap: 20px; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-xl); background: var(--island); color: var(--ink); }
.coffice__ic { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--teal); }
.coffice__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.coffice__h { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.coffice__addr { color: var(--text); font-size: 16px; font-style: normal; line-height: 1.6; }
.coffice__tels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ctel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.ctel svg { color: var(--teal); transition: color .2s; }
.ctel:hover { background: var(--ink); color: #fff; }
.ctel:hover svg { color: #fff; }
.coffice--mail { align-items: center; transition: background .2s; }
.coffice--mail:hover { background: var(--island-2); }
.coffice__l { color: var(--muted); font-size: 13px; }
.coffice__mail { color: var(--teal); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; }
.coffice__go { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: var(--ink); color: #fff; }

/* Форма: классы cr-form__* нужны скрипту cr-forms.js, вид — здесь */
.cform { position: sticky; top: calc(var(--hdr-h, 80px) + 20px); display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.cform .cr-form__eyebrow { color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cform .cr-form__title { margin-top: -6px; color: var(--ink); font-size: clamp(24px, 2vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.cform .cr-form__lead { color: var(--text); font-size: 15px; line-height: 1.55; }
.cform .cr-form__field { display: flex; flex-direction: column; gap: 8px; }
.cform .cr-form__field label { color: var(--text); font-size: 13px; font-weight: 500; }
.cform .cr-form__req { color: var(--teal); }
.cform input[type="text"], .cform textarea { width: 100%; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--island); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.cform input[type="text"] { height: 54px; }
.cform textarea { min-height: 120px; padding: 16px 20px; border-radius: var(--r-m); resize: vertical; }
.cform input[type="text"]:hover, .cform textarea:hover { background: var(--island-2); }
.cform input[type="text"]:focus, .cform textarea:focus { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(27, 135, 159, .12); }
.cform .has-error input, .cform .has-error textarea { border-color: #e9a59d; background: #fff6f5; }
.cform .cr-form__err { padding-left: 20px; color: #b42318; font-size: 13px; line-height: 1.4; }
.cform .cr-form__err[hidden] { display: none; }
.cform .cr-form__agree { position: relative; display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 14px; line-height: 1.45; cursor: pointer; }
.cform .cr-form__agree input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cform .cr-form__box { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #c7c7cc; border-radius: 7px; background: var(--white); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.cform .cr-form__agree input:checked + .cr-form__box { border-color: var(--teal); background: var(--teal); color: #fff; }
.cform .cr-form__agree input:focus-visible + .cr-form__box { box-shadow: 0 0 0 4px rgba(27, 135, 159, .2); }
.cform .cr-form__agree.has-error .cr-form__box { border-color: #d9534f; }
.cform .cr-form__agree a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.cform .cr-form__submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s; }
.cform .cr-form__submit:hover { background: var(--teal); }
.cform .cr-form__submit:disabled { opacity: .7; cursor: default; }
.cform .cr-form__alt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.cform .cr-form__alt-label { color: var(--muted); font-size: 13px; }
.cform .cr-form__alt-phone { color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.cform .cr-form__alt-phone:hover { color: var(--teal); }

/* ======================================================================
   Отзывы
   ====================================================================== */
.tbody { display: flex; flex-direction: column; gap: 24px; }
.tlist { columns: 2 380px; column-gap: clamp(14px, 1.6vw, 24px); }
.tlist > .accpager { column-span: all; }
.tcard { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(14px, 1.6vw, 24px); padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--island); break-inside: avoid; }
.tcard__head { display: flex; align-items: center; gap: 14px; }
.tcard__ava { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white); }
.tcard__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tcard__who b { color: var(--ink); font-size: 16px; font-weight: 600; }
.tcard__who time { color: var(--muted); font-size: 13px; }
.tcard__rate { display: inline-flex; gap: 2px; margin-left: auto; color: #d2d2d7; }
.tcard__rate svg { width: 16px; height: 16px; }
.tcard__rate .is-on { color: #f5a524; }
.tcard__rate .is-on svg { fill: currentColor; }
.tcard__title { color: var(--ink); font-size: 18px; font-weight: 600; }
.tcard__text { color: var(--text); font-size: 16px; line-height: 1.65; }
.tcard__text p { margin: 0 0 8px; }
.tcard__imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.tcard__imgs img { width: 84px; height: 84px; border-radius: var(--r-s); object-fit: cover; }
.tcard__reply { margin: 0; padding: 14px 18px; border-left: 3px solid var(--teal); border-radius: 0 var(--r-s) var(--r-s) 0; background: var(--white); color: var(--text); font-size: 15px; }
.tcard__reply p { margin: 0 0 4px; }

.twrite { display: flex; flex-direction: column; gap: 16px; }
.twrite__bar { display: flex; justify-content: flex-end; }
.ttoggle { min-height: 54px; padding: 0 24px; gap: 10px; }
.tchev { display: inline-flex; font-style: normal; transition: transform .25s; }
.tchev::before, .tstar__i::before { content: none !important; }
.tchev.fa-chevron-up { transform: rotate(180deg); }
/* Гостю вместо полей — одна строка «авторизуйтесь или зарегистрируйтесь» в плашке под кнопкой */
.tform.tform--note { display: block; width: fit-content; max-width: 100%; padding: 16px 22px; border: 0; border-radius: 999px; background: var(--island); }
.tform--note[style*="display: none"] { display: none !important; }
.tform__note { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.tform__note a { color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.tform__note a:hover { color: var(--teal-d); }
.tform { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-left: auto; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); color: var(--text); font-size: 15px; }
.tform .form-group { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tform .form-group > div { width: 100%; padding: 0; float: none; }
.tform .control-label { display: block; margin-bottom: 8px; padding: 0; color: var(--text); font-size: 13px; font-weight: 500; text-align: left; }
.tform .required .control-label::after { content: ' *'; color: var(--teal); }
.tform .form-control { width: 100%; height: 54px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--island); box-shadow: none; color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s; }
.tform textarea.form-control { height: auto; min-height: 130px; padding: 16px 20px; border-radius: var(--r-m); }
.tform .form-control:focus { border-color: var(--teal); background: var(--white); }
.tform .rating { display: flex; gap: 4px; }
.tstar { cursor: pointer; color: #c7c7cc; transition: transform .15s; }
.tstar:hover { transform: scale(1.1); }
.tstar__i { display: inline-flex; font-style: normal; }
.tstar__i.fa-star { color: #f5a524; }
.tstar__i.fa-star svg { fill: currentColor; }
.tform .link, .tform .btn-sm, .tform #button-testimonial { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--island); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.tform #button-testimonial { min-height: 54px; padding: 0 30px; background: var(--ink); color: #fff; }
.tform #button-testimonial:hover { background: var(--teal); }
.tform .buttons { display: flex; justify-content: flex-end; }
.tform .label-info { color: var(--muted); font-size: 13px; }
.tform small { color: var(--muted); }

/* ======================================================================
   Карта сайта
   ====================================================================== */
.smgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.smbox { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--island); }
.smbox--wide { grid-column: 1 / -1; }
.smbox__h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.smbox__h span { padding: 2px 10px; border-radius: 999px; background: var(--white); color: var(--muted); font-size: 13px; font-weight: 500; }
.smtree, .smtree ul { margin: 0; padding: 0; list-style: none; }
.smtree ul { margin: 4px 0 6px; padding-left: 14px; border-left: 1px solid #dcdce0; }
.smtree li { padding: 3px 0; break-inside: avoid; }
.smtree a { color: var(--ink); font-size: 15px; line-height: 1.45; transition: color .2s; }
.smtree ul a { color: var(--text); font-size: 14px; }
.smtree a:hover { color: var(--teal); }
.smtree--cols { columns: 3 260px; column-gap: 32px; }
.smtree--cols > li { break-inside: avoid; }
.smtree--posts > li { break-inside: auto; }

/* ======================================================================
   404
   ====================================================================== */
.nf { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: min(640px, calc(100vh - var(--hdr-h, 80px) - 80px)); padding: clamp(32px, 5vw, 72px) 24px; border-radius: var(--r-xl); background: #1d4a52; color: #fff; text-align: center; isolation: isolate; }
.nf .auth__shade { background: rgba(8, 24, 30, .58); }
.nf__in { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 620px; transform: translate3d(calc(var(--px, 0) * -.5), calc(var(--py, 0) * -.5), 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.nf__code { font-size: clamp(96px, 16vw, 200px); line-height: .9; font-weight: 600; letter-spacing: -.06em; background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__title { color: #fff; font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; }
.nf__text { color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.6; }
.nf__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.nf__go { min-height: 54px; padding: 0 30px; background: #fff; color: var(--ink); }
.nf__go:hover { background: var(--teal); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
	.nf__code, .nf__title, .nf__text, .nf__acts { animation: auth-in .9s cubic-bezier(.2, .8, .2, 1) both; }
	.nf__title { animation-delay: .1s; }
	.nf__text { animation-delay: .18s; }
	.nf__acts { animation-delay: .26s; }
}

/* ======================================================================
   Сравнение
   ====================================================================== */
.cmp { width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); scrollbar-width: thin; }
.cmp__t { width: calc(220px + var(--n, 3) * 280px); table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp__t th, .cmp__t td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp__t tbody tr:last-child > * { border-bottom: 0; }
.cmp__t tbody tr:nth-child(even) > * { background: #fafafb; }
.cmp__lab { position: sticky; left: 0; z-index: 1; width: 220px; background: var(--white); color: var(--muted); font-size: 13px; font-weight: 500; box-shadow: 1px 0 0 var(--line); }
.cmp__t td { color: var(--ink); }
.cmp__p { width: 280px; padding: 14px !important; vertical-align: top; }
.cmp__card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cmp__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-m); background: var(--island-2); }
.cmp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cmp__img:hover img { transform: scale(1.04); }
.cmp__rm { position: absolute; right: 8px; top: 8px; left: auto; bottom: auto; }
.cmp__rm:hover { color: #b42318; }
.cmp__name { color: var(--ink); font-size: 15px; line-height: 1.35; font-weight: 500; transition: color .2s; }
.cmp__name:hover { color: var(--teal); }
.cmp__loc { color: var(--muted); font-size: 13px; font-weight: 400; }
.cmp__price b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cmp__price s { color: var(--muted); }

/* ======================================================================
   Поиск
   ====================================================================== */
.stools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stools__res { color: var(--muted); font-size: 14px; }
.stools__sel { display: flex; flex-wrap: wrap; gap: 8px; }
.ssel select { height: 44px; padding: 0 40px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.ssel select:hover { border-color: var(--ink); }
.sgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

@media (max-width: 1023px) {
	.cgrid { grid-template-columns: minmax(0, 1fr); }
	.cform { position: static; }
	.smgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.coffice { flex-direction: column; gap: 14px; padding: 22px 18px; border-radius: var(--r-l); }
	.coffice--mail { flex-direction: row; align-items: center; }
	.coffice__ic { width: 44px; height: 44px; }
	.cform { padding: 24px 18px; border-radius: var(--r-l); }
	.tcard { padding: 20px 18px; border-radius: var(--r-l); }
	.tcard__head { flex-wrap: wrap; }
	.tform { padding: 22px 18px; border-radius: var(--r-l); }
	.twrite__bar .ttoggle { width: 100%; }
	.smgrid { grid-template-columns: minmax(0, 1fr); }
	.smbox { padding: 22px 18px; border-radius: var(--r-l); }
	.nf { min-height: 480px; border-radius: var(--r-l); }
	.cmp { border-radius: var(--r-l); }
	.cmp__lab { width: 120px; padding: 12px !important; font-size: 12px; }
	.cmp__t { width: calc(120px + var(--n, 3) * 200px); font-size: 14px; }
	.cmp__p { width: 200px; }
	.stools__sel, .ssel, .ssel select { width: 100%; }
}

/* Регистрация, восстановление пароля: дополнения к форме входа */
.auth__p { margin: -12px 0 22px; color: var(--text); font-size: 15px; line-height: 1.55; }
.aback { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--text); font-size: 14px; transition: color .2s; }
.aback:hover { color: var(--teal); }
.aform__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.afield__hint { margin-top: 8px; padding-left: 20px; color: var(--muted); font-size: 13px; }
.afield__err { padding-left: 20px; color: #b42318; font-size: 13px; line-height: 1.4; }
.afield--err .afield__in { border-color: #e9a59d; background: #fff6f5; }
.acheck { position: relative; display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 14px; line-height: 1.45; cursor: pointer; }
.acheck input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.acheck__box { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #c7c7cc; border-radius: 7px; background: var(--white); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.acheck input:checked + .acheck__box { border-color: var(--teal); background: var(--teal); color: #fff; }
.acheck input:focus-visible + .acheck__box { box-shadow: 0 0 0 4px rgba(27, 135, 159, .2); }
.acheck__t a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.acheck__t b { font-weight: 500; }

.adlg { width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.adlg::backdrop { background: rgba(15, 20, 24, .45); backdrop-filter: blur(4px); }
.adlg__body { max-height: min(80vh, 760px); overflow-y: auto; padding: 44px clamp(22px, 4vw, 48px) 32px; }
.adlg__body h3 { margin-top: 0 !important; }
.adlg__x { position: absolute; right: 14px; top: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--island); color: var(--ink); transition: background .2s; }
.adlg__x:hover { background: var(--island-2); }

/* ======================================================================
   Кабинет: меню слева, страница справа
   ====================================================================== */
.acc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: start; margin-top: 18px; }
.acc--solo { grid-template-columns: minmax(0, 1fr); }

.accnav { position: sticky; top: calc(var(--hdr-h, 80px) + 20px); display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--r-l); background: var(--island); }
.accnav__me { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px; border-radius: var(--r-m); background: var(--white); transition: box-shadow .2s; }
.accnav__me:hover { box-shadow: 0 6px 20px rgba(16, 20, 24, .07); }
.accnav__ava { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #2fa8c2, var(--teal-d)); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .02em; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35); }
.accnav__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.accnav__who b, .accnav__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accnav__who b { color: var(--ink); font-size: 15px; font-weight: 600; }
.accnav__who small { color: var(--muted); font-size: 13px; }
.accnav__list { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.accnav__a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--r-s); color: var(--text); font-size: 15px; transition: background .2s, color .2s; }
.accnav__a svg { flex: 0 0 auto; color: var(--muted); transition: color .2s; }
.accnav__a span { flex: 1 1 auto; min-width: 0; }
.accnav__a em { flex: 0 0 auto; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--island-2); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 600; text-align: center; transition: background .2s, color .2s; }
.accnav__a:hover { background: var(--white); color: var(--ink); }
.accnav__a:hover svg { color: var(--ink); }
.accnav__a.is-on { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(22, 25, 26, .05); }
.accnav__a.is-on svg { color: var(--teal); }
.accnav__a.is-on em { background: var(--teal); color: #fff; }
.accnav__a--out { margin-top: 9px; color: var(--muted); }
.accnav__a--out::before { content: ''; position: absolute; left: 14px; right: 14px; top: -5px; height: 1px; background: #e3e3e8; }

.accmain { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.acccard { gap: 0; padding: clamp(24px, 3.4vw, 52px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.acccard > .anote { margin: 18px 0 0; }
.acchead { display: flex; flex-direction: column; gap: 10px; }
.acchead--bare { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px clamp(4px, 1vw, 12px); }
.acchead--bare .accsub { margin-top: 10px; }
.acctitle { font-size: clamp(28px, 2.8vw, 42px); }
.accsub { color: var(--text); font-size: 16px; line-height: 1.55; }
.acccount { flex: 0 0 auto; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--island); color: var(--ink); font-size: 16px; font-weight: 600; }
.acch2 { color: var(--ink); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.accform { max-width: 760px; margin-top: 28px; }
.accform--narrow { max-width: 460px; }
.accform__go { margin-top: 8px; }
.accform__go .btn { min-height: 54px; padding: 0 30px; }

.accperks { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.accperks li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--island); color: var(--ink); font-size: 14px; }
.accperks svg { color: var(--teal); }

.aswitch { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: var(--r-m); background: var(--island); cursor: pointer; }
.aswitch__ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--teal); }
.aswitch__t { flex: 1 1 auto; color: var(--ink); font-size: 16px; font-weight: 500; }
.aswitch__in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.aswitch__track { position: relative; flex: 0 0 auto; width: 52px; height: 32px; border-radius: 999px; background: #d2d2d7; transition: background .25s, box-shadow .2s; }
.aswitch__track i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .32s cubic-bezier(.3, 1.35, .5, 1); }
.aswitch__in:checked + .aswitch__track { background: var(--teal); }
.aswitch__in:checked + .aswitch__track i { transform: translateX(20px); }
.aswitch__in:focus-visible + .aswitch__track { box-shadow: 0 0 0 4px rgba(27, 135, 159, .2); }

/* Главная кабинета: видео, приветствие и плитки-ссылки с живыми данными */
.acchero { position: relative; overflow: hidden; display: flex; min-height: 600px; padding: clamp(24px, 3.4vw, 52px); border-radius: var(--r-xl); background: #1d4a52; color: #fff; isolation: isolate; }
.acchero__in { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; width: 100%; transform: translate3d(calc(var(--px, 0) * -.5), calc(var(--py, 0) * -.5), 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.acchero__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.acctiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.acctile { border-radius: 24px; }
.acctile > a { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 150px; padding: 18px 18px 18px 20px; color: #fff; }
.acctile__top { display: flex; align-items: center; justify-content: space-between; }
.acctile__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background .25s, color .25s; }
.acctile > a:hover .acctile__go { background: #fff; color: var(--ink); }
.acctile__t { font-size: 15px; line-height: 1.35; font-weight: 500; }
.acctile__v { margin-top: auto; color: rgba(255, 255, 255, .82); font-size: 14px; overflow-wrap: anywhere; }
.acctile__v--line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.acctile__v.is-on::before, .acctile__v.is-off::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.acctile__v.is-on::before { background: #5fe3b0; box-shadow: 0 0 0 3px rgba(95, 227, 176, .25); }
.acctile__v.is-off::before { background: rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: no-preference) {
	.acctile { animation: auth-in .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.32s + var(--i, 0) * .11s); }
}

/* Закладки */
.accgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.accgrid .nc { border: 1px solid var(--line); }
.accrm:hover { background: #fff; color: #b42318; }

.accempty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(40px, 6vw, 80px) 24px; border-radius: var(--r-xl); background: var(--island); color: var(--text); font-size: 16px; line-height: 1.5; text-align: center; }
.accempty__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--white); color: var(--teal); }
.accempty .btn { min-height: 52px; padding: 0 28px; }

/* История обращений */
.accorders { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.accorder__a { display: grid; grid-template-columns: 120px repeat(4, minmax(0, 1fr)) auto 44px; align-items: center; gap: 16px; padding: 16px 16px 16px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); color: var(--ink); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.accorder__a:hover { border-color: transparent; box-shadow: 0 10px 30px rgba(16, 20, 24, .08); }
.accorder small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.accorder__cell { min-width: 0; overflow-wrap: anywhere; }
.accorder__id b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.accorder__st { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(27, 135, 159, .1); color: var(--teal-d); font-size: 13px; font-weight: 500; white-space: nowrap; }
.accorder__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; transition: background .2s; }
.accorder__a:hover .accorder__go { background: var(--teal); }
.accpager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.accpager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.accpager .pagination a, .accpager .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--island); color: var(--ink); }
.accpager .pagination .active span { background: var(--ink); color: #fff; }

/* Одно обращение */
.accfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 26px 0; }
.accfacts div { padding: 16px 18px; border-radius: var(--r-m); background: var(--island); }
.accfacts dt { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.accfacts dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; }
.acctable { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-m); }
.acctable__h, .acctable__r { display: grid; grid-template-columns: minmax(0, 1fr) 160px 160px; gap: 16px; padding: 14px 20px; }
.acctable__h { background: var(--island); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.acctable__r { border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.acctable__r > span:not(.acctable__name), .acctable__h > span:not(:first-child) { text-align: right; }
.acctable__name small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.acctotals { display: flex; flex-direction: column; gap: 6px; max-width: 360px; margin: 16px 0 0 auto; }
.acctotals div { display: flex; justify-content: space-between; gap: 16px; color: var(--text); font-size: 15px; }
.acctotals dd { margin: 0; color: var(--ink); }
.acctotals .is-last { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.acctotals .is-last dd { font-size: 18px; }
.accblock { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.accnote { padding: 18px 20px; border-radius: var(--r-m); background: var(--island); color: var(--text); line-height: 1.6; }
.acctl { position: relative; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0 0 0 26px; list-style: none; }
.acctl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.acctl li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.acctl li::before { content: ''; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px; box-sizing: border-box; border: 3px solid var(--teal); border-radius: 50%; background: var(--white); }
.acctl__d { color: var(--muted); font-size: 14px; }
.acctl p { flex-basis: 100%; margin: 0; color: var(--text); font-size: 15px; }

@media (max-width: 1023px) {
	.acc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	/* Меню — лентой кнопок над страницей */
	.accnav { position: static; gap: 10px; padding: 0; background: none; }
	.accnav__me { background: var(--island); }
	.accnav__list { flex-direction: row; gap: 8px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; overflow-x: auto; scrollbar-width: none; }
	.accnav__list::-webkit-scrollbar { display: none; }
	.accnav__a { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--island); font-size: 14px; white-space: nowrap; }
	.accnav__a span { flex: none; }
	.accnav__a.is-on { background: var(--ink); color: #fff; box-shadow: none; }
	.accnav__a.is-on svg { color: #fff; }
	.accnav__a--out { margin-top: 0; }
	.accnav__a--out::before { display: none; }
	.acchero { min-height: 520px; }
	.accorder__a { grid-template-columns: 110px repeat(4, minmax(0, 1fr)) auto; }
	.accorder__go { display: none; }
}
@media (max-width: 767px) {
	.aform__row { grid-template-columns: minmax(0, 1fr); }
	.acc { margin-top: 12px; }
	.acccard { padding: 24px 18px; border-radius: var(--r-l); }
	.acchero { min-height: 0; padding: 24px 16px 16px; border-radius: var(--r-l); }
	.acchero__in { gap: 22px; }
	.acchero .auth__lead { font-size: 14px; line-height: 1.5; }
	.acctiles { gap: 8px; }
	.acctile { border-radius: 18px; }
	.acctile > a { min-height: 136px; gap: 8px; padding: 14px; }
	.acctile__t { font-size: 13px; }
	.acctile__v { font-size: 12px; }
	.acctile__go { width: 30px; height: 30px; }
	.acctile__top > svg { width: 20px; height: 20px; }
	.accorder__a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
	.accorder__id { grid-column: 1; grid-row: 1; }
	.accorder__st { grid-column: 2; grid-row: 1; justify-self: end; }
	.acctable__h { display: none; }
	.acctable__r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 14px 16px; }
	.acctable__name { grid-column: 1 / -1; }
	.acctable__r > span[data-l] { text-align: left !important; }
	.acctable__r > span[data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 12px; }
	.acctotals { max-width: none; }
	.accform { margin-top: 22px; }
	.accform__go .btn { width: 100%; }
}
