/* Знайка — общие стили внутренних страниц */
:root { --ok: #19b35c; --bad: #ef4444; --line: #dce6f6; --muted: #5b6b93; --tint: #eef4ff; }

/* шапка на внутренних страницах */
.site-header.inner, .site-header.inner.is-stuck { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 4px 20px rgba(15,42,120,.07); padding: 6px 0; }
.site-header.inner .logo-img { height: 62px; }
.acc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(15,42,120,.12); font-weight: 700; color: var(--navy); transition: transform .15s; }
.acc-chip:hover { transform: translateY(-2px); }
.acc-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #e3efff, #f2e8ff); }
.acc-stars { padding: 4px 10px; border-radius: 999px; background: #fff4c2; font-size: 14px; }
.acc-chip.bump, .m-stars.bump { animation: bumpA .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes bumpA { 40% { transform: scale(1.18); } }

.page-main { min-height: 60vh; }
.container.narrow { width: min(560px, 100% - 32px); }
.flash { margin: 16px 0; padding: 12px 18px; border-radius: 14px; font-weight: 600; animation: rise .4s ease both; }
.flash.ok { background: #e6f7ee; color: #12753c; }
.flash.err { background: #fdecec; color: #b42318; }
.card { background: #fff; border-radius: 26px; padding: 26px; box-shadow: 0 10px 30px rgba(31,82,170,.10); margin-bottom: 20px; }
.card.notice { background: linear-gradient(135deg, #fffbea, #fff3d6); box-shadow: none; border: 2px dashed #f4c95d; }
.card.notice p { margin: 0; font-weight: 600; }
.sec-title { text-align: center; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; margin: 46px 0 22px; }
.sec-t { font-size: 20px; font-weight: 800; margin: 0 0 14px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.hint { color: var(--muted); font-size: 14px; font-weight: 500; }
.center { text-align: center; }
.lead { font-size: 17px; color: var(--ink); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.link { color: var(--blue); font-weight: 700; }
.btn-ghost { color: var(--navy); background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.float { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pop { animation: popA .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes popA { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.shake { animation: shakeA .5s ease; }
@keyframes shakeA { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1.2); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }

/* заголовок страницы */
.p-hero { position: relative; overflow: hidden; padding: 46px 0 70px; color: #fff; isolation: isolate; }
.p-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 110px; background: var(--page); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.p-hero.tone-blue { background: linear-gradient(115deg, #2f6ff0, #5aa2ff); }
.p-hero.tone-violet { background: linear-gradient(115deg, #6d4cff, #b07cff); }
.p-hero.tone-green { background: linear-gradient(115deg, #16a36a, #5fd18a); }
.p-hero.tone-orange { background: linear-gradient(115deg, #ff7a3d, #ffbf3d); }
.p-hero-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.p-hero h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; letter-spacing: -.02em; text-shadow: 0 4px 16px rgba(0,0,0,.15); animation: rise .5s ease both; }
.p-hero p { margin-top: 10px; max-width: 640px; font-size: 18px; font-weight: 600; opacity: .95; animation: rise .5s .1s ease both; }
.p-hero-emoji { font-size: clamp(64px, 9vw, 120px); filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); animation: floatY 4s ease-in-out infinite, popA .7s cubic-bezier(.3,1.6,.5,1) both; }
.p-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.p-bubbles i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); animation: bubble 9s ease-in-out infinite; }
.p-bubbles i:nth-child(1) { width: 180px; height: 180px; left: 6%; top: -60px; }
.p-bubbles i:nth-child(2) { width: 90px; height: 90px; left: 40%; top: 30%; animation-delay: -2s; }
.p-bubbles i:nth-child(3) { width: 260px; height: 260px; right: -60px; bottom: -120px; animation-delay: -4s; }
.p-bubbles i:nth-child(4) { width: 40px; height: 40px; left: 70%; top: 14%; animation-delay: -6s; }
.p-bubbles i:nth-child(5) { width: 60px; height: 60px; left: 20%; bottom: 10%; animation-delay: -3s; }
@keyframes bubble { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -24px) scale(1.12); } }

/* формы */
label, .label { display: block; font-weight: 700; margin: 16px 0 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], textarea, select {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fbfdff; font: 600 16px var(--font); color: var(--navy); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,95,224,.14); }
input.bad { border-color: var(--bad); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: 90px 90px 1fr 1.4fr; gap: 0 12px; }
.hp { position: absolute; left: -9999px; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: #fff; border-radius: 14px; box-shadow: 0 14px 30px rgba(15,42,120,.18); overflow: hidden; }
.ac-list button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; font: 600 15px var(--font); color: var(--navy); cursor: pointer; }
.ac-list button:hover { background: var(--tint); }
.ac-list small { color: var(--muted); }

.tabs-pill { display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: var(--tint); margin: 6px 0 18px; }
.tabs-pill a { flex: 1; text-align: center; padding: 12px; border-radius: 14px; font-weight: 800; color: var(--muted); transition: background-color .2s, color .2s; }
.tabs-pill a.on { background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(15,42,120,.12); }
.tabs-pill.wide { margin: 0 0 22px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font: 700 14px var(--font); color: var(--navy); cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; box-shadow: none; }

/* регистрация и вход */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding: 34px 0 60px; }
.form-wrap.narrow { display: block; }
.wizard h1, .login-card h1 { font-size: 30px; font-weight: 900; }
.wz-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.wz-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.wz-steps li { counter-increment: s; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--tint); font-weight: 700; font-size: 13px; color: var(--muted); transition: background-color .3s, color .3s; }
.wz-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.wz-steps li.on { background: var(--blue); color: #fff; }
.wz-steps li.on::before { color: var(--blue); }
.wz-step { border: 0; padding: 0; margin: 0; display: none; }
.wz-step.on, .all-steps .wz-step { display: block; animation: rise .4s ease both; }
.all-steps .wz-nav [data-next], .all-steps .wz-nav [data-prev] { display: none; }
.wz-step legend { font-size: 22px; font-weight: 900; margin: 14px 0 0; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.ava-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; max-width: 560px; }
.ava-opt input, .grade-pick input, .letter-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ava-opt span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; font-size: 30px; background: var(--tint); cursor: pointer; transition: transform .15s, box-shadow .15s; animation: popA .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 30ms); }
.ava-opt span:hover { transform: scale(1.08) rotate(-4deg); }
.ava-opt input:checked + span { background: #fff; box-shadow: 0 0 0 3px var(--blue), 0 8px 16px rgba(31,95,224,.25); transform: scale(1.1); }
.ava-opt input:focus-visible + span, .grade-pick input:focus-visible + span, .letter-pick input:focus-visible + span { outline: 3px solid #ffb400; }
.grade-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grade-pick span { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border-radius: 18px; background: var(--tint); cursor: pointer; font-weight: 700; color: var(--muted); transition: transform .15s; }
.grade-pick b { font-size: 34px; line-height: 1; color: var(--navy); }
.grade-pick label { margin: 0; }
.grade-pick input:checked + span { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0,0,0,.15); }
.grade-pick .g1 input:checked + span { background: linear-gradient(135deg, #ff8a3d, #ffb547); }
.grade-pick .g2 input:checked + span { background: linear-gradient(135deg, #21b26b, #6bd96a); }
.grade-pick .g3 input:checked + span { background: linear-gradient(135deg, #2f7bff, #5fb4ff); }
.grade-pick .g4 input:checked + span { background: linear-gradient(135deg, #8a5cf6, #c084fc); }
.grade-pick input:checked + span b { color: #fff; }
.letter-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.letter-pick label { margin: 0; }
.letter-pick span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); font-weight: 800; cursor: pointer; }
.letter-pick input:checked + span { background: var(--navy); color: #fff; }
.reg-side { position: sticky; top: 100px; text-align: center; }
.reg-side img { width: 220px; margin: 0 auto -10px; }
.perks { list-style: none; padding: 18px; margin: 0; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(31,82,170,.10); text-align: left; }
.perks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 8px 0; font-size: 15px; }
.perks p { margin: 0; }
.perks span { font-size: 22px; }
.reg-done { grid-column: 1 / -1; text-align: center; max-width: 640px; margin: 0 auto; }
.reg-ava { font-size: 90px; }
.cred { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.cred div { padding: 14px 22px; border-radius: 18px; background: linear-gradient(135deg, #fff7d1, #ffe7a3); }
.cred small { display: block; font-weight: 700; color: #8a6400; }
.cred b { font-size: 28px; letter-spacing: .04em; }
.reg-done .row { justify-content: center; }

.login-card { position: relative; text-align: left; margin-top: 110px; padding-top: 74px; }
.login-mila { position: absolute; width: 96px; left: 50%; top: -120px; margin-left: -48px; }
.login-card h1 { text-align: center; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 4px 0 14px; }
.pin-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue); transition: background-color .15s, transform .15s; }
.pin-dots i.on { background: var(--blue); transform: scale(1.15); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.pin-pad button { height: 62px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 #d5def0, 0 8px 14px rgba(15,42,120,.08); font: 800 26px var(--font); color: var(--navy); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.pin-pad button:active, .pin-pad button.hit { transform: translateY(4px); box-shadow: 0 1px 0 #d5def0; }
.pin-pad .ok { background: linear-gradient(180deg, #2bd472, var(--ok)); color: #fff; box-shadow: 0 5px 0 #0f8a43; }
.pin-pad .del { background: #fff4e0; color: #b45309; box-shadow: 0 5px 0 #f3d9a8; }

/* рейтинги-списки */
.rank-table, .rank-list { list-style: none; margin: 0; padding: 0; }
.rank-table li, .rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; transition: background-color .2s; animation: rise .4s ease both; animation-delay: calc(var(--i, 0) * 35ms); }
.rank-table li:nth-child(odd) { background: #f7faff; }
.rank-table li.me, .rank-list li.me { background: linear-gradient(90deg, #fff4c2, #fffbe6); box-shadow: inset 0 0 0 2px #ffd23f; }
.rank-table .pl, .rank-list .pl { width: 36px; text-align: center; font-weight: 900; font-size: 18px; flex-shrink: 0; }
.rank-table .av, .rank-list .av { font-size: 28px; flex-shrink: 0; }
.rank-table .nm, .rank-list .nm { flex: 1; min-width: 0; }
.rank-table .nm b { display: block; }
.rank-table .nm small { color: var(--muted); font-weight: 600; }
.rank-table .sc { text-align: right; font-weight: 900; font-size: 20px; }
.rank-table .sc small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.place-line { font-weight: 700; }
.place-line b { font-size: 22px; color: var(--blue); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.cab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(15,42,120,.35); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { width: min(560px, 100%); background: #fff; border-radius: 26px; padding: 26px; animation: popA .4s cubic-bezier(.3,1.6,.5,1); }

@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; }
  .reg-side { display: none; }
  .cab-cols { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; border-radius: 22px; }
  .acc-name { display: none; }
  .p-hero { padding: 30px 0 60px; }
  .p-hero-emoji { display: none; }
  .wz-steps { display: none; }
  .site-header.inner .logo-img { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* регистрация заметнее */
.acc-guest { display: inline-flex; gap: 10px; align-items: center; }
.btn-reg { color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff5d8f); box-shadow: 0 8px 18px rgba(255,93,143,.35); }
.btn-reg:hover { box-shadow: 0 12px 24px rgba(255,93,143,.45); }
.acc-guest .btn-reg { padding: 12px 20px; font-size: 16px; }
.nav-reg { display: none !important; }
.reg-cta { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--line); display: grid; gap: 10px; justify-items: center; text-align: center; }
.reg-cta span { font-weight: 700; color: var(--muted); }
.reg-cta .btn { width: 100%; }
@media (max-width: 1020px) {
  .acc-guest .btn-reg { display: none; }
  .main-nav .nav-reg { display: inline-flex !important; color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff5d8f); border-radius: 12px; }
}

/* шапка: пункты меню всегда в одну строку */
.main-nav { gap: 2px; }
.main-nav a { white-space: nowrap; padding: 10px 12px; }
.header-row { gap: 20px; }
.site-header .logo-img { height: 78px; }
.site-header.is-stuck .logo-img, .site-header.inner .logo-img { height: 62px; }
.acc-guest .btn, .btn-login { white-space: nowrap; }
@media (max-width: 1440px) {
  .main-nav a { padding: 10px 9px; font-size: 14px; gap: 6px; }
  .main-nav svg { width: 19px; height: 19px; }
  .site-header .logo-img { height: 64px; }
  .acc-guest .btn-reg, .btn-login { padding: 11px 16px; font-size: 15px; }
}
@media (max-width: 1240px) and (min-width: 1021px) {
  .main-nav svg { display: none; }
  .main-nav a { padding: 10px 8px; }
}

/* ===== 1.2.0: согласия, мои данные, документы ===== */
.consents { margin: 18px 0 4px; padding: 16px 18px; border-radius: 18px; background: #f5f9ff; border: 2px solid var(--line); display: grid; gap: 12px; }
.consents .check { margin: 0; font-weight: 600; line-height: 1.4; }
.consents .check small { display: block; color: var(--muted); font-weight: 500; }
.consents a, .danger-zone a, .my-data a, .rating-ask a { color: var(--blue); font-weight: 700; }
.req { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #fff1d6; color: #9a5b00; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.btn-danger { color: #fff; background: linear-gradient(180deg, #f05252, #c81e1e); box-shadow: 0 6px 16px rgba(200, 30, 30, .25); }
.danger-zone { margin-top: 16px; padding: 14px 16px; border-radius: 16px; border: 2px dashed #f3b7b7; background: #fff8f8; display: grid; gap: 6px; }
.danger-zone .row { margin-top: 6px; }
.danger-zone input[type=password] { max-width: 240px; }
.my-data h3 { font-size: 16px; margin: 6px 0 8px; }
.consent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.consent-list small { display: block; color: var(--muted); font-weight: 500; }
.consent-list .ok { color: var(--ok); }
.consent-list .off { color: var(--bad); }
.rating-ask p { font-weight: 600; line-height: 1.45; }
.rating-ask .row { margin-top: 12px; }
form.inline { display: inline; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 14px; font-weight: 700; }
.doc-toc a { color: var(--blue); }
.tbl-wrap { overflow-x: auto; margin: 10px 0; }
.doc-tbl { min-width: 560px; font-size: 14px; }
.doc-tbl td, .doc-tbl th { vertical-align: top; text-align: left; }
.doc h2[id] { scroll-margin-top: 90px; }
.doc-note { margin-top: 22px; background: #f5f9ff; box-shadow: none; border: 2px solid var(--line); }
.doc-note p { margin: 0; font-size: 15px; line-height: 1.5; }
.doc-note a { color: var(--blue); font-weight: 700; }
