/* ============================================================
   WomenHealthy.ru — Main Stylesheet
   Mobile-first, CSS Custom Properties
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:        #C8517A;
  --primary-light:  #E8849A;
  --primary-dark:   #A03060;
  --secondary:      #7B5EA7;
  --accent:         #F7C5D0;
  --accent-light:   #FDE8EE;
  --gold:           #F5A623;
  --teal:           #56A99F;
  --green:          #4CAF50;

  --bg:             #FDF6F8;
  --bg-card:        #FFFFFF;
  --bg-dark:        #2C1A24;
  --bg-section:     #FEF0F4;

  --text:           #2C2C2C;
  --text-muted:     #7A7A8A;
  --text-light:     #AAAABC;
  --text-on-dark:   #F9EEF2;

  --border:         #EDD5DC;
  --border-light:   #F5E8EC;

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      32px;

  --shadow-sm:      0 1px 4px rgba(200,81,122,.08);
  --shadow:         0 4px 20px rgba(200,81,122,.12);
  --shadow-lg:      0 12px 40px rgba(200,81,122,.18);

  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --transition:     0.25s ease;

  --container:      1200px;
  --gap:            24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0 0 .75rem;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
}

blockquote p:last-child { margin: 0; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section { padding: 72px 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin-bottom: .5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: #6147A0;
  border-color: #6147A0;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.btn-sm {
  padding: .4rem 1rem;
  font-size: .85rem;
}

.btn-lg {
  padding: .85rem 2rem;
  font-size: 1.05rem;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-xl);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}

.badge-primary { background: var(--accent-light); color: var(--primary-dark); }
.badge-fashion   { background: #FFE8EF; color: #C8517A; }
.badge-health    { background: #EDE8F7; color: #7B5EA7; }
.badge-beauty    { background: #FFE8EF; color: #E8849A; }
.badge-celebrity { background: #FEF3DC; color: #C07C00; }
.badge-lifestyle { background: #E0F4F2; color: #3A857C; }
.badge-relationships { background: #FFE8F1; color: #C0336A; }
.badge-default   { background: var(--accent-light); color: var(--primary-dark); }

/* ---- ===== HEADER ===== ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,246,248,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.logo-text span {
  color: var(--primary);
}

.logo-tagline {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Nav */
.site-nav {
  display: none;
}

.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .3rem .1rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--accent-light); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 20px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--accent-light);
}

/* ---- ===== HERO ===== ---- */
.hero {
  background: linear-gradient(135deg, #A03060 0%, #C8517A 45%, #7B5EA7 100%);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='18'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.87);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Page Hero (subpages) ---- */
.page-hero {
  background: linear-gradient(135deg, #C8517A, #7B5EA7);
  color: #fff;
  padding: 40px 0 48px;
}

.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover { color: #fff; }

.breadcrumbs .sep { opacity: .5; }

.breadcrumbs-dark {
  color: var(--text-muted);
}
.breadcrumbs-dark a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs-dark a:hover { text-decoration: underline; }
.breadcrumbs-dark .sep { color: var(--text-light); }

/* ---- Stats Section ---- */
.stats-section {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---- Article Cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 540px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent-light), var(--border));
}

.article-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-light) 0%, #EDE8F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  margin-bottom: 10px;
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--transition);
}

.article-card-title:hover { color: var(--primary); }

.article-card-excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: auto;
}

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

.rating-stars {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: -.05em;
}

/* ---- Category Cards ---- */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 540px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-color, var(--primary));
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.category-card-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.category-card-stats {
  display: flex;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.category-card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ---- Category Section Block (on main page) ---- */
.category-section {
  margin-bottom: 56px;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
}

.category-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.category-section-icon {
  font-size: 1.5rem;
}

.category-section-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-section-link:hover { color: var(--primary-dark); }

/* ---- Filter Bar ---- */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
  }
}

.filter-search {
  flex: 1;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: .65rem 1rem .65rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.filter-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,81,122,.1);
}

.filter-search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.filter-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: .65rem 2.2rem .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A8A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  outline: none;
  transition: border-color var(--transition);
}

.filter-select:focus { border-color: var(--primary); }

/* ---- Results Counter ---- */
.results-info {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.results-info strong { color: var(--text); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

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

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ---- Loading Spinner ---- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: .9rem;
  gap: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.error-msg .error-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ---- ===== ARTICLE PAGE ===== ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 60px;
}

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 320px; }
}

.article-main {}

.article-header {
  margin-bottom: 28px;
}

.article-header .article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.article-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 18px;
  line-height: 1.25;
}

.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  font-size: .88rem;
  color: var(--text-muted);
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.article-info-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--accent-light), #EDE8F7);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--primary-dark);
}

.article-body h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}

.article-body ul, .article-body ol {
  padding-left: 1.6rem;
}

.article-body li {
  margin-bottom: .6rem;
}

/* Author Block */
.author-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.author-info h4 { margin: 0 0 4px; font-size: 1rem; }
.author-credentials { font-size: .82rem; color: var(--primary); font-weight: 600; margin: 0 0 6px; }
.author-bio { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.tag-link {
  display: inline-block;
  padding: .3rem .85rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: .82rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

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

/* Share Buttons */
.share-section {
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.share-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-xl);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.share-btn-vk { background: #4C75A3; color: #fff; }
.share-btn-vk:hover { background: #3C6090; color: #fff; }
.share-btn-tg { background: #2AABEE; color: #fff; }
.share-btn-tg:hover { background: #1A9BDE; color: #fff; }
.share-btn-wa { background: #25D366; color: #fff; }
.share-btn-wa:hover { background: #18C259; color: #fff; }
.share-btn-copy { background: var(--bg-section); color: var(--text-muted); border: 1px solid var(--border); }
.share-btn-copy:hover { background: var(--accent-light); color: var(--primary-dark); }

/* Sidebar */
.article-sidebar {}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}

.sidebar-article-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: opacity var(--transition);
}

.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item:hover { opacity: .8; }

.sidebar-article-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-light), #EDE8F7);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.sidebar-article-info {}
.sidebar-article-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-date {
  font-size: .78rem;
  color: var(--text-light);
}

/* Related Articles */
.related-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--border-light);
}

.related-section h2 {
  margin-bottom: 28px;
}

/* ---- ===== ABOUT PAGE ===== ---- */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.principle-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.principle-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.principle-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.team-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: .85rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* Features on main page */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  text-align: center;
  padding: 28px 20px;
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- ===== FAQ ===== ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open { box-shadow: var(--shadow); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: .97rem;
  color: var(--text);
  user-select: none;
  gap: 12px;
}

.faq-question:hover { color: var(--primary); }

.faq-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ---- ===== CONTACT FORM ===== ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 380px; }
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group label .req { color: var(--primary); }

.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,81,122,.1);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-error { font-size: .8rem; color: #e53e3e; margin-top: 5px; display: none; }
.form-control.invalid { border-color: #e53e3e; }
.form-control.invalid + .form-error { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 28px;
  color: var(--green);
}

.form-success .success-icon { font-size: 3rem; margin-bottom: 10px; }

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 { font-size: .95rem; margin: 0 0 3px; }
.contact-info-text p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---- ===== FOOTER ===== ---- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo-text { color: #fff; font-size: 1.4rem; }
.footer-brand .logo-text span { color: var(--primary-light); }
.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 12px 0 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.38);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom a {
  color: rgba(255,255,255,.45);
  margin: 0 8px;
}
.footer-bottom a:hover { color: var(--primary-light); }

/* ---- Cookie Notice ---- */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: rgba(255,255,255,.85);
  padding: 14px 20px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 2px solid var(--primary);
  font-size: .88rem;
}

.cookie-notice.visible { display: flex; }
.cookie-notice a { color: var(--primary-light); }

.cookie-notice-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Policy pages ---- */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.policy-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  color: var(--primary-dark);
}

.policy-content h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.d-none { display: none; }

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}

.bg-section { background: var(--bg-section); }
.bg-white { background: #fff; }

/* ---- Responsive helpers ---- */
@media (max-width: 480px) {
  .hide-mobile { display: none !important; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 40px 0; }
  .article-info-bar { gap: 10px 14px; }
  .share-buttons { gap: 7px; }
  .share-btn { padding: .45rem .85rem; font-size: .8rem; }
}

/* ---- ===== FEATURED COLLAGE LAYOUTS ===== ---- */

/* Hero Left: крупная карточка слева + 2 справа */
.collage-hero-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.collage-hero-left .collage-aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .collage-hero-left {
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
  }
  .collage-hero-left .collage-main { height: 100%; }
  .collage-hero-left .collage-main .article-card { height: 100%; }
  .collage-hero-left .collage-aside {
    align-content: start;
  }
}

/* Magazine: крупная слева + 3 справа в столбец */
.collage-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.collage-magazine .collage-side-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .collage-magazine {
    grid-template-columns: 5fr 3fr;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .collage-magazine {
    grid-template-columns: 3fr 2fr;
  }
}

/* Top Hero: широкая вверху + ряд снизу */
.collage-top-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.collage-top-hero .collage-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 540px) {
  .collage-top-hero .collage-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .collage-top-hero .collage-row { grid-template-columns: repeat(3, 1fr); }
}

/* Hero card — увеличенное изображение и текст */
.article-card-hero .article-card-image,
.article-card-hero .article-card-image-placeholder {
  aspect-ratio: 4 / 3;
}
.article-card-hero .article-card-title {
  font-size: 1.25rem;
}
.article-card-hero .article-card-excerpt {
  -webkit-line-clamp: 4;
}

/* Small card — компактная карточка без excerpt */
.article-card-sm .article-card-excerpt {
  display: none;
}
.article-card-sm .article-card-image,
.article-card-sm .article-card-image-placeholder {
  aspect-ratio: 16 / 9;
}

/* ---- ===== SIDEBAR CATEGORIES ===== ---- */

.sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-link {
  display: block;
  padding: 7px 12px;
  font-size: .9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.sidebar-cat-link:hover {
  color: var(--primary);
  background: var(--accent-light);
  border-left-color: var(--primary-light);
}

.sidebar-cat-link.active {
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--accent-light);
  border-left-color: var(--primary);
}
