/* Экраны и общие элементы. Значения из макета new_design/Pamyatki-v3.dc.html. */ /* ---------- Основа ---------- */ *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; } body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-18); font-weight: var(--wb); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; /* Страница никогда не прокручивается вбок: широкое содержимое переносится внутри блоков */ overflow-x: hidden; } button, input, textarea, select { font: inherit; color: inherit; } a { color: inherit; } h1, h2, h3, p, dl, dd { margin: 0; } img { max-width: 100%; } .icon { flex: none; display: block; } :focus-visible { outline: var(--focus-ring) solid var(--hl); outline-offset: 2px; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } } /* ---------- Каркас ---------- */ .shell { min-height: 100dvh; } .sidebar { display: none; } .screen { display: flex; flex-direction: column; gap: var(--sp-10); padding: var(--sp-6) var(--sp-8) calc(var(--h-tabbar) + var(--sp-24) + env(safe-area-inset-bottom)); padding-top: calc(var(--sp-6) + env(safe-area-inset-top)); min-width: 0; } /* ---------- Нижняя панель ---------- */ .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--bw) solid var(--ln); background: var(--sf); padding-bottom: env(safe-area-inset-bottom); } .tabbar--5 { grid-template-columns: repeat(5, 1fr); } .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--h-tabbar); min-width: 0; padding: 0 var(--sp-1); border: 0; background: transparent; font-size: var(--fs-13); font-weight: 500; color: var(--ink2); text-decoration: none; cursor: pointer; white-space: nowrap; } .tab--on { font-weight: 700; color: var(--ink); box-shadow: inset 0 4px 0 var(--hl); } .tab--btn { font-weight: 600; color: var(--ink); } /* ---------- Шапки ---------- */ .home-head { display: flex; align-items: center; gap: var(--sp-6); } .home-head-text { flex: 1; min-width: 0; } .home-title { font-size: var(--fs-23); font-weight: 700; line-height: var(--lh-tight); } .home-sub { font-size: var(--fs-13); color: var(--ink2); margin-top: var(--sp-1); } .over-caps { font-size: var(--fs-12); font-weight: 700; letter-spacing: var(--caps-xwide); text-transform: uppercase; color: var(--ink2); } .cheat-title { font-size: var(--fs-28); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; } .theme-btn { flex: none; height: var(--tap); padding: 0 var(--sp-7); border: var(--bw) solid var(--ln); border-radius: var(--r-btn); background: var(--sf); color: var(--ink); font-size: var(--fs-15); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: var(--sp-4); } .theme-btn-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); } .topline { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-left: calc(var(--sp-4) * -1); } .back { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-4); color: var(--ink); text-decoration: none; font-size: var(--fs-16); font-weight: 600; min-width: 0; } .back-chev { font-size: var(--fs-24); line-height: 1; } /* ---------- Поиск ---------- */ .home-search { display: flex; flex-direction: column; gap: var(--sp-6); } .search-field { display: flex; align-items: center; gap: var(--sp-6); height: var(--h-field); padding: 0 var(--sp-8); border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--sf); cursor: text; } .search-field:focus-within { box-shadow: 0 0 0 var(--focus-ring) var(--hl); } .search-field--active { padding-right: var(--sp-3); gap: var(--sp-5); } .search-ico { position: relative; flex: none; width: 22px; height: 22px; } .search-ico span:first-child { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border: 2.5px solid var(--ink); border-radius: 50%; } .search-ico span:last-child { position: absolute; left: 13px; top: 16px; width: 9px; height: 3px; background: var(--ink); transform: rotate(45deg); transform-origin: left center; } .search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-18); color: var(--ink); appearance: none; } .search-input::placeholder { color: var(--ink2); opacity: 1; } .search-input::-webkit-search-cancel-button { display: none; } .search-field--active .search-input { font-size: var(--fs-19); font-weight: 600; } .search-clear { flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-md); background: var(--sf2); color: var(--ink); font-size: var(--fs-18); cursor: pointer; } .kbd { display: none; } .chips { display: flex; gap: var(--sp-4); flex-wrap: wrap; } .chips--tight { gap: var(--sp-3); } .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--sp-8) * -1); padding: var(--sp-2) var(--sp-8); scrollbar-width: none; } .chips--scroll::-webkit-scrollbar { display: none; } .chip { display: flex; align-items: center; flex: none; height: var(--h-chip); padding: 0 var(--sp-7); border-radius: var(--r-pill); border: var(--bw) solid var(--ln); background: var(--sf); color: var(--ink); font-size: var(--fs-14); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; } .chip--filter { height: var(--tap-sm); padding: 0 var(--sp-8); font-size: var(--fs-15); } .chip--on { border: 2px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 700; } .linkchip { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 34px; padding: 0 var(--sp-6); border: var(--bw) solid var(--ink); border-radius: var(--r-pill); color: var(--ink); font-size: var(--fs-14); font-weight: 600; text-decoration: none; } .linkchip--sm { min-height: 30px; padding: 0 var(--sp-5); border-color: var(--ln); font-size: var(--fs-13); color: var(--ink2); } /* ---------- Заголовки блоков ---------- */ .block { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; } .caps-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); } .caps { font-size: var(--fs-14); font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; color: var(--ink2); } .caps-right { font-size: var(--fs-13); color: var(--ink2); } /* ---------- Карточка шпаргалки ---------- */ .cheat-card { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-8) var(--sp-9) var(--sp-9); border-radius: var(--r-block); background: var(--brand); color: var(--brand-ink); text-decoration: none; border: 2px solid var(--brand-ink); min-width: 0; } .cheat-card-caps { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-12); font-weight: 700; letter-spacing: var(--caps-xwide); text-transform: uppercase; } .cheat-card-title { font-size: var(--fs-30); font-weight: 700; line-height: 1.1; } .cheat-card-text { font-size: var(--fs-16); line-height: 1.4; } .cheat-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-1); } .cheat-card-fact { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-sm); background: var(--brand-ink); color: var(--brand); min-width: 0; } .cheat-card-value { font-size: var(--fs-18); font-weight: 700; line-height: 1.2; } .cheat-card-label { font-size: var(--fs-13); line-height: 1.3; color: var(--on-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* ---------- Сетка разделов ---------- */ .sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); } .sec-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-7); min-height: 118px; min-width: 0; padding: var(--sp-7); border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); color: var(--ink); text-decoration: none; box-shadow: var(--sh); } .sec-card--row { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 72px; } .sec-card-name { display: block; font-size: var(--fs-17); font-weight: 700; line-height: 1.25; } .sec-card-n { display: block; font-size: var(--fs-14); color: var(--ink2); margin-top: var(--sp-1); } .plaque { flex: none; align-self: flex-start; display: flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 var(--sp-4); border-radius: var(--r-plaque); color: var(--plq-ink-text); font-size: var(--fs-19); font-weight: 700; } .sec-card--row .plaque, .sec-head .plaque { align-self: center; } .plaque--lg { min-width: 64px; height: 48px; padding: 0 var(--sp-5); font-size: var(--fs-26); } .plaque--yellow { background: var(--plq-yellow); } .plaque--orange { background: var(--plq-orange); } .plaque--blue { background: var(--plq-blue); } .plaque--green { background: var(--plq-green); } .plaque--ink { background: var(--ink); color: var(--bg); } .codetag { flex: none; font-size: var(--fs-12); font-weight: 700; line-height: 1.2; padding: var(--sp-2) var(--sp-3); border: 2px solid var(--ink); border-radius: 5px; } .codetag--sm { font-size: 0.6875rem; padding: 3px 5px; border-radius: var(--r-xs); } /* ---------- Списки ---------- */ .list { border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); overflow: hidden; } .list-row { display: flex; align-items: center; gap: var(--sp-6); min-height: var(--h-row); padding: var(--sp-5) var(--sp-7); color: var(--ink); text-decoration: none; } .list-row + .list-row { border-top: var(--bw) solid var(--ln); } .list-row-main { flex: 1; min-width: 0; } .list-row-title { display: block; font-weight: 600; line-height: var(--lh-snug); } .list-row-sub { display: block; font-size: var(--fs-14); color: var(--ink2); } .list-row-over, .list-row-desc { display: none; } .list-row-meta { flex: none; font-size: var(--fs-13); color: var(--ink2); } .list-row-chev { flex: none; font-size: var(--fs-22); color: var(--ink2); } /* ---------- Экран раздела ---------- */ .sec-head { display: flex; align-items: center; gap: var(--sp-7); } .sec-title { font-size: var(--fs-28); font-weight: 700; line-height: 1.1; } .sec-meta { font-size: var(--fs-15); color: var(--ink2); margin-top: var(--sp-1); } .art-cards { display: flex; flex-direction: column; gap: var(--sp-8); } .art-card { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-8); border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); text-decoration: none; color: var(--ink); box-shadow: var(--sh); } .art-card-head { display: flex; gap: var(--sp-5); align-items: baseline; } .art-card-n { font-size: var(--fs-14); font-weight: 700; color: var(--ink2); } .art-card-title { font-size: var(--fs-19); font-weight: 700; line-height: 1.25; } .art-card-text { font-size: var(--fs-16); line-height: var(--lh-normal); color: var(--ink2); } .tags { display: flex; gap: var(--sp-3); flex-wrap: wrap; } .tag { display: flex; align-items: center; min-height: 28px; padding: 0 var(--sp-4); border-radius: var(--r-tag); background: var(--sf2); border: var(--bw) solid var(--ln); font-size: var(--fs-13); font-weight: 600; } .tag--equip { min-height: 32px; padding: 0 var(--sp-5); border-radius: var(--r-sm); } /* Строка «Сохранено для офлайна» */ .offline-row { display: flex; align-items: center; gap: var(--sp-6); min-height: var(--h-row-sm); padding: var(--sp-4) var(--sp-7); border-radius: var(--r-btn); border: var(--bw) solid var(--ln); background: var(--sf); font-size: var(--fs-15); font-weight: 700; } .offline-row--done { border-color: transparent; background: var(--grnbg); color: var(--grn); } .offline-row-text { flex: 1; min-width: 0; } .offline-row-btn { flex: none; min-height: var(--tap-sm); padding: 0 var(--sp-2); border: 0; background: transparent; color: inherit; font-size: var(--fs-14); font-weight: 600; text-decoration: underline; cursor: pointer; } .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--grnS); } .dot--sm { width: 8px; height: 8px; } .pill-offline { flex: none; display: flex; align-items: center; gap: var(--sp-3); height: 32px; padding: 0 var(--sp-5); border-radius: var(--r-pill); background: var(--grnbg); color: var(--grn); font-size: var(--fs-13); font-weight: 700; white-space: nowrap; } /* ---------- Статья ---------- */ .deskbar, .art-aside, .art-over { display: none; } .art-layout { min-width: 0; } .art { display: flex; flex-direction: column; gap: var(--sp-9); min-width: 0; } .art-topline { margin-top: calc(var(--sp-4) * -1); } .art-title { font-size: var(--fs-30); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; } .art-summary { font-size: var(--fs-17); line-height: 1.5; color: var(--ink2); } .meta { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-7); padding: var(--sp-6) var(--sp-7); border: var(--bw) solid var(--ln); border-radius: var(--r-btn); background: var(--sf); font-size: var(--fs-15); line-height: 1.35; } .meta dt { color: var(--ink2); } .meta dd { font-weight: 700; font-size: var(--fs-14); } .meta-break { word-break: break-all; } .hashtags { display: flex; gap: var(--sp-3) var(--sp-5); flex-wrap: wrap; } .hashtag { font-size: var(--fs-14); color: var(--ink2); padding: var(--sp-2) 0; text-decoration: none; } .art-src-mobile { display: flex; flex-direction: column; gap: var(--sp-4); } .src-card { display: flex; align-items: center; gap: var(--sp-7); min-height: 76px; padding: var(--sp-6) var(--sp-7); border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); color: var(--ink); text-decoration: none; } .src-ico { flex: none; width: 42px; height: 52px; border: 2px solid var(--ink); border-radius: var(--r-xs) var(--r-btn) var(--r-xs) var(--r-xs); display: flex; align-items: flex-end; justify-content: center; padding-bottom: var(--sp-3); font-size: 0.6875rem; font-weight: 700; } .src-main { flex: 1; min-width: 0; } .src-label { display: block; font-size: var(--fs-12); color: var(--ink2); text-transform: uppercase; letter-spacing: var(--caps); font-weight: 700; } .src-name { display: block; font-weight: 700; font-size: var(--fs-15); word-break: break-all; line-height: var(--lh-snug); } .src-meta { display: block; font-size: var(--fs-14); color: var(--ink2); } .src-btn { flex: none; height: var(--tap); padding: 0 var(--sp-7); border-radius: var(--r-md); background: var(--ink); color: var(--bg); display: flex; align-items: center; font-weight: 700; font-size: var(--fs-15); } .sticky-head { position: fixed; top: 0; left: 0; right: 0; z-index: 5; background: var(--sf); border-bottom: var(--bw) solid var(--ln); padding: calc(var(--sp-4) + env(safe-area-inset-top)) var(--sp-8) var(--sp-5); display: flex; flex-direction: column; gap: 1px; box-shadow: var(--sh); transform: translateY(-110%); transition: transform var(--t-fast); } .sticky-head.is-on { transform: none; } .sticky-head-sec { font-size: var(--fs-12); color: var(--ink2); } .sticky-head-title { font-size: var(--fs-16); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sticky-head-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--hl); transition: width 0.1s linear; } /* ---------- Панель снизу и окно ---------- */ .sheet-wrap { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; } .scrim { position: absolute; inset: 0; border: 0; background: var(--scrim); cursor: pointer; } .sheet { position: relative; width: 100%; max-height: 86dvh; display: flex; flex-direction: column; background: var(--sf); color: var(--ink); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--sheet-shadow); padding-bottom: calc(var(--sp-10) + env(safe-area-inset-bottom)); animation: sheet-in var(--t-sheet); } @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } } .sheet-grip { flex: none; display: flex; justify-content: center; padding: var(--sp-5) 0 var(--sp-2); } .sheet-grip span { width: 44px; height: 5px; border-radius: 3px; background: var(--ln); } .sheet-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding: 0 var(--sp-4) var(--sp-3) var(--sp-9); } .sheet-titles { flex: 1; min-width: 0; padding-top: var(--sp-4); } .sheet-title { font-size: var(--fs-19); font-weight: 700; } .sheet-sub { font-size: var(--fs-15); color: var(--ink2); margin-top: var(--sp-1); line-height: 1.35; } .sheet-close { flex: none; width: var(--tap); height: var(--tap); border: 0; background: transparent; font-size: var(--fs-20); cursor: pointer; color: var(--ink); } .sheet-scroll { overflow-y: auto; overscroll-behavior: contain; } .sheet-body { display: flex; flex-direction: column; gap: var(--sp-8); padding: var(--sp-2) var(--sp-9) 0; overflow-y: auto; } .sheet-empty { padding: var(--sp-8) var(--sp-9); color: var(--ink2); font-size: var(--fs-16); } .toc-row { display: flex; align-items: center; gap: var(--sp-7); width: 100%; min-height: var(--h-row-sm); padding: var(--sp-4) var(--sp-9); border: 0; border-top: var(--bw) solid var(--ln); background: transparent; text-align: left; cursor: pointer; color: var(--ink); font-size: var(--fs-17); font-weight: 600; line-height: var(--lh-snug); } .toc-n { flex: none; font-size: var(--fs-13); color: var(--ink2); } /* ---------- Кнопки ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-4); min-height: var(--tap-sm); padding: 0 var(--sp-7); border: var(--bw) solid var(--ln); border-radius: var(--r-md); background: var(--sf); color: var(--ink); font-size: var(--fs-15); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; } .btn:disabled { opacity: 0.55; cursor: default; } .btn--solid { border: 0; background: var(--ink); color: var(--bg); font-weight: 700; } .btn--outline { border: 2px solid var(--ink); background: transparent; font-weight: 700; } .btn--brand { border: 0; background: var(--hl); color: var(--brand-ink); font-weight: 700; } .btn--dashed { border: 2px dashed var(--ln); background: transparent; font-weight: 700; } .btn--lg { min-height: var(--h-btn); border-radius: var(--r-btn); font-size: var(--fs-16); } .btn--xl { min-height: var(--h-field); border-radius: var(--r-btn); font-size: var(--fs-18); } .btn--block { display: flex; width: 100%; } .segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); padding: var(--sp-2); border: var(--bw) solid var(--ln); border-radius: var(--r-btn); background: var(--sf2); } .segmented--3 { grid-template-columns: repeat(3, 1fr); } .seg { min-height: var(--tap-sm); border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: var(--fs-15); font-weight: 600; cursor: pointer; } .seg--on { background: var(--ink); color: var(--bg); font-weight: 700; } /* ---------- Уведомления, пустые состояния, загрузка ---------- */ .notice { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-8); border: 2px dashed var(--ln); border-radius: var(--r-card); } .notice--error { border-style: solid; border-color: var(--redS); background: var(--redbg); } .notice-title { font-size: var(--fs-18); font-weight: 700; } .notice-text { font-size: var(--fs-16); color: var(--ink2); line-height: var(--lh-normal); } .skeleton { display: flex; flex-direction: column; gap: var(--sp-6); } .skeleton-line { height: var(--h-row-sm); border-radius: var(--r-card); background: var(--sf); border: var(--bw) solid var(--ln); opacity: 0.6; } /* ---------- Шпаргалка ---------- */ .cheat-intro { margin-top: calc(var(--sp-4) * -1); font-size: var(--fs-16); color: var(--ink2); line-height: var(--lh-normal); } .cheat-print { margin-top: calc(var(--sp-3) * -1); min-height: var(--h-btn); border-radius: var(--r-btn); font-size: var(--fs-16); } .cs-box { border: 2px solid var(--ln); border-radius: var(--r-block); overflow: hidden; background: var(--sf); } .cs-box--red { border-color: var(--redS); } .cs-box--green { border-color: var(--grnS); } .cs-box-head { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--tap); padding: 0 var(--sp-7); color: var(--on-strong); font-size: var(--fs-16); font-weight: 700; letter-spacing: var(--caps-wide); } .cs-box--red .cs-box-head { background: var(--redS); } .cs-box--green .cs-box-head { background: var(--grnS); } .cs-box-n { margin-left: auto; } .cs-minus { flex: none; position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--on-strong); } .cs-minus::after { content: ''; position: absolute; left: 5.5px; top: 10px; width: 13px; height: 4px; background: var(--redS); } .cs-ban { display: flex; gap: var(--sp-6); padding: var(--sp-6) var(--sp-7); border-top: var(--bw) solid var(--ln); } .cs-ban-n { flex: none; font-size: var(--fs-14); font-weight: 700; color: var(--red); padding-top: var(--sp-1); } .cs-ban-main { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; } .cs-text { line-height: var(--lh-normal); } .cs-text strong { font-weight: var(--ws); } .cs-ban .cs-text strong { color: var(--red); } .cs-h { display: flex; align-items: baseline; justify-content: space-between; } .cs-h h2 { font-size: var(--fs-22); font-weight: 700; } .cs-h span { font-size: var(--fs-13); color: var(--ink2); } .cs-fact { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6) var(--sp-7); } .cs-fact + .cs-fact { border-top: var(--bw) solid var(--ln); } .cs-fact-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-6); } .cs-fact-t { font-size: var(--fs-16); line-height: 1.35; min-width: 0; } .cs-fact-v { flex: none; font-size: var(--fs-19); font-weight: 700; text-align: right; max-width: 52%; } .cs-colors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); } .cs-color { display: flex; flex-direction: column; border: var(--bw) solid var(--ln); border-radius: var(--r-card); overflow: hidden; background: var(--sf); } .cs-swatch { height: 56px; } .cs-color-text { padding: var(--sp-5) var(--sp-6); } .cs-color-code { font-size: var(--fs-18); font-weight: 700; } .cs-color-label { font-size: var(--fs-14); color: var(--ink2); } .cs-always { display: flex; gap: var(--sp-6); align-items: flex-start; padding: var(--sp-6) var(--sp-7); border-top: var(--bw) solid var(--ln); } .cs-tick { flex: none; position: relative; width: 22px; height: 22px; margin-top: var(--sp-1); border-radius: var(--r-tag); background: var(--grnS); } .cs-tick::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--on-strong); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); } /* ---------- Просмотр фото ---------- */ .lb { position: fixed; inset: 0; z-index: 50; background: var(--lb-bg); color: var(--lb-ink); display: flex; flex-direction: column; } .lb-top { flex: none; display: flex; align-items: center; gap: var(--sp-5); padding: calc(var(--sp-4) + env(safe-area-inset-top)) var(--sp-4) var(--sp-4) var(--sp-8); min-height: 68px; } .lb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); } .lb-counter { font-size: var(--fs-13); color: var(--lb-ink2); } .lb-cap { font-size: var(--fs-16); font-weight: 600; line-height: var(--lh-snug); } .lb-btn { height: 52px; border-radius: var(--r-btn); border: 1px solid var(--lb-ln); background: var(--lb-sf); color: var(--lb-ink); font-size: var(--fs-22); cursor: pointer; } .lb-btn--close { flex: none; width: 52px; } .lb-btn--pct { font-size: var(--fs-15); font-weight: 700; } .lb-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; cursor: grab; user-select: none; } .lb-img { max-width: 100%; max-height: 100%; pointer-events: none; transition: transform 0.15s ease-out; } .lb-miss { width: 86%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--lb-sf) 0 14px, var(--lb-sf2) 14px 28px); font-size: var(--fs-14); color: var(--lb-ink2); transition: transform 0.15s; } .lb-bottom { flex: none; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6) calc(var(--sp-11) + env(safe-area-inset-bottom)); } .lb-controls { display: grid; grid-template-columns: 56px 1fr 56px 72px 56px 1fr 56px; gap: var(--sp-3); align-items: center; } .lb-hint { text-align: center; font-size: var(--fs-13); color: var(--lb-ink3); } /* ===================================================================== Компьютер: левое меню, широкая главная, статья с боковой колонкой ===================================================================== */ @media (min-width: 1024px) { .tabbar { display: none; } .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--w-sidebar); display: flex; flex-direction: column; border-right: var(--bw) solid var(--ln); background: var(--sf); overflow-y: auto; } .sidebar-brand { display: block; padding: var(--sp-10) var(--sp-10) var(--sp-6); text-decoration: none; } .sidebar-brand-title { display: block; font-size: var(--fs-19); font-weight: 700; line-height: var(--lh-snug); } .sidebar-brand-sub { display: block; font-size: var(--fs-13); color: var(--ink2); } .space-pick { margin: 0 var(--sp-6) var(--sp-6); min-height: 52px; display: flex; align-items: center; gap: var(--sp-5); padding: 0 var(--sp-6); border: var(--bw) solid var(--ln); border-radius: var(--r-btn); background: var(--sf2); } .space-pick-icon { flex: none; width: 28px; height: 28px; border-radius: var(--r-tag); background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-15); } .space-pick-label { display: block; font-size: 0.6875rem; color: var(--ink2); text-transform: uppercase; letter-spacing: var(--caps); font-weight: 700; line-height: 1.3; } .space-pick-name { display: block; font-size: var(--fs-16); font-weight: 700; line-height: 1.3; } .tree { display: flex; flex-direction: column; padding: 0 var(--sp-4) var(--sp-8); } .tree-head { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--tap-sm); padding: var(--sp-3) var(--sp-6) 0; font-size: var(--fs-15); font-weight: 700; line-height: var(--lh-snug); text-decoration: none; } .tree-link { display: flex; align-items: center; min-height: var(--h-chip); padding: var(--sp-2) var(--sp-6) var(--sp-2) 52px; border-radius: var(--r-sm); font-size: var(--fs-15); line-height: var(--lh-snug); color: var(--ink2); text-decoration: none; } .tree-link--top { padding-left: var(--sp-6); font-weight: 600; color: var(--ink); } .tree-link--on, .tree-link.active { font-weight: 700; color: var(--ink); background: var(--sf2); box-shadow: inset 4px 0 0 var(--hl); } .sidebar-foot { margin-top: auto; padding: var(--sp-8); border-top: var(--bw) solid var(--ln); display: flex; flex-direction: column; gap: var(--sp-4); } .sidebar-foot-label { font-size: var(--fs-13); font-weight: 700; color: var(--ink2); } .sidebar-foot .seg { min-height: var(--h-chip); font-size: var(--fs-14); } .shell-main { margin-left: var(--w-sidebar); } .screen { gap: var(--sp-12); max-width: calc(var(--w-article) + var(--sp-28) * 2); padding: var(--sp-20) var(--sp-28) var(--sp-32); } .screen--wide { max-width: 1140px; gap: var(--sp-16); } /* На компьютере тема переключается в меню слева */ .home-head .theme-btn, .topline .theme-btn { display: none; } /* Главная */ .home-search { max-width: 900px; } .search-field { height: 68px; padding: 0 var(--sp-7) 0 var(--sp-10); border-radius: var(--r-block); gap: var(--sp-7); } .search-input { font-size: var(--fs-20); } .kbd { flex: none; height: 32px; padding: 0 var(--sp-5); display: flex; align-items: center; border: var(--bw) solid var(--ln); border-radius: var(--r-tag); font-size: var(--fs-14); color: var(--ink2); } .home-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-10); align-items: stretch; } .home-top > :only-child { grid-column: 1 / -1; } .cheat-card { gap: var(--sp-7); padding: var(--sp-12); border-radius: var(--r-lg); } .cheat-card-caps { font-size: var(--fs-13); } .cheat-card-title { font-size: var(--fs-36); line-height: 1; } .cheat-card-text { font-size: var(--fs-17); } .cheat-card-facts { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } .cheat-card-fact { padding: var(--sp-6); border-radius: var(--r-md); } .cheat-card-value { font-size: var(--fs-24); } .cheat-card-label { font-size: var(--fs-14); } .home-recent .caps-row { padding: var(--sp-8) var(--sp-9) var(--sp-4); } .home-recent { gap: 0; border: var(--bw) solid var(--ln); border-radius: var(--r-lg); background: var(--sf); overflow: hidden; } .home-recent .list { border: 0; border-radius: 0; } .home-recent .list-row { min-height: var(--h-field); padding: var(--sp-4) var(--sp-9); border-top: var(--bw) solid var(--ln); } .home-recent .list-row-title { font-weight: 700; } .sec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-6); } .sec-card, .sec-card--row { grid-column: auto; flex-direction: column; align-items: stretch; justify-content: space-between; gap: var(--sp-10); min-height: 140px; padding: var(--sp-8); } .sec-card--row .plaque { align-self: flex-start; } .sec-card .plaque { min-width: 48px; height: 34px; font-size: var(--fs-20); } .sec-card-name { font-size: var(--fs-18); } .list--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); border: 0; background: transparent; overflow: visible; } .list--cards .list-row { align-items: flex-start; padding: var(--sp-8); border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); } .list--cards .codetag, .list--cards .list-row-chev { display: none; } .list--cards .list-row-over { display: block; font-size: var(--fs-12); font-weight: 700; color: var(--ink2); text-transform: uppercase; margin-bottom: var(--sp-3); } .list--cards .list-row-title { font-weight: 700; } .list--cards .list-row-desc { display: block; font-size: var(--fs-15); color: var(--ink2); line-height: 1.4; margin-top: var(--sp-3); } /* Статья */ .screen:has(.art-layout) { max-width: none; padding: 0; gap: 0; } .sticky-head { display: none; } .deskbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--sp-5); height: var(--h-row); padding: 0 var(--sp-16); background: var(--bg); border-bottom: var(--bw) solid var(--ln); } .crumbs { flex: 1; min-width: 0; font-size: var(--fs-15); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crumbs a { text-decoration: none; } .crumbs strong { color: var(--ink); } .art-layout { display: grid; grid-template-columns: minmax(0, var(--w-article)) var(--w-aside); gap: var(--sp-24); padding: var(--sp-16) var(--sp-20) var(--sp-32); justify-content: center; } .art { gap: var(--sp-10); } .art-topline, .art-meta-mobile, .art-src-mobile { display: none; } .art-over { display: block; font-size: var(--fs-13); font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: var(--caps); } .art-title { margin-top: calc(var(--sp-4) * -1); font-size: var(--fs-40); line-height: 1.12; letter-spacing: -0.015em; } .art-summary { font-size: var(--fs-19); } .art-aside { position: sticky; top: calc(var(--h-row) + var(--sp-16)); align-self: start; display: flex; flex-direction: column; gap: var(--sp-7); max-height: calc(100dvh - var(--h-row) - var(--sp-24)); overflow-y: auto; } .aside-card { border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); overflow: hidden; } .aside-caps { padding: var(--sp-6) var(--sp-8); font-size: var(--fs-13); font-weight: 700; letter-spacing: var(--caps); text-transform: uppercase; color: var(--ink2); } .aside-toc .toc-row { gap: var(--sp-5); min-height: var(--tap-sm); padding: var(--sp-3) var(--sp-8); font-size: var(--fs-15); } .aside-toc .toc-n { font-size: var(--fs-12); } .aside-meta .meta { border: 0; border-radius: 0; padding: var(--sp-7) var(--sp-8); font-size: var(--fs-14); gap: var(--sp-3) var(--sp-6); } .art-aside .src-card { gap: var(--sp-6); min-height: 0; } .art-aside .src-ico { width: 38px; height: 46px; font-size: 0.625rem; } .art-aside .src-name { font-size: var(--fs-14); } .art-aside .src-meta { font-size: var(--fs-13); } .art-aside .src-btn { display: none; } .kb-h2 { scroll-margin-top: calc(var(--h-row) + var(--sp-8)); } /* Окно по центру вместо панели снизу */ .sheet-wrap { left: var(--w-sidebar); align-items: center; justify-content: center; } .scrim { left: calc(var(--w-sidebar) * -1); background: var(--scrim-strong); } .sheet { width: 520px; max-height: 80dvh; border-radius: var(--r-lg); box-shadow: var(--dialog-shadow); padding-bottom: var(--sp-12); } .sheet-grip { display: none; } .sheet-head { padding: var(--sp-9) var(--sp-8) var(--sp-4) var(--sp-12); } .sheet-title { font-size: var(--fs-22); } .sheet-body { padding: var(--sp-2) var(--sp-12) 0; } .lb { left: 0; } } /* Между телефоном и компьютером (планшет): текст не растягиваем на всю ширину */ @media (min-width: 720px) and (max-width: 1023.98px) { .screen { max-width: 760px; margin: 0 auto; } } /* ---------- Окно «Печать и PDF» ---------- */ .tabbar--5 .tab { font-size: var(--fs-12); letter-spacing: -0.01em; } .seg--lg { min-height: var(--tap); font-size: var(--fs-16); } .switch-row { display: flex; align-items: center; gap: var(--sp-7); width: 100%; min-height: var(--h-row); padding: var(--sp-5) var(--sp-7); border: 0; background: transparent; text-align: left; color: var(--ink); cursor: pointer; } .switch-row + .switch-row { border-top: var(--bw) solid var(--ln); } .switch-row-main { flex: 1; min-width: 0; } .switch-row-title { display: block; font-size: var(--fs-17); font-weight: 700; } .switch-row-text { display: block; font-size: var(--fs-14); color: var(--ink2); line-height: 1.35; } .switch { flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--sf2); border: var(--bw) solid var(--ln); display: flex; align-items: center; padding: 3px; } .switch span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink2); } .switch--on { background: var(--grnS); border-color: var(--grnS); justify-content: flex-end; } .switch--on span { width: 26px; height: 26px; background: var(--on-strong); } .print-est { font-size: var(--fs-15); color: var(--ink2); } .print-hint { font-size: var(--fs-13); color: var(--ink2); margin-top: calc(var(--sp-4) * -1); } .btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); } /* ---------- Экран поиска ---------- */ .search-top { position: sticky; top: 0; z-index: 4; display: flex; flex-direction: column; gap: var(--sp-6); margin: calc(var(--sp-6) * -1) calc(var(--sp-8) * -1) 0; padding: calc(var(--sp-6) + env(safe-area-inset-top)) var(--sp-8) var(--sp-6); background: var(--bg); border-bottom: var(--bw) solid var(--ln); } .search-top .search-field { box-shadow: 0 0 0 var(--focus-ring) var(--hl); } .search-top .chips--scroll { margin-bottom: calc(var(--sp-2) * -1); } mark { background: var(--hl); color: var(--brand-ink); border-radius: var(--r-plaque); } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .search-empty-title { font-size: var(--fs-20); font-weight: 700; line-height: 1.25; } .search-empty-text { font-size: var(--fs-16); color: var(--ink2); line-height: var(--lh-normal); } .search-offline { padding: var(--sp-5) var(--sp-7); border-radius: var(--r-btn); background: var(--ambbg); border: var(--bw) solid var(--ambln); color: var(--amb); font-size: var(--fs-15); font-weight: 600; } .hint-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); width: 100%; min-height: var(--h-row-sm); padding: 0 var(--sp-8); border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); } .hint-row + .hint-row { border-top: var(--bw) solid var(--ln); } .hint-row-q { font-size: var(--fs-17); font-weight: 700; } .hint-row-d { font-size: var(--fs-14); color: var(--ink2); } .fact-card, .result-card { display: flex; flex-direction: column; padding: var(--sp-7) var(--sp-8); border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); color: var(--ink); text-decoration: none; min-width: 0; } .fact-card { gap: var(--sp-3); } .result-card { gap: var(--sp-2); } .fact-card-value { font-size: var(--fs-24); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.02em; } .fact-card-label { font-size: var(--fs-16); line-height: 1.35; } .result-card-sec { font-size: var(--fs-12); font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.06em; } .result-card-title { font-size: var(--fs-18); font-weight: 700; line-height: var(--lh-snug); } .result-card-snip { font-size: var(--fs-15); color: var(--ink2); line-height: 1.4; } @media (min-width: 1024px) { .search-top { margin: calc(var(--sp-20) * -1) 0 0; padding: var(--sp-20) 0 var(--sp-6); } .search-top .chips--scroll { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } } /* ---------- Офлайн ---------- */ .offline-banner { display: flex; gap: var(--sp-6); align-items: flex-start; padding: calc(var(--sp-6) + env(safe-area-inset-top)) var(--sp-8) var(--sp-6); background: var(--brand); color: var(--brand-ink); } .offline-banner + .screen { padding-top: var(--sp-6); } .offline-banner-title { display: block; font-weight: 700; line-height: var(--lh-snug); } .offline-banner-text { display: block; font-size: var(--fs-14); } .warn-tri { flex: none; position: relative; width: 0; height: 0; margin-top: var(--sp-1); border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 20px solid var(--brand-ink); } .warn-tri::after { content: ''; position: absolute; left: -2px; top: 6px; width: 4px; height: 8px; background: var(--brand); } .progress { display: block; height: 4px; margin-top: var(--sp-3); border-radius: var(--r-xs); background: var(--sf2); overflow: hidden; } .progress span { display: block; height: 100%; background: var(--grnS); transition: width 0.2s; } .progress--lg { height: 10px; margin: 0; border-radius: 5px; border: var(--bw) solid var(--ln); } .off-title { font-size: var(--fs-24); font-weight: 700; } .off-note { font-size: var(--fs-14); color: var(--ink2); line-height: var(--lh-normal); } .off-card { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-7); border: var(--bw) solid var(--ln); border-radius: var(--r-card); background: var(--sf); } .off-card-head { display: flex; align-items: center; gap: var(--sp-6); } .off-card-name { flex: 1; min-width: 0; font-weight: 700; line-height: var(--lh-snug); } .off-card-size, .off-card-pct { font-size: var(--fs-13); color: var(--ink2); } .off-card-done { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-chip); color: var(--grn); font-size: var(--fs-15); font-weight: 700; } .off-card-loading { display: flex; flex-direction: column; gap: var(--sp-3); } .off-card-btn { min-height: 52px; border-radius: var(--r-btn); font-size: var(--fs-16); white-space: normal; } .btn--lg.btn--block { white-space: normal; } @media (min-width: 1024px) { .home-more { display: none; } } /* ---------- Вход ---------- */ .splash { min-height: 100dvh; background: var(--bg); } .hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--brand) 0 10px, var(--brand-ink) 10px 20px); } .hazard--lg { height: calc(14px + env(safe-area-inset-top)); background: repeating-linear-gradient(-45deg, var(--brand) 0 12px, var(--brand-ink) 12px 24px); } .login { min-height: 100dvh; display: flex; flex-direction: column; } .login-main { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-9); padding: var(--sp-12) var(--sp-10); } .login-form { display: flex; flex-direction: column; gap: var(--sp-9); } .login-site { font-size: var(--fs-13); font-weight: 700; color: var(--ink2); } .login-title { font-size: var(--fs-32); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-top: var(--sp-3); } .login-note { font-size: var(--fs-16); color: var(--ink2); line-height: var(--lh-normal); } .login-link { display: flex; align-items: center; justify-content: center; min-height: var(--tap); border: 0; background: transparent; font-size: var(--fs-16); font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; } .field { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; } .field-label { font-size: var(--fs-15); font-weight: 700; } .field-box, .field-input--box { height: var(--h-field); border: 2px solid var(--ink); border-radius: var(--r-btn); background: var(--sf); } .field-box { display: flex; align-items: center; padding: 0 var(--sp-3) 0 var(--sp-8); } .field-box:focus-within, .field-input--box:focus { box-shadow: 0 0 0 var(--focus-ring) var(--hl); outline: 0; } .field-input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--fs-18); } .field-input--box { flex: none; padding: 0 var(--sp-8); border: 2px solid var(--ink); background: var(--sf); } .field-input::placeholder { color: var(--ink2); } .field-toggle { flex: none; height: var(--tap); padding: 0 var(--sp-6); border: 0; background: transparent; font-size: var(--fs-15); font-weight: 600; color: var(--ink2); cursor: pointer; } .remember { display: flex; align-items: center; gap: var(--sp-7); min-height: var(--h-btn); padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); } .remember-title { display: block; font-weight: 700; } .remember-text { display: block; font-size: var(--fs-14); color: var(--ink2); } .bigbox { flex: none; position: relative; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--sf); } .bigbox--on { border-color: var(--grnS); background: var(--grnS); } .bigbox--on::after { content: ''; position: absolute; left: 9px; top: 3px; width: 8px; height: 15px; border: solid var(--on-strong); border-width: 0 3px 3px 0; transform: rotate(45deg); } .form-error { padding: var(--sp-6) var(--sp-7); border: 2px solid var(--redS); border-radius: var(--r-btn); background: var(--redbg); color: var(--red); font-size: var(--fs-16); font-weight: 600; } /* ---------- Блок пользователя ---------- */ .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sf2); border: var(--bw) solid var(--ln); display: flex; align-items: center; justify-content: center; font-size: var(--fs-14); font-weight: 700; } .usermenu-btn { width: 100%; border: 0; border-top: var(--bw) solid var(--ln); background: transparent; text-align: left; cursor: pointer; font-size: inherit; } .usermenu-link { min-height: var(--h-row-sm); } .usermenu--compact { display: flex; flex-direction: column; margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-2); } .usermenu--compact .list-row { min-height: var(--h-chip); padding: var(--sp-2) var(--sp-4); border: 0; border-radius: var(--r-sm); font-size: var(--fs-15); } .usermenu--compact .usermenu-who { min-height: var(--h-row-sm); } .usermenu--compact .avatar { width: 36px; height: 36px; } .badge-draft { flex: none; padding: var(--sp-1) var(--sp-4); border-radius: var(--r-tag); border: var(--bw) solid var(--ambln); background: var(--ambbg); color: var(--amb); font-size: var(--fs-12); font-weight: 700; } .topline-right { display: flex; align-items: center; gap: var(--sp-4); } /* ---------- Переключатель пространства ---------- */ .space-pick { min-height: 52px; display: flex; align-items: center; gap: var(--sp-5); padding: 0 var(--sp-6); border: var(--bw) solid var(--ln); border-radius: var(--r-btn); background: var(--sf2); } .space-pick-text { flex: 1; min-width: 0; } .space-pick-icon { flex: none; width: 28px; height: 28px; border-radius: var(--r-tag); background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-15); } .space-pick-label { display: block; font-size: 0.6875rem; color: var(--ink2); text-transform: uppercase; letter-spacing: var(--caps); font-weight: 700; line-height: 1.3; } .space-pick-name, .space-pick-select { display: block; font-size: var(--fs-16); font-weight: 700; line-height: 1.3; } .space-pick-select { width: 100%; border: 0; background: transparent; color: var(--ink); cursor: pointer; } .space-pick-select option { background: var(--sf); color: var(--ink); } @media (min-width: 1024px) { .sidebar .space-pick { margin: 0 var(--sp-6) var(--sp-6); } .home-space { display: none; } }