/* ==========================================================================
   AudioBerry — Unified Stylesheet
   Contains all styles extracted from HTML templates, deduplicated & normalized
   ========================================================================== */

/* ===== 1. CSS VARIABLES ===== */
:root {
  --article-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --article-text-primary: rgba(0, 0, 0, 0.87);
  --article-text-secondary: rgba(0, 0, 0, 0.6);
  --article-text-tertiary: rgba(0, 0, 0, 0.38);
  --article-link: #006be7;
  --article-link-hover: rgba(0, 107, 231, 0.7);
  --brand-blue: #1089ff;
  --brand-blue-light: #4daefe;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: rgba(0, 0, 0, 0.12);
  --radius-card: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition-duration: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: opacity var(--transition-duration) ease,
                background-color var(--transition-duration) var(--transition-timing),
                color var(--transition-duration) var(--transition-timing);
}

/* ===== 2. RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Roboto', var(--article-font);
  font-size: 16px; font-weight: 400;
  background-color: #ffffff; color: var(--article-text-primary); line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
@media (prefers-color-scheme: dark) { img { outline-color: rgba(255, 255, 255, 0.1); } }

a { color: var(--article-link); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--article-link-hover); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Screen-reader only utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ===== 3. HEADER & NAVIGATION ===== */
.header {
  background: var(--brand-blue); color: white; padding: 14px 0;
  box-shadow: var(--shadow-md); position: sticky; top: 0; z-index: 1000; transition: var(--transition);
}
.header--article { padding: 18px 0; }
.header--dev { padding: 20px 0; }
.header-content { display: flex; justify-content: flex-start; align-items: center; }
.logo { font-size: 28px; font-weight: 700; color: white; text-decoration: none; letter-spacing: -0.5px; margin-right: 32px; }
.logo:hover { color: white; }
.logo span { opacity: 0.9; }

.nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav--wide { gap: 32px; }
.nav a {
  color: white; text-decoration: none; font-size: 15px; font-weight: 500;
  transition: var(--transition); position: relative; padding: 5px 0;
}
.nav a:hover { opacity: 0.8; color: white; }
.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: white; transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }
.nav-icon { display: flex; align-items: center; justify-content: center; padding: 5px !important; }
.nav-icon::after { display: none; }
.nav-icon-wrap { position: relative; display: flex; align-items: center; }

.header-social { display: flex; gap: 10px; align-items: center; margin-left: 16px; }
.header-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: white;
  background: rgba(255, 255, 255, 0.12); font-size: 17px; text-decoration: none;
  transition: var(--transition); flex-shrink: 0;
}
.header-social-link:hover { background: rgba(255, 255, 255, 0.25); color: white; transform: translateY(-2px); }

.nav-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; background: white;
  border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; z-index: 100;
}
.nav-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown::before {
  content: ''; position: absolute; top: -6px; right: 16px; width: 12px; height: 12px;
  background: white; transform: rotate(45deg); border-radius: 2px;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  color: var(--article-text-primary) !important; text-decoration: none; font-size: 14px;
  font-weight: 500; border-radius: 8px; transition: var(--transition); white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-light); color: var(--brand-blue) !important; box-shadow: inset 3px 0 0 var(--brand-blue); }
.nav-dropdown a::after { display: none; }
.nav-dropdown .dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 8px; }
.nav-dropdown .logout-link { color: #e53935 !important; }
.nav-dropdown .logout-link:hover { background: #fff5f5 !important; color: #c62828 !important; }

.burger-btn { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; padding: 4px; line-height: 1; }

/* ===== 4. BUTTONS ===== */
.btn {
  padding: 14px 32px; font-size: 16px; font-weight: 500; border-radius: 12px;
  text-decoration: none; transition: var(--transition); cursor: pointer; border: none; display: inline-block;
}
.btn-primary {
  background: linear-gradient(120deg, #1089ff, #4daefe); color: white;
  box-shadow: 0 8px 24px rgba(16, 137, 255, 0.45); position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { filter: brightness(1.15); box-shadow: var(--shadow-lg); }

.btn-secondary { background: transparent; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.btn-secondary:hover { background: var(--brand-blue); color: white; }
.btn-large { padding: 18px 40px; font-size: 18px; }
.btn-full { width: 100%; text-align: center; }

.btn-cart { background: linear-gradient(135deg, #10B981, #059669); color: white; }
.btn-cart:hover { filter: brightness(1.15); box-shadow: var(--shadow-lg); }

.btn-submit {
  padding: 14px 28px; font-size: 16px; font-weight: 500; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white; cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== 5. BREADCRUMBS ===== */
.breadcrumbs { padding: 20px 0 0; font-size: 14px; color: var(--article-text-secondary); }
.breadcrumbs a { color: var(--article-text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--article-link); }
.breadcrumbs .separator { margin: 0 8px; color: var(--article-text-tertiary); }
.breadcrumbs .current { color: var(--article-text-primary); }
.breadcrumbs-inner { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumbs-inner a { color: var(--article-text-secondary); text-decoration: none; }
.breadcrumbs-inner a:hover { color: var(--article-link); }

/* ===== 6. FOOTER ===== */
.footer { background: var(--brand-blue); color: white; padding: 60px 0 30px; margin-top: 80px; }
.footer-content { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; }
.footer-section a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: var(--transition); font-size: 14px; }
.footer-about { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.6; }
.footer-section a:hover { color: white; padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* ===== 7. ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero h1,
  .hero-subtitle,
  .hero-stats,
  .hero-buttons,
  .fade-in,
  .btn-primary::after {
    animation: none !important; transition: none !important;
  }
}

/* ===== 8. SECTION / PAGE HEADER ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 38px; font-weight: 700; margin-bottom: 12px; color: var(--article-text-primary); }
.section-subtitle { font-size: 18px; color: var(--article-text-secondary); }

.page-header { background: var(--bg-light); padding: 40px 0 32px; border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 32px; font-weight: 700; color: var(--article-text-primary); }
.page-header .breadcrumbs { padding: 0; margin-top: 8px; font-size: 13px; color: var(--article-text-tertiary); }

/* ===== 9. HERO SECTION ===== */
.hero {
  background: url('../assets/images/hero-banner.jpg') no-repeat center center / cover;
  padding: 80px 0 100px; position: relative; overflow: hidden;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16, 137, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%; z-index: 2;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.25) 100%),
              linear-gradient(180deg, rgba(10,14,22,0.30) 0%, rgba(10,14,22,0.10) 40%, rgba(10,14,22,0.45) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.2;
  margin-bottom: 20px; color: #ffffff; letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 8px 30px rgba(0,0,0,0.30);
  animation: fadeInUp 0.8s ease;
}
.hero-accent {
  background: linear-gradient(120deg, #4daefe 0%, #1089ff 60%, #b9e0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(16, 137, 255, 0.35));
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.92);
  margin-bottom: 40px; text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}
.hero-stats {
  display: inline-flex; justify-content: center; gap: 40px; margin-bottom: 40px;
  padding: 20px 36px; border-radius: var(--radius-card);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-lg); animation: fadeInUp 0.8s ease 0.4s backwards;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 36px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #ffffff, #cfe7ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; display: block;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

@keyframes heroZoom {
  from { background-size: 100%; }
  to   { background-size: 112%; }
}

.hero { will-change: background-size; }
.hero-effect-parallax { will-change: background-position; }
.hero-effect-pan-drift { will-change: background-position; }
.hero-effect-ken-burns { will-change: background-size, background-position; }
.hero-particle { will-change: transform, opacity; }

/* ===== HERO EFFECTS ===== */

/* Parallax скроллинг */
.hero-effect-parallax {
  background-attachment: fixed !important;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

/* Плавное движение фона (Pan/Drift) */
.hero-effect-pan-drift {
  background-size: 120% !important;
  animation: heroPanDrift 20s ease-in-out infinite alternate;
}
@keyframes heroPanDrift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Overlay градиенты с анимацией */
.hero-effect-overlay-pulse {
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero-effect-overlay-pulse::before {
  animation: heroOverlayPulse 6s ease-in-out infinite alternate !important;
}
@keyframes heroOverlayPulse {
  0%   { opacity: 0.5; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* Виньетирование с пульсацией */
.hero-effect-vignette-pulse {
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero-effect-vignette-pulse::after {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, rgba(0,0,0,0.7) 100%) !important;
  animation: heroVignettePulse 5s ease-in-out infinite alternate !important;
}
@keyframes heroVignettePulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Blur-to-focus */
.hero-effect-blur-focus {
  animation: heroBlurFocus 4s ease-out forwards;
}
@keyframes heroBlurFocus {
  0%   { filter: blur(12px); transform: scale(1.05); }
  60%  { filter: blur(2px);  transform: scale(1.01); }
  100% { filter: blur(0);    transform: scale(1); }
}

/* Ken Burns (aggressive zoom + pan) */
.hero-effect-ken-burns {
  background-size: 130% !important;
  animation: heroKenBurns 25s ease-in-out infinite;
}
@keyframes heroKenBurns {
  0%   { background-size: 130%; background-position: 0% 0%; }
  25%  { background-size: 140%; background-position: 100% 0%; }
  50%  { background-size: 130%; background-position: 100% 100%; }
  75%  { background-size: 140%; background-position: 0% 100%; }
  100% { background-size: 130%; background-position: 0% 0%; }
}

/* Particles контейнер */
.hero-particles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: heroParticleFloat linear infinite;
}
@keyframes heroParticleFloat {
  0%   { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: translateY(90vh) translateX(10px) scale(1); }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-10vh) translateX(-10px) scale(0.5); opacity: 0; }
}

/* ===== 10. PRODUCTS GRID / CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 40px; }
.products-grid--auto { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.products-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: white; border-radius: var(--radius-card); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  transition: var(--transition); position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
  transform: scaleX(0); transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card:hover::before { transform: scaleX(1); }

.product-image {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px;
  margin-bottom: 14px; background: var(--bg-light);
}
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.product-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--article-text-primary); }
.product-description { font-size: 14px; line-height: 1.5; color: var(--article-text-secondary); margin-bottom: 14px; }
.product-features { margin-bottom: 14px; }
.product-features ul { list-style: none; margin: 0; padding: 0; }
.product-features li { padding: 6px 0; font-size: 14px; color: var(--article-text-secondary); }
.product-features li::before { content: '✓'; margin-right: 8px; color: var(--brand-blue); font-weight: 700; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.product-price { font-size: 22px; font-weight: 700; color: var(--brand-blue); }
.product-link { color: var(--article-link); text-decoration: none; font-weight: 500; font-size: 15px; transition: var(--transition); }
.product-link:hover { color: var(--article-link-hover); }

/* ===== 11. BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }

.blog-card {
  background: white; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-image { width: 100%; height: 200px; object-fit: cover; background: var(--bg-light); }
.blog-content { padding: 24px; }
.blog-meta { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-tag {
  background: var(--bg-light); color: var(--brand-blue); padding: 4px 12px;
  border-radius: 6px; font-size: 12px; font-weight: 500;
}
.blog-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; color: var(--article-text-primary); }
.blog-title a { color: inherit; text-decoration: none; transition: var(--transition); }
.blog-title a:hover { color: var(--brand-blue); }
.blog-excerpt { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); margin-bottom: 16px; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-color); }
.blog-date { font-size: 13px; color: var(--article-text-tertiary); }
.blog-read-more { color: var(--article-link); text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition); }
.blog-read-more:hover { color: var(--article-link-hover); }

.blog-section { padding: 40px 0 60px; }
.blog-section .section-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; color: var(--article-text-primary); }
.blog-section .section-subtitle { font-size: 16px; color: var(--article-text-secondary); margin-bottom: 32px; }
.blog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.blog-sidebar { position: sticky; top: 80px; }
.blog-sidebar-box { background: var(--bg-light); border-radius: 12px; padding: 16px; }
.blog-sidebar-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--article-text-primary); }
.blog-sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.blog-sidebar-box li { margin-bottom: 4px; }
.blog-sidebar-link {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-size: 14px; text-decoration: none; color: #333; transition: var(--transition);
}
.blog-sidebar-link:hover { background: rgba(16,137,255,0.08); color: var(--brand-blue); }
.blog-sidebar-link.active { background: var(--brand-blue); color: #fff; font-weight: 600; }
.blog-sidebar-subtitle { font-size: 14px; font-weight: 700; margin: 16px 0 8px; color: var(--article-text-primary); }
.blog-sidebar-sub { font-size: 13px; }
.blog-sidebar-sub .blog-sidebar-link { color: #555; }
.empty-state { color: var(--article-text-secondary); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.category-card { border-radius: 16px; overflow: hidden; background: #111; transition: transform 0.3s; }
.category-card:hover { transform: translateY(-4px); }
.category-card__link { display: block; text-decoration: none; color: inherit; }
.category-card__image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.category-card:hover .category-card__image img { transform: scale(1.05); }
.category-card__overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.7)); display: flex; align-items: flex-end; padding: 16px; }
.category-card__title { color: #fff; font-size: 18px; font-weight: 700; margin: 0; }
.section-divider { height: 1px; background: var(--border-color); margin: 48px 0; }

/* ===== 12. REVIEW CARDS ===== */
.reviews-list { display: grid; gap: 20px; }
.review-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: white;
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.review-image { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: var(--bg-light); }
.review-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--article-text-primary); }
.review-content h3 a { color: inherit; text-decoration: none; transition: var(--transition); }
.review-content h3 a:hover { color: var(--brand-blue); }
.review-excerpt { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); margin-bottom: 12px; }
.review-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.review-tag { background: var(--bg-light); color: var(--article-text-secondary); padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.review-meta { display: flex; gap: 16px; font-size: 13px; color: var(--article-text-tertiary); }

/* ===== 13. COMMENTS ===== */
.comments-section { padding-bottom: 60px; }
.comments-section--alt { background: var(--bg-light); }
.comments-grid { display: grid; gap: 16px; }

.comment-card {
  background: white; border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--brand-blue);
  transition: var(--transition); cursor: pointer;
}
.comment-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.comment-author { font-weight: 500; color: var(--article-text-primary); font-size: 15px; }
.comment-time { font-size: 13px; color: var(--article-text-tertiary); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); margin-bottom: 8px; }
.comment-article { font-size: 13px; color: var(--article-link); text-decoration: none; display: inline-block; margin-top: 8px; }
.comment-article:hover { color: var(--article-link-hover); }

.comments-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--article-text-primary); }
.comment-item { padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.comment-item:last-child { border-bottom: none; }
.comment-author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--article-text-secondary); font-size: 16px; }
.comment-author-info { font-weight: 500; color: var(--article-text-primary); font-size: 15px; }
.comment-date { font-size: 12px; color: var(--article-text-tertiary); }
.comment-text-body { font-size: 15px; color: var(--article-text-secondary); line-height: 1.6; margin-left: 52px; }
.comment-reply-link { margin-left: 52px; margin-top: 8px; font-size: 13px; color: var(--article-link); cursor: pointer; }
.comment-reply-link:hover { color: var(--article-link-hover); }

.comments-form { margin-top: 32px; padding: 28px; background: var(--bg-light); border-radius: var(--radius-card); border: 1px solid var(--border-color); }
.comments-form h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--article-text-primary); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--article-text-primary); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border-color);
  border-radius: 12px; font-size: 15px; font-family: 'Roboto', sans-serif;
  transition: var(--transition); background: white; color: var(--article-text-primary);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(16, 137, 255, 0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input.error { border-color: #ef4444; }
.form-error-msg { color: #ef4444; font-size: 13px; margin-top: 4px; display: none; }
.form-input.error + .form-error-msg { display: block; }

/* ===== 14. CATALOG FILTERS & PAGINATION ===== */
.filters-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 32px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500;
  background: var(--bg-light); color: var(--article-text-secondary); border: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.filter-tab:hover, .filter-tab.active { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }
.sort-select {
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-family: 'Roboto', sans-serif;
  border: 1px solid var(--border-color); background: white; color: var(--article-text-primary);
  cursor: pointer; outline: none; transition: var(--transition);
}
.sort-select:focus { border-color: var(--brand-blue); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination .page-link {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 10px; font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--article-text-primary); background: white; border: 1px solid var(--border-color);
  transition: var(--transition);
}
.pagination .page-link:hover { background: var(--bg-light); border-color: var(--brand-blue); color: var(--brand-blue); }
.pagination .page-link.active { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }
.pagination .page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ===== 15. BLOG STICKY CATEGORY MENU ===== */
.sticky-menu {
  background: white; padding: 14px 0;
  box-shadow: var(--shadow-sm); z-index: 999;
  border-bottom: 1px solid var(--border-color);
}
.sticky-menu-content { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sticky-menu a {
  color: var(--article-text-primary); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: var(--transition); padding: 8px 18px; border-radius: 20px;
  position: relative; white-space: nowrap;
}
.sticky-menu a:hover { color: var(--brand-blue); background: var(--bg-light); }
.sticky-menu a.active { background: var(--brand-blue); color: white; }
.sticky-menu a.active:hover { background: var(--brand-blue-light); }

/* ===== 16. ARTICLE LAYOUT ===== */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 3fr) 320px; gap: 48px;
  padding: 32px 0 60px;
}
.article-main { min-width: 0; }

.article-header { margin-bottom: 32px; }
.article-title { font-size: 36px; font-weight: 700; line-height: 1.25; margin-bottom: 16px; color: var(--article-text-primary); }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--article-text-secondary); flex-wrap: wrap; }
.article-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-blue); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; flex-shrink: 0; }
.article-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta .meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--article-text-tertiary); }
.article-lead { font-size: 18px; font-weight: 500; color: rgba(0,0,0,0.8); margin-bottom: 32px; line-height: 1.6; }

/* TOC */
.toc-wrapper { background: var(--bg-light); border-radius: 16px; padding: 24px 28px; margin-bottom: 32px; border: 1px solid var(--border-color); }
.toc-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.toc-title { font-size: 18px; font-weight: 700; color: var(--article-text-primary); display: flex; align-items: center; gap: 8px; }
.toc-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--brand-blue); cursor: pointer; transition: transform 0.3s; }
.toc-toggle.open { transform: rotate(45deg); }
.toc-list { list-style: none; margin-top: 16px; counter-reset: toc-counter; }
.toc-list li { counter-increment: toc-counter; margin-bottom: 8px; }
.toc-list li a {
  font-size: 14px; color: var(--article-link); text-decoration: none;
  display: flex; gap: 8px; padding: 4px 0; transition: var(--transition);
}
.toc-list li a::before { content: counter(toc-counter) "."; color: var(--article-text-tertiary); font-weight: 500; min-width: 24px; }
.toc-list li a:hover { color: var(--article-link-hover); padding-left: 4px; }
.toc-list li.toc-h3 a { padding-left: 32px; }

/* Article body */
.article-body { font-size: 16px; }
.article-body, .article-body div { color: var(--article-text-primary); }
.article-body h2 { font-size: 26px; font-weight: 700; margin-top: 40px; margin-bottom: 16px; color: var(--article-text-primary); line-height: 1.3; }
.article-body h3 { font-size: 20px; font-weight: 600; margin-top: 28px; margin-bottom: 12px; color: var(--article-text-primary); line-height: 1.4; }
.article-body p { margin-bottom: 16px; color: var(--article-text-secondary); line-height: 1.7; }
.article-body strong { color: var(--article-text-primary); }
.article-body .article-image { margin: 24px 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.article-body .article-image img { width: 100%; display: block; }
.article-body .article-image figcaption { padding: 12px 16px; font-size: 13px; color: var(--article-text-secondary); background: var(--bg-light); text-align: center; font-style: italic; }
.article-body blockquote { margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--brand-blue); background: var(--bg-light); border-radius: 0 12px 12px 0; font-size: 16px; font-style: italic; color: var(--article-text-secondary); line-height: 1.6; }

/* Tables */
.table-wrapper { overflow-x: auto; margin: 24px 0; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.specs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs-table th, .specs-table td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--border-color); }
.specs-table th { background: var(--bg-light); font-weight: 600; color: var(--article-text-primary); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.specs-table td:first-child { font-weight: 500; color: var(--article-text-primary); white-space: nowrap; }
.specs-table td:last-child { color: var(--article-text-secondary); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: rgba(16, 137, 255, 0.03); }

/* ===== KB ARTICLE BLOCKS ===== */

.kb-article { font-size: 16px; line-height: 1.7; color: var(--article-text-secondary); }
.kb-article strong { color: var(--article-text-primary); }
.kb-article a { color: var(--article-link); }
.kb-article a:hover { color: var(--article-link-hover); }

.kb-header { margin-bottom: 32px; }
.kb-header__desc {
  font-size: 17px; line-height: 1.75; color: var(--article-text-primary);
  margin: 0; padding: 24px 28px;
  background: linear-gradient(135deg, rgba(16,137,255,0.04) 0%, var(--bg-light) 100%);
  border: 1px solid rgba(16,137,255,0.12); border-radius: 16px;
  box-shadow: 0 2px 12px rgba(16,137,255,0.06);
}

.kb-takeaways {
  margin: 32px 0; padding: 28px 32px;
  background: linear-gradient(135deg, rgba(16,137,255,0.06) 0%, rgba(77,174,254,0.03) 100%);
  border: 1px solid rgba(16,137,255,0.15); border-radius: 20px;
  box-shadow: 0 4px 16px rgba(16,137,255,0.08);
}
.kb-takeaways__title {
  font-size: 18px; font-weight: 700; color: var(--brand-blue);
  margin: 0 0 16px 0; display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.kb-takeaways__title::before {
  content: ''; display: block; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-light));
  border-radius: 2px; flex-shrink: 0;
}
.kb-takeaways__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.kb-takeaways__list li {
  position: relative; padding: 12px 16px 12px 20px;
  background: rgba(255,255,255,0.7); border-radius: 12px;
  border: 1px solid rgba(16,137,255,0.08);
  font-size: 15px; line-height: 1.6; color: var(--article-text-primary);
  transition: var(--transition);
}
.kb-takeaways__list li:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(16,137,255,0.1);
  transform: translateX(4px);
}
.kb-takeaways__list li::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; background: var(--brand-blue); border-radius: 2px; opacity: 0.4;
}
.kb-takeaways__list li strong { color: var(--brand-blue); }

.kb-toc {
  margin: 32px 0; padding: 24px 28px;
  background: var(--bg-light); border-radius: 16px;
  border: 1px solid var(--border-color);
}
.kb-toc__title {
  font-size: 16px; font-weight: 700; color: var(--article-text-primary);
  margin: 0 0 14px 0; display: flex; align-items: center; gap: 8px;
}
.kb-toc__title::before {
  content: '\f03a'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--brand-blue); font-size: 14px;
}
.kb-toc__list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: kb-toc-counter;
}
.kb-toc__list li {
  counter-increment: kb-toc-counter;
  margin-bottom: 8px;
}
.kb-toc__list li::before {
  content: counter(kb-toc-counter) '.';
  display: inline-block; width: 28px; font-weight: 600;
  color: var(--brand-blue); font-size: 14px;
}
.kb-toc__list li a {
  color: var(--article-text-primary); font-size: 15px;
  text-decoration: none; transition: var(--transition);
  font-weight: 500;
}
.kb-toc__list li a:hover { color: var(--brand-blue); padding-left: 4px; }

.kb-section {
  margin: 40px 0; padding: 32px;
  background: var(--bg-light); border-radius: 16px;
  border: 1px solid var(--border-color);
}
.kb-section > h2:first-child {
  margin-top: 0; padding-top: 0;
  font-size: 26px; font-weight: 700; color: var(--article-text-primary);
  line-height: 1.3; margin-bottom: 16px;
}
.kb-section > h2:first-child::before {
  content: ''; display: block; width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
  border-radius: 2px; margin-bottom: 12px;
}
.kb-section h2 { font-size: 22px; font-weight: 700; margin-top: 32px; margin-bottom: 14px; color: var(--article-text-primary); line-height: 1.3; }
.kb-section h3 { font-size: 18px; font-weight: 600; margin-top: 24px; margin-bottom: 12px; color: var(--article-text-primary); line-height: 1.4; }
.kb-section p { margin-bottom: 16px; line-height: 1.7; }

.kb-list {
  padding-left: 0; margin: 16px 0; list-style: none;
  display: grid; gap: 8px;
}
.kb-list li {
  position: relative; padding: 8px 12px 8px 24px;
  font-size: 15px; line-height: 1.6; color: var(--article-text-secondary);
  background: rgba(255,255,255,0.6); border-radius: 8px;
}
.kb-list li::before {
  content: ''; position: absolute; left: 10px; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-blue); opacity: 0.6;
}

.kb-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  margin: 24px 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.kb-table th {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white; padding: 14px 20px; text-align: left;
  font-weight: 600; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kb-table td {
  padding: 12px 20px; text-align: left;
  border-bottom: 1px solid var(--border-color);
  color: var(--article-text-secondary);
}
.kb-table td:first-child { font-weight: 500; color: var(--article-text-primary); }
.kb-table tbody tr:last-child td { border-bottom: none; }
.kb-table tbody tr:hover td { background: rgba(16,137,255,0.03); }
.kb-table strong { color: var(--article-text-primary); }

.kb-code {
  margin: 20px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.kb-code__lang {
  display: block; padding: 8px 16px;
  background: #1e1e2e; color: #89b4fa;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; font-family: 'Roboto', sans-serif;
}
.kb-code pre {
  margin: 0; padding: 20px 24px;
  background: #181825; overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px; line-height: 1.7; color: #cdd6f4;
}
.kb-code code { font-family: inherit; }
.kb-code .token.k { color: #cba6f7; font-weight: 600; }
.kb-code .token.c { color: #6c7086; font-style: italic; }
.kb-code .token.s { color: #a6e3a1; }
.kb-code .token.fn { color: #89b4fa; }
.kb-code .token.v { color: #f9e2af; }
.kb-code .token.dt { color: #f38ba8; }
.kb-code .token.an { color: #94e2d5; }

.kb-faq {
  margin: 48px 0 40px; padding: 32px;
  background: linear-gradient(135deg, rgba(16,137,255,0.03) 0%, var(--bg-light) 100%);
  border: 1px solid rgba(16,137,255,0.12); border-radius: 20px;
  box-shadow: 0 4px 16px rgba(16,137,255,0.06);
}
.kb-faq__title {
  font-size: 20px; font-weight: 700; color: var(--article-text-primary);
  margin: 0 0 20px 0; display: flex; align-items: center; gap: 10px;
}
.kb-faq__title::before {
  content: '?'; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white; font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.kb-faq details {
  background: rgba(255,255,255,0.8); border-radius: 12px;
  border: 1px solid rgba(16,137,255,0.08);
  margin-bottom: 10px; overflow: hidden;
  transition: var(--transition);
}
.kb-faq details:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(16,137,255,0.08);
}
.kb-faq details[open] {
  border-color: rgba(16,137,255,0.2);
  box-shadow: 0 2px 12px rgba(16,137,255,0.1);
}
.kb-faq summary {
  padding: 16px 20px; cursor: pointer; user-select: none;
  font-size: 16px; font-weight: 600; color: var(--article-text-primary);
  list-style: none; display: flex; align-items: center; gap: 12px;
  transition: var(--transition);
}
.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary::after {
  content: '+'; margin-left: auto; font-size: 22px; font-weight: 300;
  color: var(--brand-blue); transition: transform 0.3s ease;
  flex-shrink: 0; width: 24px; text-align: center;
}
.kb-faq details[open] summary::after {
  transform: rotate(45deg);
}
.kb-faq summary:hover { color: var(--brand-blue); }
.kb-faq .faq-answer {
  max-height: none; overflow: visible;
  padding: 0 20px 18px;
  font-size: 15px; line-height: 1.7; color: var(--article-text-secondary);
  border-top: 1px solid rgba(16,137,255,0.08);
  padding-top: 14px;
}
.kb-faq .faq-answer p { margin: 0; }
.kb-faq .faq-answer strong { color: var(--brand-blue); }

.kb-summary {
  margin: 40px 0 32px; padding: 32px;
  background: linear-gradient(135deg, rgba(16,137,255,0.05) 0%, rgba(77,174,254,0.02) 100%);
  border: 1px solid rgba(16,137,255,0.15); border-radius: 20px;
  box-shadow: 0 4px 20px rgba(16,137,255,0.08);
  position: relative; overflow: hidden;
}
.kb-summary::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-light));
  border-radius: 20px 0 0 20px;
}
.kb-summary__title {
  font-size: 20px; font-weight: 700; color: var(--article-text-primary);
  margin: 0 0 20px 0; display: flex; align-items: center; gap: 10px;
}
.kb-summary__title::before {
  content: '\f046'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--brand-blue); font-size: 18px;
}
.kb-summary__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.kb-summary__list li {
  position: relative; padding: 12px 16px 12px 24px;
  background: rgba(255,255,255,0.75); border-radius: 10px;
  border: 1px solid rgba(16,137,255,0.06);
  font-size: 15px; line-height: 1.6; color: var(--article-text-primary);
  transition: var(--transition);
}
.kb-summary__list li:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(16,137,255,0.1);
  transform: translateX(4px);
}
.kb-summary__list li::before {
  content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  opacity: 0.5;
}
.kb-summary__list li strong { color: var(--brand-blue); }

@media (max-width: 768px) {
  .kb-takeaways { padding: 20px; }
  .kb-takeaways__list li { padding: 10px 12px 10px 18px; font-size: 14px; }
  .kb-toc { padding: 18px 20px; }
  .kb-section { padding: 20px; margin: 28px 0; }
  .kb-section > h2:first-child { font-size: 22px; }
  .kb-section h2 { font-size: 19px; }
  .kb-section h3 { font-size: 17px; }
  .kb-faq { padding: 20px; margin: 32px 0; }
  .kb-faq summary { font-size: 15px; padding: 14px 16px; }
  .kb-faq .faq-answer { padding: 0 16px 14px; padding-top: 12px; font-size: 14px; }
  .kb-summary { padding: 20px; margin: 28px 0; }
  .kb-summary__list li { padding: 10px 12px 10px 20px; font-size: 14px; }
  .kb-table th, .kb-table td { padding: 10px 14px; font-size: 14px; }
  .kb-code pre { padding: 14px 16px; font-size: 13px; }
  .kb-header__desc { padding: 18px 20px; font-size: 15px; }
}

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.compare-table th, .compare-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
.compare-table th { background: var(--brand-blue); color: white; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-table th:first-child { border-radius: 12px 0 0 0; }
.compare-table th:last-child { border-radius: 0 12px 0 0; }
.compare-table td:first-child { font-weight: 500; }
.compare-table tr:nth-child(even) td { background: var(--bg-light); }
.compare-table tr:last-child td { border-bottom: none; }

/* Read also */
.read-also { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.read-also-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--article-text-primary); }
.read-also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.read-also-card {
  background: white; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition);
}
.read-also-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.read-also-card img { width: 100%; height: 180px; object-fit: cover; }
.read-also-card-body { padding: 20px; }
.read-also-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.read-also-card .card-date { font-size: 12px; color: var(--article-text-tertiary); margin-bottom: 8px; }
.read-also-card p { font-size: 13px; color: var(--article-text-secondary); line-height: 1.5; margin-bottom: 12px; }
.read-also-card .card-link { font-size: 13px; font-weight: 500; color: var(--article-link); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.read-also-card .card-link:hover { gap: 10px; color: var(--article-link-hover); }

/* Dynamic feed */
.dynamic-feed { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.dynamic-feed-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--article-text-primary); display: flex; align-items: center; gap: 10px; }
.dynamic-feed-title .spinner { display: none; width: 24px; height: 24px; border: 3px solid var(--border-color); border-top-color: var(--brand-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dynamic-feed-grid { display: grid; gap: 20px; }
.dynamic-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: white;
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); transition: var(--transition);
}
.dynamic-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.dynamic-card.new-highlight { animation: highlightFade 1.5s ease; }
@keyframes highlightFade { from { background: rgba(16, 137, 255, 0.06); } to { background: white; } }
.dynamic-card-img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; background: var(--bg-light); }
.dynamic-card-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--article-text-primary); }
.dynamic-card-content h3 a { color: inherit; text-decoration: none; transition: var(--transition); }
.dynamic-card-content h3 a:hover { color: var(--brand-blue); }
.dynamic-card-content .card-meta { font-size: 13px; color: var(--article-text-tertiary); margin-bottom: 8px; }
.dynamic-card-content p { font-size: 14px; color: var(--article-text-secondary); line-height: 1.5; margin-bottom: 10px; }
.dynamic-card-content .card-link { font-size: 13px; font-weight: 500; color: var(--article-link); display: inline-flex; align-items: center; gap: 6px; }
.dynamic-card-content .card-link:hover { gap: 10px; }
.load-more-btn { display: block; margin: 32px auto 0; padding: 14px 36px; }
.dynamic-feed-end { display: none; text-align: center; padding: 32px; color: var(--article-text-tertiary); font-size: 15px; }

/* ===== 17. SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget {
  background: white; border-radius: var(--radius-card); padding: 24px;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-blue); color: var(--article-text-primary); }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 10px; }
.sidebar-widget ul li a { font-size: 14px; color: var(--article-text-secondary); text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 4px 0; transition: var(--transition); }
.sidebar-widget ul li a:hover { color: var(--article-link); padding-left: 4px; }
.sidebar-widget ul li a i { color: var(--brand-blue); font-size: 12px; width: 16px; }

.sidebar-help-text { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); margin-bottom: 16px; }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-cloud .tag {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: var(--bg-light); color: var(--article-text-secondary); font-size: 13px;
  text-decoration: none; transition: var(--transition); border: 1px solid var(--border-color);
}
.tags-cloud .tag:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }
.tags-cloud .tag-lg { font-size: 15px; font-weight: 600; }
.tags-cloud .tag-md { font-size: 13px; }
.tags-cloud .tag-sm { font-size: 11px; }

.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.subscribe-form p { font-size: 13px; color: var(--article-text-secondary); line-height: 1.5; }
.subscribe-form input[type="email"] { width: 100%; padding: 12px 16px; border: 2px solid var(--border-color); border-radius: 12px; font-size: 14px; font-family: 'Roboto', sans-serif; transition: var(--transition); }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(16, 137, 255, 0.1); }
.subscribe-btn { padding: 12px 24px; font-size: 15px; font-weight: 500; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light)); color: white; cursor: pointer; transition: var(--transition); }
.subscribe-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== 18. PRODUCT PAGE ===== */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) 380px; gap: 48px; padding: 32px 0 60px; }
.product-main { min-width: 0; }
.product-gallery { margin-bottom: 32px; }
.gallery-main-wrap { margin-bottom: 16px; }
.gallery-main {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-card);
  background: var(--bg-light); box-shadow: var(--shadow-sm); cursor: zoom-in; transition: var(--transition);
}
.gallery-main:hover { box-shadow: var(--shadow-md); }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.gallery-thumb {
  width: 80px; height: 60px; object-fit: cover; border-radius: 10px;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition); background: var(--bg-light);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--brand-blue); opacity: 1; }
.gallery-thumb:not(.active) { opacity: 0.6; }

.product-info { margin-bottom: 40px; }
.product-badge { display: inline-block; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light)); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.product-info-row {
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap; margin-bottom: 24px;
}
.product-info-row h1 {
    font-size: 36px; font-weight: 700; line-height: 1.25;
    color: var(--article-text-primary); margin: 0;
}
.product-price-block { flex-shrink: 0; }
.product-price-large { font-size: 36px; font-weight: 700; color: var(--brand-blue); white-space: nowrap; }
.product-availability { font-size: 14px; color: #10B981; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.product-availability i { font-size: 12px; }
.product-buy-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.product-description-text { font-size: 16px; line-height: 1.7; color: var(--article-text-secondary); margin-bottom: 32px; }

.product-specs { margin-bottom: 40px; }
.product-specs h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--article-text-primary); }
.product-content { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-color); }

.specs-section { margin-bottom: 40px; }
.specs-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--article-text-primary); }

.features-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.features-list li { padding: 14px 18px; background: var(--bg-light); border-radius: 12px; font-size: 15px; color: var(--article-text-primary); display: flex; align-items: center; gap: 10px; }
.features-list li i { color: var(--brand-blue); font-size: 16px; }

.related-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.related-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--article-text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: white; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.related-card img { width: 100%; height: 180px; object-fit: cover; background: var(--bg-light); }
.related-card-body { padding: 20px; }
.related-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.related-card h3 a { color: var(--article-text-primary); text-decoration: none; transition: var(--transition); }
.related-card h3 a:hover { color: var(--brand-blue); }
.related-card .price { font-size: 18px; font-weight: 700; color: var(--brand-blue); margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--article-text-secondary); line-height: 1.5; margin-bottom: 12px; }
.related-card .card-link { font-size: 13px; font-weight: 500; color: var(--article-link); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); text-decoration: none; }
.related-card .card-link:hover { gap: 10px; color: var(--article-link-hover); }

.product-sidebar { display: flex; flex-direction: column; gap: 32px; }

.delivery-info { display: grid; gap: 16px; }
.delivery-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--bg-light); border-radius: 12px; font-size: 14px; color: var(--article-text-secondary); }
.delivery-item i { color: var(--brand-blue); font-size: 18px; margin-top: 1px; }

/* ===== 19. AUTH PAGES ===== */
.auth-section { padding: 60px 0 80px; display: flex; justify-content: center; }
.auth-card { background: white; border-radius: var(--radius-card); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.auth-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--article-text-primary); text-align: center; }
.auth-card .auth-subtitle { font-size: 14px; color: var(--article-text-secondary); text-align: center; margin-bottom: 28px; line-height: 1.5; }
.auth-card .form-group { margin-bottom: 20px; }
.auth-card .form-label { display: block; font-size: 14px; font-weight: 500; color: var(--article-text-primary); margin-bottom: 8px; }
.auth-card .form-input { width: 100%; padding: 14px 18px; border: 2px solid var(--border-color); border-radius: 12px; font-size: 15px; font-family: 'Roboto', sans-serif; transition: var(--transition); background: white; color: var(--article-text-primary); }
.auth-card .form-input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(16, 137, 255, 0.1); }
.auth-card .btn-submit { width: 100%; padding: 16px 32px; font-size: 17px; font-weight: 500; border-radius: 12px; border: none; cursor: pointer; transition: var(--transition); background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light)); color: white; box-shadow: var(--shadow-md); margin-top: 8px; }
.auth-card .btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: var(--article-text-secondary);
  font-size: 13px;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}
.auth-divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.auth-oauth { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-oauth:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-oauth-yandex {
  background: #FC3F1D;
  color: #fff;
  font-weight: 600;
  border-color: #FC3F1D;
}
.btn-oauth-yandex:hover {
  background: #e03618;
  color: #fff;
}
.btn-oauth-yandex .ya-logo { font-weight: 700; font-size: 18px; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-box .modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.modal-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--article-text-primary);
  margin-bottom: 8px;
}
.modal-box p {
  font-size: 15px;
  color: var(--article-text-secondary);
  margin-bottom: 24px;
}
.modal-box .modal-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.modal-box .modal-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.auth-links { text-align: center; margin-top: 24px; font-size: 14px; color: var(--article-text-secondary); }
.auth-links a { color: var(--article-link); text-decoration: none; font-weight: 500; transition: var(--transition); }
.auth-links a:hover { color: var(--article-link-hover); }

/* ===== 20. CONTACTS PAGE ===== */
.contacts-section { padding: 40px 0 60px; }
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  background: white; border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  display: flex; align-items: flex-start; gap: 16px; transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: white; font-size: 20px;
}
.contact-card-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--article-text-primary); }
.contact-card-info p, .contact-card-info a { font-size: 15px; color: var(--article-text-secondary); text-decoration: none; transition: var(--transition); }
.contact-card-info a:hover { color: var(--article-link); }

.social-links { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 10px; background: var(--bg-light); color: var(--article-text-primary);
  text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid var(--border-color);
  transition: var(--transition);
}
.social-link:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); transform: translateY(-2px); }
.social-link i { font-size: 18px; }

.contact-form-wrapper {
  background: white; border-radius: var(--radius-card); padding: 36px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
}
.contact-form-wrapper h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--article-text-primary); }
.contact-form-wrapper .form-group { margin-bottom: 20px; }
.contact-form-wrapper .form-label { display: block; font-size: 14px; font-weight: 500; color: var(--article-text-primary); margin-bottom: 8px; }
.contact-form-wrapper .form-input, .contact-form-wrapper .form-textarea {
  width: 100%; padding: 14px 18px; border: 2px solid var(--border-color);
  border-radius: 12px; font-size: 15px; font-family: 'Roboto', sans-serif;
  transition: var(--transition); background: white; color: var(--article-text-primary);
}
.contact-form-wrapper .form-input:focus, .contact-form-wrapper .form-textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(16, 137, 255, 0.1); }
.contact-form-wrapper .form-textarea { resize: vertical; min-height: 140px; }
.contact-form-wrapper .form-input.error { border-color: #ef4444; }
.contact-form-wrapper .form-error { color: #ef4444; font-size: 13px; margin-top: 6px; display: none; }
.contact-form-wrapper .form-input.error + .form-error { display: block; }
.contact-form-wrapper .btn-submit {
  width: 100%; padding: 16px 32px; font-size: 17px; font-weight: 500;
  border-radius: 12px; border: none; cursor: pointer; transition: var(--transition);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white; box-shadow: var(--shadow-md);
}
.contact-form-wrapper .btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-form-wrapper .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.contact-form-wrapper .form-success {
  display: none; background: #10B981; color: white; padding: 16px;
  border-radius: 12px; text-align: center; margin-top: 20px; font-size: 15px;
}
.contact-form-wrapper .form-success.show { display: block; }

.map-placeholder {
  margin-top: 48px; width: 100%; height: 400px; background: var(--bg-light);
  border-radius: var(--radius-card); display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border-color); overflow: hidden;
}
.map-placeholder-inner { text-align: center; color: var(--article-text-tertiary); }
.map-placeholder-inner i { font-size: 48px; margin-bottom: 12px; display: block; }
.map-placeholder-inner p { font-size: 16px; }

/* ===== 21. COMMENT PAGE (Ticket comments / MODX style) ===== */
.comments-page-section {
  background: var(--bg-white); padding: 40px 0 60px;
}
.comments-page-section > .container > h2 {
  font-size: 28px; font-weight: 700; margin-bottom: 24px; color: var(--article-text-primary);
}
.comments-subscribe {
  float: right; font-size: 13px; color: var(--article-text-secondary); margin-bottom: 16px;
}
.comments-subscribe .checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.comments-subscribe input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-blue); }
.pull-right { float: right; }

.comment-list, .comments-list { list-style: none; padding: 0; margin: 0; }
.comment-list > li, .comments-list > li { margin-bottom: 0; }

.ticket-comment {
  background: white; border-radius: 16px; padding: 20px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  margin-bottom: 16px; transition: var(--transition);
}
.ticket-comment:hover { box-shadow: var(--shadow-md); }
.ticket-comment-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.ticket-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-blue-light); }
.ticket-comment-author { font-weight: 600; font-size: 15px; color: var(--article-text-primary); }
.ticket-comment-createdon { font-size: 13px; color: var(--article-text-tertiary); }
.ticket-comment-link a { color: var(--article-text-tertiary); text-decoration: none; font-size: 13px; font-weight: 500; }
.ticket-comment-link a:hover { color: var(--article-link); }
.ticket-comment-down a { color: var(--article-text-tertiary); text-decoration: none; font-size: 14px; }
.ticket-comment-down a:hover { color: var(--brand-blue); }
.ticket-comment-rating {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; font-size: 13px; color: var(--article-text-secondary);
}
.ticket-comment-rating.inactive .rating { font-weight: 600; color: var(--article-text-secondary); }
.ticket-comment-rating .vote { cursor: pointer; color: var(--article-text-tertiary); transition: var(--transition); font-size: 14px; }
.ticket-comment-rating .vote:hover { color: var(--brand-blue); }
.ticket-comment-rating .vote.plus:hover { color: #4caf50; }
.ticket-comment-rating .vote.minus:hover { color: #f44336; }
.ticket-comment-text {
  font-size: 15px; line-height: 1.7; color: var(--article-text-primary); padding-left: 40px;
}
.ticket-comment-text b { font-weight: 600; }

.comment-reply {
  display: flex; gap: 16px; padding: 10px 0 0 40px;
  margin-top: 10px; border-top: 1px solid var(--border-color);
}
.comment-reply a { font-size: 13px; color: var(--article-text-secondary); text-decoration: none; font-weight: 500; transition: var(--transition); }
.comment-reply a:hover { color: var(--brand-blue); }

#comments-tpanel { margin-top: 20px; }
#comment-new-link { margin-top: 20px; }
#comment-new-link .btn-default {
  display: inline-block; padding: 12px 28px; background: var(--brand-blue);
  color: white; border-radius: 12px; text-decoration: none;
  font-weight: 500; transition: var(--transition); box-shadow: var(--shadow-sm);
}
#comment-new-link .btn-default:hover { background: var(--brand-blue-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.well {
  background: var(--bg-light); border-radius: 16px; padding: 28px;
  margin-top: 24px; border: 1px solid var(--border-color);
}
.well .form-group { margin-bottom: 16px; }
.well .form-group label { display: block; font-weight: 500; font-size: 14px; color: var(--article-text-primary); margin-bottom: 8px; }
.well .form-control {
  width: 100%; padding: 12px 16px; font-size: 14px; font-family: 'Roboto', sans-serif;
  border: 1px solid var(--border-color); border-radius: 10px;
  background: white; color: var(--article-text-primary); transition: var(--transition);
  outline: none; resize: vertical; min-height: 120px;
}
.well .form-control:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(16, 137, 255, 0.1); }
.well .error { color: #f44336; font-size: 13px; margin-top: 4px; display: block; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.form-actions .btn { padding: 12px 28px; font-size: 15px; font-weight: 500; border-radius: 12px; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; display: inline-block; }
.form-actions .btn-default { background: white; color: var(--article-text-primary); border: 1px solid var(--border-color); }
.form-actions .btn-default:hover { background: var(--bg-light); border-color: var(--article-text-tertiary); }
.form-actions .btn-primary { background: var(--brand-blue); color: white; box-shadow: var(--shadow-sm); }
.form-actions .btn-primary:hover { background: var(--brand-blue-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.form-actions .time { font-size: 13px; color: var(--article-text-tertiary); margin-left: auto; }
.comment-form-files { margin-bottom: 16px; }

/* MarkItUp override */
.markItUp { border: none !important; }
.markItUpContainer { border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; background: white; }
.markItUpHeader {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px;
  background: var(--bg-light); border-bottom: 1px solid var(--border-color);
}
.markItUpHeader ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; padding: 0; margin: 0; }
.markItUpHeader ul li { margin: 0; }
.markItUpHeader ul li a { display: block; padding: 4px 10px; font-size: 12px; color: var(--article-text-secondary); text-decoration: none; border-radius: 4px; transition: var(--transition); font-weight: 500; }
.markItUpHeader ul li a:hover { background: var(--brand-blue); color: white; }
.markItUpSeparator { width: 1px; background: var(--border-color); margin: 0 4px; display: block; text-indent: -9999px; overflow: hidden; }
.markItUpEditor { width: 100%; border: none !important; padding: 12px 16px !important; font-size: 14px; font-family: 'Roboto', sans-serif; color: var(--article-text-primary); resize: vertical; outline: none; min-height: 120px; }
.markItUpFooter { height: 6px; background: var(--bg-light); border-top: 1px solid var(--border-color); }
.markItUpResizeHandle { display: none; }

/* ===== 22. DEV PAGE — HERO SERVICES ===== */
.hero-services {
  background: url('../assets/images/hero-banner.jpg') no-repeat center center / cover;
  padding: 100px 0; position: relative; overflow: hidden;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero-services::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16, 137, 255, 0.08) 0%, transparent 70%); border-radius: 50%; z-index: 2;
}
.hero-services::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.25) 100%),
              linear-gradient(180deg, rgba(10,14,22,0.30) 0%, rgba(10,14,22,0.10) 40%, rgba(10,14,22,0.45) 100%);
  z-index: 1;
}
.hero-services-content { position: relative; z-index: 3; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-services h1 {
  font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; line-height: 1.2;
  margin-bottom: 24px; color: #ffffff; letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 8px 30px rgba(0,0,0,0.30);
  animation: fadeInUp 0.8s ease;
}
.hero-fire-word {
  position: relative; display: inline-block;
  background: linear-gradient(to bottom, #ff2400 0%, #ff6f00 20%, #ffa500 40%, #ffb84d 60%, #ffd700 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 5px rgba(255,45,0,0.5)) drop-shadow(0 1px 10px rgba(255,107,26,0.4)) drop-shadow(0 3px 20px rgba(255,165,0,0.25));
  animation: fireWordBurn 2.5s ease-in-out infinite;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,45,0,0.5), 0 0 20px rgba(255,107,26,0.4), 0 0 30px rgba(255,165,0,0.25);
}
@keyframes fireWordBurn {
  0%   { filter: drop-shadow(0 0 5px rgba(255,45,0,0.3)) drop-shadow(0 1px 10px rgba(255,107,26,0.2)) drop-shadow(0 3px 20px rgba(255,165,0,0.15)); text-shadow: 0 0 10px rgba(255,45,0,0.3), 0 0 20px rgba(255,107,26,0.2), 0 0 30px rgba(255,165,0,0.15); }
  25%  { filter: drop-shadow(0 0 10px rgba(255,45,0,0.6)) drop-shadow(0 2px 18px rgba(255,107,26,0.5)) drop-shadow(0 5px 28px rgba(255,165,0,0.35)); text-shadow: 0 0 15px rgba(255,45,0,0.6), 0 0 30px rgba(255,107,26,0.5), 0 0 45px rgba(255,165,0,0.35); }
  50%  { filter: drop-shadow(0 0 14px rgba(255,45,0,0.7)) drop-shadow(0 3px 22px rgba(255,107,26,0.6)) drop-shadow(0 6px 32px rgba(255,165,0,0.4)); text-shadow: 0 0 20px rgba(255,45,0,0.7), 0 0 40px rgba(255,107,26,0.6), 0 0 60px rgba(255,165,0,0.4); }
  75%  { filter: drop-shadow(0 0 8px rgba(255,45,0,0.4)) drop-shadow(0 2px 14px rgba(255,107,26,0.3)) drop-shadow(0 4px 24px rgba(255,165,0,0.2)); text-shadow: 0 0 12px rgba(255,45,0,0.4), 0 0 25px rgba(255,107,26,0.3), 0 0 40px rgba(255,165,0,0.2); }
  100% { filter: drop-shadow(0 0 5px rgba(255,45,0,0.3)) drop-shadow(0 1px 10px rgba(255,107,26,0.2)) drop-shadow(0 3px 20px rgba(255,165,0,0.15)); text-shadow: 0 0 10px rgba(255,45,0,0.3), 0 0 20px rgba(255,107,26,0.2), 0 0 30px rgba(255,165,0,0.15); }
}
.hero-services .hero-accent {
  background: linear-gradient(120deg, #ff6b1a 0%, #ff8c42 50%, #ffa500 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255,107,26,0.5));
  animation: fireGlow 3s ease-in-out infinite;
}
@keyframes fireGlow {
  0%   { filter: drop-shadow(0 2px 10px rgba(255,107,26,0.3)) drop-shadow(0 4px 18px rgba(255,165,0,0.2)); text-shadow: 0 0 10px rgba(255,107,26,0.4); }
  25%  { filter: drop-shadow(0 2px 18px rgba(255,107,26,0.6)) drop-shadow(0 5px 28px rgba(255,165,0,0.4)); text-shadow: 0 0 20px rgba(255,107,26,0.6); }
  50%  { filter: drop-shadow(0 2px 25px rgba(255,107,26,0.4)) drop-shadow(0 6px 32px rgba(255,165,0,0.3)); text-shadow: 0 0 25px rgba(255,165,0,0.5); }
  75%  { filter: drop-shadow(0 2px 14px rgba(255,107,26,0.5)) drop-shadow(0 4px 22px rgba(255,165,0,0.25)); text-shadow: 0 0 15px rgba(255,107,26,0.3); }
  100% { filter: drop-shadow(0 2px 10px rgba(255,107,26,0.3)) drop-shadow(0 4px 18px rgba(255,165,0,0.2)); text-shadow: 0 0 10px rgba(255,107,26,0.4); }
}
.hero-services .hero-subtitle {
  font-size: clamp(16px, 2.2vw, 22px); color: rgba(255,255,255,0.92);
  margin-bottom: 32px; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}
.hero-badges {
  display: inline-flex; justify-content: center; flex-wrap: wrap; gap: 16px;
  position: relative; z-index: 3; animation: fadeInUp 0.8s ease 0.4s backwards;
}
.badge-item {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 16px 24px; border-radius: var(--radius-card);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-lg); transition: var(--transition); overflow: hidden; min-width: 180px;
}
.badge-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); }
.badge-text { display: flex; flex-direction: column; text-align: center; justify-content: center; align-items: center; position: relative; z-index: 1; }
.badge-number {
  font-size: 31px; font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #f0d080 0%, #d4a030 35%, #f0d080 55%, #8b6914 75%, #d4a030 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35)) drop-shadow(0 -1px 1px rgba(0,0,0,0.6)) drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}
.badge-label {
  font-size: 13px;
  background: linear-gradient(135deg, #f0d080 0%, #d4a030 60%, #f0d080 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.2)) drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  font-weight: 600;
}
.badge-video-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; z-index: 0; border-radius: inherit; overflow: hidden; }
.badge-item:hover .badge-video-overlay { opacity: 1; }
.badge-video-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 100%); z-index: 1; }

/* ===== 23. DEV PAGE — SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-tile {
  background: white; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--transition-duration) ease;
  display: flex; flex-direction: column;
  will-change: transform;
}
.service-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-img-wrap { overflow: hidden; height: 170px; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-tile:hover .service-img { transform: scale(1.08); }

.service-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.service-title { font-size: 18px; font-weight: 700; color: var(--article-text-primary); line-height: 1.3; position: relative; }
.service-title a { display: inline; text-decoration: none; color: inherit; }
.hl-marker {
  position: absolute; left: -2px; right: -2px; top: 0; bottom: 0;
  background: rgba(16, 137, 255, 0.25);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1; pointer-events: none;
}
.service-title a:hover .hl-marker { transform: scaleX(1); }
.hl-marker.fade-out {
  transform: scaleX(1);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.hl-reset {
  transition: none !important;
  transform: scaleX(0) !important;
  opacity: 0 !important;
}
.service-badge {
  display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 12px;
  font-weight: 600; white-space: nowrap;
}
.badge-primary { background: #e8f5e9; color: #2e7d32; }
.badge-developing { background: #fff8e1; color: #f57f17; }

.service-description { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); margin-bottom: 16px; flex: 1; }
.service-link {
  font-size: 14px; font-weight: 600; color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: 6px; transition: var(--transition);
}
.service-link:hover { gap: 10px; color: var(--article-link-hover); }

/* ===== 24. DEV PAGE — PROCESS TIMELINE ===== */
.process-timeline { display: grid; gap: 0; position: relative; }
.process-timeline::before {
  content: ''; position: absolute; left: 31px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--brand-blue), var(--brand-blue-light));
}

.timeline-item {
  display: flex; gap: 24px; padding: 20px 0;
  position: relative; align-items: flex-start;
}
/* Защита: fade-in не должен сдвигать timeline-номера */
.timeline-item.fade-in {
  transform: none !important;
  opacity: 1 !important;
}
.timeline-number {
  width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px; font-weight: 700; flex-shrink: 0;
  position: relative; z-index: 1; box-shadow: var(--shadow-md);
}
.timeline-content { flex: 1; padding-top: 8px; }
.timeline-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--article-text-primary); }
.timeline-description { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); }

/* ===== 25. DEV PAGE — PORTFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-card {
  background: white; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-image { width: 100%; height: 200px; object-fit: cover; background: var(--bg-light); }
.portfolio-content { padding: 24px; }
.portfolio-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--article-text-primary); line-height: 1.3; }
.portfolio-description { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); margin-bottom: 14px; }
.portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.portfolio-tag {
  display: inline-block; padding: 4px 10px; background: var(--bg-light);
  color: var(--article-text-secondary); border-radius: 6px; font-size: 12px;
}
.portfolio-link { color: var(--article-link); text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.portfolio-link:hover { gap: 10px; color: var(--article-link-hover); }

/* ===== 26. DEV PAGE — ADVANTAGES ===== */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-card {
  background: white; border-radius: var(--radius-card); padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  transition: var(--transition); text-align: center;
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage-icon { font-size: 36px; display: block; margin-bottom: 16px; }
.advantage-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--article-text-primary); }
.advantage-text { font-size: 14px; line-height: 1.6; color: var(--article-text-secondary); }

/* ===== 27. DEV PAGE — TECH STACK ===== */
.tech-stack { display: grid; gap: 24px; }
.tech-category {
  background: white; border-radius: var(--radius-card); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
}
.tech-label { display: block; font-size: 15px; font-weight: 700; color: var(--article-text-primary); margin-bottom: 14px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: var(--bg-light); color: var(--article-text-secondary);
  font-size: 13px; border: 1px solid var(--border-color); transition: var(--transition);
}
.tech-badge:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }

/* ===== 28. DEV PAGE — FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; user-select: none;
  font-size: 16px; font-weight: 500; color: var(--article-text-primary); gap: 16px;
}
.faq-icon {
  flex-shrink: 0; font-size: 24px; font-weight: 300; color: var(--brand-blue);
  transition: transform 0.3s ease; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-content { padding: 0 24px 20px; font-size: 15px; line-height: 1.6; color: var(--article-text-secondary); }

/* ===== 29. DEV PAGE — CONTACT SECTION ===== */
.contact-section .contact-form-wrapper { max-width: 640px; margin: 0 auto; }
.contact-section .form-error { color: #ef4444; font-size: 13px; margin-top: 6px; display: none; }
.contact-section .form-input.error + .form-error { display: block; }
.contact-section .form-success {
  display: none; background: #10B981; color: white; padding: 16px;
  border-radius: 12px; text-align: center; margin-top: 20px; font-size: 15px;
}
.contact-section .form-success.show { display: block; }

/* ===== 30. DEV PAGE — DEV PANEL ===== */
#dev-panel {
  position: fixed; bottom: 0; right: 20px; width: 380px; max-height: 600px;
  background: #1e1e2e; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  z-index: 9999; display: flex; flex-direction: column;
  color: #cdd6f4; font-family: 'Roboto', sans-serif; font-size: 13px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#dev-panel.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
#dev-panel.minimized .dev-panel-body { display: none; }

.dev-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #181825; border-radius: 16px 16px 0 0;
  cursor: move; user-select: none;
}
.dev-panel-title { font-weight: 700; font-size: 14px; color: #f5c2e7; }
.dev-panel-buttons { display: flex; gap: 8px; }
.dev-panel-btn {
  background: none; border: none; color: #a6adc8; cursor: pointer;
  font-size: 18px; padding: 2px 6px; border-radius: 6px; transition: var(--transition);
}
.dev-panel-btn:hover { background: rgba(255,255,255,0.1); color: #cdd6f4; }
.dev-panel-btn.close-btn:hover { background: rgba(243,139,168,0.2); color: #f38ba8; }
.dev-panel-body {
  padding: 16px; overflow-y: auto; flex: 1;
}
.dev-panel-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dev-panel-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dev-panel-section-title { font-weight: 700; font-size: 13px; color: #89b4fa; margin-bottom: 2px; }
.dev-panel-section-subtitle { font-size: 11px; color: #6c7086; margin-bottom: 12px; font-family: monospace; }

.dev-param {
  display: grid; grid-template-columns: 1fr 100px 60px; gap: 8px;
  align-items: center; margin-bottom: 8px;
}
.dev-param-label { font-size: 12px; color: #bac2de; }
.dev-param input[type="range"] { width: 100%; height: 4px; accent-color: var(--brand-blue); }
.dev-param input[type="number"] {
  width: 100%; padding: 4px 6px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; background: #181825; color: #cdd6f4; font-size: 12px; text-align: center;
}
.dev-param input[type="color"] { width: 100%; height: 30px; border: none; border-radius: 6px; cursor: pointer; padding: 0; }

.dev-panel-actions { display: flex; gap: 10px; margin-top: 16px; }
.dev-action-btn {
  flex: 1; padding: 10px 16px; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); color: white;
}
.dev-action-btn.save-btn { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light)); }
.dev-action-btn.save-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.dev-action-btn.download-btn { background: #313244; }
.dev-action-btn.download-btn:hover { background: #45475a; transform: translateY(-1px); }

.dev-panel-output {
  margin-top: 16px; display: none; background: #11111b; border-radius: 8px;
  padding: 12px; font-size: 12px; font-family: monospace; white-space: pre-wrap;
  max-height: 200px; overflow: auto; color: #a6e3a1;
}
.dev-panel-output.show { display: block; }

.dev-panel-toast {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: #a6e3a1; color: #11111b; padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600; opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; white-space: nowrap;
}
.dev-panel-toast.show { opacity: 1; }

/* ===== 31. RUBRIC PAGE ===== */
.rubric-sticky-menu { background: white; padding: 14px 0; box-shadow: var(--shadow-sm); position: sticky; top: 67px; z-index: 999; border-bottom: 1px solid var(--border-color); overflow-x: auto; }
.rubric-sticky-menu .sticky-menu-content { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0; }

/* ===== 24. RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .products-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { order: 2; }
  .article-main { order: 1; }
  .read-also-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .features-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 25. RESPONSIVE — MOBILE (768px) ===== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .nav {
    position: fixed; top: 0; left: -100%; width: 80%; max-width: 340px; height: 100%;
    flex-direction: column; gap: 0; align-items: stretch; background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15); z-index: 999;
    padding: 80px 24px 24px; transition: left 0.3s ease; display: flex;
  }
  .nav.active { left: 0; }
  .nav a { color: var(--article-text-primary); font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
  .nav a::after { display: none; }
  .nav a:hover { opacity: 1; color: var(--brand-blue); padding-left: 8px; }
  .nav-icon { padding: 14px 0 !important; border-bottom: 1px solid var(--border-color); justify-content: flex-start; }
  .nav-icon svg { color: var(--article-text-primary); }
  .nav-icon:hover svg { color: var(--brand-blue); }
  .nav-icon-wrap { display: block; }
  .nav-icon-wrap .nav-dropdown { position: static; box-shadow: none; padding: 0 0 0 16px; opacity: 1; visibility: visible; transform: none; transition: none; border-radius: 0; display: none; }
  .nav-icon-wrap .nav-dropdown::before { display: none; }
  .nav-icon-wrap .nav-dropdown.active { display: block; }
  .nav-icon-wrap .nav-dropdown a { font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--border-color); color: var(--article-text-secondary) !important; }
  .nav-icon-wrap .nav-dropdown a:hover { background: rgba(16,137,255,0.08); color: var(--brand-blue) !important; padding-left: 0; box-shadow: inset 3px 0 0 var(--brand-blue); }
  .nav-icon-wrap .nav-dropdown .dropdown-divider { margin: 0; }
  .burger-btn { display: block; }
  .header-social { display: none; }

  .section { padding: 50px 0; }
  .section-title { font-size: 28px; }
  .hero { padding: 50px 0 60px; }
  .hero-stats { gap: 24px; padding: 16px 22px; }
  .stat-number { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; text-align: center; }

  .products-grid--auto, .products-grid--3 { grid-template-columns: 1fr; }
  .blog-grid, .blog-grid--3 { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 1fr; }
  .review-image { height: 200px; }

  .page-header h1 { font-size: 24px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .pagination { flex-wrap: wrap; }

  .sticky-menu { overflow-x: auto; }
  .sticky-menu-content { justify-content: flex-start; flex-wrap: nowrap; padding: 0 8px; }
  .rubric-sticky-menu { top: 57px; }

  .article-title { font-size: 26px; }
  .article-lead { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .article-body .article-image { padding: 10px; border-radius: 16px; background: var(--bg-light); }
  .table-wrapper { border-radius: 12px; }
  .specs-table th, .specs-table td { padding: 10px 14px; font-size: 14px; }
  .read-also-grid { grid-template-columns: 1fr; }
  .toc-toggle { display: block; }
  .toc-list { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin-top: 0; }
  .toc-list.open { max-height: 1000px; margin-top: 16px; }
  .comments-form { padding: 20px; }
  .sidebar { margin-top: 16px; }

  .product-info-row { gap: 16px; }
  .product-info-row h1 { font-size: 26px; }
  .product-price-large { font-size: 28px; }
  .related-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { gap: 8px; }
  .gallery-thumb { width: 60px; height: 44px; }

  .auth-card { padding: 28px 24px; }
  .auth-card h1 { font-size: 24px; }

  .contacts-layout { grid-template-columns: 1fr; gap: 32px; }
  .map-placeholder { height: 300px; }
  .contact-form-wrapper { padding: 24px 20px; }

  .dynamic-card { grid-template-columns: 1fr; }
  .dynamic-card-img { height: 180px; }
  .comment-text-body { margin-left: 0; }
  .comment-reply-link { margin-left: 0; }
  .ticket-comment-text { padding-left: 0; }
  .comment-reply { padding-left: 0; }

  .article-meta { gap: 10px; font-size: 13px; }
  .article-meta .meta-dot { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .hero-services { padding: 60px 0; }
  .hero-services h1 { font-size: clamp(28px, 5vw, 40px); }
  .hero-badges { flex-direction: column; align-items: center; }
  .badge-item { min-width: 160px; }
  #dev-panel { width: calc(100% - 32px); right: 16px; max-height: 80vh; }
}

/* ===== 26. RESPONSIVE — SMALL MOBILE (480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .section-title { font-size: 24px; }
  .hero-stats { flex-direction: column; gap: 16px; width: 100%; }
  .product-card { padding: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
  .article-lead { font-size: 16px; }
  .compare-table th, .compare-table td { padding: 8px 10px; font-size: 12px; }
  .product-info-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .product-info-row h1 { font-size: 22px; }
  .product-info-row .btn { width: 100%; text-align: center; }
  .specs-table th, .specs-table td { padding: 10px 14px; font-size: 14px; }
  .product-badge { font-size: 12px; }
  .pagination .page-link { width: 36px; height: 36px; font-size: 13px; }
  .contact-card { padding: 18px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .social-links { flex-direction: column; }
  .social-link { justify-content: center; }
  .expert-citation { padding: 10px 20px !important; margin: 30px 0 !important; }
  .expert-citation .citation-avatar-img { width: 100px !important; height: 100px !important; }
  .expert-citation-v5 .citation-avatar-img { width: 120px !important; height: 120px !important; }
  .expert-citation-v4 .citation-main { flex-direction: column; align-items: center; text-align: center; }
  .expert-citation-v4 .citation-text { padding-left: 0 !important; }
  .expert-citation-v4 .citation-quote { position: static; display: inline; }
}

/* ===== EXPERT CITATION BLOCKS ===== */
.expert-citation { margin: 40px 0; background: #ffffff; border: 1px solid var(--border-color); border-radius: 20px; padding: 28px 32px; box-shadow: var(--shadow-sm); }
.expert-citation .citation-author { font-size: 16px; font-weight: 600; color: var(--article-text-primary); margin-bottom: 4px; }
.expert-citation .citation-role { font-size: 13px; color: var(--article-text-secondary); line-height: 1.4; margin-bottom: 16px; }
.expert-citation .citation-text { font-size: 16px; line-height: 1.7; color: var(--article-text-primary); font-style: italic; position: relative; padding-left: 28px; }
.expert-citation .citation-text::before { content: '\201C'; position: absolute; left: 0; top: -4px; font-size: 32px; color: var(--brand-blue); opacity: 0.3; font-family: Georgia, serif; }
.expert-citation .citation-avatar-img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(16,137,255,0.15); margin-bottom: 12px; }
.expert-citation-v1 { position: relative; background: linear-gradient(135deg, rgba(16,137,255,0.04) 0%, rgba(255,255,255,1) 100%); border: 1px solid rgba(16,137,255,0.15); border-radius: 20px; padding: 14px 28px 14px 32px; box-shadow: 0 4px 16px rgba(16,137,255,0.08); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.expert-citation-v1:hover { box-shadow: 0 8px 24px rgba(16,137,255,0.15); transform: translateY(-2px); }
.expert-citation-v1 .citation-accent-line { display: none !important; }
.expert-citation-v1 .citation-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.expert-citation-v1 .citation-avatar-img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid #1089ff; box-shadow: 0 4px 12px rgba(16,137,255,0.25); }
.expert-citation-v1 .citation-meta { flex: 1; }
.expert-citation-v1 .citation-author { font-size: 16px; font-weight: 600; color: rgba(0,0,0,0.87); margin-bottom: 4px; }
.expert-citation-v1 .citation-role { font-size: 13px; color: rgba(0,0,0,0.6); line-height: 1.4; }
.expert-citation-v1 .citation-text { position: relative; font-size: 16px; line-height: 1.7; color: rgba(0,0,0,0.87); font-style: italic; padding-left: 36px; }
.expert-citation-v1 .citation-quote-icon { position: absolute; left: 0; top: 2px; font-size: 24px; color: #1089ff; opacity: 0.3; }

.expert-citation-v2 { background: #ffffff; border: 2px solid rgba(0,0,0,0.08); border-radius: 20px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.expert-citation-v2:hover { border-color: rgba(16,137,255,0.3); box-shadow: 0 4px 16px rgba(16,137,255,0.12); }
.expert-citation-v2 .citation-content { position: relative; margin-bottom: 24px; }
.expert-citation-v2 .citation-quote-mark { position: absolute; left: -8px; top: -12px; font-size: 80px; font-weight: 700; color: #1089ff; opacity: 0.12; line-height: 1; font-family: Georgia, serif; }
.expert-citation-v2 .citation-text { font-size: 17px; line-height: 1.7; color: rgba(0,0,0,0.87); position: relative; z-index: 1; }
.expert-citation-v2 .citation-footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); }
.expert-citation-v2 .citation-avatar-img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(16,137,255,0.2); transition: all 0.3s ease; }
.expert-citation-v2:hover .citation-avatar-img { border-color: #1089ff; }
.expert-citation-v2 .citation-author { font-size: 15px; font-weight: 600; color: rgba(0,0,0,0.87); margin-bottom: 3px; }
.expert-citation-v2 .citation-role { font-size: 13px; color: rgba(0,0,0,0.6); line-height: 1.4; }

.expert-citation-v3 { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); border-radius: 20px; padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.expert-citation-v3:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.15); transform: translateY(-3px); }
.expert-citation-v3 .citation-body { position: relative; padding: 32px 32px 28px; background: linear-gradient(135deg, rgba(16,137,255,0.06) 0%, rgba(77,174,254,0.03) 100%); }
.expert-citation-v3 .citation-icon-wrapper { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1089ff, #4daefe); border-radius: 50%; color: white; font-size: 20px; opacity: 0.15; }
.expert-citation-v3 .citation-text { font-size: 16px; line-height: 1.7; color: rgba(0,0,0,0.87); font-style: italic; }
.expert-citation-v3 .citation-author-block { display: flex; align-items: center; gap: 16px; padding: 20px 32px; background: #ffffff; }
.expert-citation-v3 .citation-avatar-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff; box-shadow: 0 4px 12px rgba(16,137,255,0.2); flex-shrink: 0; }
.expert-citation-v3 .citation-author { font-size: 16px; font-weight: 600; color: rgba(0,0,0,0.87); margin-bottom: 4px; }
.expert-citation-v3 .citation-role { font-size: 13px; color: rgba(0,0,0,0.6); line-height: 1.4; }

.expert-citation-v4 { background: #ffffff; border-left: 4px solid #1089ff; border-radius: 12px; padding: 24px 24px 24px 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.expert-citation-v4:hover { box-shadow: 0 4px 20px rgba(16,137,255,0.15); border-left-width: 6px; padding-left: 18px; }
.expert-citation-v4 .citation-main { display: flex; gap: 20px; align-items: flex-start; }
.expert-citation-v4 .citation-avatar-img { width: 140px; height: 140px; min-width: 140px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(16,137,255,0.15); transition: all 0.3s ease; }
.expert-citation-v4:hover .citation-avatar-img { border-color: #1089ff; transform: scale(1.05); }
.expert-citation-v4 .citation-content { flex: 1; }
.expert-citation-v4 .citation-text { font-size: 16px; line-height: 1.7; color: rgba(0,0,0,0.87); margin-bottom: 16px; position: relative; padding-left: 32px; }
.expert-citation-v4 .citation-quote { position: absolute; left: 0; top: 0; font-size: 20px; color: #4daefe; opacity: 0.5; }
.expert-citation-v4 .citation-author-info { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px; }
.expert-citation-v4 .citation-author { font-size: 15px; font-weight: 600; color: #1089ff; margin-bottom: 3px; }
.expert-citation-v4 .citation-role { font-size: 13px; color: rgba(0,0,0,0.6); line-height: 1.4; }

.expert-citation-v5 { position: relative; background: #ffffff; border-radius: 24px; padding: 36px; overflow: hidden; box-shadow: 0 8px 32px rgba(16,137,255,0.12); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.expert-citation-v5:hover { box-shadow: 0 12px 48px rgba(16,137,255,0.2); transform: translateY(-4px); }
.expert-citation-v5 .citation-gradient-bg { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #1089ff 0%, #4daefe 50%, #1089ff 100%); background-size: 200% 100%; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.expert-citation-v5 .citation-wrapper { position: relative; z-index: 1; }
.expert-citation-v5 .citation-header-section { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid rgba(16,137,255,0.1); }
.expert-citation-v5 .citation-avatar-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(16,137,255,0.15); box-shadow: 0 4px 16px rgba(16,137,255,0.25); transition: all 0.3s ease; }
.expert-citation-v5:hover .citation-avatar-img { border-color: #4daefe; box-shadow: 0 6px 24px rgba(16,137,255,0.35); }
.expert-citation-v5 .citation-author { font-size: 18px; font-weight: 700; color: rgba(0,0,0,0.87); margin-bottom: 4px; }
.expert-citation-v5 .citation-role { font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.5; }
.expert-citation-v5 .citation-text-section { position: relative; }
.expert-citation-v5 .citation-quote-marks { position: absolute; left: -12px; top: -8px; font-size: 36px; color: #1089ff; opacity: 0.15; }
.expert-citation-v5 .citation-text { font-size: 17px; line-height: 1.8; color: rgba(0,0,0,0.87); font-style: italic; padding-left: 24px; }

/* ===== DYNAMIC NEXT ARTICLE ===== */
.dynamic-next-article { margin-top: 48px; }
.next-article-separator { text-align: center; margin-bottom: 32px; position: relative; }
.next-article-separator::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-color); }
.next-article-label { display: inline-block; background: white; padding: 0 20px; position: relative; z-index: 1; font-size: 14px; font-weight: 600; color: var(--article-text-tertiary); text-transform: uppercase; letter-spacing: 1px; }
.next-article-card { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.next-article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.next-article-link { display: flex; text-decoration: none; color: inherit; }
.next-article-img { width: 280px; min-height: 200px; object-fit: cover; }
.next-article-content { flex: 1; padding: 24px; }
.next-article-title { font-size: 20px; font-weight: 700; color: var(--article-text-primary); margin-bottom: 8px; line-height: 1.4; }
.next-article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--article-text-tertiary); margin-bottom: 12px; }
.next-article-desc { font-size: 15px; color: var(--article-text-secondary); line-height: 1.6; margin-bottom: 16px; }
.next-article-cta { color: var(--brand-blue); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ===== DYNAMIC LOADED ARTICLE ===== */
/* Загруженная статья отображается так же, как основная (.article-main).
   Карточка (#nextArticleCard) при этом перестаёт быть "скруглённым блоком". */
.dynamic-loaded-article { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border-color); }

/* Когда внутри карточки уже загружена полноценная статья — сбрасываем карточные стили */
.next-article-card:has(.dynamic-loaded-article) {
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
  transform: none;
}
.next-article-card:has(.dynamic-loaded-article):hover {
  box-shadow: none;
  transform: none;
}

.dynamic-loaded-header { margin-bottom: 24px; }
.dynamic-loaded-header h2 { font-size: 24px; font-weight: 700; color: var(--article-text-primary); margin-bottom: 12px; }
.dynamic-loaded-meta { display: flex; gap: 16px; font-size: 13px; color: var(--article-text-tertiary); }
.dynamic-loaded-body { font-size: 16px; line-height: 1.7; }
.dynamic-loaded-body h2 { font-size: 24px; font-weight: 700; margin-top: 32px; margin-bottom: 12px; color: var(--article-text-primary); }
.dynamic-loaded-body p { margin-bottom: 16px; color: var(--article-text-secondary); }
.dynamic-loaded-comments { margin-top: 32px; }

/* ===== SIDEBAR PRODUCTS (promo blocks) ===== */
.sidebar-products {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-product-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.sidebar-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.sidebar-product-card .spc-image { width: 100%; display: block; border-bottom: 1px solid var(--border-color); }
.sidebar-product-card .spc-image-wrap { position: relative; }
.sidebar-product-card .spc-body { padding: 14px 16px; }
.sidebar-product-card .spc-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--article-text-primary); margin-bottom: 8px; }
.sidebar-product-card .spc-price { font-size: 18px; font-weight: 700; color: var(--brand-blue); }
.sidebar-product-card .spc-badge {
  position: absolute; bottom: 10px; left: 10px;
  padding: 3px 10px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white; font-size: 11px; font-weight: 600; z-index: 2;
}

/* ==================================================================
   36. STORE — модальное окно покупки
   ================================================================== */
.checkout-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000; display: none;
    align-items: flex-start; justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.checkout-modal {
    background: #fff; border-radius: 20px;
    padding: 32px; max-width: 500px; width: 100%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
.checkout-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #999; line-height: 1;
    padding: 4px 8px; border-radius: 6px; transition: background 0.2s;
}
.checkout-close:hover { background: #f3f4f6; color: #333; }
.checkout-title {
    font-size: 22px; font-weight: 600; margin: 0 0 20px;
    color: #111;
}
.checkout-product {
    display: flex; gap: 16px; align-items: center;
    padding: 16px; background: #f8f9fa; border-radius: 12px;
    margin-bottom: 20px;
}
.checkout-product-img {
    width: 60px; height: 60px; object-fit: cover;
    border-radius: 8px; flex-shrink: 0;
}
.checkout-product-name { font-weight: 500; color: #111; }
.checkout-product-price { font-size: 18px; font-weight: 700; color: var(--brand-blue); margin-top: 4px; }
.checkout-field { margin-bottom: 16px; }
.checkout-field label {
    display: block; font-size: 14px; font-weight: 500;
    color: #333; margin-bottom: 6px;
}
.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%; padding: 10px 14px;
    border: 2px solid #e0e0e0; border-radius: 10px;
    font-size: 15px; transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff; color: #111;
}
.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--brand-blue); outline: none;
}
.checkout-field textarea { min-height: 60px; resize: vertical; }
.checkout-field select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px; cursor: pointer;
}
.checkout-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-top: 2px solid #eee; margin-top: 8px;
    font-size: 20px; font-weight: 700; color: #111;
}
.checkout-total-amount { color: var(--brand-blue); }
.checkout-note {
    font-size: 13px; color: #888; margin: 12px 0;
    padding: 10px; background: #fff8e1; border-radius: 8px;
}
.checkout-submit {
    width: 100%; padding: 14px;
    background: var(--brand-blue); color: #fff;
    border: none; border-radius: 12px; font-size: 17px;
    font-weight: 600; cursor: pointer;
    transition: all 0.3s;
}
.checkout-submit:hover { background: #0072e5; }
.checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-error {
    margin-top: 12px; padding: 10px 14px;
    background: #fef2f2; color: #dc2626; border-radius: 8px;
    font-size: 14px;
}

/* Responsive для checkout */
@media (max-width: 768px) {
    .checkout-overlay { padding: 20px 16px; align-items: center; }
    .checkout-modal { padding: 24px; }
    .checkout-title { font-size: 20px; }
}
@media (max-width: 480px) {
    .checkout-overlay { padding: 12px 12px; }
    .checkout-modal { padding: 20px; border-radius: 16px; }
}

/* ==================================================================
   CHECKOUT TERMS — чекбокс условий продажи
   ================================================================== */

.checkout-terms {
    margin-bottom: 16px;
}

.checkout-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.checkout-terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--brand-blue);
}

.checkout-terms-text {
    flex: 1;
}

.checkout-terms-text a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s;
}

.checkout-terms-text a:hover {
    color: #0072e5;
}

/* ==================================================================
   TERMS OVERLAY — вложенное модальное окно условий продажи
   ================================================================== */

.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.terms-modal {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    width: 800px;
    max-width: calc(100vw - 40px);
    height: auto;
    max-height: calc(100vh - 80px);   /* оверлей имеет padding 40px сверху/снизу */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
}

.terms-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.terms-close:hover {
    background: #f3f4f6;
    color: #333;
}

.terms-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #111;
    padding-right: 40px;
}

/* --- Табы --- */

.terms-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow-x: auto;
    flex-shrink: 0;
}

.terms-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.terms-tab:hover {
    color: #374151;
}

.terms-tab.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
    font-weight: 600;
}

/* --- Панели контента --- */

.terms-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 20px;
}

.terms-panel {
    display: none;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.terms-panel.active {
    display: block;
}

.terms-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px;
}

.terms-panel p {
    margin: 0 0 12px;
}

.terms-panel ul {
    margin: 0 0 12px;
    padding-left: 24px;
}

.terms-panel li {
    margin-bottom: 4px;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .terms-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .terms-modal {
        width: 100%;
        height: 85vh;
        max-height: 85vh;
        padding: 24px;
        border-radius: 16px;
    }

    .terms-title {
        font-size: 18px;
    }

    .terms-tabs {
        gap: 2px;
    }

    .terms-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .terms-content {
        padding-top: 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terms-modal {
        width: 100%;
        height: 85vh;
        max-height: 85vh;
        padding: 20px;
        border-radius: 12px;
    }

    .terms-tabs {
        flex-wrap: wrap;
    }

    .terms-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 8px;
        font-size: 12px;
    }
}
