/* ==========================================================================
   6. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================================================== */

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 100px 40px 40px; overflow: hidden; }
.hero-content { max-width: 1280px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(28px, 3.5vw, 52px); font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; color: var(--black); max-width: 900px; margin-bottom: 20px; min-height: 180px; }
.hero-line { display: block; }
.hero-accent { color: var(--black); transition: color 1.2s ease-in-out; }
.hero-accent.colored { color: var(--orange); }
.hero-desc { font-size: 15px; line-height: 1.8; color: var(--gray); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.blinking-cursor { display: inline-block; width: 0; position: relative; vertical-align: baseline; }
.blinking-cursor::after { content: ''; position: absolute; left: 2px; bottom: -0.1em; width: 0.5em; height: 1.1em; background-color: var(--black); animation: blink-cursor 1s step-end infinite; }

@media (min-width: 769px) { .nowrap-desktop { white-space: nowrap; } }
@media (max-width: 768px) { .mobile-block { display: block; } }

/* ==========================================================================
   7. ВВЕДЕНИЕ И О НАС (INTRO & ABOUT)
   ========================================================================== */

.intro-section, .about { background: var(--light-gray); }
.intro-text p, .about-text p { font-size: 16px; line-height: 1.8; color: var(--gray); margin-bottom: 20px; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-highlight { font-weight: 600; color: var(--orange); }
.intro-cta { margin-top: 32px; }
.intro-side { padding-top: 8px; }

.about-quote { border-left: 3px solid var(--orange); padding-left: 24px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--dark-gray); text-transform: uppercase; letter-spacing: 0.02em; margin: 32px 0; }
.intro-side .about-quote { font-size: 18px; margin-top: 0; margin-bottom: 32px; }

.about-text h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.04em; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.principle { background: var(--white); padding: 20px; border: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
.principle strong { display: block; font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; color: var(--orange); }

/* ==========================================================================
   8. ЖУРНАЛ И БЛОГ (LOGS)
   ========================================================================== */

.log-card { padding: 32px; cursor: pointer; }
.log-date { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.log-tag { display: inline-block; font-family: var(--font-heading); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; background: var(--light-gray); color: var(--dark-gray); padding: 4px 10px; margin-bottom: 16px; }
.log-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; text-transform: uppercase; }
.log-card p { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 24px; }
.log-link { font-family: var(--font-heading); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.log-link:hover { color: var(--black); }
.log-cover { margin-top: 16px; width: 100%; height: 160px; object-fit: cover; background: var(--light-gray); }

.log-tabs, .geo-tabs, .gallery-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.log-pagination, .merch-pagination, .assort-pagination, .assort-pagination-top, .merch-pagination-top { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.assort-pagination-top, .merch-pagination-top { margin-top: 0; margin-bottom: 0; }
.log-pagination span, .merch-pagination span, .assort-pagination span, .assort-pagination-top span, .merch-pagination-top span { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--black); }

/* ==========================================================================
   9. ПРОДУКЦИЯ И МЕРЧ
   ========================================================================== */

.products { background: var(--light-gray); }
.product-card { display: flex; flex-direction: column; cursor: pointer; }
.product-visual { height: 200px; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: #e0e0e0; }
.product-visual::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px); }
.product-visual span { font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gray); z-index: 2; background: rgba(255,255,255,0.7); padding: 4px 8px; position: relative; }
.product-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }

/* Плашки линеек (Dry Refactoring) */
.product-series { display: inline-block; padding: 2px 12px; font-family: var(--font-heading); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--orange); margin-bottom: 8px; }
.product-name, .assort-lineup { font-weight: 700; text-transform: uppercase; }
.product-name { font-family: var(--font-heading); font-size: 18px; margin-bottom: 12px; letter-spacing: 0.02em; }
.assort-lineup { padding: 2px 8px; display: inline-block; color: var(--orange); }

.product-name.lineup-основа, .assort-lineup.lineup-основа { color: var(--black); background: var(--white); border: 1px solid var(--border); }
.product-name.lineup-лаб, .assort-lineup.lineup-лаб { color: var(--black); background: #FFD700; }
.product-name.lineup-свой, .assort-lineup.lineup-свой { color: var(--white); background: #2F2F2F; }
.product-name.lineup-монолит, .assort-lineup.lineup-монолит { color: var(--white); background: #000000; }
.product-name[class*="lineup-"] { display: inline-block; padding: 2px 12px; margin-bottom: 12px; font-size: inherit; width: auto; }

.product-specs { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.spec { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }
.spec strong { color: var(--black); font-weight: 600; }
.product-desc { font-size: 13px; line-height: 1.6; color: var(--gray); margin-bottom: 14px; flex: 1; }
.product-prices { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.product-prices th, .product-prices td { padding: 8px 0; text-align: left; border-bottom: 1px solid var(--border); }
.product-prices th { font-family: var(--font-heading); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); font-weight: 600; }
.product-prices td { font-weight: 600; color: var(--black); }
.product-meta span { display: flex; align-items: center; gap: 6px; }

/* Мерч */
.merch-card { display: flex; flex-direction: column; }
.merch-visual-wrapper { position: relative; overflow: hidden; }
.merch-visual { height: 260px; background: var(--light-gray); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.merch-visual img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.merch-visual.empty::before { content: ''; position: absolute; width: 80px; height: 80px; background: var(--black); opacity: 0.05; transform: rotate(45deg); }
.merch-prev, .merch-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: var(--white); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, opacity 0.3s; z-index: 5; opacity: 0; }
.merch-prev:hover, .merch-next:hover { background: rgba(0,0,0,0.8); }
.merch-visual-wrapper:hover .merch-prev, .merch-visual-wrapper:hover .merch-next { opacity: 1; }
.merch-prev { left: 8px; }
.merch-next { right: 8px; }
.merch-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.merch-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; border: 1px solid rgba(0,0,0,0.2); }
.merch-dot.active { background: var(--orange); border-color: var(--orange); }
.merch-dot:hover { background: var(--white); }

.merch-info { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.merch-name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.02em; }
.merch-desc { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.merch-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.merch-price { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--black); }
.merch-price span { font-size: 14px; color: var(--gray); font-weight: 600; }
.merch-status { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: 4px 10px; background: var(--light-gray); color: var(--gray); }
.merch-status.in-stock { background: rgba(0,0,0,0.05); color: var(--black); border: 1px solid var(--border); }
.add-to-cart { flex: 1; padding: 8px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-heading); font-weight: 600; border: 2px solid var(--orange); background: var(--orange); color: var(--black); cursor: pointer; transition: all 0.3s; text-align: center; }
.add-to-cart:hover { background: transparent; color: var(--orange); }
.add-to-cart.added { background: var(--black); border-color: var(--black); color: var(--white); }

/* ==========================================================================
   10. ТАБЛИЦА АССОРТИМЕНТА (ASSORTMENT)
   ========================================================================== */

.assort-section { background: var(--white); }
#assortiment .section-header { margin-bottom: 24px; }
.assort-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.assort-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.assort-search { display: flex; align-items: center; gap: 8px; }
.assort-search input { padding: 8px 12px; border: 1px solid var(--border); font-family: var(--font-body); font-size: 14px; min-width: 200px; transition: border-color 0.3s; }
.assort-search input:focus { outline: none; border-color: var(--orange); }

.assort-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.assort-table th:nth-child(1), .assort-table td:nth-child(1) { width: 8%; }
.assort-table th:nth-child(2), .assort-table td:nth-child(2) { width: 18%; }
.assort-table th:nth-child(3), .assort-table td:nth-child(3) { width: 30%; }
.assort-table th:nth-child(4), .assort-table td:nth-child(4) { width: 5%; }
.assort-table th:nth-child(5), .assort-table td:nth-child(5) { width: 8%; text-align: center; }
.assort-table th:nth-child(6), .assort-table td:nth-child(6) { width: 7%; text-align: center; }
.assort-table th:nth-child(7), .assort-table td:nth-child(7) { width: 7%; }
.assort-table th:nth-child(8), .assort-table td:nth-child(8) { width: 7%; }
.assort-table th:nth-child(9), .assort-table td:nth-child(9) { width: 11%; text-align: center; vertical-align: middle; white-space: nowrap; }

.status-col { text-align: center; }
.assort-table th { text-align: left; padding: 12px 6px; background: var(--black); color: var(--white); font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; user-select: none; position: relative; word-wrap: break-word; white-space: nowrap; }
.assort-table th:hover { color: var(--orange); }
.assort-table th .sort-arrow { display: inline-block; margin-left: 6px; font-size: 12px; opacity: 0.6; }
.assort-table td { padding: 12px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; word-wrap: break-word; overflow-wrap: break-word; }
.assort-table tbody tr { transition: background-color 0.2s ease; }
.assort-table tbody tr:hover { background-color: rgba(0,0,0,0.03); }

.assort-name { font-weight: 600; }
.assort-year, .assort-batch { font-size: 12px; color: var(--gray); }
.assort-detail-line { font-size: 11px; color: var(--gray); line-height: 1.4; }
.assort-detail-line strong { color: var(--black); font-weight: 600; }

.assort-price-block { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.assort-price-block .old { text-decoration: line-through; font-size: 12px; color: var(--gray); }
.assort-price-block .new { font-weight: 700; font-size: 14px; color: var(--black); }
.assort-price-block .discount-label { font-size: 11px; color: var(--orange); font-weight: 600; }

.assort-social-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.assort-social-links a { font-size: 10px; text-transform: uppercase; color: var(--orange); text-decoration: none; font-weight: 600; }
.assort-social-links a:hover { text-decoration: underline; }

.assort-stock, .assort-status { white-space: nowrap; display: inline-block; }
.assort-stock { padding: 4px 8px; font-size: 11px; font-weight: 600; border-radius: 2px; }
.assort-stock.in-stock { background: rgba(46,204,113,0.15); color: #27ae60; }
.assort-stock.low { background: rgba(230,126,34,0.15); color: #e67e22; }
.assort-stock.out { background: rgba(192,57,43,0.15); color: #c0392b; }
.assort-status { font-size: 11px; text-transform: uppercase; color: var(--gray); font-weight: 600; padding-top: 4px; }
.assort-actions { display: inline-flex; align-items: center; gap: 4px; justify-content: center; flex-wrap: nowrap; }

/* ==========================================================================
   12. ГЕОГРАФИЯ, ТРЕКИНГ И ИНТЕРАКТИВНЫЕ КАРТЫ
   ========================================================================== */

.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.city-card { padding: 24px; }
.city-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.02em; }
.city-locations { display: flex; flex-direction: column; gap: 16px; }
.location-item { display: flex; gap: 12px; border-left: 2px solid var(--orange); padding-left: 12px; }
.loc-type { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--orange); min-width: 60px; }
.loc-name { font-weight: 600; font-size: 14px; }
.loc-addr { font-size: 12px; color: var(--gray); }
.loc-site-link { display: inline-block; margin-top: 4px; font-size: 11px; text-transform: uppercase; color: var(--orange); text-decoration: none; }
.loc-site-link:hover { text-decoration: underline; }

.map-wrapper { position: relative; width: 100%; background: var(--white); border: 1px solid var(--border); overflow: visible; margin-bottom: 20px; }
#geo-topography-map, #geo-expansion-map { width: 100%; height: 550px; z-index: 1; background-color: var(--light-gray); }

.map-legend { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 16px; background: var(--white); border: 1px solid var(--border); border-top: none; font-size: 12px; font-family: var(--font-body); color: var(--gray); }
.map-legend .legend-item { display: flex; align-items: center; gap: 8px; }
.map-legend .legend-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.legend-dot.orange { background-color: var(--orange); }
.legend-dot.green { background-color: #27ae60; }
.legend-dot.red { background-color: #c0392b; }

.custom-map-marker { display: flex !important; align-items: center; justify-content: center; width: 14px !important; height: 14px !important; border-radius: 50% !important; border: 2px solid var(--white) !important; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.marker-validated { background-color: var(--orange) !important; }
.marker-inprogress { background-color: #27ae60 !important; position: relative; }
.marker-inprogress::after { content: ''; position: absolute; inset: -4px; border: 2px solid #27ae60; border-radius: 50%; animation: map-pulse 1.8s infinite ease-in-out; }
.marker-planned { background-color: #c0392b !important; position: relative; }
.marker-planned::after { content: ''; position: absolute; inset: -4px; border: 2px solid #c0392b; border-radius: 50%; animation: map-pulse 1.8s infinite ease-in-out; }

.ol-popup-custom {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 2px; box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  padding: 12px; width: max-content; max-width: 250px; font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--black); z-index: 1000;
}
.ol-popup-custom::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border-width: 6px 6px 0; border-style: solid; border-color: var(--border) transparent transparent transparent; }
.ol-popup-custom::before { content: ''; position: absolute; bottom: -5px; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-style: solid; border-color: var(--white) transparent transparent transparent; z-index: 1; }

.tt-region { font-family: var(--font-heading); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; color: var(--orange); }
.tt-coord { font-family: monospace; font-size: 10px; color: var(--gray); margin-bottom: 6px; }

.tracking-grid { display: flex; flex-direction: column; gap: 16px; }
.track-item { border-left: 2px solid var(--black); padding: 20px 24px; background: var(--light-gray); transition: all 0.3s ease; }
.track-item:hover { border-color: var(--orange); background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.track-region { font-family: var(--font-heading); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.track-meta { display: flex; gap: 20px; font-size: 11px; color: var(--gray); font-family: var(--font-heading); margin: 8px 0 12px; text-transform: uppercase; letter-spacing: 0.1em; flex-wrap: wrap; }
.track-coord { color: var(--black); font-weight: 600; }
.track-desc { font-size: 14px; line-height: 1.6; color: var(--gray); }

/* ==========================================================================
   13. ГАЛЕРЕЯ И ВИДЕО (GALLERY & VIDEO)
   ========================================================================== */

.gallery { background: var(--light-gray); }
#gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; grid-auto-rows: 180px; }
.gallery-category-card { position: relative; overflow: hidden; cursor: pointer; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; min-height: 180px; background: var(--light-gray); }
.gallery-category-card:nth-child(3n+1) { grid-row: span 2; grid-column: span 2; }
.gallery-category-card:nth-child(5n+2) { grid-row: span 1; grid-column: span 1; }
.gallery-category-card:nth-child(7n+3) { grid-row: span 2; grid-column: span 1; }
.gallery-category-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.gallery-category-cover { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; transition: transform 0.5s ease; }
.gallery-category-card:hover .gallery-category-cover { transform: scale(1.05); }

.gallery-category-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: var(--white); transition: background 0.3s ease; }
.gallery-category-card:hover .gallery-category-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%); }
.gallery-category-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.gallery-category-count { font-size: 13px; font-weight: 400; opacity: 0.8; letter-spacing: 0.05em; }
.gallery-category-description { font-size: 12px; opacity: 0.8; margin-top: 4px; display: none; }
.gallery-category-card:hover .gallery-category-description { display: block; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gal-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); transform: translateY(100%); transition: transform 0.3s; }
.gallery-item:hover .gal-caption { transform: translateY(0); }
.gal-caption strong { display: block; font-family: var(--font-heading); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; color: var(--orange); }
.gal-caption span { font-size: 14px; }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px); }
.gallery-placeholder span { font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray); font-weight: 700; }

/* Видео галерея */
#video-grid { margin-top: 16px; }
#video-grid .video-card { overflow: hidden; display: flex; flex-direction: column; }
#video-grid .video-thumb { width: 100%; height: 200px; background: var(--dark-gray); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
#video-grid .video-thumb iframe { width: 100%; height: 100%; border: none; }
#video-grid .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
#video-grid .video-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
#video-grid .video-platform { font-family: var(--font-heading); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 6px; }
#video-grid .video-title { font-family: var(--font-heading); font-size: 14px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
#video-grid .video-link { font-size: 11px; text-decoration: none; color: var(--gray); margin-top: auto; }
#video-grid .video-link:hover { color: var(--orange); }

.gallery-block { display: block; }
.gallery-block.hidden { display: none; }

/* ----- ВИДЕО-КАРТОЧКИ (единый размер) ----- */
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
  height: 100%;
}

.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Соотношение 16:9 для горизонтальных */
  background: #000;
  overflow: hidden;
}

/* Для вертикальных видео (Shorts) можно использовать другое соотношение, но чтобы плитки были одинакового размера – оставляем 16:9 */
.video-thumb iframe,
.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover; /* Обрезка по центру для вертикальных видео */
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 40px;
  opacity: 0.7;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.video-info {
  padding: 12px 16px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-platform {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.video-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
  flex-grow: 1;
}

.video-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  align-self: flex-start;
}

.video-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   15. ПЭЙРИНГ И ПОДАЧА
   ========================================================================== */

.pairing-block h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.05em; }
.pairing-block p { font-size: 15px; line-height: 1.8; color: var(--gray); margin-bottom: 24px; }

.temp-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14px; }
.temp-table th { font-family: var(--font-heading); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; padding: 12px 16px; background: var(--white); color: var(--orange); font-weight: 700; border-bottom: 2px solid var(--orange); white-space: nowrap; }
.temp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--gray); }
.temp-table td:first-child { font-family: var(--font-heading); font-weight: 700; color: var(--black); text-transform: uppercase; font-size: 13px; }
.temp-table td:not(:first-child) { white-space: nowrap; }

.glass-item { border: 1px solid var(--border); padding: 20px; background: var(--white); }
.glass-item strong { display: block; font-family: var(--font-heading); font-size: 12px; text-transform: uppercase; margin-bottom: 4px; color: var(--orange); }
.glass-item span { font-size: 13px; color: var(--gray); }

/* ==========================================================================
   16. АВТОРИЗАЦИЯ И ЛИЧНЫЙ КАБИНЕТ
   ========================================================================== */

#auth-controls { display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
#auth-controls.fade-in { opacity: 1 !important; transform: none !important; }

.club-auth-panel, .guest-auth-panel {
  display: flex !important; justify-content: space-between; align-items: center; padding: 16px 20px;
  background: var(--light-gray); border: 1px solid var(--border); border-left: 4px solid var(--orange); font-size: 14px; margin-bottom: 24px;
}
.club-auth-panel { background: #FFF3E0; border-left: 3px solid var(--orange); font-size: 13px; font-weight: 500; }
.guest-auth-panel { background: #FAFAFA; font-size: 13px; border-left: 1px solid var(--border); }
.club-auth-panel .btn, .guest-auth-panel .btn { padding: 8px 20px; font-size: 11px; }

.club-form-group { margin-bottom: 16px; }
.club-form-group label, .profile-content .form-group label {
  display: block; font-family: var(--font-heading); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 6px;
}
.profile-content .form-group label { font-weight: 600; letter-spacing: 0.08em; margin-bottom: 4px; }

/* Личный кабинет (Модалка и Лейаут) */
.profile-btn { background: transparent; border: 1px solid var(--border); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray); transition: all 0.3s; position: relative; }
.profile-btn:hover, .profile-btn.active { border-color: var(--orange); color: var(--orange); }
.profile-modal-content { background: var(--white); width: 90%; max-width: 900px; height: 85vh; max-height: 90vh; min-height: 500px; border-radius: 2px; position: relative; display: flex; flex-direction: column; overflow: hidden; }

.profile-tabs { width: 200px; border-right: 1px solid var(--border); padding: 16px 0; flex-shrink: 0; overflow-y: auto; background: var(--white); }
.profile-tab { display: block; width: 100%; padding: 12px 40px 12px 24px; text-align: left; background: none; border: none; font-family: var(--font-heading); font-size: 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); cursor: pointer; transition: background 0.3s, color 0.3s; position: relative; overflow: visible; }
.profile-tab:hover { background: rgba(0, 0, 0, 0.04); color: var(--black); }
.profile-tab.active { color: var(--black); font-weight: 700; }

.profile-content { flex: 1; padding: 24px; overflow-y: auto; background: var(--white); }
.profile-content h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.profile-content .form-group { margin-bottom: 16px; }
.profile-content .fav-star { color: var(--orange); margin-right: 8px; margin-left: 0; }
.fav-star-merch { position: absolute; top: 8px; right: 8px; color: var(--orange); font-size: 20px; z-index: 5; background: rgba(255, 255, 255, 0.8); padding: 4px 8px; border-radius: 4px; }

/* Чаты и заказы */
.new-order { border-left: 3px solid #27ae60 !important; background-color: rgba(39, 174, 96, 0.05) !important; }
.order-new-label { background: #27ae60; color: #fff; padding: 2px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: 2px; margin-right: 8px; }

.chat-conv-item { padding: 12px; border: 1px solid var(--border); background: var(--white); cursor: pointer; }
.chat-conv-item:hover { border-color: var(--orange); background: rgba(255, 140, 0, 0.05); }
#chat-messages { max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
#chat-messages div { margin-bottom: 8px; }
#chat-delete-btn { padding: 4px 12px; }
.event-register-btn, .event-unregister-btn, .event-feedback-btn { padding: 6px 16px; }

/* ===== Дополнительные правки для карточек и табов (из раздела 20) ===== */
/* Выравнивание карточек ассортимента по высоте */
.product-grid {
  align-items: stretch;
}
.product-info {
  justify-content: space-between;
}

/* Возвращаем бейджи уведомлений в одну линию с текстом */
.profile-tab {
  display: flex;
  align-items: center;
  justify-content: space-between; 
}