/* Grid toggle hidden by default */

.grid-toggle-btn { display: none; }

/* Strip скрыт по умолчанию, показывается в @media */

.mobile-sidebar-strip { display: none; }

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */

:root {
  --bg-primary: #0d0d0f;
  --bg-secondary: #141417;
  --bg-card: #1a1a1f;
  --bg-hover: #22222a;
  --accent: #e8334a;
  --accent-dark: #b5243a;
  --accent-glow: rgba(232, 51, 74, 0.25);
  --gold: #c9a84c;
  --text-primary: #ffffff;
  --text-secondary: #c8c6c2;
  --text-muted: #8a8886;
  --border: #2a2a30;
  --border-light: #333340;
  --sidebar-width: 220px;
  --sidebar-right-width: 300px;
  --header-height: 80px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-layout {
  width: 100%;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  padding: 0 20px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.logo-tagline {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.highlight {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nav-link.highlight:hover {
  background: var(--accent-dark);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input {
  background: none;
  border: none;
  outline: none;
  padding: 9px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  width: 200px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  padding: 9px 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.search-btn:hover { color: var(--accent); background: transparent; }

/* ============================================================
   CONTENT AREA
   ============================================================ */

.content-area {
  display: flex;
  gap: 0;
  flex: 1;
  width: 100%;
  padding: 0;
}

/* ============================================================
   SIDEBAR LEFT
   ============================================================ */

.sidebar-left {
  width: var(--sidebar-right-width);
  flex-shrink: 0;
  padding: 24px 0;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 0 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-title .ico {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.sidebar-list li {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sidebar-list a {
  display: block;
  padding: 6px 8px;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-list a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  padding-left: 12px;
}

.sidebar-list a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* 2-column sidebar list */
.sidebar-list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.sidebar-list-2col li {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sidebar-list-2col a {
  padding: 5px 6px;
  font-size: 12px;
}

/* Category badge count */

.cat-count {
  float: right;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 1px 6px;
  border-radius: 10px;
  margin-top: 2px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  flex: 1;
  padding: 16px 16px;
  min-width: 0;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR RIGHT
   ============================================================ */

.sidebar-right {
  width: var(--sidebar-right-width);
  flex-shrink: 0;
  padding: 24px 0;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--text-primary);
  line-height: 1;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   RELATED TAGS BAR
   ============================================================ */

.related-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.related-bar strong {
  color: var(--text-secondary);
  margin-right: 4px;
}

.tag-link {
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ============================================================
   GALLERY GRID (MAIN)
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  margin-bottom: 28px;
}

.gallery-card {
  background: var(--bg-card);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  contain: layout style;
  will-change: transform;
}

.gallery-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  z-index: 2;
  position: relative;
}

.gallery-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-hover);
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.06);
}

.gallery-card-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 12px 12px;
}

.gallery-card:hover .gallery-card-img .overlay {
  opacity: 1;
}

.overlay-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.overlay-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.overlay-cat {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.overlay-date {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

.overlay-btn {
  display: none;
}

.gallery-card-info {
  padding: 10px 12px;
}

.gallery-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.gallery-card-meta .category {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}

.gallery-card-meta .category:hover {
  color: var(--text-primary);
}

.gallery-card-meta .date {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PLACEHOLDER IMAGE (no real images)
   ============================================================ */

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 50%, var(--bg-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 32px;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 0 10px;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.page-btn.prev, .page-btn.next {
  padding: 0 16px;
  font-weight: 600;
}

/* ============================================================
   RIGHT SIDEBAR THUMBNAILS
   ============================================================ */

.sidebar-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  aspect-ratio: 2/3;
  background: var(--bg-hover);
}

.sidebar-thumb:hover {
  border-color: var(--accent);
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.sidebar-thumb:hover img {
  transform: scale(1.08);
}

.sidebar-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

/* ============================================================
   SECTION DESCRIPTION TEXT
   ============================================================ */

.section-desc {
  content-visibility: auto;
  contain-intrinsic-size: 0 200px;
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.section-desc h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-style: italic;
}

.section-desc h2 span {
  color: var(--accent);
  font-style: normal;
}

.section-desc p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

/* ============================================================
   GALLERY SINGLE PAGE
   ============================================================ */

.gallery-single-header {
  margin-bottom: 20px;
}

.gallery-single-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1;
}

.gallery-single-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}

.gallery-single-meta .badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.gallery-single-desc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gallery-single-desc strong {
  color: var(--text-primary);
}

.gallery-single-desc .tags-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-photo {
  aspect-ratio: 2/3;
  background: var(--bg-hover);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-photo:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232,51,74,0.08) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.cta-box h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

/* ============================================================
   MODELS PAGE
   ============================================================ */

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.model-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.model-card-img {
  aspect-ratio: 2/3;
  background: var(--bg-hover);
  overflow: hidden;
}

.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.model-card:hover .model-card-img img {
  transform: scale(1.07);
}

.model-card-name {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.model-card-count {
  padding: 0 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 16px;
}

.blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 28px;
}

.search-hero h1 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.search-hero h1 span {
  color: var(--accent);
}

.search-form-large {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-form-large:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-form-large input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 14px 24px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.search-form-large button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--transition);
}

.search-form-large button:hover {
  background: var(--accent-dark);
}

.search-result-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.search-result-count strong {
  color: var(--accent);
  font-size: 16px;
}

/* ============================================================
   POPUP / LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 36px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-nav {
  display: flex;
  gap: 12px;
}

.lightbox-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: auto;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.footer-inner {
  width: 100%;
  padding: 40px 20px 24px;
}

.footer-top {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 0 0 220px;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-logo-name span {
  color: var(--accent);
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-top: 16px;
}

/* ============================================================
   SORT BAR
   ============================================================ */

.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.sort-bar strong {
  color: var(--text-secondary);
}

.sort-btn {
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sort-btn:hover, .sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* ============================================================
   MOBILE HAMBURGER
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
  .sidebar-right { display: none; }
}

@media (max-width: 1100px) {
  .sidebar-left { display: none; }

  .hamburger { display: flex !important; }
  .header-nav { display: none; }
  .search-input { width: 140px; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2px;
  }

/* Мобильное меню — выпадает под хедером */

.mobile-nav {
    display: block !important;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    z-index: 900;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    pointer-events: none;
  }

  .mobile-nav.open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .mobile-nav-inner {
    padding: 8px 0 12px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, padding 0.15s ease;
    letter-spacing: 0.3px;
  }

  .mobile-nav-link:last-child { border-bottom: none; }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
    padding-left: 30px;
  }

  .mobile-nav-link.highlight {
    color: var(--accent);
    font-weight: 600;
  }

  .mobile-nav-link .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
  }
  .mobile-nav-link:hover .nav-icon,
  .mobile-nav-link.active .nav-icon { opacity: 1; }
  .mobile-nav-link.highlight .nav-icon svg { stroke: var(--accent); }

/* Оверлей за меню */

.mobile-nav-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0,0,0,0.5);
    z-index: 899;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-overlay.open {
    pointer-events: auto;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .gallery-photos {
    grid-template-columns: repeat(3, 1fr);
  }
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .header-inner { gap: 12px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gallery-card, .model-card, .blog-card {
  animation: fadeInUp 0.4s ease both;
}

.gallery-card:nth-child(1)  { animation-delay: 0.03s; }
.gallery-card:nth-child(2)  { animation-delay: 0.06s; }
.gallery-card:nth-child(3)  { animation-delay: 0.09s; }
.gallery-card:nth-child(4)  { animation-delay: 0.12s; }
.gallery-card:nth-child(5)  { animation-delay: 0.15s; }
.gallery-card:nth-child(6)  { animation-delay: 0.18s; }
.gallery-card:nth-child(n+7) { animation-delay: 0.20s; }

/* ============================================================
   NOTICE BAR (top of page)
   ============================================================ */

.notice-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 7px 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Page transition overlay */

.page-intro {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   SITE BANNER (под хедером)
   ============================================================ */

.site-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-top: none;
  position: relative;
  overflow: hidden;
}

.site-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}

.site-banner-inner {
  width: 100%;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-banner-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-primary);
  font-style: italic;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-banner-title span {
  color: var(--accent);
  font-style: normal;
}

.site-banner-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.site-banner-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.site-banner-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.site-banner-stat {
  text-align: center;
}

.site-banner-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
  display: block;
}

.site-banner-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
  display: block;
}

@media (max-width: 1100px) {
  .site-banner-stats { display: none; }
  .site-banner-divider { display: none; }
  .site-banner-inner { gap: 16px; padding: 14px 20px; }
  .site-banner-title { font-size: 16px; }
}

@media (max-width: 560px) {
  .site-banner-text { display: none; }
}

/* ============================================================
   TRENDING TAGS BLOCK
   ============================================================ */

.trending-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.trending-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
  max-height: 36px;
  transition: max-height 0.35s ease;
}

.trending-tags.expanded {
  max-height: 400px;
}

.trending-tags .tag-link {
  font-size: 11px;
  padding: 3px 9px;
  white-space: nowrap;
}

.trending-tags .tag-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.trending-more-btn {
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.trending-more-btn:hover { color: var(--text-primary); }

.trending-more-btn.visible { display: flex; }

.trending-more-btn .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.trending-more-btn.open .arrow { transform: rotate(180deg); }

/* Hamburger → X анимация */

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hamburger span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Mobile nav — скрыт по умолчанию на всех экранах */

.mobile-nav { display: none; }
.mobile-nav-overlay { display: none; }
.hamburger { display: none; }

/* ── Мобильный хедер: лого по центру, поиск скрыт ── */

@media (max-width: 1100px) {
  .header-inner {
    position: relative;
    justify-content: center;
  }

/* Гамбургер — слева */

.hamburger {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

/* Кнопка поиска — справа */

.header-search-toggle {
    display: flex !important;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
    transition: color var(--transition);
  }
  .header-search-toggle:hover { color: var(--accent); }

/* Лого по центру */

.logo {
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

/* Поиск скрыт по умолчанию на мобильном */

.header-search {
    display: none !important;
    position: absolute;
    left: 56px;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 40px;
    z-index: 10;
    animation: fadeInSearch 0.2s ease;
  }

  .header-search.mobile-open {
    display: flex !important;
  }

/* Когда поиск открыт — прячем лого */

.logo.search-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .header-search .search-input {
    width: 100%;
  }

  @keyframes fadeInSearch {
    from { opacity: 0; transform: translateY(-50%) scaleX(0.9); }
    to   { opacity: 1; transform: translateY(-50%) scaleX(1); }
  }
}

/* Кнопка поиска-тогл — скрыта на десктопе */

.header-search-toggle { display: none; }

/* ── Trending: горизонтальный скролл на мобильном ── */

@media (max-width: 1100px) {
  .trending-more-btn { display: none !important; }

  .trending-tags {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .trending-tags::-webkit-scrollbar { display: none; }

  .trending-tags .tag-link {
    flex-shrink: 0;
  }
}

/* Sticky sidebars scrollbar */

.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar { width: 3px; }
.sidebar-left::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Промежуточный breakpoint: компактное меню 1100-1280px ── */

@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-link {
    padding: 7px 7px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .logo-name { font-size: 22px; }
  .logo-tagline { display: none; }
  .search-input { width: 150px; }
}

/* ── Скрыть баннер на очень узких экранах ── */

@media (max-width: 560px) {
  .site-banner { display: none; }
}


.sidebar-thumb-date {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ── Правый сайдбар на мобильном — горизонтальная полоса ── */

@media (max-width: 1280px) {

/* Скрываем оригинальный сайдбар */

.sidebar-right {
    display: none;
  }

/* Контент-область — column на мобильном */

.content-area {
    flex-direction: row;
    flex-wrap: wrap;
  }

/* Горизонтальная полоса тумбов */

.mobile-sidebar-strip {
    display: block;
    width: 100%;
    order: 3;
    padding: 0 16px;
    margin-bottom: 8px;
  }

  .mobile-sidebar-strip .strip-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 12px 0 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-sidebar-strip .strip-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
  }

  .mobile-sidebar-strip .strip-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .mobile-sidebar-strip .strip-thumbs::-webkit-scrollbar {
    display: none;
  }

  .mobile-sidebar-strip .strip-thumb {
    flex-shrink: 0;
    width: 140px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
  }

  .mobile-sidebar-strip .strip-thumb:hover {
    border-color: var(--accent);
  }

  .mobile-sidebar-strip .strip-thumb img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .mobile-sidebar-strip .strip-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 6px 5px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
  }

  .mobile-sidebar-strip .strip-thumb-date {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    margin-top: 1px;
  }
}

/* ── Mobile nav categories dropdown ── */

.mobile-nav-dropdown {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-dropdown-btn {
  width: 100%;
  text-align: left;
  border-bottom: none !important;
  display: flex !important;
  background: none;
  font-family: var(--font-body);
}

.mobile-cat-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--bg-primary);
}

.mobile-cat-list.open {
  max-height: 2000px;
}

.mobile-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 20px 9px 52px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, padding 0.15s ease;
  text-decoration: none;
}

.mobile-cat-item:last-child { border-bottom: none; }

.mobile-cat-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  padding-left: 58px;
}

.mobile-cat-item span {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.mobile-cat-arrow.open {
  transform: rotate(180deg) !important;
}


@media (max-width: 560px) {
  .grid-toggle-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
  }

  .grid-toggle-btn:hover,
  .grid-toggle-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
  }

  .gallery-grid.single-col {
    grid-template-columns: 1fr !important;
  }
}

/* ── Sort bar на маленьком экране ── */

@media (max-width: 560px) {
  .sort-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sort-bar strong {
    width: 100%;
    margin-bottom: 2px;
  }

  .sort-bar-buttons {
    display: flex;
    gap: 6px;
    flex: 1;
  }

  .grid-toggle-btn {
    margin-left: 0;
    flex-shrink: 0;
  }
}

/* ── Promo links block ── */

.promo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.promo-block-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.promo-block-title span {
  color: var(--accent);
}

.promo-block-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.promo-block-text strong {
  color: var(--text-primary);
}

.promo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.promo-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.promo-link.hot {
  background: rgba(232,51,74,0.1);
  border-color: rgba(232,51,74,0.3);
  color: var(--accent);
}

.promo-link.hot:hover {
  background: var(--accent);
  color: #fff;
}

.promo-link svg {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .promo-links { gap: 6px; }
  .promo-link { font-size: 11px; padding: 6px 12px; }
}

/* ── Quick links strip ── */

.quick-links-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.quick-links-strip::-webkit-scrollbar { display: none; }

.quick-links-strip .ql-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 4px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quick-link.hot {
  background: rgba(232,51,74,0.1);
  border-color: rgba(232,51,74,0.35);
  color: var(--accent);
}

.quick-link.hot:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Ad banners ── */

.ad-banner-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.ad-banner-wrap .ad-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 5px 0 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ad-banner-holder {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-banner-inner {
  width: 300px;
  height: 250px;
  flex-shrink: 0;
  transform-origin: center center;
}
.sidebar-thumb.ad-banner-wrap {
  aspect-ratio: 2/3;
}

/* Ad card in gallery grid */

.gallery-card.ad-banner-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
  padding-top: calc(100% * 4 / 3);
}
.gallery-card.ad-banner-wrap .ad-banner-holder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-card.ad-banner-wrap .ad-banner-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  width: 300px;
  height: 250px;
}

/* ── Promo text card in gallery grid ── */

.gallery-card.promo-text-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding-top: calc(100% * 4 / 3);
}
.promo-text-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.promo-text-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-card);
}
.promo-text-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.promo-text-body::-webkit-scrollbar { width: 3px; }
.promo-text-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.promo-text-body p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 10px 0;
}
.promo-text-body p:last-child { margin-bottom: 0; }
.text-link {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
.text-link:hover { color: #ff4d65; text-decoration: underline; }

/* ── Promo links card ── */

.gallery-card.promo-links-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding-top: calc(100% * 4 / 3);
}
.promo-links-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.promo-links-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.promo-links-body::-webkit-scrollbar { width: 3px; }
.promo-links-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.promo-site-link {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--accent) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .15s, background .15s;
}
.promo-site-link:hover {
  color: #ff4d65 !important;
  background: var(--bg-hover);
}
.promo-site-link.active {
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent);
  font-weight: 700;
}
/* ============================================================
   COMMENTS
   ============================================================ */

.comments-section {
  margin-top: 28px;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}
.comments-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.comment-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.comment-form input[type="text"] {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 12px;
  outline: none;
  transition: border-color .2s;
}
.comment-form input[type="text"]:focus { border-color: var(--accent); }
.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  gap: 12px;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.comment-body  { flex: 1; min-width: 0; }
.comment-head  { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-name  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.comment-date  { font-size: 11px; color: var(--text-muted); }
.comment-text  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.comment-like  {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.comment-like:hover { color: var(--accent); }