/*
Theme Name: Hemorrhoid Expert
Theme URI: https://hemorrhoidexpert.org
Author: Hemorrhoid Expert Team
Description: A professional medical information theme for hemorrhoidexpert.org. Features dark hero, topic grids, article listings, symptom checker CTA, video gallery, and expert review board.
Version: 1.2.1
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hemorrhoid-expert
Tags: medical, health, blog, dark-colors, custom-colors, featured-images, custom-menu, sticky-post
*/

/* ===================================================
   CSS CUSTOM PROPERTIES
=================================================== */
:root {
  --navy:    #0d1f35;
  --navy2:   #122540;
  --navy3:   #1a3150;
  --teal:    #1d8a6a;
  --teal2:   #15705a;
  --teal3:   #0f5244;
  --gold:    #c9963a;
  --gold2:   #a87828;
  --cream:   #f7f4ef;
  --paper:   #ede9e2;
  --white:   #ffffff;
  --ink:     #1a1a2e;
  --muted:   #6b7280;
  --border:  rgba(0,0,0,.09);
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Manrope', system-ui, sans-serif;
  --mono:    'DM Mono', monospace;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .15s; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 4vw, 54px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
p { margin-bottom: 1rem; line-height: 1.8; color: #374151; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ===================================================
   LAYOUT
=================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1440px; }

/* ===================================================
   SECTION UTILS
=================================================== */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow-line  { width: 28px; height: 2px; background: var(--teal); flex-shrink: 0; }
.eyebrow-text  { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-family: var(--mono); }
.section-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.section-sub   { font-size: 15px; color: var(--muted); line-height: 1.8; font-weight: 300; max-width: 560px; }
.section-title--light { color: #fff; }
.eyebrow-text--light  { color: rgba(255,255,255,.4); }

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: .02em;
}
.btn-primary  { background: var(--teal);  color: #fff; }
.btn-primary:hover  { background: var(--teal2); color: #fff; }
.btn-dark     { background: var(--navy3); color: #fff; }
.btn-dark:hover     { background: var(--navy);  color: #fff; }
.btn-outline  { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); }
.btn-outline:hover  { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost    { color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.2); padding: 0 0 2px; border-radius: 0; }
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* ===================================================
   HEADER & NAVIGATION
=================================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 48px;
}
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.site-logo-icon svg { width: 18px; height: 18px; fill: #fff; }
.site-title-text { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #fff; }
.site-title-text span { color: var(--gold); }

.primary-menu-wrap { flex: 1; }
.primary-menu { display: flex; align-items: center; gap: 2px; }
.primary-menu li a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  padding: 8px 14px;
  border-radius: 3px;
  transition: color .15s;
  display: block;
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item a,
.primary-menu li.current-page-ancestor a { color: #fff; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-reviewed-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: rgba(255,255,255,.4);
}
.header-reviewed-badge svg { width: 13px; height: 13px; stroke: var(--teal); fill: none; stroke-width: 2; }
.header-cta {
  background: var(--teal);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 4px;
  transition: background .15s;
}
.header-cta:hover { background: var(--teal2) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 7px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}
.nav-drawer {
  display: none;
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
}
.nav-drawer.open { display: block; }
.nav-drawer .primary-menu { flex-direction: column; align-items: stretch; padding: 0 24px; gap: 2px; }
.nav-drawer .primary-menu li a { padding: 10px 14px; }

/* ===================================================
   MEDICAL DISCLAIMER STRIP
=================================================== */
.disc-strip {
  background: rgba(29,138,106,.06);
  border-top: 1px solid rgba(29,138,106,.15);
  border-bottom: 1px solid rgba(29,138,106,.15);
  padding: 10px 0;
}
.disc-strip .container { display: flex; align-items: center; gap: 12px; }
.disc-icon {
  width: 28px; height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.disc-icon svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.disc-text { font-size: 12px; color: var(--muted); line-height: 1.5; }
.disc-text strong { color: var(--ink); }

/* ===================================================
   BREADCRUMBS
=================================================== */
.breadcrumbs {
  background: var(--cream);
  border-bottom: 1px solid var(--paper);
  padding: 11px 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); transition: color .15s; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { margin: 0 7px; color: var(--paper); font-size: 10px; }
.breadcrumbs .current { color: var(--ink); font-weight: 500; }

/* ===================================================
   CARDS
=================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--paper);
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--paper);
}
.info-card {
  background: var(--white);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.info-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
  z-index: 1;
}
.info-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s;
}
.info-card:hover::before { transform: scaleY(1); }
.info-card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--paper);
  display: grid; place-items: center;
  margin-bottom: 16px;
  border-radius: 4px;
}
.info-card-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.5; }
.info-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 8px; font-family: var(--mono);
}

/* Post card (for article listings) */
.post-card {
  background: var(--white);
  border: 1px solid var(--paper);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.09); z-index: 1; position: relative; }
.post-card-thumb {
  height: 170px;
  background: var(--navy3);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 14px;
}
.post-card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card-cat-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px;
  position: relative; z-index: 1; border-radius: 2px;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; font-family: var(--mono); }
.post-card-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 9px; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--teal); }
.post-card-excerpt { font-size: 12px; color: var(--muted); line-height: 1.75; flex: 1; margin-bottom: 14px; }
.post-card-link { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-top: auto; display: inline-flex; align-items: center; gap: 5px; }

/* ===================================================
   HERO (homepage)
=================================================== */
.hero-section {
  background: var(--navy);
  color: #fff;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(10,20,40,.75) 0%, rgba(15,28,46,.5) 50%, rgba(10,20,40,.65) 100%);
  z-index: 0;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: -1;
}
.hero-content { flex: 1; display: flex; align-items: center; padding: 80px 0 48px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 72px; align-items: center; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-eyebrow-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }
.hero-eyebrow-text { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); font-family: var(--mono); }

.hero-title { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 60px); font-weight: 400; line-height: 1.1; color: #fff; letter-spacing: -.025em; margin-bottom: 20px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.85; font-weight: 300; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Hero form card */
.hero-form-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  padding: 32px;
  backdrop-filter: blur(4px);
}
.hfc-tag  { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-family: var(--mono); }
.hfc-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.hfc-sub  { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 20px; line-height: 1.55; }
.hfc-form { display: flex; flex-direction: column; gap: 10px; }
.hfc-input, .hfc-select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 13px; font-family: var(--sans);
  padding: 11px 14px; outline: none; border-radius: 3px;
  transition: border .2s;
}
.hfc-input::placeholder { color: rgba(255,255,255,.3); }
.hfc-input:focus, .hfc-select:focus { border-color: var(--teal); }
.hfc-select { background: rgba(20,30,50,.95); color: rgba(255,255,255,.6); cursor: pointer; }
.hfc-btn {
  background: var(--teal); color: #fff; font-size: 14px; font-weight: 700;
  padding: 13px; border: none; cursor: pointer; border-radius: 3px;
  font-family: var(--sans); letter-spacing: .03em; transition: background .15s;
}
.hfc-btn:hover { background: var(--teal2); }
.hfc-note { font-size: 10px; color: rgba(255,255,255,.28); text-align: center; margin-top: 2px; }

/* Hero stats bar */
.hero-stats-bar { border-top: 1px solid rgba(255,255,255,.07); position: relative; z-index: 2; }
.hero-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 20px 0; border-right: 1px solid rgba(255,255,255,.07); text-align: center; }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 3px; line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 300; }

/* ===================================================
   TOPICS SECTION (homepage)
=================================================== */
.topics-section { background: var(--cream); padding: 80px 0; }

/* ===================================================
   DARK SPLIT (Symptoms & Remedies)
=================================================== */
.dark-split { background: var(--navy); padding: 80px 0; }
.dark-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 40px; background: rgba(255,255,255,.04); }
.dark-split-col { background: var(--navy); padding: 36px 32px; }
.dsc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dsc-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; }
.dsc-count { font-size: 11px; color: rgba(255,255,255,.3); font-family: var(--mono); }
.dsc-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: flex-start; gap: 14px; }
.dsc-item-num { font-size: 11px; color: rgba(255,255,255,.2); flex-shrink: 0; padding-top: 2px; width: 20px; font-family: var(--mono); }
.dsc-item-info { flex: 1; }
.dsc-item-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8); line-height: 1.4; display: block; margin-bottom: 3px; }
.dsc-item-title:hover { color: #fff; }
.dsc-item-meta { font-size: 10px; color: rgba(255,255,255,.3); font-family: var(--mono); }
.dsc-item-arrow { width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; color: rgba(255,255,255,.3); border-radius: 3px; font-size: 12px; }
.dsc-cta { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.dsc-cta a { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }

/* ===================================================
   VIDEO SECTION (homepage + videos page)
=================================================== */
.videos-section { background: var(--white); padding: 80px 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.video-card { background: var(--white); border: 1px solid var(--paper); border-radius: 4px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.video-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.video-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: var(--navy2);
  overflow: hidden;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,31,53,.4);
  transition: background .2s;
}
.video-card:hover .video-play-btn { background: rgba(29,138,106,.5); }
.video-play-btn svg { width: 44px; height: 44px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.video-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 3px; font-family: var(--mono); }
.video-body { padding: 16px; }
.video-cat { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; font-family: var(--mono); }
.video-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
.video-title a { color: inherit; }
.video-title a:hover { color: var(--teal); }
.video-meta { font-size: 11px; color: var(--muted); }

/* ===================================================
   ARTICLES SECTION (homepage)
=================================================== */
.articles-section { background: var(--white); padding: 80px 0; }

/* ===================================================
   TREATMENT PATHS
=================================================== */
.treatment { background: var(--cream); padding: 88px 0; }
.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.treat-card { background: var(--white); border: 1px solid var(--paper); padding: 32px; position: relative; transition: box-shadow .2s; border-radius: 3px; }
.treat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.treat-card-type { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.treat-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.25; }
.treat-card p  { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.treat-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.treat-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.treat-check { width: 18px; height: 18px; background: rgba(29,138,106,.12); border: 1px solid rgba(29,138,106,.25); display: grid; place-items: center; flex-shrink: 0; border-radius: 2px; }
.treat-check svg { width: 10px; height: 10px; stroke: var(--teal); fill: none; stroke-width: 2.5; max-width: none; }
.treat-link { font-size: 13px; font-weight: 600; color: var(--navy3); display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--paper); padding-bottom: 2px; transition: color .15s; }
.treat-link:hover { color: var(--teal); border-color: var(--teal); }
.treat-card.featured { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,150,58,.04) 0%, #fff 60%); }
.treat-card.featured .treat-card-type { color: var(--gold); }
.treat-badge { position: absolute; top: -1px; right: 20px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 0 0 4px 4px; }

/* ===================================================
   EXPERTS SECTION
=================================================== */
.experts { background: var(--white); padding: 88px 0; }
.experts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--paper); margin-top: 48px; }
.expert-card { background: var(--white); padding: 28px 22px; text-align: center; transition: background .2s; }
.expert-card:hover { background: var(--cream); }
.expert-avatar { width: 72px; height: 72px; background: var(--navy2); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-avatar svg { width: 32px; height: 32px; stroke: rgba(255,255,255,.5); fill: none; stroke-width: 1.5; }
.expert-name { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.expert-cred { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--gold); margin-bottom: 6px; text-transform: uppercase; }
.expert-spec { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===================================================
   CTA / CONTACT FORM SPLIT
=================================================== */
.cta-section { background: var(--white); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cta-left { background: var(--navy3); padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; }
.cta-left h2 { font-family: var(--serif); font-size: 32px; color: #fff; font-weight: 400; line-height: 1.2; margin-bottom: 14px; }
.cta-left p  { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.8; font-weight: 300; margin-bottom: 28px; }
.cta-right { background: var(--cream); padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; }
.cta-right h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.cf-form { display: flex; flex-direction: column; gap: 10px; }
.cf-form input, .cf-form select {
  background: var(--white); border: 1px solid var(--paper);
  color: var(--ink); font-size: 14px; font-family: var(--sans);
  padding: 13px 16px; outline: none; transition: border .2s; width: 100%; border-radius: 3px;
}
.cf-form input:focus, .cf-form select:focus { border-color: var(--teal); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-submit {
  background: var(--navy3); color: #fff; font-size: 14px; font-weight: 700;
  padding: 14px; border: none; cursor: pointer; font-family: var(--sans);
  width: 100%; letter-spacing: .04em; border-radius: 3px; transition: background .15s;
}
.cf-submit:hover { background: var(--navy); }
.cf-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }

/* ===================================================
   TIMELINE SECTION
=================================================== */
.timeline-section { background: var(--white); padding: 80px 0; }
.timeline-inner { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.timeline-steps { display: flex; flex-direction: column; gap: 2px; background: var(--paper); }
.timeline-step { background: var(--white); padding: 18px 22px; display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: start; }
.tl-time { font-family: var(--mono); font-size: 11px; font-weight: 700; padding-top: 2px; line-height: 1.3; }
.tl-title { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.tl-desc  { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.tl-sev   { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.tl-dot   { width: 6px; height: 6px; border-radius: 50%; }

/* ===================================================
   SINGLE POST / ARTICLE
=================================================== */
.article-hero { background: var(--navy); padding: 56px 0 0; overflow: hidden; }
.article-hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: end; }
.article-categories { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.cat-pill { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; }
.cat-pill-teal { background: rgba(29,138,106,.2); color: #5bc4a1; border: 1px solid rgba(29,138,106,.3); }
.cat-pill-gold { background: rgba(201,150,58,.15); color: #d4a84a; border: 1px solid rgba(201,150,58,.25); }
.article-title { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 46px); font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 18px; }
.article-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 32px; }
.article-meta-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.4); }
.article-meta-item svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.article-meta-item strong { color: rgba(255,255,255,.7); }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 52px; padding: 52px 0 80px; align-items: start; }

/* Article content */
.entry-content { max-width: 720px; }
.entry-content .lead { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.65; margin-bottom: 36px; font-style: italic; border-left: 3px solid var(--teal); padding-left: 24px; }
.entry-content h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; margin: 44px 0 16px; padding-top: 8px; letter-spacing: -.015em; }
.entry-content h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 28px 0 12px; }
.entry-content p  { font-size: 15px; color: #374151; line-height: 1.85; margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.entry-content ul li { font-size: 15px; color: #374151; line-height: 1.75; padding-left: 22px; position: relative; }
.entry-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.entry-content ol { counter-reset: ol; }
.entry-content ol li { counter-increment: ol; padding-left: 22px; font-size: 15px; color: #374151; line-height: 1.75; position: relative; }
.entry-content ol li::before { content: counter(ol); position: absolute; left: 0; top: 1px; font-size: 12px; font-weight: 700; color: var(--teal); font-family: var(--mono); }
.entry-content a { color: var(--teal); border-bottom: 1px solid rgba(29,138,106,.3); transition: border-color .15s; }
.entry-content a:hover { border-color: var(--teal); }
.entry-content img { border-radius: 4px; margin: 24px 0; }
.entry-content blockquote { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); line-height: 1.55; border-left: 3px solid var(--teal); padding-left: 24px; margin: 28px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 13px; }
.entry-content table th { background: var(--navy3); color: #fff; padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.entry-content table td { padding: 13px 16px; border-bottom: 1px solid var(--paper); color: #374151; }
.entry-content table tr:nth-child(even) td { background: var(--cream); }

/* Callouts */
.callout { padding: 18px 22px; border-radius: 4px; margin: 28px 0; display: flex; gap: 13px; }
.callout--info    { background: #e8f5f0; border: 1px solid #9fd8c5; border-left: 4px solid var(--teal); }
.callout--warning { background: #fff8e6; border: 1px solid #f0c060; border-left: 4px solid var(--gold); }
.callout--danger  { background: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #dc2626; }
.callout-icon { flex-shrink: 0; margin-top: 2px; }
.callout-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 2; }
.callout--info svg    { stroke: var(--teal); }
.callout--warning svg { stroke: var(--gold); }
.callout--danger svg  { stroke: #dc2626; }
.callout-content p { font-size: 13px; line-height: 1.75; color: var(--ink); margin: 0; }
.callout-content strong { display: block; font-size: 14px; margin-bottom: 4px; }

/* Step boxes */
.steps { display: flex; flex-direction: column; gap: 2px; margin: 28px 0; }
.step  { display: flex; gap: 18px; background: var(--cream); padding: 18px 20px; }
.step-num { width: 30px; height: 30px; background: var(--navy3); color: #fff; font-family: var(--serif); font-size: 14px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; }
.step-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.step-desc  { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* Progress bar */
#reading-progress { position: fixed; top: 64px; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.06); z-index: 99; }
#reading-progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); width: 0%; transition: width .1s linear; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--cream); border: 1px solid var(--paper); padding: 20px; border-radius: 4px; }
.sidebar-box-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.toc-list { display: flex; flex-direction: column; gap: 1px; }
.toc-link { font-size: 13px; color: var(--muted); padding: 7px 10px; border-radius: 3px; display: block; border-left: 2px solid transparent; transition: all .15s; line-height: 1.35; }
.toc-link:hover, .toc-link.active { color: var(--teal); background: rgba(29,138,106,.06); border-left-color: var(--teal); font-weight: 600; }

.sidebar-cta { background: var(--navy3); padding: 22px; border-radius: 4px; }
.sidebar-cta-tag   { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; font-family: var(--mono); }
.sidebar-cta h4    { font-family: var(--serif); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.2; }
.sidebar-cta p     { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: 14px; }
.sidebar-cta-btn   { display: block; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; padding: 11px; text-align: center; border-radius: 3px; transition: background .15s; }
.sidebar-cta-btn:hover { background: var(--teal2); }
.sidebar-cta-note  { font-size: 10px; color: rgba(255,255,255,.25); text-align: center; margin-top: 8px; }

/* Related articles in sidebar */
.related-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper); }
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item-num { font-size: 11px; color: var(--paper); font-family: var(--mono); font-weight: 700; flex-shrink: 0; padding-top: 1px; }
.related-item-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.35; transition: color .15s; }
.related-item:hover .related-item-title { color: var(--teal); }
.related-item-cat { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Share bar */
.share-bar { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--paper); border-bottom: 1px solid var(--paper); margin: 40px 0; }
.share-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--paper); border-radius: 3px; color: var(--muted); transition: all .15s; cursor: pointer; background: none; font-family: var(--sans); }
.share-btn:hover { border-color: var(--teal); color: var(--teal); }
.share-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Author card */
.author-card { background: var(--cream); border: 1px solid var(--paper); padding: 28px; border-radius: 4px; display: flex; gap: 20px; margin: 40px 0; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; color: rgba(255,255,255,.4); flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.author-cred { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; font-family: var(--mono); }
.author-bio  { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ===================================================
   ARCHIVE / CATEGORY PAGE
=================================================== */
.archive-hero { background: var(--navy); padding: 52px 0; }
.archive-hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.archive-stats { display: flex; gap: 32px; }
.archive-stat-n { font-family: var(--serif); font-size: 32px; font-weight: 700; color: #fff; }
.archive-stat-l { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }

.cat-tabs-bar { background: var(--navy2); border-bottom: 1px solid rgba(255,255,255,.07); }
.cat-tabs-inner { display: flex; overflow-x: auto; }
.cat-tab { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.45); padding: 14px 20px; border-bottom: 2px solid transparent; white-space: nowrap; transition: all .15s; cursor: pointer; }
.cat-tab:hover { color: rgba(255,255,255,.75); }
.cat-tab.current { color: #fff; border-bottom-color: var(--teal); }

.archive-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 80px; }
.archive-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

.featured-post-card { background: var(--navy); overflow: hidden; margin-bottom: 3px; display: grid; grid-template-columns: 1fr 1fr; }
.fpc-thumb { background: var(--navy3); min-height: 240px; display: flex; align-items: center; justify-content: center; position: relative; }
.fpc-badge { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.fpc-body { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.fpc-cat { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; font-family: var(--mono); }
.fpc-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.fpc-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.75; margin-bottom: 16px; }
.fpc-link { font-size: 13px; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }

.post-list-card { background: var(--white); border: 1px solid var(--paper); display: grid; grid-template-columns: 180px 1fr; transition: box-shadow .2s; }
.post-list-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); z-index: 1; position: relative; }
.plc-thumb { background: var(--navy3); min-height: 140px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plc-body  { padding: 20px 22px; display: flex; flex-direction: column; }
.plc-top   { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.plc-cat   { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-family: var(--mono); }
.plc-dot   { width: 3px; height: 3px; background: var(--paper); border-radius: 50%; }
.plc-read  { font-size: 10px; color: var(--muted); }
.plc-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 8px; transition: color .15s; }
.post-list-card:hover .plc-title { color: var(--teal); }
.plc-desc  { font-size: 12px; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 12px; }
.plc-footer { display: flex; align-items: center; justify-content: space-between; }
.plc-author { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.plc-author-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--navy2); overflow: hidden; }
.plc-arrow { width: 28px; height: 28px; border: 1px solid var(--paper); display: grid; place-items: center; border-radius: 3px; color: var(--muted); font-size: 12px; transition: all .15s; }
.post-list-card:hover .plc-arrow { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 4px; margin-top: 32px; justify-content: center; }
.page-numbers { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--paper); border-radius: 3px; font-size: 13px; color: var(--muted); transition: all .15s; }
.page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.page-numbers.current { background: var(--navy3); border-color: var(--navy3); color: #fff; }

/* ===================================================
   FAQ ACCORDION
=================================================== */
.faq-section { background: var(--cream); padding: 80px 0; }
.faq-layout  { display: grid; grid-template-columns: 320px 1fr; gap: 80px; margin-top: 48px; align-items: start; }
.faq-list    { display: flex; flex-direction: column; gap: 2px; }
.faq-item    { background: var(--white); border: 1px solid var(--paper); }
.faq-question { padding: 18px 24px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .15s; user-select: none; }
.faq-question:hover { color: var(--teal); }
.faq-toggle  { width: 20px; height: 20px; border: 1px solid var(--paper); display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; transition: all .2s; }
.faq-toggle svg { width: 10px; height: 10px; stroke: var(--muted); fill: none; stroke-width: 2.5; transition: transform .25s; }
.faq-item.open .faq-toggle { background: var(--teal); border-color: var(--teal); }
.faq-item.open .faq-toggle svg { stroke: #fff; transform: rotate(45deg); }
.faq-answer  { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; font-size: 13px; color: var(--muted); line-height: 1.8; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ===================================================
   FOOTER
=================================================== */
.site-footer { background: var(--navy); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 52px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-icon { width: 30px; height: 30px; background: var(--teal); border-radius: 50%; display: grid; place-items: center; }
.footer-logo-icon svg { width: 14px; height: 14px; fill: #fff; }
.footer-logo-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: #fff; }
.footer-logo-name span { color: var(--gold); }
.footer-about { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.8; max-width: 260px; margin-bottom: 20px; }
.footer-disclaimer-box { background: rgba(29,138,106,.08); border: 1px solid rgba(29,138,106,.18); padding: 12px 14px; border-radius: 3px; }
.footer-disclaimer-box p { font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.65; margin: 0; }
.footer-heading { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 18px; font-family: var(--mono); }
.footer-menu { display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { font-size: 12px; color: rgba(255,255,255,.4); transition: color .15s; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: rgba(255,255,255,.2); padding: 18px 0; }
.footer-bottom a { color: rgba(255,255,255,.25); }
.footer-bottom a:hover { color: rgba(255,255,255,.55); }
.footer-legal { font-size: 11px; color: rgba(255,255,255,.15); padding: 0 0 20px; line-height: 1.7; }

/* ===================================================
   WIDGETS
=================================================== */
.widget { margin-bottom: 24px; }
.widget-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--teal); }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--paper); font-size: 13px; }
.widget ul li a { color: var(--muted); transition: color .15s; }
.widget ul li a:hover { color: var(--teal); }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-card { display: none; }
  .cta-grid { grid-template-columns: 1fr; }
  .timeline-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { position: static; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .card-grid-3, .treatment-grid, .video-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .dark-split-grid { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .featured-post-card { grid-template-columns: 1fr; }
  .post-list-card { grid-template-columns: 1fr; }
  .plc-thumb { min-height: 120px; }
  .header-inner { gap: 16px; }
  .primary-menu-wrap { display: none; }
  .header-reviewed-badge { display: none; }
  .menu-toggle { display: block; }
  .experts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   WORDPRESS CORE CLASSES
=================================================== */
.aligncenter { display: block; margin: 24px auto; }
.alignleft   { float: left; margin: 0 24px 16px 0; }
.alignright  { float: right; margin: 0 0 16px 24px; }
.alignwide   { width: 100%; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; font-style: italic; }
.sticky {}
.screen-reader-text { position: absolute; left: -9999px; }
.wp-block-image { margin: 24px 0; }
.has-text-align-center { text-align: center; }

/* ===================================================
   v1.2 ADDITIONS
=================================================== */

/* FIX #6: мобильное меню — управляется классом .open (согласован с JS) */
.nav-drawer {
  display: none;
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
}
.nav-drawer.open {
  display: block;
}
@media (max-width: 768px) {
  .nav-drawer.open {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 64px; /* над bottom nav */
    overflow-y: auto;
    z-index: 400;
    -webkit-overflow-scrolling: touch;
  }
  .nav-drawer .primary-menu { flex-direction: column; align-items: stretch; padding: 0 24px; gap: 2px; }
  .nav-drawer .primary-menu li a { font-size: 16px; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
}

/* FIX #7: правильная семантика заголовка в sidebar CTA */
.sidebar-cta-heading {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* FIX #14: CSS-классы для video archive вместо inline */
.video-archive-hero {
  background: var(--navy);
  padding: 52px 0;
}
.video-archive-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.video-archive-desc {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  max-width: 520px;
  line-height: 1.8;
  margin: 0;
}
.video-archive-content {
  padding-top: 48px;
  padding-bottom: 80px;
}
.video-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
  margin-bottom: 0;
}
.no-results {
  font-size: 15px;
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}

/* Expert socials row */
.expert-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Menu toggle icon (3 lines) */
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 7px 12px; border-radius: 3px; cursor: pointer; font-size: 13px; align-items: center; gap: 8px; }
.menu-toggle-icon { display: flex; flex-direction: column; gap: 4px; }
.menu-toggle-icon span { display: block; width: 16px; height: 1.5px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 768px) { .menu-toggle { display: flex; } }

/* Video page single */
.video-page-hero { background: var(--navy); padding: 40px 0; }

/* Schema — hidden structured data elements */
[data-schema] { display: none; }

/* Pagination — accessibility */
.pagination .nav-links { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 32px; }

/* ===================================================
   HERO FIXES — фоновый градиент + устранение пробелов
=================================================== */

/* Красивый градиентный фон когда нет фото */
.hero-section {
  background:
    linear-gradient(170deg,
      rgba(10,18,32,.96) 0%,
      rgba(13,26,46,.88) 35%,
      rgba(9,22,42,.95) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(29,138,106,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,150,58,.08) 0%, transparent 55%),
    var(--navy);
  background-attachment: fixed;
}

/* Когда фото есть — overlay поверх него */
.hero-section[style*="background-image"] {
  background-attachment: scroll;
}

/* Контент hero — прижимаем к центру */
.hero-content {
  padding-top: 64px;
  padding-bottom: 48px;
}

/* Hero grid — на экранах без фото правая форма-карточка более заметна */
.hero-grid {
  align-items: center;
}

/* Убираем лишние отступы на десктопе без фото */
@media (min-width: 1100px) {
  .hero-section {
    min-height: 80vh;
  }
}

/* Украшение hero без фото — геометрические акценты */
.hero-section::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,138,106,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-section::before {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,58,.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-overlay,
.hero-content,
.hero-stats-bar {
  position: relative;
  z-index: 2;
}

/* ===================================================
   CONTACT PAGE (page-contact.php)
=================================================== */
.contact-hero {
  background: var(--navy);
  padding: 52px 0;
}
.contact-hero-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.contact-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
  margin-bottom: 20px;
}
.contact-promises { display: flex; flex-direction: column; gap: 8px; }
.contact-promise {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.contact-promise-check {
  width: 20px;
  height: 20px;
  background: rgba(29,138,106,.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-promise-check svg {
  width: 10px;
  height: 10px;
  stroke: var(--teal);
}

/* Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  padding-top: 52px;
  padding-bottom: 80px;
  align-items: start;
}

/* Form column */
.contact-form-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

/* CF7 overrides */
.contact-cf7-wrap .wpcf7-form p { margin-bottom: 16px; }
.contact-cf7-wrap input[type="text"],
.contact-cf7-wrap input[type="email"],
.contact-cf7-wrap input[type="tel"],
.contact-cf7-wrap textarea,
.contact-cf7-wrap select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--paper);
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  transition: border-color .15s;
}
.contact-cf7-wrap input:focus,
.contact-cf7-wrap textarea:focus { border-color: var(--teal); }
.contact-cf7-wrap textarea { min-height: 140px; resize: vertical; }
.contact-cf7-wrap input[type="submit"],
.contact-cf7-wrap .wpcf7-submit {
  background: var(--navy3);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .15s;
}
.contact-cf7-wrap input[type="submit"]:hover,
.contact-cf7-wrap .wpcf7-submit:hover { background: var(--navy); }

/* Native form */
.contact-native-form { display: flex; flex-direction: column; gap: 16px; }
.cnf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cnf-field { display: flex; flex-direction: column; gap: 6px; }
.cnf-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.cnf-req { color: var(--teal); }
.cnf-field input,
.cnf-field select,
.cnf-field textarea {
  background: var(--cream);
  border: 1px solid var(--paper);
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.cnf-field input:focus,
.cnf-field select:focus,
.cnf-field textarea:focus { border-color: var(--teal); }
.cnf-field textarea { min-height: 140px; resize: vertical; }
.cnf-disclaimer {
  display: flex;
  gap: 10px;
  background: rgba(201,150,58,.08);
  border: 1px solid rgba(201,150,58,.2);
  border-radius: 4px;
  padding: 12px 14px;
}
.cnf-disclaimer svg { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; margin-top: 1px; }
.cnf-disclaimer p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.cnf-submit {
  background: var(--navy3);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.cnf-submit:hover { background: var(--navy); }
.cnf-submit svg { width: 14px; height: 14px; }
.cnf-note { font-size: 12px; color: var(--muted); text-align: center; }

/* Info column */
.contact-team-box {
  background: var(--navy3);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
.contact-team-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: var(--mono);
}
.contact-team-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.contact-team-list { display: flex; flex-direction: column; gap: 12px; }
.contact-expert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.contact-expert:last-child { border-bottom: none; padding-bottom: 0; }
.contact-expert-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy2);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-expert-ava img { width: 100%; height: 100%; object-fit: cover; }
.contact-expert-ava svg { width: 18px; height: 18px; }
.contact-expert-info { flex: 1; min-width: 0; }
.contact-expert-name { font-size: 13px; font-weight: 600; color: #fff; }
.contact-expert-cred { font-size: 10px; color: var(--teal); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.contact-expert-spec { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.contact-expert-status { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #4ade80; flex-shrink: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

/* FAQ in contact */
.contact-faq-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .cnf-row { grid-template-columns: 1fr; }
}
