@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/literata-italic-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/literata-italic-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/literata-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/literata-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/literata-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/literata-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/literata-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/literata-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/source-sans-3-italic-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/source-sans-3-italic-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/source-sans-3-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/source-sans-3-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/source-sans-3-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/source-sans-3-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/source-sans-3-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/source-sans-3-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/source-sans-3-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/source-sans-3-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@keyframes loginViewIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fb2-mobile-menu-body a i.fa-solid {
  width: 20px;
  text-align: center;
  color: var(--fb2-text-muted);
  font-size: 0.9rem;
}
:root {
  color-scheme: light;
  --fb2-primary: #426b53;
  --fb2-primary-dark: #31533f;
  --fb2-primary-light: rgba(66, 107, 83, 0.12);
  --fb2-on-primary: #ffffff;
  --fb2-accent: #806531;
  --fb2-accent-soft: rgba(128, 101, 49, 0.15);
  --fb2-on-accent: #ffffff;
  --fb2-green: #15803d;
  --fb2-green-light: rgba(21, 128, 61, 0.1);
  --fb2-red: #b91c1c;
  --fb2-red-light: rgba(185, 28, 28, 0.08);
  --fb2-orange: #d97706;
  --fb2-text: #233129;
  --fb2-text-secondary: #526156;
  --fb2-text-muted: #637166;
  --fb2-bg: #f0f3ed;
  --fb2-bg-card: #fdfcf7;
  --fb2-bg-elevated: #ffffff;
  --fb2-border: #dce4d8;
  --fb2-shadow:
    0 1px 2px rgba(35, 49, 41, 0.06), 0 4px 12px rgba(35, 49, 41, 0.04);
  --fb2-shadow-lg:
    0 4px 6px rgba(35, 49, 41, 0.05), 0 20px 40px rgba(35, 49, 41, 0.08);
  --fb2-header-bg: rgba(253, 252, 247, 0.82);
  --fb2-header-border: rgba(220, 228, 216, 0.85);
  --fb2-footer-bg: #202e25;
  --fb2-radius: 14px;
  --fb2-max-width: 1200px;
  --fb2-font:
    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --fb2-font-heading: "Literata", "Georgia", "Times New Roman", serif;
  --fb2-page-pattern:
    radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(66, 107, 83, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 0%,
      rgba(128, 101, 49, 0.05) 0%,
      transparent 45%
    );
  --fa-style-family-brands: "Font Awesome 6 Brands";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
  --fa-style-family-classic: "Font Awesome 6 Free";
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
  --fb2-carousel-theme-color: var(--fb2-primary);
  --fb2-carousel-navigation-size: 44px;
}
[data-theme="light"] {
  color-scheme: light;
  --fb2-primary: #426b53;
  --fb2-primary-dark: #31533f;
  --fb2-primary-light: rgba(66, 107, 83, 0.12);
  --fb2-on-primary: #ffffff;
  --fb2-accent: #806531;
  --fb2-accent-soft: rgba(128, 101, 49, 0.15);
  --fb2-on-accent: #ffffff;
  --fb2-green: #15803d;
  --fb2-green-light: rgba(21, 128, 61, 0.1);
  --fb2-red: #b91c1c;
  --fb2-red-light: rgba(185, 28, 28, 0.08);
  --fb2-orange: #d97706;
  --fb2-text: #233129;
  --fb2-text-secondary: #526156;
  --fb2-text-muted: #637166;
  --fb2-bg: #f0f3ed;
  --fb2-bg-card: #fdfcf7;
  --fb2-bg-elevated: #ffffff;
  --fb2-border: #dce4d8;
  --fb2-shadow:
    0 1px 2px rgba(35, 49, 41, 0.06), 0 4px 12px rgba(35, 49, 41, 0.04);
  --fb2-shadow-lg:
    0 4px 6px rgba(35, 49, 41, 0.05), 0 20px 40px rgba(35, 49, 41, 0.08);
  --fb2-header-bg: rgba(253, 252, 247, 0.82);
  --fb2-header-border: rgba(220, 228, 216, 0.85);
  --fb2-footer-bg: #202e25;
  --fb2-radius: 14px;
  --fb2-max-width: 1200px;
  --fb2-font:
    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --fb2-font-heading: "Literata", "Georgia", "Times New Roman", serif;
  --fb2-page-pattern:
    radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(66, 107, 83, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 0%,
      rgba(128, 101, 49, 0.05) 0%,
      transparent 45%
    );
}
[data-theme="dark"] {
  color-scheme: dark;
  --fb2-primary: #afd0b7;
  --fb2-primary-dark: #c3dfc9;
  --fb2-primary-light: rgba(175, 208, 183, 0.14);
  --fb2-on-primary: #203127;
  --fb2-accent: #e4cc91;
  --fb2-accent-soft: rgba(228, 204, 145, 0.12);
  --fb2-on-accent: #2b2518;
  --fb2-text: #edf3ec;
  --fb2-text-secondary: #b5c3b8;
  --fb2-text-muted: #91a397;
  --fb2-bg: #151e19;
  --fb2-bg-card: #1e2a22;
  --fb2-bg-elevated: #27352b;
  --fb2-border: #35483a;
  --fb2-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --fb2-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --fb2-header-bg: rgba(21, 30, 25, 0.88);
  --fb2-header-border: rgba(53, 72, 58, 0.9);
  --fb2-footer-bg: #101812;
  --fb2-page-pattern:
    radial-gradient(
      ellipse 100% 60% at 50% -15%,
      rgba(175, 208, 183, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 0%,
      rgba(228, 204, 145, 0.04) 0%,
      transparent 40%
    );
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--fb2-font);
  color: var(--fb2-text);
  background-color: var(--fb2-bg);
  background-image: var(--fb2-page-pattern);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition:
    background-color 0.35s ease,
    color 0.25s ease;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--fb2-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--fb2-primary-dark);
}
[data-theme="dark"] .fb2-suggestions-result {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .fb2-theme-toggle-track {
  background: #3d5143;
}
[data-theme="dark"] .fb2-theme-toggle-track::after {
  transform: translateX(24px);
  background: #24372b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .fb2-theme-icon-light {
  color: #8c9c90;
}
[data-theme="dark"] .fb2-theme-icon-dark {
  color: #c5ddcc;
}
@keyframes slideIn {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes replySlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 420px) {
  [data-theme="dark"] .fb2-theme-toggle-track::after {
    transform: translateX(20px);
  }
}
.fa-regular {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}
.fa-solid {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.fa-file-lines:before {
  content: "\f15c";
}
.fa-comments:before {
  content: "\f086";
}
.fa-user-check:before {
  content: "\f4fc";
}
.fa-reply:before {
  content: "\f3e5";
}
.fa-list:before {
  content: "\f03a";
}
.fa-bookmark:before {
  content: "\f02e";
}
.fa-user:before {
  content: "\f007";
}
.fa-star:before {
  content: "\f005";
}
.fa-fire:before {
  content: "\f06d";
}
.fa-heart:before {
  content: "\f004";
}
.fa-tags:before {
  content: "\f02c";
}
.fa-eye:before {
  content: "\f06e";
}
.fa-pen-fancy:before {
  content: "\f5ac";
}
.fa-arrow-left:before {
  content: "\f060";
}
.fa-align-left:before {
  content: "\f036";
}
.fa-comment:before {
  content: "\f075";
}
.fa-cookie:before {
  content: "\f563";
}
.fa-arrow-rotate-left:before {
  content: "\f0e2";
}
.fa-sliders:before {
  content: "\f1de";
}
.fa-face-meh:before {
  content: "\f11a";
}
.fa-file-arrow-down:before {
  content: "\f56d";
}
.fa-sun:before {
  content: "\f185";
}
.fa-arrow-down-short-wide:before {
  content: "\f884";
}
.fa-thumbs-down:before {
  content: "\f165";
}
.fa-magnifying-glass:before {
  content: "\f002";
}
.fa-chevron-down:before {
  content: "\f078";
}
.fa-arrow-up:before {
  content: "\f062";
}
.fa-xmark:before {
  content: "\f00d";
}
.fa-quote-left:before {
  content: "\f10d";
}
.fa-pen-nib:before {
  content: "\f5ad";
}
.fa-moon:before {
  content: "\f186";
}
.fa-calendar:before {
  content: "\f133";
}
.fa-user-plus:before {
  content: "\f234";
}
.fa-book-open:before {
  content: "\f518";
}
.fa-paper-plane:before {
  content: "\f1d8";
}
.fa-thumbs-up:before {
  content: "\f164";
}
:host {
  --fa-style-family-brands: "Font Awesome 6 Brands";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
  --fa-style-family-classic: "Font Awesome 6 Free";
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(assets/fa-regular-400.woff2) format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url(assets/fa-solid-900.woff2) format("woff2");
}
@font-face {
  font-family: swiper-icons;
  src: url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA");
  font-weight: 400;
  font-style: normal;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--fb2-primary, #426b53);
  outline-offset: 3px;
}

.fb2-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fb2-primary-light);
  color: var(--fb2-primary) !important;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.fb2-header-avatar:hover {
  background: linear-gradient(
    135deg,
    var(--fb2-primary),
    var(--fb2-primary-dark)
  );
  color: var(--fb2-on-primary) !important;
}
.fb2-header-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s;
}
.fb2-header-avatar-btn:hover {
  transform: scale(1.08);
}
.fb2-header-avatar-btn .fb2-header-avatar {
  width: 40px;
  height: 40px;
}
.fb2-dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
}
.fb2-dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.fb2-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.fb2-auth-overlay.fb2-is-active {
  opacity: 1;
  visibility: visible;
}
.fb2-auth-modal {
  position: relative;
  width: 440px;
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.fb2-auth-overlay.fb2-is-active .fb2-auth-modal {
  transform: scale(1) translateY(0);
}
.fb2-auth-view {
  display: none;
  animation: loginViewIn 0.3s ease;
}
.fb2-auth-view.fb2-is-active {
  display: block;
}
.fb2-auth-hero {
  position: relative;
  background: var(--fb2-bg-card);
  padding: 28px 28px 20px;
}
.fb2-auth-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fb2-auth-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fb2-text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.fb2-auth-modal-subtitle {
  font-size: 0.9rem;
  color: var(--fb2-text-muted);
  margin: 0;
}
.fb2-auth-hero .fb2-dialog-close {
  background: var(--fb2-primary-light);
  color: var(--fb2-text-muted);
}
.fb2-auth-hero .fb2-dialog-close:hover {
  background: var(--fb2-border);
  color: var(--fb2-text);
}
.fb2-auth-body {
  background: var(--fb2-bg-card);
  padding: 4px 28px 28px;
}
.fb2-auth-field {
  margin-bottom: 14px;
}
.fb2-auth-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--fb2-bg);
  border: 1px solid var(--fb2-border);
  border-radius: 12px;
  color: var(--fb2-text);
  font-size: 0.95rem;
  font-family: var(--fb2-font);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fb2-auth-input::placeholder {
  color: var(--fb2-text-muted);
}
.fb2-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.fb2-auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--fb2-text-secondary);
  user-select: none;
}
.fb2-auth-remember input[type="checkbox"] {
  display: none;
}
.fb2-auth-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--fb2-border);
  border-radius: 12px;
  transition: background 0.25s;
  flex-shrink: 0;
}
.fb2-auth-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s;
}
.fb2-auth-remember input:checked ~ .fb2-auth-toggle {
  background: linear-gradient(
    135deg,
    var(--fb2-primary),
    var(--fb2-primary-dark)
  );
}
.fb2-auth-remember input:checked ~ .fb2-auth-toggle::after {
  transform: translateX(20px);
}
.fb2-auth-forgot {
  font-size: 0.85rem;
  color: var(--fb2-primary) !important;
  white-space: nowrap;
}
.fb2-auth-forgot:hover {
  text-decoration: underline;
}
.fb2-auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--fb2-primary),
    var(--fb2-primary-dark)
  );
  color: var(--fb2-on-primary);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--fb2-font);
  cursor: pointer;
  transition: opacity 0.2s;
}
.fb2-auth-submit:hover {
  opacity: 0.9;
}
.fb2-auth-footer-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--fb2-text-muted);
  margin-top: 10px;
}
.fb2-auth-footer-text a {
  color: var(--fb2-primary) !important;
  font-weight: 600;
}
.fb2-auth-footer-text a:hover {
  text-decoration: underline;
}
.fb2-registration-page {
  width: 100%;
  padding: 10px 0 40px;
}
.fb2-registration-header {
  margin-bottom: 28px;
}
.fb2-registration-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fb2-text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.fb2-registration-subtitle {
  font-size: 0.95rem;
  color: var(--fb2-text-muted);
}
.fb2-registration-form-wrap {
  background: var(--fb2-bg-card);
  border: 1px solid var(--fb2-border);
  border-radius: 16px;
  padding: 28px;
}
.fb2-registration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.fb2-registration-field {
  margin-bottom: 16px;
}
.fb2-registration-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fb2-text-secondary);
  margin-bottom: 6px;
}
.fb2-registration-submit-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.fb2-registration-submit-wrap .fb2-auth-field {
  flex: 1;
  margin-bottom: 0;
}
.fb2-registration-submit {
  max-width: 280px;
  flex-shrink: 0;
}
.fb2-registration-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--fb2-text-muted);
}
.fb2-registration-footer a {
  color: var(--fb2-primary) !important;
  font-weight: 600;
}
.fb2-registration-footer a:hover {
  text-decoration: underline;
}
.fb2-header-avatar-guest {
  background: var(--fb2-primary-light);
  color: var(--fb2-primary) !important;
}
.fb2-header-avatar-guest i {
  font-size: 0.95rem;
}
@media (max-width: 420px) {
  .fb2-auth-modal {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .fb2-auth-hero {
    padding: 22px 20px 16px;
  }
  .fb2-auth-body {
    padding: 4px 20px 24px;
  }
  .fb2-registration-form-wrap {
    padding: 20px;
    border-radius: 12px;
  }
  .fb2-registration-row {
    grid-template-columns: 1fr;
  }
  .fb2-registration-submit {
    max-width: 100%;
  }
}
.fb2-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--fb2-bg);
  border-radius: var(--fb2-radius);
  cursor: pointer;
  transition: background 0.2s;
}
.fb2-burger-btn:hover {
  background: var(--fb2-border);
}
.fb2-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fb2-text);
  border-radius: 1px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.fb2-burger-btn.fb2-is-active .fb2-burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.fb2-burger-btn.fb2-is-active .fb2-burger-line:nth-child(2) {
  opacity: 0;
}
.fb2-burger-btn.fb2-is-active .fb2-burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
.fb2-mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
.fb2-mobile-menu-overlay.fb2-is-open {
  display: block;
  opacity: 1;
}
.fb2-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--fb2-bg-card);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.fb2-mobile-menu.fb2-is-open {
  transform: translateX(0);
}
.fb2-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fb2-border);
  flex-shrink: 0;
}
.fb2-mobile-menu-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fb2-text);
}
.fb2-mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--fb2-bg);
  border-radius: 50%;
  cursor: pointer;
  color: var(--fb2-text);
  font-size: 1.1rem;
  transition: background 0.15s;
}
.fb2-mobile-menu-close:hover {
  background: var(--fb2-border);
}
.fb2-mobile-menu-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fb2-border);
  flex-shrink: 0;
}
.fb2-mobile-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--fb2-border);
  border-radius: 10px;
  background: var(--fb2-bg);
  color: var(--fb2-text);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.fb2-mobile-search-input:focus {
  border-color: var(--fb2-primary);
}
.fb2-mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.fb2-mobile-menu-body > * {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fb2-mobile-menu-body a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--fb2-text) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s;
}
.fb2-mobile-menu-body a:hover,
.fb2-mobile-menu-body a:active {
  background: var(--fb2-bg);
}
.fb2-posts-sort .fb2-sort-label {
  color: var(--fb2-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fb2-posts-sort .fb2-sort-label-icon {
  font-size: 0.95em;
  color: var(--fb2-text-muted);
  flex-shrink: 0;
}
.fb2-posts-sort .fb2-sort-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.fb2-posts-sort .fb2-sort-dropdown-inner {
  position: relative;
}
.fb2-posts-sort .fb2-sort-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fb2-text-muted);
  font-weight: 500;
  cursor: default;
  padding: 4px 8px 4px 0;
}
.fb2-posts-sort .fb2-sort-dropdown-arrow {
  font-size: 0.65em;
  opacity: 0.8;
  transition: transform 0.2s;
}
.fb2-posts-sort .fb2-sort-dropdown-inner:hover .fb2-sort-dropdown-arrow {
  transform: rotate(180deg);
}
.fb2-posts-sort .fb2-sort-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  margin-top: 0;
  padding: 8px 0 6px;
  background: var(--fb2-bg);
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  box-shadow: var(--fb2-shadow-lg);
  z-index: 50;
  display: none;
  flex-direction: column;
}
.fb2-posts-sort .fb2-sort-dropdown-inner:hover .fb2-sort-dropdown-menu {
  display: flex;
}
.fb2-posts-sort .fb2-sort-dropdown-item {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--fb2-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.fb2-posts-sort .fb2-sort-dropdown-item:hover {
  background: var(--fb2-primary-light);
  color: var(--fb2-primary);
}
.fb2-posts-sort .fb2-sort-dropdown-item--active {
  color: var(--fb2-primary);
  font-weight: 600;
}
#listing-ajax-container {
  position: relative;
}
.fb2-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 24px;
}
.fb2-load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--fb2-primary);
  border-radius: 10px;
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.fb2-load-more-button:hover:not(:disabled) {
  background: var(--fb2-primary-dark);
  border-color: var(--fb2-primary-dark);
}
.fb2-load-more-button:disabled {
  opacity: 0.7;
  cursor: progress;
}
.fb2-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  padding: 12px 0 16px;
  font-size: 13px;
  color: var(--fb2-text-muted, #666);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.fb2-breadcrumbs a {
  color: var(--fb2-text-muted, #666);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fb2-breadcrumbs a:hover {
  color: var(--fb2-primary, #426b53);
}
.fb2-breadcrumbs > a:first-of-type::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f015";
  font-size: 1em;
  opacity: 0.9;
}
.fb2-breadcrumbs > a:first-of-type:hover::before {
  opacity: 1;
}
.fb2-shell {
  max-width: var(--fb2-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.fb2-header {
  background: var(--fb2-header-bg);
  border-bottom: 1px solid var(--fb2-header-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 210;
}
.fb2-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--fb2-accent-soft),
    transparent
  );
  opacity: 0.6;
  pointer-events: none;
}
.fb2-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.fb2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.fb2-brand-img {
  width: auto;
  height: 48px;
  object-fit: contain;
}
.fb2-brand-text {
  white-space: nowrap;
  font-family: var(--fb2-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fb2-text);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.fb2-brand-text-accent {
  color: var(--fb2-primary);
  font-weight: 700;
}
.fb2-brand:hover .fb2-brand-text {
  color: var(--fb2-primary);
}
.fb2-header-search-wrap {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin: 0 auto;
}
.fb2-header-search {
  position: relative;
  width: 100%;
}
.fb2-header-search-input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  background: var(--fb2-bg);
  border: 1px solid var(--fb2-border);
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: var(--fb2-font);
  color: var(--fb2-text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fb2-header-search-input::placeholder {
  color: var(--fb2-text-muted);
}
.fb2-header-search-input:focus {
  border-color: var(--fb2-primary);
  box-shadow: 0 0 0 3px var(--fb2-primary-light);
}
.fb2-header-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--fb2-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s;
}
.fb2-header-search-btn:hover {
  color: var(--fb2-text);
}
.fb2-header-search-clear {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--fb2-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s;
}
.fb2-header-search-clear:hover {
  color: var(--fb2-text);
}
.fb2-suggestions-result {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--fb2-bg-card, var(--fb2-bg));
  border: 1px solid var(--fb2-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
}
.fb2-suggestions-result.fb2-is-expanded {
  display: block;
}
.fb2-suggestions-result__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--fb2-text);
  border-bottom: 1px solid var(--fb2-border);
  transition: background 0.15s;
}
.fb2-suggestions-result__item:last-of-type {
  border-bottom: none;
}
.fb2-suggestions-result__item:hover {
  background: var(--fb2-primary-light);
}
.fb2-suggestions-result__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.fb2-suggestions-result__title {
  font-size: 0.9rem;
  line-height: 1.3;
  width: 100%;
}
.fb2-suggestions-result__all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fb2-primary);
  text-decoration: none;
  border-top: 1px solid var(--fb2-border);
  transition: background 0.15s;
}
.fb2-suggestions-result__all:hover {
  background: var(--fb2-primary-light);
}
.fb2-suggestions-result__empty {
  padding: 16px 14px;
  text-align: center;
  color: var(--fb2-text-muted);
  font-size: 0.9rem;
}
.fb2-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.fb2-navigation {
  background: var(--fb2-header-bg);
  border-bottom: 1px solid var(--fb2-header-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
  transition:
    box-shadow 0.3s,
    background 0.3s;
}
.fb2-navigation-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
}
.fb2-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  color: var(--fb2-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
  text-decoration: none;
}
.fb2-navigation a i {
  font-size: 0.8rem;
}
.fb2-navigation a:hover {
  background: var(--fb2-primary-light);
  color: var(--fb2-primary);
}
.fb2-navigation a.fb2-is-active {
  background: var(--fb2-primary-light);
  color: var(--fb2-primary);
  box-shadow: inset 0 -2px 0 var(--fb2-accent);
}
.fb2-theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.fb2-theme-toggle-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: var(--fb2-border);
  border-radius: 14px;
  padding: 0 6px;
  position: relative;
  transition: background 0.3s;
}
.fb2-theme-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fb2-theme-icon-light {
  font-size: 0.7rem;
  z-index: 1;
  transition: color 0.3s;
  color: #f59e0b;
}
.fb2-theme-icon-dark {
  font-size: 0.7rem;
  z-index: 1;
  transition: color 0.3s;
  color: #7b9182;
}
.fb2-flash-message {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--fb2-radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.fb2-flash-message:empty {
  display: none;
}
.fb2-flash-success {
  background: var(--fb2-green-light);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--fb2-green);
}
.fb2-flash-error {
  background: var(--fb2-red-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--fb2-red);
}
.fb2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--fb2-font);
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: var(--fb2-radius);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.1s;
  white-space: nowrap;
  user-select: none;
}
.fb2-button:active {
  transform: translateY(1px);
}
.fb2-button-primary {
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
  border-color: var(--fb2-primary);
}
.fb2-button-primary:hover {
  background: var(--fb2-primary-dark);
  border-color: var(--fb2-primary-dark);
  color: var(--fb2-on-primary);
  box-shadow: 0 4px 12px rgba(66, 107, 83, 0.25);
}
.fb2-layout {
  flex: 1;
  padding: 36px 0 40px;
}
.fb2-content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .fb2-content-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .fb2-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 460px) {
  .fb2-content-grid {
    gap: 12px;
  }
  .fb2-sort-links-wrapper {
    display: none;
  }
  .fb2-cookie-banner {
    left: 10px;
  }
}
.fb2-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fb2-catalog-title {
  font-family: var(--fb2-font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fb2-text);
  margin: 0;
}
.fb2-posts-sort {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-bottom: 20px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--fb2-text-muted);
}
.fb2-seo-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fb2-text-secondary);
}
.fb2-seo-text:empty {
  display: none;
}
.fb2-seo-text--bottom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--fb2-border);
}
.fb2-seo-text h2 {
  margin: 24px 0 12px;
  color: var(--fb2-text);
  font: 600 1.1rem/1.5 var(--fb2-font-heading);
}
.fb2-seo-text h2:first-child {
  margin-top: 0;
}
.fb2-seo-text p {
  margin: 0 0 12px;
}
.fb2-seo-text p:last-child {
  margin-bottom: 0;
}
.fb2-seo-text a {
  color: var(--fb2-primary);
  text-decoration: none;
}
.fb2-seo-text a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .fb2-catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .fb2-catalog-title {
    font-size: 1.25rem;
  }
}
.fb2-page-static {
  background: var(--fb2-bg-card);
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  padding: 36px 40px;
  box-shadow: var(--fb2-shadow);
}
.fb2-page-title {
  font-family: var(--fb2-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.fb2-page-content {
  font-size: 1rem;
  line-height: 1.85;
}
.fb2-copyright-contact {
  text-align: center;
}
.fb2-copyright-contact > span {
  font-size: 20px;
}
.fb2-page-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--fb2-border);
  font-size: 0.8rem;
  color: var(--fb2-text-muted);
}
.fb2-footer {
  background: var(--fb2-footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0;
  margin-top: auto;
}
.fb2-footer-about {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
}
.fb2-footer-top-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}
.fb2-footer-age-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  flex-shrink: 0;
}
.fb2-footer-age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #2d2d2d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.fb2-footer-age-text {
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.fb2-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}
.fb2-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: left;
}
.fb2-footer-links-bottom {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fb2-footer-links-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.fb2-footer-links-bottom a:hover {
  color: #fff;
}
@media (max-width: 900px) {
  .fb2-footer-top-section,
  .fb2-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .fb2-footer-links-bottom {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .fb2-footer {
    padding-top: 40px;
  }
  .fb2-footer-bottom {
    text-align: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
  }
  .fb2-footer-top-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .fb2-footer-age-text {
    white-space: normal;
  }
  .fb2-footer-links-bottom {
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
  }
}
.fb2-scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--fb2-primary),
    var(--fb2-primary-dark, #31533f)
  );
  border: none;
  color: var(--fb2-on-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}
.fb2-scroll-to-top.fb2-is-active {
  opacity: 1;
  visibility: visible;
}
.fb2-scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.fb2-cookie-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 380px;
  background: var(--fb2-bg-card);
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  padding: 18px;
  box-shadow: var(--fb2-shadow-lg);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 98;
  animation: slideIn 0.4s ease-out;
}
[data-theme="dark"] .fb2-cookie-banner {
  border-color: var(--fb2-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.fb2-cookie-banner.fb2-is-hidden {
  display: none;
}
.fb2-cookie-banner__content {
  flex: 1;
  display: flex;
  gap: 12px;
}
.fb2-cookie-banner__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  color: #f5a623;
}
.fb2-cookie-banner__text {
  font-size: 13px;
  color: var(--fb2-text-secondary);
  line-height: 1.5;
}
.fb2-cookie-banner__text p {
  margin: 0;
}
.fb2-cookie-banner__link {
  color: var(--fb2-primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.fb2-cookie-banner__link:hover {
  color: var(--fb2-primary-dark);
}
.fb2-cookie-banner__btn {
  align-self: flex-end;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--fb2-primary);
  color: var(--fb2-primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.fb2-cookie-banner__btn:hover {
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
}
.fb2-scroll-to-top:active {
  transform: translateY(-2px);
}
.fb2-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.fb2-pagination a,
.fb2-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--fb2-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fb2-text-secondary);
  background: var(--fb2-bg-card);
  transition: all 0.15s;
}
.fb2-pagination a:hover {
  border-color: var(--fb2-primary);
  color: var(--fb2-primary);
}
.fb2-pagination .fb2-is-active span {
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
  border-color: var(--fb2-primary);
}
#swiper-popular {
  visibility: visible;
}
@media (max-width: 640px) {
  #swiper-popular {
    visibility: visible;
  }
}
.fb2-book-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fb2-book-badge--new {
  background: #527b5f;
  color: #fff;
}
.fb2-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  .fb2-posts-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
  }
  .fb2-scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  .fb2-cookie-banner {
    max-width: 360px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    bottom: 20px;
    right: 20px;
  }
  .fb2-cookie-banner__content {
    flex-direction: column;
  }
  .fb2-cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
  .fb2-burger-btn {
    display: flex !important;
  }
  .fb2-header-inner {
    gap: 10px;
    height: 56px;
  }
  .fb2-header-search-wrap,
  .fb2-navigation {
    display: none;
  }
  .fb2-brand-img {
    height: 40px;
  }
  .fb2-page-static {
    padding: 24px 20px;
  }
}
@media (max-width: 640px) {
  .fb2-shell {
    padding: 0 16px;
  }
}
@media (max-width: 420px) {
  .fb2-header-inner {
    gap: 8px;
    height: 50px;
  }
  .fb2-brand-text {
    font-size: 1.1rem;
  }
  .fb2-brand-img {
    height: 34px;
  }
  .fb2-theme-toggle {
    width: 44px;
    height: 24px;
  }
  .fb2-theme-toggle-track::after {
    width: 18px;
    height: 18px;
  }
}
.fb2-preview-status {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--fb2-border, #ddd);
  border-radius: 8px;
  background: var(--fb2-bg-card, #f9f4ee);
  color: var(--fb2-text, #332c26);
  line-height: 1.5;
}
.fb2-preview-manual {
  background: var(--fb2-bg, #faf8f5);
}
.fb2-preview-manual main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px 40px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.fb2-preview-manual h1 {
  font-size: 30px;
  margin: 0 0 16px;
}
.fb2-preview-manual h2 {
  margin: 30px 0 12px;
  font-size: 23px;
}
.fb2-preview-manual ol,
.fb2-preview-manual ul {
  list-style: revert;
  padding-left: 25px;
  margin: 20px 0;
}
.fb2-preview-manual li {
  margin-bottom: 10px;
}
.fb2-preview-manual a {
  color: var(--fb2-primary, #426b53);
  text-decoration: underline;
}
.fb2-preview-manual code {
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .fb2-preview-manual main {
    margin-top: 24px;
  }
}
.fb2-auth-input:not(:focus-visible),
.fb2-mobile-search-input:not(:focus-visible),
.fb2-header-search-input:not(:focus-visible) {
  outline: none;
}

.fb2-section {
  margin-bottom: 32px;
}
.fb2-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fb2-section__title {
  font-family: var(--fb2-font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fb2-text);
  margin: 0;
  letter-spacing: -0.02em;
}
.fb2-section__carousel {
  position: relative;
  overflow: hidden;
  padding: 0 0 4px;
}
.fb2-section__carousel .fb2-carousel-slide {
  height: auto;
  flex: 0 0 calc((100% - 80px) / 6);
  width: calc((100% - 80px) / 6);
  scroll-snap-align: start;
}
.fb2-section__carousel .fb2-book-tile {
  height: 100%;
}
.fb2-section__carousel .fb2-carousel-previous {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fb2-bg-card, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--fb2-text, #333);
  top: 35%;
  left: 4px;
}
.fb2-section__carousel .fb2-carousel-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fb2-bg-card, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--fb2-text, #333);
  top: 35%;
  right: 4px;
}
.fb2-section__carousel .fb2-carousel-previous::after,
.fb2-section__carousel .fb2-carousel-next::after {
  font-size: 14px;
  font-weight: 700;
}
.fb2-section__nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.fb2-section__nav .fb2-carousel-previous,
.fb2-section__nav .fb2-carousel-next {
  position: static;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--fb2-border);
  outline: none;
  background: var(--fb2-bg-card);
  color: var(--fb2-text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--fb2-shadow);
}
.fb2-section__nav .fb2-carousel-previous:after,
.fb2-section__nav .fb2-carousel-next:after {
  font-size: 18px;
  color: var(--fb2-text-secondary);
}
.fb2-section__nav .fb2-carousel-previous:hover,
.fb2-section__nav .fb2-carousel-next:hover {
  background: var(--fb2-primary-light);
  border-color: var(--fb2-primary);
  color: var(--fb2-primary);
  box-shadow: var(--fb2-shadow-lg);
}
.fb2-section__nav .fb2-carousel-previous:hover:after,
.fb2-section__nav .fb2-carousel-next:hover:after {
  color: var(--fb2-primary);
}
.fb2-book-tile {
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  background: var(--fb2-bg-card);
  display: flex;
  flex-direction: column;
  box-shadow: var(--fb2-shadow);
}
.fb2-book-tile:hover {
  box-shadow: var(--fb2-shadow-lg);
  border-color: rgba(66, 107, 83, 0.2);
  transform: translateY(-2px);
}
[data-theme="dark"] .fb2-book-tile:hover {
  border-color: rgba(175, 208, 183, 0.25);
}
.fb2-book-tile__image {
  position: relative;
  width: 100%;
  max-height: 250px;
  overflow: hidden;
  background: var(--fb2-bg);
  aspect-ratio: 3 / 4;
}
.fb2-book-tile__image a {
  display: block;
  width: 100%;
  height: 100%;
}
.fb2-book-tile__image img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  object-fit: cover;
}
.fb2-book-tile:hover .fb2-book-tile__image img {
  transform: scale(1.08);
}
.fb2-book-tile__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.fb2-book-tile__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  width: fit-content;
}
.fb2-book-tile__badge--new {
  background: #527b5f;
  text-transform: lowercase;
}
.fb2-book-tile__badge--age {
  background: linear-gradient(135deg, #716344 0%, #817049 100%);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.fb2-book-tile__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--fb2-border);
  background: var(--fb2-bg-card);
  box-shadow: var(--fb2-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--fb2-text-muted);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.fb2-book-tile__fav:hover {
  color: var(--fb2-red);
  border-color: var(--fb2-red-light);
  background: var(--fb2-bg-elevated);
}
.fb2-book-tile__fav.fb2-is-active {
  color: var(--fb2-red);
  border-color: rgba(185, 28, 28, 0.35);
}
.fb2-book-tile__fav.fb2-is-active i {
  font-weight: 900;
}
.fb2-book-tile__body {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.fb2-book-tile__title {
  line-height: 1.3;
  font-size: 13px;
  margin-bottom: 4px;
  flex-grow: 1;
}
.fb2-book-tile__title a {
  color: var(--fb2-text);
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb2-book-tile__title a:hover {
  color: var(--fb2-primary);
}
#swiper-popular .fb2-book-tile__image {
  aspect-ratio: 3 / 4 !important;
}
@media (max-width: 768px) {
  .fb2-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .fb2-book-tile__body {
    padding: 10px 10px 12px;
  }
  .fb2-book-tile__title {
    font-size: 13px;
    min-height: 2.7em;
  }
  .fb2-book-tile__fav {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .fb2-book-tile__badge {
    font-size: 10px;
    padding: 2px 7px;
  }
  .fb2-section__carousel .fb2-carousel-previous,
  .fb2-section__carousel .fb2-carousel-next {
    display: none;
  }
}
@media (max-width: 420px) {
  .fb2-book-tile {
    border-radius: 10px;
  }
  .fb2-book-tile__body {
    padding: 8px 8px 10px;
  }
  .fb2-book-tile__title {
    font-size: 12px;
  }
}
.fb2-carousel {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}
.fb2-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(
    --fb2-carousel-wrapper-transition-timing-function,
    initial
  );
  box-sizing: content-box;
  transform: translate3d(0px, 0, 0);
}
.fb2-carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}
.fb2-carousel-next {
  position: absolute;
  top: var(--fb2-carousel-navigation-top-offset, 50%);
  width: calc(var(--fb2-carousel-navigation-size) / 44 * 27);
  height: var(--fb2-carousel-navigation-size);
  margin-top: calc(0px - (var(--fb2-carousel-navigation-size) / 2));
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fb2-carousel-navigation-color, var(--fb2-carousel-theme-color));
  right: var(--fb2-carousel-navigation-sides-offset, 10px);
  left: auto;
}
.fb2-carousel-previous {
  position: absolute;
  top: var(--fb2-carousel-navigation-top-offset, 50%);
  width: calc(var(--fb2-carousel-navigation-size) / 44 * 27);
  height: var(--fb2-carousel-navigation-size);
  margin-top: calc(0px - (var(--fb2-carousel-navigation-size) / 2));
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fb2-carousel-navigation-color, var(--fb2-carousel-theme-color));
  left: var(--fb2-carousel-navigation-sides-offset, 10px);
  right: auto;
}
.fb2-carousel-next svg,
.fb2-carousel-previous svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}
.fb2-carousel-next:after {
  font-family: swiper-icons;
  font-size: var(--fb2-carousel-navigation-size);
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  content: "next";
}
.fb2-carousel-previous:after {
  font-family: swiper-icons;
  font-size: var(--fb2-carousel-navigation-size);
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  content: "prev";
}
.fb2-cover-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  color: var(--fb2-text-secondary);
  background: linear-gradient(
    120deg,
    var(--fb2-bg-card, #eee3da),
    var(--fb2-bg, #fbf8f3)
  );
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.fb2-book-tile__image > a:has(.fb2-cover-placeholder) {
  display: block;
  height: 100%;
}
.fb2-section__carousel .fb2-carousel-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 16px;
  padding-bottom: 8px;
  transform: none !important;
}
.fb2-section__carousel .fb2-carousel-track::-webkit-scrollbar {
  display: none;
}
@media (max-width: 1024px) {
  .fb2-section__carousel .fb2-carousel-slide {
    flex-basis: calc((100% - 48px) / 4);
    width: calc((100% - 48px) / 4);
  }
}
@media (max-width: 640px) {
  .fb2-section__carousel .fb2-carousel-slide {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
  }
}
.fb2-book-tile__image > a {
  position: absolute;
  inset: 0;
}
.fb2-book-tile__image .fb2-cover-placeholder {
  min-height: 0;
}

.fb2-reader-layout {
  width: 100%;
}
.fb2-reader-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@media (min-width: 1024px) {
  .fb2-reader-middle {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
  }
}
.fb2-reader-book {
  max-width: 720px;
  width: 100%;
  margin: 0;
  padding: 24px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.8;
  color: var(--fb2-text, #333);
  flex: 0 1 720px;
}
[data-theme="dark"] .fb2-reader-book {
  color: var(--fb2-text-secondary);
  padding: 10px;
}
[data-theme="dark"] .fb2-reader-title,
[data-theme="dark"] .fb2-reader-book .fb2-title {
  color: var(--fb2-text-secondary);
}
.fb2-reader-title {
  color: var(--fb2-text, #233129);
}
.fb2-reader-book .fb2-content {
  margin: 1em 0;
}
.fb2-reader-book .fb2-content p {
  margin: 0.6em 0;
  text-align: justify;
}
.fb2-reader-book .fb2-title {
  font-weight: bold;
  margin: 1em 0 0.5em;
  color: var(--fb2-text, #233129);
}
.fb2-buy-wrap {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fb2-border, #ddd);
  text-align: center;
}
.fb2-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(
    --fb2-font,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif
  );
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  color: var(--fb2-on-primary) !important;
  background: linear-gradient(
    135deg,
    var(--fb2-primary, #426b53),
    var(--fb2-primary-dark, #31533f)
  );
  border: 1px solid transparent;
  border-radius: var(--fb2-radius, 12px);
  box-shadow: 0 2px 10px rgba(66, 107, 83, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}
.fb2-buy-btn:hover {
  opacity: 0.94;
  color: var(--fb2-on-primary) !important;
  box-shadow: 0 4px 16px rgba(66, 107, 83, 0.38);
  transform: translateY(-1px);
}
.fb2-buy-btn:active {
  transform: translateY(0);
}
.fb2-buy-btn:focus-visible {
  outline: 2px solid var(--fb2-accent, #806531);
  outline-offset: 3px;
}
.fb2-reader-book .fb2-image img {
  max-width: 100%;
  height: auto;
}
.fb2-note {
  border-bottom: 1px dotted var(--fb2-text-muted, #666);
  cursor: help;
  color: inherit;
}
.fb2-stanza {
  list-style: none;
  padding-left: 0;
}
.fb2-book-rating-likes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fb2-post-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--fb2-border);
  border-radius: 8px;
  background: var(--fb2-bg-card);
  color: var(--fb2-text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.fb2-post-vote-btn:hover {
  border-color: var(--fb2-primary);
  color: var(--fb2-primary);
}
.fb2-post-vote-btn.fb2-vote-dislike:hover {
  border-color: var(--fb2-red);
  color: var(--fb2-red);
}
.fb2-post-vote-count {
  font-weight: 600;
}
.fb2-book-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fb2-rating-stars-input {
  display: inline-flex;
  gap: 2px;
}
.fb2-rating-star-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.15s;
  line-height: 0;
}
.fb2-star-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  background: url("assets/rating.svg") no-repeat 0 0;
  background-size: 17px 51px;
}
.fb2-rating-star-btn.fb2-is-active .fb2-star-icon {
  background-position: 0 -34px;
}
.fb2-rating-star-btn:hover {
  transform: scale(1.2);
}
.fb2-rating-stars-input:hover .fb2-star-icon {
  background-position: 0 -17px;
}
.fb2-rating-stars-input
  .fb2-rating-star-btn:hover
  ~ .fb2-rating-star-btn
  .fb2-star-icon {
  background-position: 0 0;
}
.fb2-rating-star-btn.fb2-is-hovered .fb2-star-icon {
  background-position: 0 -17px;
}
.fb2-rating-stars-info {
  font-size: 0.85rem;
  color: var(--fb2-text-muted);
  font-weight: 500;
}
.fb2-book-rating-stars .fb2-rating-stars-label {
  font-size: 0.85rem;
  color: var(--fb2-text-muted);
}
.fb2-book-rating-stars--full .fb2-star-icon {
  width: 22px;
  height: 22px;
  background-size: 22px 66px;
}
.fb2-book-rating-stars--full .fb2-rating-star-btn.fb2-is-active .fb2-star-icon {
  background-position: 0 -44px;
}
.fb2-book-rating-stars--full .fb2-rating-stars-input:hover .fb2-star-icon {
  background-position: 0 -22px;
}
.fb2-book-rating-stars--full
  .fb2-rating-stars-input
  .fb2-rating-star-btn:hover
  ~ .fb2-rating-star-btn
  .fb2-star-icon {
  background-position: 0 0;
}
.fb2-book-rating-stars--full
  .fb2-rating-star-btn.fb2-is-hovered
  .fb2-star-icon {
  background-position: 0 -22px;
}
.fb2-book-rating {
  position: relative;
  z-index: 5;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--fb2-text-muted);
}
.fb2-book-details__poster-wrap .fb2-book-rating {
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--fb2-border);
}
.fb2-book-details__poster-wrap .fb2-book-rating .fb2-book-rating-stars,
.fb2-book-details__poster-wrap .fb2-book-rating .fb2-book-rating-likes {
  flex-wrap: wrap;
  gap: 8px;
}
.fb2-book-details__poster-wrap
  .fb2-book-rating
  .fb2-book-rating-stars--full
  .fb2-star-icon {
  width: 20px;
  height: 20px;
  background-size: 20px 60px;
}
.fb2-book-details__poster-wrap
  .fb2-book-rating
  .fb2-book-rating-stars--full
  .fb2-rating-star-btn.fb2-is-active
  .fb2-star-icon {
  background-position: 0 -40px;
}
.fb2-book-details__poster-wrap
  .fb2-book-rating
  .fb2-book-rating-stars--full
  .fb2-rating-stars-input:hover
  .fb2-star-icon,
.fb2-book-details__poster-wrap
  .fb2-book-rating
  .fb2-book-rating-stars--full
  .fb2-rating-star-btn.fb2-is-hovered
  .fb2-star-icon {
  background-position: 0 -20px;
}
.fb2-book-details__poster-wrap .fb2-book-rating .fb2-rating-stars-info {
  font-size: 0.82rem;
}
.fb2-book-details {
  max-width: var(--fb2-max-width);
  margin: 0 auto;
}
.fb2-book-details__title {
  font-family: var(--fb2-font-heading);
  font-size: 1.65rem;
  line-height: 1.3;
  margin-bottom: 25px;
  color: var(--fb2-text);
  letter-spacing: -0.02em;
}
.fb2-book-details__top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.fb2-book-details__poster-wrap {
  position: relative;
}
.fb2-book-details__poster {
  height: fit-content;
}
.fb2-book-details__poster img {
  width: 100%;
  height: auto;
  border-radius: var(--fb2-radius);
  box-shadow: var(--fb2-shadow-lg);
}
.fb2-book-details__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fb2-book-details__action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.fb2-book-details__meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fb2-border);
}
.fb2-book-details__stats {
  display: flex;
  gap: 25px;
  font-size: 14px;
  color: var(--fb2-text-secondary);
}
.fb2-book-details__stat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb2-book-details__badges {
  display: flex;
  gap: 10px;
}
.fb2-book-details__author-text {
  font-size: 14px;
  color: var(--fb2-text-secondary);
}
.fb2-book-details__author-text a {
  color: var(--fb2-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.fb2-book-details__author-text a:hover {
  color: var(--fb2-primary-dark);
  text-decoration: underline;
}
.fb2-book-details__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 15px;
}
.fb2-book-details__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fb2-text);
  min-width: 80px;
  flex-shrink: 0;
}
.fb2-book-details__category {
  color: var(--fb2-text-secondary);
  font-weight: 500;
}
.fb2-book-details__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0;
}
.fb2-book-details__genres a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--fb2-primary-light);
  color: var(--fb2-primary);
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.fb2-book-details__genres a:hover {
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
}
a.fb2-btn-read-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 15px;
  background: linear-gradient(
    135deg,
    var(--fb2-primary) 0%,
    var(--fb2-primary-dark) 100%
  );
  color: var(--fb2-on-primary);
  border: 1px solid var(--fb2-primary);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 107, 83, 0.3);
  position: relative;
  overflow: hidden;
}
a.fb2-btn-read-online::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
a.fb2-btn-read-online:hover {
  border-color: var(--fb2-primary-dark);
  box-shadow: 0 6px 20px rgba(49, 83, 63, 0.4);
  padding: 5px 15px;
  border-radius: 5px;
}
a.fb2-btn-read-online:hover::before {
  opacity: 1;
}
a.fb2-btn-read-online:active {
  transform: translateY(-1px);
}
.fb2-book-details__btn-download {
  display: inline-flex;
}
.fb2-book-details__btn-download a,
.fb2-book-details__btn-download .fb2-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 15px;
  background: var(--fb2-bg-card);
  color: var(--fb2-primary);
  border: 1px solid var(--fb2-primary);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.fb2-book-details__btn-download a:hover,
.fb2-book-details__btn-download .fb2-download-link:hover {
  background: var(--fb2-primary-light, rgba(66, 107, 83, 0.1));
  color: var(--fb2-primary);
}
.fb2-book-details__btn-download--epub a,
.fb2-book-details__btn-download--epub .fb2-download-link {
  font-size: 0;
}
.fb2-book-details__btn-download--epub a i,
.fb2-book-details__btn-download--epub .fb2-download-link i {
  font-size: 14px;
}
.fb2-book-details__btn-download--epub a::after,
.fb2-book-details__btn-download--epub .fb2-download-link::after {
  content: " Скачать epub";
  font-size: 14px;
}
.fb2-book-details__btn-download--fb2 a,
.fb2-book-details__btn-download--fb2 .fb2-download-link {
  font-size: 0;
}
.fb2-book-details__btn-download--fb2 a i,
.fb2-book-details__btn-download--fb2 .fb2-download-link i {
  font-size: 14px;
}
.fb2-book-details__btn-download--fb2 a::after,
.fb2-book-details__btn-download--fb2 .fb2-download-link::after {
  content: " Скачать fb2";
  font-size: 14px;
}
.fb2-book-details__tabs-wrap {
  margin-bottom: 60px;
}
.fb2-book-details__tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--fb2-border);
  margin-bottom: 30px;
}
.fb2-book-details__tab {
  padding: 15px 25px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--fb2-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.fb2-book-details__tab:hover {
  color: var(--fb2-text);
}
.fb2-book-details__tab.fb2-is-active {
  color: var(--fb2-primary);
  border-bottom-color: var(--fb2-primary);
}
.fb2-book-details__tab-content {
  display: none;
}
.fb2-book-details__tab-content.fb2-is-active {
  display: block;
}
.fb2-book-details__content {
  line-height: 1.8;
  font-size: 16px;
  color: var(--fb2-text);
}
.fb2-book-details__content p {
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .fb2-book-details__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .fb2-book-details__poster {
    position: static;
  }
  .fb2-book-details__title {
    font-size: 24px;
  }
  .fb2-book-details__meta-header {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
  }
  .fb2-btn-read-online {
    width: 100%;
    justify-content: center;
  }
}
.fb2-reviews-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--fb2-border);
}
.fb2-reviews-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--fb2-text);
}
.fb2-reviews-heading i {
  color: var(--fb2-primary);
  margin-right: 6px;
}
.fb2-reviews-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
.fb2-reviews-layout__form {
  position: sticky;
  top: 80px;
}
.fb2-reviews-layout__list {
  min-width: 0;
}
@media (max-width: 1024px) {
  .fb2-reviews-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fb2-reviews-layout__form {
    position: static;
    top: auto;
  }
}
@media (max-width: 768px) {
  .fb2-reviews-layout {
    gap: 20px;
  }
  .fb2-reviews-section {
    margin-top: 28px;
    padding-top: 24px;
  }
  .fb2-reviews-heading {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
}
.fb2-reviews-empty {
  color: var(--fb2-text-muted);
  text-align: center;
  padding: 24px 0;
  font-size: 0.95rem;
}
.fb2-review-item {
  margin-bottom: 0;
}
.fb2-review-body {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--fb2-border);
}
.fb2-review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.fb2-review-avatar .fb2-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid var(--fb2-primary-dark);
}
.fb2-review-content {
  flex: 1;
  min-width: 0;
}
.fb2-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.fb2-review-author-name {
  font-weight: 600;
  color: var(--fb2-text);
}
.fb2-review-user-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.fb2-review-user-badge.fb2-badge-guest {
  background: var(--fb2-bg);
  color: var(--fb2-text-muted);
  border: 1px solid var(--fb2-border);
}
.fb2-review-date {
  color: var(--fb2-text-muted);
  font-size: 0.8rem;
}
.fb2-review-meta-rating {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.fb2-review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fb2-text);
  word-wrap: break-word;
}
.fb2-review-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.fb2-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}
.fb2-review-vote-btn {
  background: none;
  border: 1px solid var(--fb2-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fb2-text-muted);
  transition: all 0.15s;
  line-height: 1;
}
.fb2-review-vote-btn:hover {
  border-color: var(--fb2-text-secondary);
  color: var(--fb2-text);
}
.fb2-review-vote-btn.fb2-vote-like:hover,
.fb2-review-vote-btn.fb2-vote-like.fb2-is-active {
  border-color: var(--fb2-green);
  color: var(--fb2-green);
  background: var(--fb2-green-light);
}
.fb2-review-vote-btn.fb2-vote-dislike:hover,
.fb2-review-vote-btn.fb2-vote-dislike.fb2-is-active {
  border-color: var(--fb2-red);
  color: var(--fb2-red);
  background: var(--fb2-red-light);
}
.fb2-review-vote-btn i {
  font-size: 0.74rem;
}
.fb2-review-vote-count {
  font-weight: 600;
  min-width: 10px;
  text-align: center;
}
.fb2-review-action-btn {
  background: none;
  border: none;
  color: var(--fb2-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 3px 0;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fb2-review-action-btn:hover {
  color: var(--fb2-primary);
}
.fb2-review-action-btn i {
  font-size: 0.72rem;
}
.fb2-review-actions-sep {
  width: 1px;
  height: 12px;
  background: var(--fb2-border);
  margin: 0 2px;
}
.fb2-review-form-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--fb2-border);
}
.fb2-review-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.fb2-review-form .fb2-review-form-row {
  margin-bottom: 12px;
}
.fb2-review-form .fb2-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  font-size: 0.95rem;
  font-family: var(--fb2-font);
  background: var(--fb2-bg-card);
  color: var(--fb2-text);
  transition: border-color 0.15s;
}
.fb2-review-form .fb2-form-control:focus {
  outline: none;
  border-color: var(--fb2-primary);
  box-shadow: 0 0 0 3px rgba(66, 107, 83, 0.1);
}
.fb2-review-form textarea.fb2-form-control {
  resize: vertical;
  min-height: 100px;
}
.fb2-review-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fb2-review-form .fb2-button-primary {
  background: var(--fb2-primary);
  color: var(--fb2-on-primary);
  border: none;
  border-radius: var(--fb2-radius);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.fb2-review-form .fb2-button-primary:hover {
  background: var(--fb2-primary-dark);
}
.fb2-review-form-status {
  font-size: 0.85rem;
  color: var(--fb2-text-muted);
}
.fb2-review-reply-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--fb2-primary-light, rgba(66, 107, 83, 0.08));
  border: 1px solid rgba(66, 107, 83, 0.2);
  border-radius: var(--fb2-radius, 8px);
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--fb2-primary);
  animation: replySlideIn 0.25s ease-out;
}
.fb2-review-reply-indicator i {
  font-size: 0.78rem;
  opacity: 0.7;
}
.fb2-review-reply-indicator .fb2-reply-label {
  color: var(--fb2-text-muted);
  font-size: 0.82rem;
}
.fb2-review-reply-indicator strong {
  color: var(--fb2-text);
  font-weight: 600;
}
.fb2-review-reply-indicator .fb2-reply-cancel-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--fb2-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.fb2-review-reply-indicator .fb2-reply-cancel-btn:hover {
  color: var(--fb2-red);
}
@media (max-width: 640px) {
  .fb2-review-body {
    gap: 10px;
  }
  .fb2-review-avatar,
  .fb2-review-avatar .fb2-avatar-placeholder {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .fb2-review-actions {
    gap: 4px;
  }
  .fb2-review-vote-btn {
    padding: 3px 6px;
    font-size: 0.72rem;
  }
  .fb2-review-action-btn {
    font-size: 0.75rem;
  }
  .fb2-review-meta {
    gap: 6px;
    font-size: 0.8rem;
  }
  .fb2-review-user-badge {
    font-size: 0.62rem;
    padding: 1px 6px;
  }
  .fb2-review-form .fb2-form-control {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .fb2-review-form .fb2-button-primary {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}
@media (max-width: 420px) {
  .fb2-review-actions {
    flex-wrap: wrap;
  }
}
.fb2-book-details__poster .fb2-cover-placeholder {
  min-height: 320px;
}
.fb2-site-reader .fb2-reader-middle {
  display: block;
}
.fb2-site-reader .fb2-reader-book {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  color: var(--fb2-text);
}
.fb2-site-reader,
.fb2-site-reader * {
  box-sizing: border-box;
}
.fb2-site-reader .fb2-reader-wrap {
  min-width: 0;
  width: 100%;
  scroll-margin-top: 90px;
}
.fb2-site-reader .fb2-reader-settings {
  position: relative;
  width: 340px;
  max-width: 100%;
  margin-bottom: 20px;
  z-index: 5;
  font-family: var(--fb2-font);
}
.fb2-site-reader .fb2-reader-settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  background: var(--fb2-bg-card);
  color: var(--fb2-primary);
  font: 600 15px/1.4 var(--fb2-font);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.fb2-site-reader .fb2-reader-settings-toggle:hover,
.fb2-site-reader .fb2-reader-settings-toggle[aria-expanded="true"] {
  background: var(--fb2-primary-light);
  border-color: var(--fb2-primary);
}
.fb2-site-reader .fb2-reader-settings-chevron {
  margin-left: 4px;
  font-size: 10px;
  transition: transform 0.2s;
}
.fb2-site-reader
  .fb2-reader-settings-toggle[aria-expanded="true"]
  .fb2-reader-settings-chevron {
  transform: rotate(180deg);
}
.fb2-site-reader .fb2-reader-settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  max-width: 100%;
  padding: 20px;
  background: var(--fb2-bg-card);
  color: var(--fb2-text);
  border: 1px solid var(--fb2-border);
  border-radius: var(--fb2-radius);
  box-shadow: var(--fb2-shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fb2-site-reader .fb2-reader-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px -6px 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb2-border);
}
.fb2-site-reader .fb2-reader-setting-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fb2-site-reader .fb2-reader-settings-heading h2 {
  margin: 0;
  padding: 0;
  color: var(--fb2-text);
  font: 600 18px/1.3 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fb2-text-muted);
  font-size: 18px;
  cursor: pointer;
}
.fb2-site-reader .fb2-reader-settings-close:hover {
  color: var(--fb2-primary);
  background: var(--fb2-primary-light);
}
.fb2-site-reader .fb2-reader-setting + .fb2-reader-setting {
  margin-top: 16px;
}
.fb2-site-reader .fb2-reader-setting-heading label {
  color: var(--fb2-text-secondary);
  font: 600 14px/1.5 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-setting-heading output {
  display: inline-block;
  min-width: 54px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fb2-primary-light);
  color: var(--fb2-primary);
  font: 600 13px/1.4 var(--fb2-font);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.fb2-site-reader .fb2-reader-range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--fb2-text-muted);
  font: 11px/1.3 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-range-control {
  position: relative;
  padding-bottom: 4px;
}
.fb2-site-reader .fb2-reader-setting input[type="range"] {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.fb2-site-reader
  .fb2-reader-setting
  input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--fb2-primary) var(--fb2-reader-range-progress, 0%),
    var(--fb2-border) var(--fb2-reader-range-progress, 0%)
  );
}
.fb2-site-reader .fb2-reader-setting input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--fb2-primary) var(--fb2-reader-range-progress, 0%),
    var(--fb2-border) var(--fb2-reader-range-progress, 0%)
  );
}
.fb2-site-reader .fb2-reader-setting input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 3px solid var(--fb2-bg-card);
  border-radius: 50%;
  background: var(--fb2-primary);
  box-shadow:
    0 0 0 1px var(--fb2-primary),
    var(--fb2-shadow);
}
.fb2-site-reader .fb2-reader-setting input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--fb2-bg-card);
  border-radius: 50%;
  background: var(--fb2-primary);
  box-shadow:
    0 0 0 1px var(--fb2-primary),
    var(--fb2-shadow);
}
.fb2-site-reader .fb2-reader-settings button:focus-visible,
.fb2-site-reader .fb2-reader-setting input[type="range"]:focus-visible {
  outline: 2px solid var(--fb2-primary);
  outline-offset: 4px;
}
.fb2-site-reader .fb2-reader-default-mark {
  position: absolute;
  top: 31px;
  width: 2px;
  height: 5px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--fb2-primary);
  pointer-events: none;
}
.fb2-site-reader .fb2-reader-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fb2-border);
  color: var(--fb2-text-muted);
  font: 12px/1.4 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-settings-footer > span {
  flex: 1;
  min-width: 0;
  max-width: 140px;
}
.fb2-site-reader .fb2-reader-settings-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--fb2-border);
  border-radius: 8px;
  background: var(--fb2-bg-elevated);
  color: var(--fb2-primary);
  font: 600 13px/1.4 var(--fb2-font);
  cursor: pointer;
}
.fb2-site-reader .fb2-reader-settings-reset:hover {
  background: var(--fb2-primary-light);
  border-color: var(--fb2-primary);
}
.fb2-site-reader .fb2-reader-jump button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--fb2-border);
  border-radius: 8px;
  background: var(--fb2-bg-card);
  color: var(--fb2-primary);
  font: 600 13px/1.4 var(--fb2-font);
  cursor: pointer;
}
.fb2-site-reader .fb2-reader-jump button:hover {
  background: var(--fb2-primary-light);
  border-color: var(--fb2-primary);
}
.fb2-site-reader .fb2-reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: 100%;
  padding: 0 0 20px;
  font: 14px/1.5 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-content + .fb2-reader-nav {
  padding-top: 22px;
}
.fb2-site-reader .fb2-reader-pager {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 34px;
}
.fb2-site-reader .fb2-reader-pages ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.fb2-site-reader .fb2-reader-pages li {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  list-style: none;
}
.fb2-site-reader .fb2-reader-pages a {
  display: block;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 8px;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  color: var(--fb2-text-secondary);
}
.fb2-site-reader .fb2-reader-page-gap {
  display: block;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 8px;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  color: var(--fb2-text-muted);
}
.fb2-site-reader .fb2-reader-pages a:hover {
  background: var(--fb2-primary-light);
  color: var(--fb2-primary);
}
.fb2-site-reader .fb2-reader-pages .fb2-is-active a {
  color: var(--fb2-primary);
  background: var(--fb2-primary-light);
  font-weight: 700;
}
.fb2-site-reader .fb2-reader-jump,
.fb2-site-reader .fb2-reader-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
  color: var(--fb2-text-secondary);
}
.fb2-site-reader .fb2-reader-jump-input {
  width: 46px;
  height: 34px;
  padding: 0 5px;
  border: 1px solid var(--fb2-border);
  border-radius: 8px;
  background: var(--fb2-bg-elevated);
  color: var(--fb2-text);
  text-align: center;
  font: 14px/1 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-page-count {
  color: var(--fb2-text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.fb2-site-reader .fb2-reader-prevnext {
  display: flex;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}
.fb2-site-reader .fb2-reader-prevnext a {
  display: block;
  min-width: 52px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--fb2-primary);
  line-height: 34px;
  text-align: center;
  text-decoration: none;
}
.fb2-site-reader .fb2-reader-prevnext a:hover {
  background: var(--fb2-primary-light);
}
.fb2-site-reader .fb2-reader-prevnext .fb2-is-disabled {
  opacity: 0.4;
  cursor: default;
}
.fb2-site-reader .fb2-reader-title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--fb2-text);
  font-family: var(--fb2-font-heading);
  font-size: 30px;
  line-height: 1.4;
}
.fb2-site-reader .fb2-reader-author {
  margin: 0 0 24px;
  color: var(--fb2-text-secondary);
  font: 16px/1.5 var(--fb2-font);
}
.fb2-site-reader .fb2-reader-content {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  color: var(--fb2-text);
  font-family: var(--fb2-font-heading);
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  outline: 0;
}
.fb2-site-reader .fb2-reader-content p {
  max-width: none;
  margin: 0;
  padding: 0 0 0.8em;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  text-indent: 0;
}
.fb2-site-reader .fb2-reader-content h2 {
  margin: 0.4em 0 0.8em;
  font-size: 150%;
  line-height: 1.3;
  color: inherit;
}
.fb2-site-reader .fb2-reader-content h3 {
  font-size: 135%;
  line-height: 1.3;
  color: inherit;
}
.fb2-site-reader .fb2-reader-content h4,
.fb2-site-reader .fb2-reader-content h5 {
  color: inherit;
}
.fb2-site-reader .fb2-reader-content img {
  max-width: 100%;
  height: auto;
}
.fb2-site-reader .fb2-reader-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.fb2-site-reader .fb2-reader-content pre {
  white-space: pre-wrap;
}
.fb2-site-reader .fb2-reader-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.fb2-site-reader .fb2-reader-content ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
@media (max-width: 640px) {
  .fb2-site-reader .fb2-reader-book {
    padding: 0;
  }
  .fb2-site-reader .fb2-reader-settings {
    margin-bottom: 16px;
  }
  .fb2-site-reader .fb2-reader-settings-panel {
    padding: 16px;
  }
  .fb2-site-reader .fb2-reader-settings-heading h2 {
    font-size: 17px;
  }
  .fb2-site-reader .fb2-reader-nav {
    gap: 10px 8px;
  }
  .fb2-site-reader .fb2-reader-title {
    font-size: 24px;
  }
  .fb2-site-reader .fb2-reader-content {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    line-height: 1.6;
  }
  .fb2-site-reader .fb2-reader-content h2 {
    font-size: 125%;
  }
}

.fb2-directory-page {
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
}
.fb2-directory-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--fb2-text-heading, #1a1a1a);
}
.fb2-directory-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fb2-directory-search {
  display: flex;
  gap: 8px;
  max-width: 480px;
  flex: 1;
  min-width: 0;
}
.fb2-directory-search__input {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid var(--fb2-border-color, #e0e0e0);
  border-radius: 8px;
  font-size: 1rem;
}
.fb2-directory-search__input:focus {
  outline: none;
  border-color: var(--fb2-accent, #806531);
}
.fb2-directory-search__btn {
  padding: 10px 16px;
  background: var(--fb2-accent, #806531);
  color: var(--fb2-on-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.fb2-directory-search__btn:hover {
  opacity: 0.9;
}
.fb2-directory-btn-all {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-size: 0.95rem;
  color: var(--fb2-text-secondary, #555);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--fb2-border-color, #e0e0e0);
  background: var(--fb2-bg-card, #fff);
  white-space: nowrap;
}
.fb2-directory-btn-all:hover {
  color: var(--fb2-accent, #806531);
  border-color: var(--fb2-accent, #806531);
  background: rgba(128, 101, 49, 0.06);
}
.fb2-directory-btn-all--active {
  color: var(--fb2-on-accent);
  background: var(--fb2-accent, #806531);
  border-color: var(--fb2-accent, #806531);
}
.fb2-directory-letters {
  margin-bottom: 24px;
}
.fb2-directory-letters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.fb2-directory-letter {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--fb2-text-secondary, #555);
  text-decoration: none;
  border-radius: 6px;
}
.fb2-directory-letter:hover {
  color: var(--fb2-accent, #806531);
  background: rgba(128, 101, 49, 0.08);
}
.fb2-directory-letter--active {
  color: var(--fb2-on-accent);
  background: var(--fb2-accent, #806531);
}
.fb2-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .fb2-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .fb2-directory-grid {
    grid-template-columns: 1fr;
  }
}
.fb2-directory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--fb2-bg-card, #f8f9fa);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fb2-directory-card:hover {
  border-color: var(--fb2-border-color, #e0e0e0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.fb2-directory-card__icon {
  color: var(--fb2-text-muted, #888);
  font-size: 1rem;
}
.fb2-directory-card__name {
  flex: 1;
  font-weight: 500;
  color: var(--fb2-text-primary, #1a1a1a);
}
.fb2-directory-card__count {
  font-size: 0.9rem;
  color: var(--fb2-text-muted, #666);
}
.fb2-directory-pagination-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.fb2-directory-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.fb2-directory-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 0.95rem;
  color: var(--fb2-text-secondary, #555);
  text-decoration: none;
  border-radius: 8px;
}
.fb2-directory-pagination__link:hover {
  background: var(--fb2-bg-card, #f0f0f0);
  color: var(--fb2-accent, #806531);
}
.fb2-directory-pagination__link--current {
  background: var(--fb2-accent, #806531);
  color: var(--fb2-on-accent);
}
.fb2-directory-pagination__dots {
  padding: 0 4px;
  color: var(--fb2-text-muted, #999);
}

.fb2-ranking {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.fb2-ranking__header {
  text-align: center;
  margin-bottom: 28px;
}
.fb2-ranking__title {
  font-family: var(--fb2-font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--fb2-text);
  margin: 0 0 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.fb2-ranking__desc {
  font-size: 1rem;
  color: var(--fb2-text-secondary);
  margin: 0;
}
.fb2-ranking__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.fb2-ranking__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--fb2-bg-card);
  border: 1px solid var(--fb2-border);
  border-radius: 10px;
  color: var(--fb2-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.fb2-ranking__tab:hover {
  border-color: var(--fb2-primary);
  color: var(--fb2-primary);
}
.fb2-ranking__tab.fb2-is-active {
  background: var(--fb2-primary);
  border-color: var(--fb2-primary);
  color: var(--fb2-on-primary);
}
.fb2-ranking__panel {
  display: block;
}
.fb2-ranking__panel.fb2-is-hidden {
  display: none !important;
}
.fb2-ranking__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  counter-reset: rank;
}
.fb2-ranking-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  counter-increment: rank;
}
.fb2-ranking-entry__rank-wrap {
  margin-bottom: -7px;
  padding-left: 0;
}
.fb2-ranking-entry__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--fb2-bg-card);
  border: 1px solid var(--fb2-border);
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fb2-ranking-entry:hover .fb2-ranking-entry__card {
  border-color: var(--fb2-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.fb2-ranking-entry__poster-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.fb2-ranking-entry__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px 8px 12px;
  min-width: 56px;
  background: linear-gradient(135deg, #426b53 0%, #567e62 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(66, 107, 83, 0.4);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% 100%, 0 100%);
}
.fb2-ranking-entry__rank::before {
  content: counter(rank);
}
.fb2-ranking-entry__rank::after {
  content: "\00a0место";
}
.fb2-ranking-entry:nth-child(1) .fb2-ranking-entry__rank {
  background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 50%, #c9a227 100%);
  color: #2c2416;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}
.fb2-ranking-entry:nth-child(2) .fb2-ranking-entry__rank {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 50%, #a8a8a8 100%);
  color: #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.fb2-ranking-entry:nth-child(3) .fb2-ranking-entry__rank {
  background: linear-gradient(135deg, #cd7f32 0%, #e8a75b 50%, #b87333 100%);
  color: #2c2016;
  box-shadow: 0 2px 10px rgba(205, 127, 50, 0.4);
}
.fb2-ranking-entry .fb2-book-tile__image {
  border-radius: 0;
}
.fb2-ranking-entry__rating-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(30, 30, 35, 0.9);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.fb2-ranking-entry__rating-pill i {
  color: #fff;
  font-size: 0.75rem;
  opacity: 0.95;
}
.fb2-ranking-entry__rating-val {
  color: #c5ddcc;
}
.fb2-ranking-entry__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
@media (max-width: 768px) {
  .fb2-ranking__title {
    font-size: 1.5rem;
  }
  .fb2-ranking__tabs {
    gap: 8px;
  }
  .fb2-ranking__tab {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .fb2-ranking__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .fb2-ranking__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .fb2-ranking-entry__rank {
    padding: 5px 10px 6px 12px;
    min-width: 48px;
    font-size: 0.75rem;
  }
  .fb2-ranking-entry__rating-pill {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  .fb2-ranking-entry__rating-val {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .fb2-ranking__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .fb2-ranking__grid {
    grid-template-columns: 1fr;
  }
}
@media (width > 768px) {
  .fb2-ranking-entry__body {
    padding: 14px;
  }
}

.fb2-search-page {
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
}
.fb2-search-header {
  margin-bottom: 24px;
}
.fb2-search-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fb2-text-heading, var(--fb2-text, #1a1a1a));
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb2-search-results-info {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--fb2-text-secondary, #555);
}
.fb2-search-results-info > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb2-search-count {
  color: var(--fb2-text-muted, #666);
}
.fb2-search-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 992px) {
  .fb2-search-results {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .fb2-search-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 400px) {
  .fb2-search-results {
    grid-template-columns: 1fr;
  }
}
.fb2-search-pagination {
  margin-top: 20px;
}
.fb2-search-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--fb2-text-secondary, #555);
}
.fb2-search-empty-icon {
  font-size: 3rem;
  color: var(--fb2-text-muted, #999);
  margin-bottom: 12px;
}
.fb2-search-empty h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fb2-text, #1a1a1a);
  margin-bottom: 8px;
}
