/* ==========================================================================
   МУЖСКОЙ ВЕСТНИК (MASCULINE CHRONICLE) - Newspaper & Editorial Stylesheet
   Design style: Classic Vintage/Modern Newspaper
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,400;1,700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --bg-paper: #fdfbf7;
  --bg-card: #ffffff;
  --bg-secondary: #f4efe4;
  --text-main: #1c1b18;
  --text-muted: #59554e;
  --border-color: #2c2a29;
  --border-light: #dfd8cb;
  --accent-red: #8b0000;
  --accent-gold: #c59b27;
  --accent-navy: #1a2a3a;
  
  --font-masthead: 'Cinzel', 'Times New Roman', serif;
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'Merriweather', Georgia, serif;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --container-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-paper);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 20px;
}

/* Container */
.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Newspaper Top Bar & Header */
.top-notice-bar {
  background: var(--text-main);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.top-notice-bar a {
  color: #ffd700;
  text-decoration: underline;
}

.newspaper-header {
  border-bottom: 4px double var(--border-color);
  padding: 20px 0 15px;
  text-align: center;
  position: relative;
}

.newspaper-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.masthead-title {
  font-family: var(--font-masthead);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.1;
  margin: 10px 0;
}

.masthead-subtitle {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Navigation Bar */
.newspaper-nav {
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 12px 18px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border-right: 1px solid var(--border-light);
}

.nav-menu li:first-child a {
  border-left: 1px solid var(--border-light);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--accent-red);
  color: #fff;
}

.nav-menu li a.highlight-nav {
  color: var(--accent-red);
  font-weight: 900;
}
.nav-menu li a.highlight-nav:hover {
  color: #fff;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* Page Layouts & Front Page */
.main-wrapper {
  padding: 30px 0;
}

.newspaper-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 35px;
}

.editorial-header-banner {
  border: 2px solid var(--border-color);
  padding: 20px;
  background: var(--bg-card);
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.editor-thumb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-red);
  flex-shrink: 0;
}

.editor-intro h4 {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--accent-red);
  margin-bottom: 5px;
}

.editor-intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Main Lead Story */
.lead-story {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.article-category {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.lead-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
}

.lead-title a {
  color: var(--text-main);
  text-decoration: none;
}
.lead-title a:hover {
  color: var(--accent-red);
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.featured-img-box {
  margin: 20px 0;
  border: 1px solid var(--border-color);
  padding: 6px;
  background: #fff;
}

.featured-img-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.img-caption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}

.drop-cap::first-letter {
  font-family: var(--font-headline);
  float: left;
  font-size: 3.8rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 10px;
  padding-left: 3px;
  color: var(--accent-red);
  font-weight: 900;
}

/* Secondary Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.04);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.article-card h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-card h3 a {
  color: var(--text-main);
  text-decoration: none;
}
.article-card h3 a:hover {
  color: var(--accent-red);
}

.article-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.btn-read {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 2px;
  align-self: flex-start;
}

.btn-read:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* Sidebar Styles */
.sidebar {
  border-left: 1px solid var(--border-light);
  padding-left: 25px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 30px;
}

.widget-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: var(--text-main);
  text-align: center;
  letter-spacing: 0.5px;
}

.coach-profile-widget {
  text-align: center;
}

.coach-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--border-color);
}

.supplement-widget {
  background: #fcf9f2;
  border: 2px dashed var(--accent-gold);
  text-align: center;
}

.supplement-widget img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 12px;
}

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-red);
  color: #fff;
  padding: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #600000;
}

.btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-navy);
  color: #fff;
  padding: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 8px;
}

/* Article Detail Page Specifics */
.article-single {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 35px;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.article-single h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-single h2 {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  margin: 30px 0 15px;
  color: var(--accent-navy);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.article-single h3 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  margin: 25px 0 12px;
}

.article-single p {
  margin-bottom: 20px;
  text-align: justify;
}

.article-single ul, .article-single ol {
  margin: 0 0 20px 30px;
}

.article-single li {
  margin-bottom: 8px;
}

.quote-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-red);
  padding: 20px 25px;
  margin: 30px 0;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.2rem;
}

.quote-author {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--accent-red);
}

/* Supplement Focus Box */
.supplement-focus-box {
  background: #fdf8ee;
  border: 2px solid var(--accent-gold);
  padding: 25px;
  margin: 35px 0;
  display: flex;
  gap: 25px;
  align-items: center;
}

.supplement-img-large {
  width: 240px;
  height: 240px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 10px;
}

.supplement-details h3 {
  color: var(--accent-navy);
  margin-top: 0;
}

.ingredient-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.ingredient-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Medical & Compliance Banner */
.medical-disclaimer-box {
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-left: 4px solid #f39c12;
  padding: 15px 20px;
  margin: 30px 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
}

.medical-disclaimer-box strong {
  color: #d35400;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

/* Certificate Cards & Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
}

.cert-preview {
  width: 100%;
  height: 220px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cert-preview:hover {
  border-color: var(--accent-red);
}

.cert-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

/* Modal for Certificates */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  max-width: 700px;
  width: 100%;
  padding: 30px;
  border: 2px solid var(--border-color);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer Section */
.newspaper-footer {
  border-top: 4px double var(--border-color);
  margin-top: 60px;
  padding-top: 40px;
  background: var(--bg-secondary);
  font-family: var(--font-sans);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.footer-col p, .footer-col li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-main);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1c1b18;
  color: #fff;
  padding: 18px;
  z-index: 999;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid #666;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .newspaper-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    border-left: none;
    border-top: 2px solid var(--border-color);
    padding-left: 0;
    padding-top: 30px;
  }
  
  .supplement-focus-box {
    flex-direction: column;
    text-align: center;
  }
  
  .supplement-img-large {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li a {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  
  .newspaper-meta-strip {
    flex-direction: column;
    gap: 5px;
  }
  
  .editorial-header-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .article-single {
    padding: 20px;
  }
}
