*, *::before, *::after {
    box-sizing: border-box;
}

:where(ul, ol):where([class]) {
    padding-left: 0;
}

body, :where(blockquote, figure):where([class]) {
    margin: 0;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl):where([class]) {
    margin-block: 0;
}

:where(dd[class]) {
    margin-left: 0;
}

:where(ul[class]) {
    list-style: none;
}

img {
    display: block;
    max-width: 100%
}

input, textarea, select, button {
    font: inherit;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 26px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.ripple {
  position: relative;
  overflow: visible;   /* важно: НЕ клипуем контент */
  isolation: auto;     /* важно: убираем изоляцию слоя */
}

.ripple__clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.ripple__wave {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    background: #ffffff;
    animation: ripple .3s ease-out;
    animation-fill-mode: normal;
}

.ripple__wave.is-release {
    animation: none; 
    transition: opacity .2s ease;
    opacity: 0;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/*Нормализация стилей*/
@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("font/Montserrat-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("font/Inter18pt-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("font/Inter18pt-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/*Шрифты*/

:root {
    --navbar-h: 82px;
}

[id]{
  scroll-margin-top: calc(var(--navbar-h) + 12px);
}

.divider {
    border-top: 1px solid #484848;
}

.divider-search {
    margin-block: 8px;
    border-top: 1px solid #484848;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.input-clear {
  position: relative;
}

.input-clear > input {
  padding-right: 44px;
}

.input-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 9999px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.input-clear.is-focus.has-value .input-clear-btn {
  opacity: .7;
  transform: translateX(0);
  pointer-events: auto;
}

.input-clear-btn::before,
.input-clear-btn::after {
  content: "";
  width: 12px;
  height: 2px;
  background: #484848;
  border-radius: 2px;
  position: absolute;
}

.input-clear-btn::before { transform: rotate(45deg); }
.input-clear-btn::after  { transform: rotate(-45deg); }

body {
    display: flex;
    flex-direction: column;
    background-color: #121212;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.navbar {
    display: flex;
    position: sticky;
    top: 0;
    height: var(--navbar-h);
    z-index: 200;
    background-color: #000000;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.navbar-inner {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    flex-wrap: wrap;
}

.logo-link {
    flex-shrink: 0;
    border-radius: 12px;
    padding: 6px;
}

.logo-link:hover,
.logo-link:focus-visible {
    transform: scale(1.1);
}

.logo-link img {
    width: 38px;
    height: 38px;
    pointer-events: none;
}

.navbar-nav {
    display: none;
    justify-content: center;
}

.navbar-list {
    display: flex;
}

.navbar-link {
    display: flex;
    position: relative;
    align-items: center;
    height: var(--navbar-h);
    padding-inline: 16px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.navbar-link::after {
    content:"";
    position: absolute;
    transform-origin:center;
    inset: 0 auto 0 0;
    height: auto;
    width: 3px;
    background-color: #ff0000;
    transform: scaleY(0);
    transition: transform .2s ease;
}

.navbar-link:hover,
.navbar-link:focus-visible {
    color: #ff0000;
}

.navbar-link:hover::after,
.navbar-link:focus-visible::after {
    transform: scaleY(1);
}

.navbar-link.active {
    color: #ff0000;
    font-weight: 700;
}

.navbar-link.active::after {
    transform: scaleY(1);
}

.navbar-icons {
    display: flex;
}

.navbar-icons li {
    flex-shrink: 0;
}

.icon-button {
    display: flex;
    position: relative;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    background-color: transparent;
    border: transparent;
    cursor: pointer;
}

.icon-button[data-tooltip]::after {
    content: none;
}

.settings-btn {
    opacity: 0.5;
    pointer-events: none;
}

.profile-btn {
    opacity: 0.5;
    pointer-events: none;
}

.icon-button.burger .icon-close {
  display: none;
}

body.nav-open .icon-button.burger .icon-burger {
  display: none;
}

body.nav-open .icon-button.burger .icon-close {
  display: block;
}


.icon-img {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.nav-backdrop {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    inset: 0;
    background-color: rgba(0,0,0,.20);
    pointer-events: none;
    z-index: 90;
    transition: opacity .2s ease, visibility .2s ease;
}

.nav-drawer {
    position: fixed;
    inset: var(--navbar-h) 0 auto auto;
    height: calc(100vh - var(--navbar-h));
    width: 260px;
    background-color: #212121;
    transform: translateX(100%);
    transition: transform .2s ease;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y; 
}

.nav-drawer .navbar-list {
    flex-direction: column;
}

.nav-open .nav-backdrop {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.nav-open .nav-drawer {
    transform: translateX(0);
}

main {
    display: flex;
    flex-direction: column;
    margin-block: 16px 32px;
    gap: 32px;
    flex: auto;
}

.container {
    width: calc(100% - 32px);
    margin-inline: 16px;
}

.footer {
    display: flex;
    position: static;
    inset: auto 0 0 0;
    background-color: #212121;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
}

.footer-box-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-box-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-about {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    padding: 12px;
}

.footer-logo img {
    max-width: 85px;
    min-height: 85px;
    object-fit: contain;
    pointer-events: none;
}

.footer-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
}

.footer-title {
    text-align: start;
    font-size: 20px;
}

.footer-excerpt {
    text-align: start;
    color: #9e9e9e;
    font-size: 12px;
}

.footer-nav {
    display: flex;
    flex-direction: column;

    padding: 12px;
}

.footer-nav-title {
    color: rgba(255,255,255,.80);
    font-size: 16px;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;

    font-size: 12px;
}

.footer-nav-link {
    color: #9e9e9e;
    transition: color .2s ease;
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
    color: #ffffff;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    padding: 12px;
}

.legal {
    font-size: 12px;
    color: #ffffff;
}

.footer-community {
    display: flex;
    align-items: center;
    padding: 12px;
}

.community {
    padding: 8px;
    border-radius: 10px;
    background-color: #484848;
}

.community-img {
    max-width: 20px;
    min-height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.copyright {
    font-size: 12px;
    color: #757575;
}

.search-modal {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 300;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,.80);
    opacity: 0;
    transition: opacity .2s ease;
}

.search-modal.is-open .search-modal-backdrop {
    opacity: 1;
}

.search-modal-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(600px, calc(100% - 64px));
    max-height: 100%;
    z-index: 310;
}

.search-modal-box {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 650px;
    max-height: calc(100vh - 200px - var(--hint-h, 0px));
    gap: 16px;
    padding: 12px;
    border-radius: 10px;
    background-color: #212121;
    overflow: hidden;
    opacity: 0;
    transform: scale(.8);
    transition: transform .2s ease, opacity .2s ease;
}

.search-modal.is-open .search-modal-box {
    opacity: 1;
    transform: scale(1);
}

.search-modal-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background-color: rgba(255,255,255,.1);
    color: #ffffff;
    outline: none;
    transition: background .2s ease;
}

.search-modal-input:hover,
.search-modal-input:focus-visible {
    background-color: rgba(255,255,255,.15);
}

.search-modal-input:focus {
    background-color: rgba(255,255,255,.2);
}

.search-results {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) rgba(255,255,255,.06);
}

.search-results::-webkit-scrollbar{
    width: 10px;
}

.search-results::-webkit-scrollbar-track{
    background: rgba(255,255,255,.06);
    border-radius: 999px;
}

.search-results::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.3);
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,0);
    background-clip: content-box;
}

.search-results::-webkit-scrollbar-thumb:hover{
    background: rgba(255,255,255,.4);
    background-clip: content-box;
}

.search-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: transparent;
    overflow: hidden;
    transition: background .2s ease;
}

.search-item:hover,
.search-item:focus-visible {
    background-color: rgba(255,255,255,.10);
}

.search-cover {
    width: 100px;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

.search-meta {
    display: flex;
    flex-direction: column;
    align-self: start;
}

.search-title {
    color: #ffffff;
    font-size: 16px;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.search-tags {
    display: flex;
    color: #9e9e9e;
    font-size: 10px;
}

.search-tag + .search-tag::before {
    content: "\00A0•\00A0";
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.search-empty-img {
    display: flex;
    padding: 12px;
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.search-empty-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.search-empty-title {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
}

.search-empty-excerpt {
    color: #9e9e9e;
    font-size: 12px;
}

.search-hint {
    display: none;
    width: 100%; 
    text-align: center;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
}

.search-hint kbd {
    display: inline-block;
    padding: 2px 8px;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid;
    border-color: #484848;
    border-radius: 4px;
    background-color: rgba(0,0,0,.40);

}

.search-modal.is-open .search-hint {
  opacity: 1;
}

body.search-open {
    overflow: hidden;
    padding-right: var(--sbw, 0px);
    touch-action: none;
}
/*Базовые элементы*/

.page-title {
    color: #ffffff;
}

.page-excerpt {
    color: #9e9e9e;
}

.banner {
    display: none;
    pointer-events: none;
}

.banner img {
    border-radius: 8px;
}

.latest-guides {
    display: flex;
    flex-direction: column;
}

.latest-guides-text {
    gap: 6px;
    margin-bottom: 16px;
}

.latest-guides h2 {
    margin: 0;
    font-family: 'Montserrat';
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.latest-guides p {
    margin: 0;
    font-family: 'Inter';
    font-weight: 400;
    color: #9e9e9e;
}

.latest-guides-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(1, 1fr);
    max-width: 100%;
}

.guide-card {
    background-color: #212121;
    aspect-ratio: 2 / 1;
    border-radius: 8px;
    overflow: hidden;
}

.guide-card:nth-child(4) {
   display: none;
}

.guide-card-link {
    position: relative;
}

.guide-card-cover {
    width: 100%;
}

.guide-card-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.80);
    opacity: 0;
}

.guide-card-link:hover .guide-card-overlay,
.guide-card-link:focus-visible .guide-card-overlay{
    opacity: 1;
}

.guide-card-title {
    text-align: center;
    margin: 0;
    color: #ffffff;
}

.guide-card-tags {
    display: flex;
    flex-wrap: wrap;
    color: #808080;
    list-style: none;
}

.guide-card-tag + .guide-card-tag::before {
    content: "\00A0•\00A0";
    color: #808080;
}

.support-link {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 8px;
    padding: 8px 16px;
    background-color: #212121;
    overflow: hidden;
}

.mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 8px;
}

.mascot img {
    display: block;
    align-items: center;
    justify-content: center;
    max-height: 164px;
    min-width: 140px;
    pointer-events: none;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    gap: 8px;
}

.support-card-title {
    text-align: center;
    color: #ffffff;
}

.support-card-text {
    text-align: center;
    color: #9e9e9e;
}

.support-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 8px;
    border-radius: 12px;
    background-color: #ff0000;
    border: transparent;
    color: #ffffff;
}

.support-card-button img {
    width: auto;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
}
/*Главная страница*/

.guides {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guides-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guides-page-search {
    width: 100%;
    padding: 12px 16px;
    background-color: #212121;
    color: #ffffff;
    border: transparent;
    border-radius: 12px;
    outline: none;
}

.guides-panel .input-clear {
  flex: 1 1 auto;
  min-width: 0;
}

.guides-filter-toggle {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 12px;
    border-color: transparent;
    background-color: #212121;
}

.guides-filter-toggle .filter-active {
  display: none;
}

body.filters-open .guides-filter-toggle .filter {
  display: none;
}

body.filters-open .guides-filter-toggle .filter-active {
  display: block;
}

.filters-backdrop {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    inset: 0;
    background-color: rgba(0,0,0,.20);
    pointer-events: none;
    z-index: 70;
    transition: opacity .2s ease, visibility .2s ease;
}

.filters-drawer {
    position: fixed;
    inset: var(--navbar-h) 0 auto auto;
    height: calc(100vh - var(--navbar-h));
    width: 320px;
    background-color: #212121;
    transform: translateX(100%);
    transition: transform .2s ease;
    z-index: 80;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y; 
}

.filters-open .filters-backdrop {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.filters-open .filters-drawer {
    transform: translateX(0);
}

.filters-aside {
    display: none;
    position: sticky;
    top: calc(var(--navbar-h) + 16px);
    height: max-content;
    border-radius: 12px;
    background-color: #212121;
}

.filters-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.filters-title {
    font-size: 16px;
}

.filters-excerpt {
    font-size: 14px;
    color: #757575;
}

.filters-group {
    display: flex;
}

.filters-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.filter-chip{
    padding:6px 12px;
    border: none;
    border-radius:8px;
    font:inherit;
    color:#fff;
    background:#484848;
    cursor:pointer;
    outline: none;
    transition: color .2s ease, background .2s ease;
}

.filter-chip.is-active{
    color: #ff0000;
    background:rgba(255, 0, 0, 0.4); /* красный как на примере */
}

.filters-select {
    width: 100%;
    padding: 12px 16px;
    border-color: transparent;
    border-radius: 8px;
    background-color: #484848;
    color: #ffffff;
    outline: none;
}

.filters-btn-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.btn-pic {
    width: 15px;
    object-fit: contain;
}

.apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    background-color: #ff0000;
    outline: none;
}

.reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    background-color: #484848;
    outline: none;
}

.guides-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.guides-list {
    display: flex;
    flex-direction: column;
    height: max-content;
    background-color: #212121;
    border-radius: 12px;
    overflow: hidden;
}

.guides-card-link {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
}

.guides-cover {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.guides-title {
    color: #ffffff;
}

.guides-tags {
    font-size: 14px;
    color: #757575;
}

.guides-tag + .guides-tag::before {
  content: "\00A0•\00A0";
  color: #757575;
}

.guides-excerpt {
    color: #BDBDBD;
}

.guides-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}

.guides-empty-img {
    display: flex;
    width: 35px;
    height: 35px;
}

.guides-empty-text {
    display: flex;
    flex-direction: column;
}

.guides-empty-title {
    font-size: 18px;
    font-weight: 400;
}

.guides-empty-excerpt {
    color: #9e9e9e;
    font-size: 14px;
}
/*Каталог руководств*/

.legal-title {
    margin-bottom: 1em;
    font-size: 30px;
}

.legal-h2 {
    margin-top: 1em;
    font-size: 22px;
}

.legal-text {
    margin-block: 0.5em;
    margin-left: 1.5em;

    font-size: 16px;
}

.legal-ul {
    list-style: disc;
    margin-left: 1.6em;
    padding-left: 1.5em;
}

[data-guide-page] {
    max-width: 760px;
}

.guide-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-page-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-cover {
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.guide-title {
    font-size: 26px;
    font-family: 'Montserrat';
    line-height: 1.2;
    color: #ffffff;
}

.guide-tags {
    font-size: 14px;
    color: #757575;
}

.guide-tag + .guide-tag::before {
  content: "\00A0•\00A0";
  color: #757575;
}

.guide-excerpt {
    color: #9e9e9e;
}

.content-list-section {
    font-size: 18px;
    font-weight: 700;
}

.content-list-subsection {
    margin-left: 15px;
    font-size: 16px;
}

.guide-content-list {
    display: flex;
    flex-direction: column;
    height: auto;
    max-width: 400px;
    padding: 12px 16px;
    gap: 8px;
    border: 1px solid #484848;
    border-radius: 4px;
    background-color: #161616;
    overflow: hidden;
}

.content-list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
    cursor: pointer;
}

.content-list-link {
    display: block;
    align-items: center;
    color: inherit;
    padding: 4px 0;
    outline: none;
    transition: color .2s ease;
}

.content-list li::before {
    content: "›";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    color: currentColor;
    transition: color .2s ease;
}

.content-list li.content-list-section::before {
    font-size: 20px;
}

.content-list li.content-list-subsection::before {
    font-size: 16px;
}

.content-list li:hover {
    color: #ff0000;
}

.content-list li:focus-visible{
  color: inherit;
}

.content-list li:focus-within{
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    color: #ff0000;
}

.content-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    background-color: #484848;
}

.guide-section {
    font-size: 26px;
    font-family: 'Montserrat';
    color: #ffffff;
}

.guide-subsection {
    font-size: 20px;
    font-family: 'Montserrat';
    color: #ffffff;
}

.guide-text {
    color: #e6e6e6;
    font-size: 16px;
}

.guide-fox {
    float: right;
    width: 40vw;
    max-width: 158px;
    height: auto;
    shape-outside: url("../img/fox.png");
    shape-image-threshold: 0.2;
    shape-margin: 10px;
    object-fit: contain;
}

.guide-mccarty {
    float: right;
    width: 40vw;
    max-width: 158px;
    height: auto;
    shape-outside: url("../img/mccarty.png");
    shape-image-threshold: 0.2;
    shape-margin: 10px;
    object-fit: contain;
}

.guide-list {
    padding-left: 0;
    margin-left: 0;
    color: #e6e6e6;
}

.guide-list li {
    position: relative;
    padding-left: 20px;
}

.guide-list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    top: 0;
    font-weight: 500;
    color: currentColor;
    transition: color .2s ease;
}

.guide-list-check {
    padding-left: 0;
    margin-left: 0;
    color: #e6e6e6;
}

.guide-list-check li {
    position: relative;
    padding-left: 26px;
}

.guide-list-check li::before {
    content: "✔";
    position: absolute;
    left: 5px;
    top: 0.10em;
    font-weight: 500;
    color: currentColor;
    transition: color .2s ease;
}

.guide-list-arrow {
    padding-left: 0;
    margin-left: 0;
    color: #e6e6e6;
}

.guide-list-arrow li {
    position: relative;
    padding-left: 26px;
}

.guide-list-arrow li::before {
    content: "→";
    position: absolute;
    left: 5px;
    top: 0;
    font-weight: 500;
    color: currentColor;
    transition: color .2s ease;
}

.guide-list-numb {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: decimal;
    margin-left: 1.1em;
    color: #e6e6e6;
}

.guide-list-var {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 1.4em;
    list-style: upper-alpha;
    color: #e6e6e6;
}

.list-title {
    font-family: 'Montserrat';
    font-size: 18px;
    color: #ffffff;
}

.subtext {
    font-size: 14px;
    color: #ffffff;
}

.subtext-red {
    color: #ff0000;
}

.list-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-block {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 16px;
    gap: 6px;
}

.line-block::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.6);
}

.color-block {
    position: relative;
    padding: 12px 16px;
    background-color: #212121;
    border-radius: 6px;
    overflow: hidden;
}

.color-block::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background-color: rgba(255, 0, 0, 0.6);
}

.attention {
    display: flex;
    align-items: start;
    padding: 12px 16px;
    gap: 10px;
    background-color: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 6px;
}

.attention-img {
    width: 30px;
    height: auto;
    object-fit: contain;
}

.example {
    display: flex;
    flex-direction: column;
}

.img-example {
    display: flex;
    max-width: 250px;
}

.foxqa {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
    background-color: #212121;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    border-color: #484848;
    overflow: hidden;
}

.foxqa mark{
    background: rgba(255, 0, 0, 0.2);
    color: rgba(255, 0, 0, 0.8);
}

.foxqa-input {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #212121;
    border-radius: 9999px;
    background-color: rgba(0,0,0,.40);
    color: #ffffff;
    outline: none;
}

.foxqa-meta {
    display: flex;
    align-items: center;
    padding: 0px 12px;
    gap: 6px;
    justify-content: start;
    color: #bdbdbd;
}

.foxqa-results {
    width: 100%;
    height: 180px;
    padding: 0px 12px;
    border-radius: 10px;
    border: 1px solid #212121;
    background-color: rgba(0,0,0,.40);
    overflow: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) rgba(255,255,255,.06);
}

.foxqa-row {
    display: grid;
    grid-template-columns: 35px 1fr;
    padding: 8px 0px;
    gap: 6px;
    align-items: start;
}

.foxqa-num {
    flex: 0 0 35px;
    text-align: right;
    color: #9e9e9e;
    white-space: nowrap;
}

.foxqa-body {
    display: flex;
    flex-direction: column;
}

.foxqa-q {
    font-size: 16px;
}

.foxqa-a {
    font-size: 14px;
}

.foxqa-label {
    color: #9e9e9e;
}

.foxqa-text-a {
    color: #bdbdbd;
}

.foxqa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.foxqa-empty-img {
    display: flex;
    padding: 12px;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.foxqa-empty-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.foxqa-empty-title {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
}

.foxqa-empty-excerpt {
    color: #9e9e9e;
    font-size: 12px;
}



/* --- QA preview block --- */
.qa-preview {
  background: rgba(0,0,0,0.25);
  border: 1px solid #484848;
  border-radius: 16px;
  padding: 14px;
}

.qa-preview-meta {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

.qa-preview-list {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.qa-preview-btn {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #c10000;
  color: #fff;
}

.qa-modal {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 300;
}

.qa-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qa-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,.80);
    opacity: 0;
    transition: opacity .2s ease;
}

.qa-modal.is-open .qa-modal-overlay{
    opacity: 1;
}

.qa-modal-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 256px);
    background: #121212;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: scale(.8);
    transition: transform .2s ease, opacity .2s ease;
    z-index: 310;
}

.qa-modal.is-open .qa-modal-panel{
    opacity: 1;
    transform: scale(1);
}

.qa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.qa-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.qa-modal-close {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    cursor: pointer;
}

.qa-modal-meta {
    padding: 10px 14px;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.qa-modal-list{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 10px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) rgba(255,255,255,.06);
}

.qa-modal-list::-webkit-scrollbar{
  width: 10px;
}

.qa-modal-list::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.qa-modal-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.3);
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,0);
  background-clip: content-box;
}

.qa-modal-list::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.4);
  background-clip: content-box;
}

.guide-end-links {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 8px 12px;
    border: 1px solid #484848;
    border-radius: 16px;
    background-color: #161616;
    overflow: hidden;
}

.guide-end-link {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    padding-block: 8px;
    overflow: hidden;
}

.end-link-img {
    width: 50px;
    height: auto;
    padding: 10px;
    object-fit: contain;
}

.end-link-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.end-link-text {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 8px;
}

.end-link-title{
    flex-wrap: nowrap;
    white-space: nowrap;
    color: #ffffff;
}

.end-link-url {
    color: #c10000;
}

.end-link-excerpt {
    color: #9e9e9e;
    font-size: 14px;
}

.opening {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
    color: #ffffff;
    font-weight: 700;
}

.gratitude {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    color: #c10000;
    font-weight: 700;
}

@media (min-width: 600px) {
    .footer-box-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .search-cover {
        width: 125px;
    }

    .search-title {
        font-size: 18px;
    }

    .search-tags {
        font-size: 12px;
    }

    .latest-guides-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-card:nth-child(4) {
        display: block;
    }

    .support-link {
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .support-card {
        align-items: start;
        height: auto;
        inset-block: 0;
    }

    .support-card-title {
        text-align: start;
    }

    .support-card-text {
        text-align: start;
    }

    .guides-card-link {
        flex-direction: row;
    }

    .guides-cover {
        max-width: 50%;
    }

    .legal-title {
        font-size: 35px;
    }

    .page-title {
        font-size: 32px;
    }
}

@media (min-width: 960px) {
    .navbar-inner {
        grid-template-columns: auto 1fr auto;
    }

    .navbar-nav {
        display: flex;
    }

    .navbar-link::after {
        inset: auto 0 0 0;
        height: 3px;
        width: auto;
        transform: scaleX(0);
    }

    .navbar-link:hover::after,
    .navbar-link:focus-visible::after {
        transform: scaleX(1);
    }

    .navbar-link.active::after {
        transform: scaleX(1);
    }

    .burger,
    .nav-backdrop,
    .nav-drawer {
        display: none;
    }

    .icon-button[data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        opacity: 0;
        scale: 0.5;
        top: calc(100% + 10px);
        transform: translateY(-6px);
        white-space: nowrap;
        padding: 8px 12px;
        border-radius: 4px;
        background: #e6e6e6;
        color: #000000;
        font-size: 14px;
        line-height: 1.2;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, scale .2s ease, transform .2s ease, visibility 0s ease .2s;
        z-index: 100;
    }

    .icon-button[data-tooltip]:hover::after,
    .icon-button[data-tooltip]:focus-visible::after {
        opacity: 1;
        scale: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }
    
    .main-link {
        display: none;
    }

    .container {
        width: calc(960px - 32px);
        margin-inline: auto;
    }

    .footer-about {
        flex-direction: row;
    }

    .footer-box-top {
        flex-direction: row;
    }

    .footer-legal {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    
    .search-cover {
        width: 150px;
    }
    
    .search-title {
        font-size: 20px;
    }

    .search-tags {
        font-size: 14px;
    }

    .search-hint {
        display: block;
    }


    .banner {
        display: block;
        border-radius: 12px;
    }

    .latest-guides-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .guide-card:nth-child(4) {
        display: none;
    }

    .support-link {
        display: inline-flex;
        max-width: max-content;
    }

    .guides-cover {
        max-width: 40%;
    }

    body.filters-open .filters-aside {
        display: block;
    }

    body.filters-open .guides-box {
        grid-template-columns: 1fr 360px;
    }

    .filters-drawer,
    .filters-backdrop {
        display: none;
    }

    .legal-title {
        font-size: 40px;
    }

    .guide-title {
        font-size: 30px
    }

    .page-title {
        font-size: 36px;
    }
}

@media (min-width: 1280px) {
    .container {
        width: calc(1280px - 32px);
    }

    .guides-cover {
        max-width: 30%;
    }
}
/*Адаптивность*/
.calc-box {
    display: flex;
    flex-direction: column;
    border-width: 1px;
    border-style: solid;
    border-radius: 8px;
    border-color: #212121;
    overflow: hidden;
}

.calc-box.is-open .calc-arrow-img {
    transform: rotate(90deg);
}

.calc-box.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.calc-header {
    display: grid;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: auto auto;
    padding: 12px 16px;
    border: transparent;
    background-color: #212121;
    color: #ffffff;
    cursor: pointer;
}

.calc-label {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.calc-pic {
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
    pointer-events: none;
}

.calc-title {
    font-weight: 700;
    align-content: center;
    white-space: nowrap;
}

.calc-arrow {
    display: flex;
    background-color: #212121;
    box-shadow: -2px 0 3px 5px #212121;
}

.calc-arrow-img {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.calc-arrow-img::before {
    transform: rotate(0deg);
}

.calc-content {
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
}

.calc-content-inner {
    display: flex;
    flex-direction: column;
    padding: 12px 24px;
    gap: 16px;
    background-color: #161616;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    gap: 4px 16px;
}

.form-label {
    display: flex;
    flex-wrap: wrap;
}

.form-label-result {
    width: 150px;
}

.toggle-switch {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

.calc-btn {
    padding: 4px 8px;
    border: 1px solid #212121;
    background-color: rgba(0,0,0,.20);
    color: #9e9e9e;
}

.calc-btn.right-btn {
    border-radius: 4px 0 0 4px;
}

.calc-btn.left-btn {
    border-radius: 0 4px 4px 0;
}

.calc-btn.is-active {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.2);
    color: #ffffff;
}

.is-hidden {
    display: none;
}

.data-train {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-input {
    max-width: 180px;
    padding: 4px 8px;
    border: 1px solid #212121;
    border-radius: 4px;
    background-color: rgba(0,0,0,.10);
    color: #ffffff;
    text-align: right;
    outline: none;
}

.speed-field{
    display: flex;
    align-items: center;
}

.speed-mode-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33.6px;
    height: 33.6px;
    border-radius:4px;
    border:1px solid #212121;
    background: rgba(0,0,0,.20);
    color:#fff;
    cursor:pointer;
    outline: none;
}

.speed-mode-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

.train-speed-input {
    width: 80px;
}

.field-with-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.calc-select {
    padding: 4px 8px;
    border: 1px solid #212121;
    border-radius: 4px;
    background-color: #121212;
    color: #ffffff;
    outline: none;
}

.tooltip {
    display: inline-flex;
    position: relative;
    align-items: center;
}

.tooltip-img {
    max-width: 15px;
    min-height: 15px;
    object-fit: contain;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tooltip-content {
    display: block;
    position: absolute;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    position: fixed;
    left: var(--tt-left, 0px);
    top: var(--tt-top, 0px);
    max-width: min(320px, calc(100vw - 24px));
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: 8px;
    background-color: #323232;
    color: rgba(255,255,255,.80);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 10;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.buff-train {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buff-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.buff-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.buff-checkbox-box {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #212121;
    border-radius: 4px;
    background: rgba(0,0,0,.4);
}

.buff-checkbox-input:checked + .buff-checkbox-box {
    border-color: #4caf50;
    background: rgba(0, 255, 8, 0.20);
}

.buff-checkbox-input:checked + .buff-checkbox-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pic {
    max-height: 20px;
    max-width: 20px;
    object-fit: contain;
    pointer-events: none;
}

.list {
    display: inline-flex;
    flex-wrap: wrap;
    width: 315px;
    align-items: center;
    gap: 4px 16px;
}

.result-accel-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #212121;
    background: rgba(0,0,0,.20);
    color: #fff;
    cursor: pointer;
    outline: none;
}

.result-accel-mode-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.count-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
    border: transparent;
    border-radius: 8px;
    background-color: #ff0000;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}