/* =========================================
   CoffeeAdvisor.ru - Artisan Roast Redesign
   ========================================= */

:root {
  --bg: #f2e8da;
  --bg-soft: #f8f1e7;
  --bg-panel: #fffaf2;
  --bg-dark: #221611;
  --bg-dark-2: #2f1f18;
  --ink: #2f2018;
  --ink-soft: #5c4638;
  --ink-muted: #7a6354;
  --line: rgba(74, 49, 34, 0.14);
  --line-soft: rgba(74, 49, 34, 0.08);
  --accent: #c77c2e;
  --accent-2: #e7a863;
  --accent-3: #f3d1a9;
  --ok: #4f7b5f;
  --warn: #ab6a45;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 8px 24px rgba(28, 17, 12, 0.08);
  --shadow-md: 0 20px 46px rgba(28, 17, 12, 0.12);
  --shadow-lg: 0 34px 70px rgba(28, 17, 12, 0.16);

  --ease: 0.28s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #f2e8da;
}

body {
  padding-top: 0 !important;
}

body,
body.coffee-body {
  margin: 0;
  padding-top: 0 !important;
  color: var(--ink-soft);
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 16% -4%, rgba(231, 168, 99, 0.23) 0%, rgba(231, 168, 99, 0) 42%),
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #f7eee3 0%, #f2e8da 46%, #ebdecd 100%);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: #a8612a;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

a:hover,
a:focus {
  color: #7f461b;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--ink);
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
}

p,
li,
td,
th,
label,
small,
span,
div {
  letter-spacing: 0;
}

.text-muted {
  color: var(--ink-muted) !important;
}

::selection {
  color: #241710;
  background: rgba(231, 168, 99, 0.35);
}

.container {
  max-width: 1320px;
  position: relative;
  z-index: 2;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(252, 245, 235, 0.96));
}

.card-body {
  padding: 26px;
}

.form-control,
input[type='text'],
input[type='search'],
input[type='email'],
input[type='tel'],
input[type='password'],
select,
textarea {
  border-radius: 12px;
  min-height: 48px;
  color: var(--ink);
  border: 1px solid rgba(74, 49, 34, 0.2);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  box-shadow: none;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #957966;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(199, 124, 46, 0.48);
  background: #fffdfa;
  color: var(--ink);
  box-shadow: 0 0 0 0.2rem rgba(199, 124, 46, 0.14);
}

.btn,
button,
input[type='submit'] {
  min-height: 42px;
  border-radius: 11px;
  border: 0;
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  font-weight: 650;
  font-size: 0.93rem;
  letter-spacing: 0.005em;
}

.btn:focus,
button:focus {
  box-shadow: 0 0 0 0.2rem rgba(199, 124, 46, 0.2) !important;
}

.btn-primary,
.site-search-btn,
.tv-shortstory-readmore,
.related-btn-fix {
  color: #fffaf4 !important;
  border: 1px solid rgba(124, 72, 28, 0.2);
  background: linear-gradient(135deg, #cf7f33 0%, #a65d1f 100%);
  box-shadow: 0 14px 30px rgba(146, 84, 31, 0.25);
}

.btn-primary:hover,
.site-search-btn:hover,
.tv-shortstory-readmore:hover,
.related-btn-fix:hover {
  color: #fffaf4 !important;
  background: linear-gradient(135deg, #b96b24 0%, #894813 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(133, 73, 24, 0.3);
}

.btn-secondary,
.tv-shortstory-rate-btn,
.tv-shortstory-rate-multi,
.tv-shortstory-more-btn,
.tv-fs-pro-more,
.db-comment-iconbtn,
.db-comment-like-btn {
  color: var(--ink-soft);
  border: 1px solid rgba(74, 49, 34, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover,
.tv-shortstory-rate-btn:hover,
.tv-shortstory-more-btn:hover,
.tv-fs-pro-more:hover,
.db-comment-iconbtn:hover,
.db-comment-like-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.site-header-tech {
  position: sticky;
  top: 0;
  z-index: 1300;
  margin-top: 0 !important;
  padding: 0;
  background: linear-gradient(180deg, rgba(40, 25, 18, 0.98), rgba(31, 20, 14, 0.96)) !important;
  border-bottom: 0;
  box-shadow: 0 8px 22px rgba(18, 10, 7, 0.22);
}

.site-header-tech::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 219, 182, 0.08);
  pointer-events: none;
}

.site-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
}

.site-logo.tv-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 34px;
  color: #f9e9d7 !important;
}

.tv-logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(155deg, #2f1f18 0%, #4a301f 100%);
  border: 1px solid rgba(255, 205, 154, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 227, 194, 0.2), 0 14px 26px rgba(10, 6, 4, 0.35);
}

.tv-logo-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 20%, rgba(231, 168, 99, 0.35), rgba(231, 168, 99, 0));
}

.tv-logo-icon {
  position: relative;
  z-index: 2;
  font-size: 22px;
  color: #ffbe78;
}

.tv-logo-text {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 4px;
  line-height: 1;
}

.tv-logo-main {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffe2c2;
}

.tv-logo-dot {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 1.12rem;
  margin-bottom: 4px;
  color: #ffba6c;
}

.tv-logo-sub {
  grid-column: 1 / span 2;
  grid-row: 2;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 225, 193, 0.72);
}

.site-toggler {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 202, 149, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #f0be8a !important;
}

.site-toggler:hover,
.site-toggler:focus {
  background: rgba(255, 255, 255, 0.12);
}

.site-header-tech .navbar-collapse {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (min-width: 1200px) {
  .site-header-tech .navbar-collapse {
    display: flex !important;
  }
}

.site-main-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-right: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-main-nav::-webkit-scrollbar {
  display: none;
}

.site-main-nav .nav-item {
  flex: 0 0 auto;
}

.site-main-nav .nav-link {
  min-height: 42px;
  padding: 8px 14px !important;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 229, 201, 0.88) !important;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.site-main-nav .nav-link:hover,
.site-main-nav .nav-link:focus,
.site-main-nav .active .nav-link,
.site-main-nav .nav-link.active {
  color: #fff3e4 !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 219, 181, 0.2);
}

.site-main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2bc83, #cf8034);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.site-main-nav .nav-link:hover::after,
.site-main-nav .active .nav-link::after,
.site-main-nav .nav-link.active::after {
  transform: scaleX(1);
}

.site-nav-right {
  flex: 0 0 auto;
  margin-left: auto;
}

.site-search-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}

.site-search-wrap {
  width: 228px;
  flex: 0 0 228px;
  position: relative;
}

.site-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(70, 43, 28, 0.5);
  font-size: 18px;
}

.site-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 213, 170, 0.24) !important;
  background: rgba(255, 249, 241, 0.96) !important;
  color: #3d291e !important;
  font-weight: 520;
}

.site-search-btn {
  min-width: 90px;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

.coffee-layout {
  position: relative;
  padding-top: 36px;
  padding-bottom: 40px;
}

.coffee-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(231, 168, 99, 0.11), rgba(231, 168, 99, 0) 22%),
    radial-gradient(circle at 88% 64%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 24%);
}

.coffee-main-col,
.coffee-side-col {
  margin-top: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.coffee-main-col {
  padding-right: 18px;
}

.coffee-side-col {
  padding-left: 6px;
}

@media (min-width: 992px) {
  .coffee-side-col::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(108, 72, 49, 0.25), transparent);
  }
}

.homepage-hero,
.category-seo-box,
.coffee-info-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.homepage-hero {
  border: 1px solid rgba(90, 57, 37, 0.15);
  background:
    radial-gradient(circle at 16% 18%, rgba(231, 168, 99, 0.18), rgba(231, 168, 99, 0) 32%),
    linear-gradient(130deg, #fffaf2 0%, #fff0de 34%, #f7e5d0 100%);
  box-shadow: var(--shadow-lg);
}

.homepage-hero::before {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 124, 46, 0.18), rgba(199, 124, 46, 0));
}

.homepage-hero::after {
  content: '';
  position: absolute;
  left: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 228, 0.8), rgba(255, 244, 228, 0));
}

.homepage-hero .card-body {
  padding: 34px !important;
  position: relative;
  z-index: 2;
}

.homepage-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 15px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: #5b3620;
  border: 1px solid rgba(120, 73, 37, 0.18);
  background: rgba(255, 247, 238, 0.86);
}

.homepage-hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c77c2e, #f0c08a);
}

.homepage-hero h1 {
  margin-bottom: 16px !important;
  max-width: 780px;  
  line-height: 0.98 !important;
  letter-spacing: -0.025em !important;
  color: #2e1d13 !important;
}

.homepage-hero p {
  max-width: 900px;
  margin-bottom: 0 !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: #6c503e !important;
  font-weight: 450 !important;
}

.category-seo-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(251, 244, 234, 0.95));
}

.category-seo-box .card-body {
  padding: 20px 24px;
}

.category-seo-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  font-weight: 620;
  color: var(--ink);
}

.category-seo-title i {
  color: #be7a37;
}

.coffee-info-wrap {
  margin-bottom: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(251, 244, 234, 0.95));
}

.coffee-info-wrap:empty {
  display: none;
}

.fade-up {
  animation: revealUp 0.66s cubic-bezier(0.19, 0.87, 0.34, 1) both;
}

.tv-shortstory {
  border: 1px solid rgba(74, 49, 34, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(251, 245, 236, 0.98));
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.tv-shortstory:hover {
  transform: translateY(-4px);
  border-color: rgba(128, 81, 46, 0.24);
  box-shadow: 0 28px 56px rgba(31, 20, 14, 0.16);
}

.tv-shortstory-body {
  padding: 26px !important;
}

.tv-shortstory-poster {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #ead8c4;
  box-shadow: 0 14px 30px rgba(34, 20, 14, 0.14);
}

.tv-shortstory-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tv-shortstory:hover .tv-shortstory-image {
  transform: scale(1.05);
}

.tv-shortstory-fixed-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(109, 65, 33, 0.22);
  background: rgba(255, 245, 232, 0.92);
  color: #8e4f1f;
  font-size: 0.74rem;
  font-weight: 640;
}

.tv-shortstory-more-btn,
.tv-fs-pro-more {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 10px;
}

.tv-shortstory-dropdown-menu,
.tv-fs-pro-dropdown-menu,
.dropdown-menu {
  border: 1px solid rgba(74, 49, 34, 0.14);
  border-radius: 16px;
  padding: 9px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(252, 245, 236, 0.99));
  box-shadow: var(--shadow-md);
}

.dropdown-item {
  border-radius: 9px;
  color: var(--ink-soft);
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.tv-shortstory-category,
.tv-shortstory-category a {
  color: #a9642c;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tv-shortstory-title {
  margin-bottom: 12px;
}

.tv-shortstory-title a {
  color: #2f2018 !important;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.tv-shortstory-title a:hover {
  color: #7b451d !important;
}

.tv-shortstory-excerpt,
.tv-shortstory-excerpt p {
  color: #5f493a !important;
  font-size: 0.98rem;
  line-height: 1.72;
}

.tv-shortstory-editnote {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.tv-shortstory-editreason {
  display: block;
  margin-top: 6px;
}

.tv-shortstory-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tv-shortstory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
}

.tv-shortstory-meta .list-inline-item {
  margin-right: 0 !important;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.tv-shortstory-meta i {
  color: #bc7733;
  margin-right: 5px;
}

.tv-shortstory-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-shortstory-rate-btn,
.tv-shortstory-rate-multi {
  min-height: 37px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: 0.86rem;
  font-weight: 620;
}

.tv-shortstory-readmore {
  min-height: 40px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.tv-fs-pro {
  border: 1px solid rgba(74, 49, 34, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(252, 245, 235, 0.99));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tv-fs-pro-body {
  padding: 30px !important;
}

.tv-fs-pro-title,
.fs-title {
  margin-bottom: 14px;
  max-width: 920px;
  color: #2f1f16;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.tv-fs-pro-meta,
.fs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--ink-muted) !important;
  font-size: 0.85rem;
}

.fs-meta-item,
.tv-fs-pro-category a {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #664d3d !important;
  border: 1px solid rgba(99, 67, 46, 0.14);
  background: rgba(255, 255, 255, 0.68);
}

.fs-meta-item i {
  color: #bc7733;
}

.tv-fs-pro-hero {
  margin-bottom: 26px;
}

.tv-fs-pro-poster {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ebdac8;
  box-shadow: var(--shadow-sm);
}

.tv-fs-pro-poster-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.tv-fs-pro-text,
.fs-text,
.tv-fs-pro-content {
  color: #584435;
  font-size: 1rem;
  line-height: 1.8;
}

.tv-fs-pro-text h2,
.tv-fs-pro-text h3,
.tv-fs-pro-text h4,
.fs-text h2,
.fs-text h3,
.fs-text h4 {
  color: #352318;
  margin-top: 34px;
  margin-bottom: 12px;
  line-height: 1.06;
}

.tv-fs-pro-text h2,
.fs-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}

.tv-fs-pro-text h3,
.fs-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.tv-fs-pro-text h4,
.fs-text h4 {
  font-size: 1.15rem;
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.tv-fs-pro-text strong,
.tv-fs-pro-text b,
.fs-text strong,
.fs-text b {
  color: #2f1f16;
}

.tv-fs-pro-text a,
.fs-text a {
  color: #a55f24;
  text-decoration: underline;
  text-decoration-color: rgba(165, 95, 36, 0.3);
}

.tv-fs-pro-text a:hover,
.fs-text a:hover {
  color: #7c4318;
}

.tv-fs-pro-text img,
.fs-text img {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.tv-table-scroll {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.tv-fs-pro-text table,
.fs-text table {
  min-width: 640px;
  width: 100%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  color: #5d493a;
}

.tv-fs-pro-text th,
.tv-fs-pro-text td,
.fs-text th,
.fs-text td {
  border: 1px solid var(--line-soft);
  padding: 14px 16px;
}

.tv-fs-pro-text th,
.fs-text th {
  color: #352318;
  background: rgba(255, 255, 255, 0.84);
}

.tv-fs-edit-card {
  border: 1px solid rgba(171, 106, 69, 0.2);
  background: rgba(171, 106, 69, 0.08);
  box-shadow: none;
}

.tv-fs-edit-link {
  border: 0 !important;
  border-radius: 12px;
  color: #7f4d2c !important;
  background: transparent !important;
}

.tv-fs-edit-link .text-muted {
  color: #7f4d2c !important;
}

.tv-comments-card,
.fs-comments-card {
  border: 1px solid rgba(74, 49, 34, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.98));
  box-shadow: var(--shadow-md);
}

.tv-comments-card .card-body,
.fs-comments-card .card-body {
  padding: 26px;
}

.db-comment {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.db-comment + .db-comment {
  margin-top: 12px;
}

.db-comment-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(130, 84, 49, 0.24);
  box-shadow: 0 8px 18px rgba(31, 20, 14, 0.12);
}

.db-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.db-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.db-comment-author,
.db-comment-date,
.db-comment-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.8rem;
  border: 1px solid rgba(93, 61, 42, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: #6a4f3e !important;
}

.db-comment-author {
  font-weight: 650;
  color: #3f2b1f !important;
}

.db-comment-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.db-comment-iconbtn,
.db-comment-like-btn {
  min-height: 34px;
  min-width: 34px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.db-comment-content {
  color: #624d3d;
  font-size: 0.95rem;
  line-height: 1.7;
}

.db-comment-signature {
  margin-top: 12px;
  border-top: 1px dashed rgba(86, 57, 39, 0.24);
  padding-top: 9px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.comments-form-wrap {
  margin-top: 18px;
  border: 1px solid rgba(74, 49, 34, 0.14);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.66);
}

.comments-form-title {
  margin-bottom: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #2e1f15;
}

.comments-form-subtitle {
  font-size: 0.9rem;
}

.comments-submit-btn {
  min-width: 200px;
}

.related-item-fix {
  width: 50%;
  padding: 8px;
  box-sizing: border-box;
  float: left;
}

.related-item-fix:nth-child(2n + 1) {
  clear: both;
}

.related-card-fix {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  min-height: 118px;
  border-radius: 18px;
  border: 1px solid rgba(84, 54, 36, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(252, 245, 236, 0.96));
  box-shadow: 0 14px 26px rgba(29, 17, 12, 0.1);
  padding: 12px;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.related-card-fix::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d0883d, #b96b22);
}

.related-card-fix:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 74, 43, 0.3);
  box-shadow: 0 22px 35px rgba(29, 17, 12, 0.14);
}

.related-thumb-fix {
  flex: 0 0 116px;
  width: 116px;
  display: block;
}

.related-thumb-fix img {
  width: 116px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(84, 54, 36, 0.12);
  box-shadow: 0 8px 18px rgba(23, 14, 10, 0.12);
}

.related-content-fix {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.related-cat-fix {
  margin-bottom: 0;
}

.related-cat-fix a {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #8b4f20 !important;
  border: 1px solid rgba(127, 72, 31, 0.2);
  background: rgba(255, 247, 236, 0.8);
}

.related-cat-fix a:hover {
  color: #603310 !important;
  background: #fff2e2;
}

.related-title-fix {
  margin-bottom: 0;
}

.related-title-fix a {
  color: #2f2017 !important;
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 0.98;
  font-weight: 700;
}

.related-title-fix a:hover {
  color: #84491c !important;
}

.related-bottom-fix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.related-date-fix {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.related-btn-fix {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tv-top-news-item + .tv-top-news-item {
  margin-top: 12px;
}

.tv-top-news-link {
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.tv-top-news-link:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(92, 60, 41, 0.2);
}

.tv-top-news-thumb-wrap {
  width: 92px;
}

.tv-top-news-thumb {
  width: 92px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(90, 58, 39, 0.12);
}

.tv-top-news-title {
  color: #312219;
  font-size: 0.96rem;
  font-weight: 620;
  line-height: 1.3;
  margin-bottom: 8px;
}

.tv-top-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-top-news-meta-item {
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.coffee-sidebar-wrap .card,
.coffee-sidebar-wrap .widget,
.coffee-sidebar-wrap .box,
.coffee-sidebar-wrap .module,
.coffee-sidebar-wrap .sidebox {
  border: 1px solid rgba(84, 54, 36, 0.14);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(252, 245, 236, 0.97));
  box-shadow: var(--shadow-md);
}

.coffee-sidebar-wrap .card + .card,
.coffee-sidebar-wrap .widget + .widget,
.coffee-sidebar-wrap .box + .box,
.coffee-sidebar-wrap .module + .module,
.coffee-sidebar-wrap .sidebox + .sidebox {
  margin-top: 14px;
}

.coffee-sidebar-wrap .card-body,
.coffee-sidebar-wrap .widget-body,
.coffee-sidebar-wrap .box-body {
  padding: 22px;
}

.coffee-sidebar-wrap h3,
.coffee-sidebar-wrap h4,
.coffee-sidebar-wrap h5,
.coffee-sidebar-wrap .card-title {
  margin-bottom: 0;
  color: #2f2017 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem !important;
  line-height: 1.02 !important;
  font-weight: 700 !important;
}

.tv-side-card {
  border-radius: 24px;
}

.tv-side-head {
  margin-bottom: 8px;
}

.tv-side-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9a5d2b;
  font-weight: 700;
}

.tv-side-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(92, 60, 41, 0.2), transparent);
}

.tv-side-links li + li {
  margin-top: 8px;
}

.tv-side-links a {
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  width: 100%;
  color: #5e4739;
  border: 1px solid rgba(92, 60, 41, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.tv-side-links a:hover {
  color: #2f2018;
  background: rgba(255, 255, 255, 0.9);
}

.tv-main-btn,
.tv-auth-check-btn,
.tv-auth-page .tv-main-btn,
.tv-profile-action,
.pm .btn-outline-primary,
.pm .btn-outline-secondary,
.pmlist .btn,
.users .btn-outline-primary,
.users_search .btn-outline-primary,
.addnews .btn-outline-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid rgba(124, 72, 28, 0.2);
  background: linear-gradient(135deg, #cf7f33 0%, #a65d1f 100%);
  color: #fff9f2 !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(146, 84, 31, 0.2);
}

.tv-main-btn:hover,
.tv-auth-check-btn:hover,
.tv-profile-action:hover,
.pm .btn-outline-primary:hover,
.pm .btn-outline-secondary:hover,
.users .btn-outline-primary:hover,
.users_search .btn-outline-primary:hover,
.addnews .btn-outline-info:hover {
  background: linear-gradient(135deg, #b96b24 0%, #894813 100%);
  color: #fff9f2 !important;
  transform: translateY(-1px);
}

.tv-auth-page,
.tv-profile-card,
.pmlist,
.users .card,
.users_search .card,
.addnews .card,
.stats .card,
.pm .card {
  color: #5f493a;
}

.tv-auth-card,
.tv-register-card,
.tv-profile-card,
.pm .card,
.users .card,
.users_search .card,
.addnews .card {
  border: 1px solid rgba(74, 49, 34, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(252, 245, 236, 0.97));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tv-user-kicker,
.tv-profile-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a5d2b;
  font-weight: 700;
}

.tv-user-title,
.tv-profile-title,
.tv-auth-title {
  color: #2f2018 !important;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.02;
}

.tv-user-title,
.tv-auth-title {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

.tv-profile-title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

.tv-user-name,
.tv-profile-name {
  color: #6a4f3e;
  font-size: 1rem;
  font-weight: 500;
}

.tv-user-avatar,
.tv-profile-avatar {
  border-radius: 18px;
  border: 1px solid rgba(93, 61, 42, 0.14);
  box-shadow: 0 12px 26px rgba(25, 15, 10, 0.14);
}

.tv-user-menu .list-group-item,
.list-group-item {
  border-color: rgba(92, 60, 41, 0.1);
  color: #5f4839;
  background: rgba(255, 255, 255, 0.52);
}

.tv-user-menu .list-group-item:hover,
.list-group-item:hover {
  color: #2f2018;
  background: rgba(255, 255, 255, 0.86);
}

.tv-profile-action-wrap .tv-profile-action,
.tv-profile-action {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

.tv-profile-action-wrap > a,
.tv-profile-action-wrap .tv-profile-pm-link > a,
.tv-profile-action-wrap .tv-profile-pm-link > button,
.tv-profile-action-wrap .tv-profile-pm-link input[type='button'],
.tv-profile-action-wrap .tv-profile-pm-link .pm-link,
.tv-profile-action-wrap .tv-profile-pm-link .pm_button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(124, 72, 28, 0.2);
  background: linear-gradient(135deg, #cf7f33 0%, #a65d1f 100%);
  color: #fff9f2 !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(146, 84, 31, 0.2);
}

.tv-profile-action-wrap > a:hover,
.tv-profile-action-wrap .tv-profile-pm-link > a:hover,
.tv-profile-action-wrap .tv-profile-pm-link > button:hover,
.tv-profile-action-wrap .tv-profile-pm-link input[type='button']:hover {
  background: linear-gradient(135deg, #b96b24 0%, #894813 100%);
  color: #fff9f2 !important;
}

.tv-profile-action-static {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(93, 61, 42, 0.14);
  color: #5b4537 !important;
}

.tv-profile-table,
.tv-xfields-table,
.xfields,
.addnews table,
.users table {
  border-radius: 14px;
  overflow: hidden;
}

.tv-profile-table td,
.tv-xfields-table td,
.tv-xfields-table th,
.xfields td,
.xfields th,
.addnews table td,
.addnews table th {
  border-color: rgba(92, 60, 41, 0.12) !important;
  color: #5e493b;
  vertical-align: middle;
}

.tv-profile-table tr td:first-child,
.xfields tr td:first-child {
  color: #2f2018;
  font-weight: 600;
}

.tv-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid transparent;
}

.tv-status-online {
  color: #2d7048;
  background: rgba(93, 172, 120, 0.16);
  border-color: rgba(93, 172, 120, 0.35);
}

.tv-status-offline {
  color: #916150;
  background: rgba(190, 135, 106, 0.14);
  border-color: rgba(190, 135, 106, 0.28);
}

.tv-modal-content {
  border: 1px solid rgba(93, 61, 42, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffbf6 0%, #fcf3e7 100%);
}

.tv-modal-header,
.modal-header {
  border-bottom: 1px solid rgba(93, 61, 42, 0.12);
}

.tv-modal-footer,
.modal-footer {
  border-top: 1px solid rgba(93, 61, 42, 0.12);
}

.pm .card-header,
.users .card-header,
.users_search .card-header {
  border-bottom: 1px solid rgba(93, 61, 42, 0.12);
  background: rgba(255, 255, 255, 0.52);
  color: #3a271b;
  font-weight: 600;
}

.pm .sticky-top .card-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.tv-pm-page .tv-pm-card {
  border-radius: 24px;
}

.tv-pm-page .tv-pm-nav {
  display: grid;
  gap: 8px;
}

.tv-pm-page .tv-pm-nav a,
.tv-pm-page .tv-pm-nav-item {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(93, 61, 42, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: #5f4838 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.tv-pm-page .tv-pm-nav a:hover {
  color: #2f2018 !important;
  background: rgba(255, 255, 255, 0.9);
}

.tv-pm-page .tv-pm-nav a .tv-pm-nav-item {
  border: 0;
  padding: 0;
  background: transparent;
  min-height: auto;
}

.tv-pm-page .tv-pm-title {
  margin-bottom: 14px;
  color: #2f2018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1;
}

.tv-pm-page .tv-pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-pm-page .tv-pm-reply-btn {
  min-width: 130px;
}

.tv-pm-page .tv-pm-limit {
  font-size: 0.88rem;
}

.tv-pm-page .tv-pm-read-card {
  border-radius: 16px;
}

.pm .progress,
.tv-pm-page .progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(93, 61, 42, 0.12);
  overflow: hidden;
}

.pm .progress-bar,
.tv-pm-page .progress-bar {
  background: linear-gradient(90deg, #d08a3f, #b7651f);
}

.pm .commfoto,
.tv-pm-page .commfoto {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(93, 61, 42, 0.2);
}

.pm .list-inline-item,
.pm .card-text,
.pm .text-muted,
.tv-pm-page .list-inline-item,
.tv-pm-page .card-text,
.tv-pm-page .text-muted {
  color: #6a5445 !important;
}

.pm .card-title,
.tv-pm-page .card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  line-height: 1;
  color: #302117;
}

.pm .btn-light,
.tv-pm-page .btn-light {
  border: 1px solid rgba(93, 61, 42, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: #5f4838;
}

.users .usava img,
.users_search .usava img,
.users .ava,
.profile_popup .ava {
  border-radius: 14px !important;
  border: 1px solid rgba(93, 61, 42, 0.16);
  box-shadow: 0 10px 22px rgba(25, 15, 10, 0.14);
}

.users .card-footer,
.users_search .card-footer {
  border-top: 1px solid rgba(93, 61, 42, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.users .lnk a,
.users_search .lnk a {
  color: #2f2018;
  font-weight: 600;
}

.users .lnk a:hover,
.users_search .lnk a:hover {
  color: #8a4e20;
}

.users_search .card-body form .row > [class*='col-'] {
  margin-bottom: 10px;
}

.addnews .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.addnews .timeline > li {
  position: relative;
  padding: 16px 0 16px 18px;
  border-left: 2px solid rgba(93, 61, 42, 0.12);
}

.addnews .timeline > li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 27px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d08a3f, #b7651f);
}

.addnews label {
  color: #3a281c;
  font-weight: 600;
}

.addnews .bb-editor,
.addnews .arrow_box,
.addnews .tv-auth-subcard {
  border: 1px solid rgba(93, 61, 42, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  padding: 12px;
}

.addnews small.form-text {
  color: #896f5d !important;
}

.profile_popup .list-group-item {
  border-left: 0;
  border-right: 0;
}

.profile_popup .badge-success,
.badge-success {
  border: 1px solid rgba(93, 172, 120, 0.35);
  color: #2d7048;
  background: rgba(93, 172, 120, 0.16);
}

.pagination {
  gap: 8px;
}

.page-link {
  min-width: 40px;
  height: 40px;
  border-radius: 10px !important;
  border: 1px solid rgba(84, 54, 36, 0.16);
  background: rgba(255, 255, 255, 0.66);
  color: #624b3b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-link:hover {
  color: #3a261b;
  background: #fffdf8;
}

.page-item.active .page-link {
  color: #fff7ef;
  border-color: transparent;
  background: linear-gradient(135deg, #cf7f33 0%, #a65d1f 100%);
}

.footer,
.site-footer {
  margin-top: 40px;
  padding: 32px 0 26px;
  border-top: 1px solid rgba(84, 54, 36, 0.16);
  background: linear-gradient(180deg, rgba(40, 25, 18, 0.98), rgba(31, 20, 14, 0.96)) !important;
  color: #806959;
}

.coffee-scrolltop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(113, 69, 37, 0.18);
  border-radius: 14px;
  color: #f5dec1;
  background: linear-gradient(135deg, #342218 0%, #4d3123 100%);
  box-shadow: 0 16px 32px rgba(20, 11, 7, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease), box-shadow var(--ease);
  z-index: 1200;
}

.coffee-scrolltop:hover,
.coffee-scrolltop:focus {
  color: #ffe8ca;
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(20, 11, 7, 0.4);
  outline: none;
}

.coffee-scrolltop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alert {
  border-radius: 12px;
}

.alert-warning {
  color: #7a4927;
  background: rgba(171, 106, 69, 0.1);
  border-color: rgba(171, 106, 69, 0.22);
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .homepage-hero,
  .tv-shortstory,
  .tv-fs-pro {
    animation: revealUp 0.5s cubic-bezier(0.19, 0.87, 0.34, 1) both;
  }
}

@media (max-width: 1399.98px) {
  .tv-logo-main {
    font-size: 1.8rem;
  }

  .site-search-wrap {
    width: 200px;
    flex-basis: 200px;
  }

  .site-main-nav .nav-link {
    padding: 7px 10px !important;
    font-size: 0.84rem;
  }
}

@media (max-width: 1199.98px) {
  .site-header-inner {
    min-height: 82px;
  }

  .site-header-tech .navbar-collapse.show,
  .site-header-tech .navbar-collapse.collapsing {
    margin-top: 14px;
    border: 1px solid rgba(255, 210, 167, 0.2);
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(47, 31, 24, 0.97), rgba(35, 23, 17, 0.97));
    box-shadow: 0 20px 40px rgba(15, 8, 5, 0.4);
  }

  .site-main-nav {
    width: 100%;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 14px;
    margin-right: 0;
  }

  .site-main-nav .nav-item {
    width: 100%;
  }

  .site-main-nav .nav-link {
    min-height: 42px;
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
    border-color: rgba(255, 219, 181, 0.16);
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav-right,
  .site-search-form {
    width: 100%;
  }

  .site-nav-right {
    margin-top: 6px;
  }

  .site-search-wrap {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 991.98px) {
  .coffee-main-col,
  .coffee-side-col {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .coffee-main-col {
    padding-right: 15px;
  }

  .coffee-side-col {
    padding-left: 15px;
    margin-top: 22px;
  }

  .homepage-hero .card-body,
  .tv-fs-pro-body {
    padding: 24px !important;
  }

  .homepage-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .tv-shortstory-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-shortstory-actions {
    width: 100%;
    justify-content: space-between;
  }

  .related-item-fix {
    width: 100%;
  }

  .related-item-fix:nth-child(2n + 1) {
    clear: none;
  }

  .pm .sticky-top,
  .tv-pm-page .sticky-top {
    position: static !important;
  }

  .pm .row.mb-5 > [class*='col-'],
  .tv-pm-page .row.mb-4 > [class*='col-'],
  .users_search form .row > [class*='col-'] {
    margin-bottom: 10px;
  }

  .tv-profile-top > [class*='col-'] {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .site-header-inner {
    min-height: 74px;
  }

  .site-logo.tv-logo {
    gap: 10px;
    margin-right: 14px;
  }

  .tv-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .tv-logo-icon {
    font-size: 19px;
  }

  .tv-logo-main {
    font-size: 1.45rem;
  }

  .tv-logo-dot {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .tv-logo-sub {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }

  .site-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .site-search-btn {
    width: 100%;
  }

  .homepage-hero .card-body,
  .tv-shortstory-body,
  .tv-fs-pro-body,
  .tv-comments-card .card-body,
  .fs-comments-card .card-body {
    padding: 18px !important;
  }

  .homepage-hero-badge {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .homepage-hero p,
  .tv-shortstory-excerpt,
  .tv-shortstory-excerpt p,
  .tv-fs-pro-content,
  .tv-fs-pro-text,
  .fs-text {
    font-size: 0.94rem !important;
    line-height: 1.68 !important;
  }

  .tv-shortstory-image {
    aspect-ratio: 16 / 10;
  }

  .tv-shortstory-readmore {
    min-width: 100%;
  }

  .tv-fs-pro-title,
  .fs-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .tv-fs-pro-poster-image {
    max-height: 330px;
  }

  .db-comment {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .db-comment-avatar-img {
    width: 48px;
    height: 48px;
  }

  .db-comment-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .comments-form-wrap {
    padding: 14px;
  }

  .related-card-fix {
    padding: 10px;
    gap: 10px;
  }

  .related-thumb-fix,
  .related-thumb-fix img {
    width: 92px;
  }

  .related-thumb-fix {
    flex-basis: 92px;
  }

  .related-thumb-fix img {
    height: 68px;
  }

  .related-title-fix a {
    font-size: 1.15rem;
  }

  .tv-top-news-link {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 8px;
  }

  .tv-top-news-thumb-wrap,
  .tv-top-news-thumb {
    width: 80px;
  }

  .tv-top-news-thumb {
    height: 60px;
  }

  .coffee-scrolltop {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .site-main-nav .nav-link {
    min-height: 40px;
    font-size: 0.88rem;
  }

  .tv-user-title,
  .tv-auth-title {
    font-size: 1.5rem;
  }

  .tv-profile-title {
    font-size: 1.85rem;
  }

  .tv-main-btn,
  .tv-auth-check-btn,
  .tv-profile-action {
    width: 100%;
  }

  .tv-pm-page .tv-pm-actions .btn {
    width: 100%;
  }

  .pm .card-title,
  .tv-pm-page .card-title {
    font-size: 1.45rem;
  }

  .addnews .timeline > li {
    padding: 14px 0 14px 14px;
  }
}
/* =========================
   AUTH / LOGIN / REGISTER
   вставить в конец custom.css
   ========================= */

.tv-auth-page {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 8px 0;
}

.tv-auth-shell,
.tv-auth-main {
  width: 100%;
}

.tv-register-card,
.tv-login-card,
.tv-user-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(84, 54, 36, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.98));
  box-shadow: 0 22px 44px rgba(29, 17, 12, 0.12);
}

.tv-auth-card-body {
  padding: 30px;
}

.tv-auth-head {
  margin-bottom: 18px;
}

.tv-auth-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: #2f2018 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
}

.tv-auth-alert {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(171, 106, 69, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.96), rgba(255, 241, 226, 0.96));
  color: #6a4b39;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.tv-form-row {
  margin-bottom: 14px;
}

.tv-auth-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #3a281c;
  font-size: 0.92rem;
  font-weight: 600;
}

.tv-auth-input,
.tv-auth-textarea,
.tv-auth-file,
.tv-login-form .form-control {
  width: 100%;
  border-radius: 14px !important;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(92, 60, 41, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: #2f2018;
  font-size: 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease, transform .25s ease;
}

.tv-auth-textarea {
  min-height: 132px;
  resize: vertical;
}

.tv-auth-file {
  padding: 12px;
  min-height: auto;
}

.tv-auth-input:focus,
.tv-auth-textarea:focus,
.tv-login-form .form-control:focus {
  border-color: rgba(199, 124, 46, 0.46);
  background: #fffdfa;
  color: #2f2018;
  box-shadow: 0 0 0 0.2rem rgba(199, 124, 46, 0.12);
  outline: none;
}

.tv-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.tv-input-group .tv-auth-input {
  margin: 0;
}

.tv-auth-check-btn {
  min-width: 138px;
  min-height: 50px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: 14px;
  flex: 0 0 auto;
}

.tv-auth-result {
  margin-top: 8px;
  padding-left: 2px;
  font-size: 0.84rem;
  color: #7a6354;
}

#result-registration:empty {
  display: none;
}

.tv-auth-subcard {
  margin: 18px 0 0;
  border: 1px solid rgba(92, 60, 41, 0.13);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 22px rgba(29, 17, 12, 0.06);
}

.tv-auth-subcard + .tv-auth-subcard {
  margin-top: 14px;
}

.tv-auth-subcard-title {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(92, 60, 41, 0.1);
  color: #2f2018;
  font-weight: 700;
  background: rgba(255, 250, 243, 0.72);
}

.tv-auth-subcard-body {
  padding: 18px;
}

.tv-auth-xfields {
  margin-top: 18px;
}

.tv-auth-xfields .tv-xfields-table,
.tv-auth-xfields .xfields {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
}

.tv-auth-xfields td,
.tv-auth-xfields th {
  padding: 14px 16px;
  border-color: rgba(92, 60, 41, 0.1) !important;
}

.tv-auth-captcha {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(92, 60, 41, 0.13);
  background: rgba(255, 255, 255, 0.52);
}

.tv-auth-captcha img,
.tv-auth-captcha svg,
.tv-auth-captcha .captcha,
.tv-auth-captcha #dle-captcha {
  display: block;
  margin-bottom: 12px;
  max-width: 100%;
  border-radius: 12px;
}

.tv-auth-recaptcha {
  margin-top: 18px;
}

.tv-auth-submit-wrap {
  margin-top: 22px;
}

.tv-auth-submit-wrap .tv-main-btn,
.tv-login-form .tv-main-btn,
.tv-auth-links .tv-main-btn {
  min-height: 50px;
  border-radius: 14px;
  padding: 12px 18px;
}

.tv-auth-submit-wrap .tv-main-btn {
  min-width: 240px;
}

.tv-btn-block {
  width: 100%;
}

.tv-auth-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tv-main-btn-light {
  border: 1px solid rgba(92, 60, 41, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: #5b4537 !important;
  box-shadow: 0 10px 22px rgba(29, 17, 12, 0.06);
}

.tv-main-btn-light:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #2f2018 !important;
}

.tv-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #8a5325;
  font-weight: 600;
  text-decoration: none;
}

.tv-text-link:hover {
  color: #6d3d17;
  text-decoration: none;
}

.tv-login-form .form-group {
  margin-bottom: 12px;
}

.tv-login-sep {
  position: relative;
  margin: 18px 0 16px;
  text-align: center;
}

.tv-login-sep::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 60, 41, 0.18), transparent);
}

.tv-login-sep span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.98));
  color: #8a6b58;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.tv-social-btns {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tv-social-btns li {
  list-style: none;
}

.tv-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: #4d3a2e !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: all .25s ease;
}

.tv-social-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #2f2018 !important;
  transform: translateY(-1px);
}

.tv-check-label,
.custom-control-label.tv-check-label,
.tv-login-card .custom-control-label {
  color: #6a5445;
  font-size: 0.9rem;
}

.tv-user-top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tv-user-avatar-wrap {
  width: 74px;
  height: 74px;
}

.tv-user-avatar {
  width: 74px;
  height: 74px;
  object-fit: cover;
}

.tv-user-meta {
  min-width: 0;
}

.tv-user-action-wrap {
  margin-top: 18px;
}

.tv-user-action-wrap .tv-main-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
}

.tv-user-menu .list-group-item {
  min-height: 46px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
}

.tv-user-menu .list-group-item i {
  width: 18px;
  text-align: center;
}

.tv-login-card .card-body,
.tv-user-card .card-body {
  padding: 24px;
}

/* фикс кривых кнопок и инпутов в логине */
.tv-login-card .tv-main-btn,
.tv-login-card .tv-main-btn-light,
.tv-login-card .tv-social-btn {
  width: 100%;
}

.tv-login-card .form-control {
  margin: 0;
}

/* если DLE пихает неожиданные таблицы/инпуты */
.tv-auth-page table {
  width: 100%;
}

.tv-auth-page input[type='file'] {
  width: 100%;
}

/* mobile */
@media (max-width: 767.98px) {
  .tv-auth-card-body,
  .tv-login-card .card-body,
  .tv-user-card .card-body {
    padding: 18px;
  }

  .tv-auth-title {
    font-size: 1.75rem;
  }

  .tv-input-group {
    grid-template-columns: 1fr;
  }

  .tv-auth-check-btn {
    width: 100%;
    min-width: 100%;
  }

  .tv-auth-submit-wrap .tv-main-btn {
    width: 100%;
    min-width: 100%;
  }

  .tv-user-top {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .tv-user-avatar-wrap,
  .tv-user-avatar {
    width: 60px;
    height: 60px;
  }
}
/* feedback page */
.tv-feedback-page {
  margin-bottom: 22px;
}

.tv-feedback-page .rules-title {
  margin-bottom: 18px;
  color: #2f2018;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.tv-feedback-page .rules-subtitle {
  margin: 22px 0 12px;
  color: #2f2018;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.tv-feedback-page .rules-box {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(84, 54, 36, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(252, 245, 236, 0.96));
  box-shadow: 0 12px 28px rgba(29, 17, 12, 0.06);
  color: #5f493a;
}

.tv-feedback-page .rules-box p:last-child {
  margin-bottom: 0;
}

.tv-feedback-page .rules-list {
  margin: 0;
  padding-left: 20px;
}

.tv-feedback-page .rules-list li + li {
  margin-top: 8px;
}

.tv-feedback-page .rules-danger {
  border-color: rgba(171, 106, 69, 0.22);
  background: linear-gradient(180deg, rgba(255, 246, 240, 0.96), rgba(253, 239, 230, 0.96));
}

.tv-feedback-page .rules-final {
  border-color: rgba(199, 124, 46, 0.18);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 244, 231, 0.96));
}

.tv-feedback-card {
  border-radius: 24px;
  overflow: hidden;
}

.tv-feedback-card .card-body {
  padding: 26px;
}

.tv-feedback-card .card-title {
  color: #2f2018 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  line-height: 1;
}

.tv-feedback-card .form-control {
  border-radius: 14px;
  min-height: 50px;
}

.tv-feedback-card textarea.form-control {
  min-height: 180px;
  resize: vertical;
  padding-top: 14px;
}

.tv-feedback-card .btn-primary {
  min-width: 220px;
  min-height: 48px;
  border-radius: 14px;
}

.tv-feedback-card .text-muted,
.tv-feedback-card small {
  color: #7a6354 !important;
}

.tv-feedback-card .contact-error {
  margin-top: 8px;
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .tv-feedback-page .rules-box,
  .tv-feedback-card .card-body {
    padding: 16px;
  }

  .tv-feedback-card .btn-primary {
    width: 100%;
    min-width: 100%;
  }
}
/* =========================================
   ARTICLE HERO / AI NOTE / TOC FIX
   вставить в самый конец custom.css
   ========================================= */

.tv-fs-pro-hero {
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.tv-fs-pro-poster {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 88%;
  border-radius: 24px;
  overflow: hidden;
  background: #e9d8c6;
  box-shadow: 0 16px 34px rgba(30, 18, 12, 0.14);
}

.tv-fs-pro-poster-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.tv-fs-pro-note-wrap {
  min-width: 0;
}

.tv-fs-pro-note-mount {
  min-height: 100%;
}

/* карточка "если кратко" справа от постера */
.tv-fs-pro .ai-note {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.98));
  box-shadow: 0 16px 34px rgba(30, 18, 12, 0.08);
}

.tv-fs-pro .ai-note-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f2018;
}

.tv-fs-pro .ai-note-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cf7f33, #f0c08a);
  flex: 0 0 auto;
}

.tv-fs-pro .ai-note-body {
  overflow: hidden;
  color: #5f493a;
  line-height: 1.72;
  transition: max-height .28s ease;
}

.tv-fs-pro .ai-note-body p:last-child {
  margin-bottom: 0;
}

/* свернутый режим примерно 50% */
.tv-fs-pro .ai-note.is-collapsed .ai-note-body {
  max-height: 9.8em;
  position: relative;
}

.tv-fs-pro .ai-note.is-collapsed .ai-note-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(252, 245, 236, 0), rgba(252, 245, 236, 0.98));
}

.tv-fs-pro .ai-note.is-open .ai-note-body {
  max-height: 1200px;
}

.tv-fs-pro .ai-note-toggle {
  margin-top: 14px;
}

.tv-fs-pro .ai-note-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(92, 60, 41, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #4f3a2d;
  font-weight: 650;
  cursor: pointer;
  transition: all .25s ease;
}

.tv-fs-pro .ai-note-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #2f2018;
  transform: translateY(-1px);
}

/* далее содержание слева, текст справа */
.tv-fs-pro .ai-toc {
  float: left;
  width: min(320px, 36%);
  margin: 4px 26px 18px 0;
  padding: 18px 18px 14px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(252, 245, 236, 0.96));
  box-shadow: 0 12px 24px rgba(30, 18, 12, 0.06);
}

.tv-fs-pro .ai-toc-title {
  margin-bottom: 12px;
  color: #2f2018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
}

.tv-fs-pro .ai-toc-grid {
  display: block;
}

.tv-fs-pro .ai-toc-grid ul {
  margin: 0;
  padding-left: 18px;
}

.tv-fs-pro .ai-toc-grid ul + ul {
  margin-top: 8px;
}

.tv-fs-pro .ai-toc li + li {
  margin-top: 7px;
}

.tv-fs-pro .ai-toc a {
  color: #a55f24;
  text-decoration: underline;
  text-decoration-color: rgba(165, 95, 36, 0.24);
  text-underline-offset: 2px;
}

.tv-fs-pro .ai-toc a:hover {
  color: #7c4318;
}

/* чтобы текст красиво обтекал содержание */
.tv-fs-pro-text::after,
.fs-text::after {
  content: "";
  display: block;
  clear: both;
}

/* если в статье есть summary */
.tv-fs-pro .ai-summary {
  clear: both;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(252, 245, 236, 0.96));
}

/* FAQ чуть приятнее */
.tv-fs-pro .ai-faq {
  clear: both;
  margin-top: 22px;
}

.tv-fs-pro .ai-faq-item {
  border: 1px solid rgba(92, 60, 41, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.tv-fs-pro .ai-faq-item + .ai-faq-item {
  margin-top: 10px;
}

.tv-fs-pro .ai-faq-question {
  margin: 0;
  padding: 16px 18px;
  cursor: pointer;
  color: #2f2018;
  font-size: 1.18rem;
  line-height: 1.1;
}

.tv-fs-pro .ai-faq-answer {
  padding: 0 18px 16px;
}

.tv-fs-pro .ai-faq-item.faq-collapsed .ai-faq-answer {
  display: none;
}

/* мобила и планшет */
@media (max-width: 991.98px) {
  .tv-fs-pro-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tv-fs-pro-poster-image {
    min-height: 240px;
    max-height: 420px;
  }

  .tv-fs-pro .ai-toc {
    float: none;
    width: 100%;
    margin: 10px 0 18px;
  }
}

@media (max-width: 767.98px) {
  .tv-fs-pro .ai-note,
  .tv-fs-pro .ai-toc,
  .tv-fs-pro .ai-summary {
    padding: 15px;
    border-radius: 18px;
  }

  .tv-fs-pro .ai-note.is-collapsed .ai-note-body {
    max-height: 8.8em;
  }

  .tv-fs-pro .ai-note-toggle-btn {
    width: 100%;
  }
}
/* mini fix: отступ сверху + убрать пустоту в "Если кратко" */

.tv-fs-pro-hero {
  margin-top: 14px;
  align-items: start !important;
}

.tv-fs-pro-note-wrap,
.tv-fs-pro-note-mount {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

.tv-fs-pro .ai-note {
  height: auto !important;
  min-height: 0 !important;
}

.tv-fs-pro .ai-note.is-open {
  height: auto !important;
}

.tv-fs-pro .ai-note.is-open .ai-note-body {
  max-height: none !important;
}

.tv-fs-pro .ai-note.is-open .ai-note-body::after {
  display: none !important;
}

/* чтобы карточка не пыталась быть высотой как постер */
.tv-fs-pro-hero > * {
  align-self: start;
}

/* если картинка чуть высокая и липнет к мета-блоку */
.tv-fs-pro-poster {
  margin-top: 2px;
}

/* на мобиле без лишнего воздуха */
@media (max-width: 991.98px) {
  .tv-fs-pro-hero {
    margin-top: 10px;
  }
}
/* =========================================
   CLEAN FULLSTORY LAYER
   безопасный добив для fullstory.tpl
   ========================================= */

.tv-fs-pro-header {
  position: relative;
  z-index: 5;
}

.tv-fs-pro-meta {
  position: relative;
  z-index: 5;
  margin-bottom: 0;
}

.tv-fs-pro-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  gap: 22px;
  align-items: start !important;
  margin-top: 16px;
  margin-bottom: 30px;
}

.tv-fs-pro-hero > * {
  align-self: start !important;
  min-width: 0;
}

.tv-fs-pro-poster {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ead8c6;
  box-shadow: 0 16px 34px rgba(30, 18, 12, 0.14);
}

.tv-fs-pro-poster-image {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
}

.tv-fs-pro-note-wrap,
.tv-fs-pro-note-mount {
  position: relative;
  z-index: 1;
  min-height: 0 !important;
  height: auto !important;
}

.tv-fs-pro .ai-note {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.98));
  box-shadow: 0 14px 28px rgba(29, 17, 12, 0.08);
  min-height: 0 !important;
  height: auto !important;
}

.tv-fs-pro .ai-note-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #2f2018;
  font-size: 1.08rem;
  font-weight: 700;
}

.tv-fs-pro .ai-note-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cf7f33, #f0c08a);
  flex: 0 0 auto;
}

.tv-fs-pro .ai-note-body {
  overflow: hidden;
  color: #5f493a;
  line-height: 1.75;
  transition: max-height .28s ease;
}

.tv-fs-pro .ai-note-body p:last-child {
  margin-bottom: 0;
}

.tv-fs-pro .ai-note.is-collapsed .ai-note-body {
  max-height: 9.8em;
  position: relative;
}

.tv-fs-pro .ai-note.is-collapsed .ai-note-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(252, 245, 236, 0), rgba(252, 245, 236, 0.98));
}

.tv-fs-pro .ai-note.is-open .ai-note-body {
  max-height: none !important;
}

.tv-fs-pro .ai-note.is-open .ai-note-body::after {
  display: none !important;
}

.tv-fs-pro .ai-note-toggle {
  margin-top: 14px;
}

.tv-fs-pro .ai-note-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(92, 60, 41, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #4f3a2d;
  font-weight: 650;
  cursor: pointer;
  transition: all .25s ease;
}

.tv-fs-pro .ai-note-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #2f2018;
  transform: translateY(-1px);
}

/* самое важное: содержание кликабельное */
.tv-fs-pro .ai-toc {
  position: relative;
  z-index: 10 !important;
  clear: left;
  float: left;
  width: min(320px, 36%);
  margin: 25px 26px 18px 0;
  padding: 18px 18px 14px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 245, 236, 0.98));
  box-shadow: 0 12px 24px rgba(29, 17, 12, 0.06);
  pointer-events: auto !important;
}

.tv-fs-pro .ai-toc * {
  pointer-events: auto !important;
}

.tv-fs-pro .ai-toc-title {
  margin-bottom: 12px;
  color: #2f2018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
}

.tv-fs-pro .ai-toc-grid {
  display: block;
}

.tv-fs-pro .ai-toc-grid ul {
  margin: 0;
  padding-left: 18px;
}

.tv-fs-pro .ai-toc-grid ul + ul {
  margin-top: 8px;
}

.tv-fs-pro .ai-toc li + li {
  margin-top: 7px;
}

.tv-fs-pro .ai-toc a {
  position: relative;
  z-index: 11;
  display: inline;
  color: #a55f24 !important;
  text-decoration: underline;
  text-decoration-color: rgba(165, 95, 36, 0.25);
  text-underline-offset: 2px;
  cursor: pointer;
}

.tv-fs-pro .ai-toc a:hover {
  color: #7c4318 !important;
}

/* текст справа от содержания */
.tv-fs-pro-text::after,
.fs-text::after {
  content: "";
  display: block;
  clear: both;
}

/* секции статьи */
.tv-fs-pro .ai-article {
  position: relative;
}

.tv-fs-pro .ai-article > section {
  margin-bottom: 24px;
}

.tv-fs-pro .ai-article p {
  color: #5d483a;
  line-height: 1.84;
}

.tv-fs-pro .ai-article h2 {
  position: relative;
  margin-bottom: 16px;
  color: #2f1f16;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 2.8vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.tv-fs-pro .ai-article h2::before {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1893f 0%, #efc38e 100%);
}

.tv-fs-pro .ai-article h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  color: #332218;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.tv-fs-pro .ai-article .ai-table-wrap,
.tv-fs-pro .ai-article .tv-table-scroll {
  margin: 18px 0 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(92, 60, 41, 0.12);
  box-shadow: 0 12px 24px rgba(29, 17, 12, 0.06);
}

.tv-fs-pro .ai-article table {
  width: 100%;
  background: rgba(255, 255, 255, 0.76);
}

.tv-fs-pro .ai-article thead th {
  color: #2f2018;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.96), rgba(248, 236, 219, 0.96));
}

.tv-fs-pro .ai-article th,
.tv-fs-pro .ai-article td {
  padding: 15px 16px;
  border-color: rgba(92, 60, 41, 0.08) !important;
  vertical-align: top;
}

.tv-fs-pro .ai-article .ai-proscons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 26px;
  clear: both;
}

.tv-fs-pro .ai-article .ai-pros,
.tv-fs-pro .ai-article .ai-cons {
  padding: 18px 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(92, 60, 41, 0.12);
  box-shadow: 0 12px 26px rgba(29, 17, 12, 0.06);
}

.tv-fs-pro .ai-article .ai-pros {
  background: linear-gradient(180deg, rgba(243, 251, 244, 0.96), rgba(236, 247, 238, 0.96));
}

.tv-fs-pro .ai-article .ai-cons {
  background: linear-gradient(180deg, rgba(255, 247, 242, 0.96), rgba(252, 240, 234, 0.96));
}

.tv-fs-pro .ai-article .ai-faq {
  clear: both;
  margin-top: 24px;
}

.tv-fs-pro .ai-article .ai-faq-item {
  border: 1px solid rgba(92, 60, 41, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(252, 245, 236, 0.96));
  box-shadow: 0 10px 22px rgba(29, 17, 12, 0.05);
  overflow: hidden;
}

.tv-fs-pro .ai-article .ai-faq-item + .ai-faq-item {
  margin-top: 12px;
}

.tv-fs-pro .ai-article .ai-faq-question {
  position: relative;
  margin: 0;
  padding: 16px 52px 16px 18px;
  color: #2f2018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.02;
  cursor: pointer;
}

.tv-fs-pro .ai-article .ai-faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a5325;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(92, 60, 41, 0.12);
  font-size: 1rem;
  font-weight: 700;
}

.tv-fs-pro .ai-article .ai-faq-item.faq-open .ai-faq-question::after {
  content: "–";
}

.tv-fs-pro .ai-article .ai-faq-answer {
  padding: 0 18px 18px;
}

.tv-fs-pro .ai-article .ai-faq-item.faq-collapsed .ai-faq-answer {
  display: none;
}

.tv-fs-pro .ai-article .ai-summary {
  clear: both;
  margin-top: 26px;
  padding: 22px 22px 18px;
  border-radius: 24px;
  border: 1px solid rgba(92, 60, 41, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(252, 245, 236, 0.98));
  box-shadow: 0 16px 30px rgba(29, 17, 12, 0.08);
}

@media (max-width: 991.98px) {
  .tv-fs-pro-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
  }

  .tv-fs-pro-poster-image {
    min-height: 240px;
    max-height: 420px;
  }

  .tv-fs-pro .ai-toc {
    float: none;
    width: 100%;
    margin: 8px 0 18px;
  }

  .tv-fs-pro .ai-article .ai-proscons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .tv-fs-pro .ai-note,
  .tv-fs-pro .ai-toc,
  .tv-fs-pro .ai-summary {
    padding: 15px;
    border-radius: 18px;
  }

  .tv-fs-pro .ai-note-toggle-btn {
    width: 100%;
  }

  .tv-fs-pro .ai-article h2 {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }

  .tv-fs-pro .ai-article .ai-faq-question {
    font-size: 1.15rem;
    padding: 14px 46px 14px 15px;
  }

  .tv-fs-pro .ai-article .ai-faq-answer {
    padding: 0 15px 15px;
  }
}
/* mobile table scroll fix */
@media (max-width: 767.98px) {
  .tv-fs-pro .tv-table-scroll,
  .tv-fs-pro .ai-table-wrap {
    display: block;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .tv-fs-pro .tv-table-scroll table,
  .tv-fs-pro .ai-table-wrap table,
  .tv-fs-pro-text table,
  .fs-text table {
    min-width: 640px !important;
    width: max-content;
    max-width: none !important;
  }

  .tv-fs-pro .tv-table-scroll::-webkit-scrollbar,
  .tv-fs-pro .ai-table-wrap::-webkit-scrollbar {
    height: 6px;
  }

  .tv-fs-pro .tv-table-scroll::-webkit-scrollbar-thumb,
  .tv-fs-pro .ai-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(165, 95, 36, 0.35);
    border-radius: 999px;
  }
}
/* TOC fix: без огибания, сверху, 2 ровные колонки */
.tv-fs-pro .ai-toc {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  margin: 8px 0 24px !important;
  padding: 20px 22px 18px !important;
}

.tv-fs-pro .ai-toc-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  align-items: start;
}

.tv-fs-pro .ai-toc-grid ul {
  margin: 0 !important;
  padding-left: 18px !important;
}

.tv-fs-pro .ai-toc-grid ul + ul {
  margin-top: 0 !important;
}

.tv-fs-pro .ai-article > section:first-of-type {
  clear: both !important;
}

.tv-fs-pro .ai-article > section:first-of-type h2 {
  margin-top: 0 !important;
}

/* чтобы ссылки в содержании были ровнее */
.tv-fs-pro .ai-toc li {
  margin-bottom: 8px;
}

.tv-fs-pro .ai-toc a {
  display: inline;
  line-height: 1.55;
}

/* мобилка */
@media (max-width: 767.98px) {
  .tv-fs-pro .ai-toc {
    padding: 16px !important;
    margin: 8px 0 18px !important;
  }

  .tv-fs-pro .ai-toc-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}
/* FIX: related news clickable */
.coffee-content-wrap > .col-md-12::after {
  content: "";
  display: block;
  clear: both;
}

.tv-comments-card,
.fs-comments-card {
  clear: both;
  position: relative;
}

.related-item-fix {
  position: relative;
  z-index: 5;
}

.related-card-fix {
  position: relative;
  z-index: 5;
}

.related-thumb-fix,
.related-content-fix,
.related-title-fix a,
.related-bottom-fix,
.related-btn-fix {
  position: relative;
  z-index: 6;
}

.related-btn-fix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
}
/* FIX: dropdown menu in fullstory clickable */
.tv-fs-pro,
.tv-fs-pro-body,
.tv-fs-pro-header,
.fs-header {
  position: relative;
}

.tv-fs-pro-dropdown,
.fs-dropdown {
  position: relative;
  z-index: 5000;
}

.tv-fs-pro-dropdown-menu,
.tv-fs-pro .dropdown-menu {
  position: absolute;
  z-index: 6000 !important;
  pointer-events: auto !important;
}

.tv-fs-pro-dropdown-menu .dropdown-item,
.tv-fs-pro .dropdown-menu .dropdown-item {
  position: relative;
  z-index: 6001;
  pointer-events: auto !important;
  cursor: pointer;
}

.tv-fs-pro-hero,
.tv-fs-pro-note-wrap,
.tv-fs-pro-note-mount,
.tv-fs-pro-content,
.fs-content,
.fs-text {
  position: relative;
  z-index: 1;
}
/* FIX: fullstory rating bigger + prettier */
.tv-fs-pro-rating,
.fs-meta-rating {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.tv-fs-pro-rating .rate,
.fs-meta-rating .rate {
  display: flex;
  align-items: center;
}

.tv-fs-pro-rating .rate_like-dislike,
.fs-meta-rating .rate_like-dislike {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(191, 137, 86, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249,241,232,0.96));
  box-shadow: 0 8px 20px rgba(76, 47, 29, 0.08);
}

.tv-fs-pro-rating .rate-btn,
.fs-meta-rating .rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: all .22s ease;
}

.tv-fs-pro-rating .rate-btn--plus,
.fs-meta-rating .rate-btn--plus {
  color: #2f8a57;
  background: rgba(47, 138, 87, 0.10);
}

.tv-fs-pro-rating .rate-btn--minus,
.fs-meta-rating .rate-btn--minus {
  color: #b85b4c;
  background: rgba(184, 91, 76, 0.10);
}

.tv-fs-pro-rating .rate-btn--plus:hover,
.fs-meta-rating .rate-btn--plus:hover {
  color: #fff !important;
  background: #2f8a57;
  transform: translateY(-1px) scale(1.06);
}

.tv-fs-pro-rating .rate-btn--minus:hover,
.fs-meta-rating .rate-btn--minus:hover {
  color: #fff !important;
  background: #b85b4c;
  transform: translateY(-1px) scale(1.06);
}

.tv-fs-pro-rating .rate-value,
.fs-meta-rating .rate-value {
  min-width: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #6b4a34;
  line-height: 1;
}

.tv-fs-pro-rating .ratingtypeplusminus,
.fs-meta-rating .ratingtypeplusminus {
  font-size: 1rem;
  font-weight: 800;
  color: #6b4a34;
}

@media (max-width: 767.98px) {
  .tv-fs-pro-rating .rate_like-dislike,
  .fs-meta-rating .rate_like-dislike {
    gap: 10px;
    min-height: 40px;
    padding: 6px 12px;
  }

  .tv-fs-pro-rating .rate-btn,
  .fs-meta-rating .rate-btn {
    min-width: 28px;
    height: 28px;
    font-size: 1.02rem;
  }

  .tv-fs-pro-rating .rate-value,
  .fs-meta-rating .rate-value,
  .tv-fs-pro-rating .ratingtypeplusminus,
  .fs-meta-rating .ratingtypeplusminus {
    font-size: 0.95rem;
  }
}