/*
Theme Name: Barkova Clinic
Theme URI: https://barkova-clinic.ru/
Author: Barkova Clinic
Description: Медицинский информационный портал. Партнёр — Ист Клиника.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: barkova-clinic
Tags: blog, medical, health, clinic, green
*/

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f9fdfb;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1f6b4e; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================================================
   TOPBAR
   ===================================================== */
.site-topbar {
  background: #1a4a3a;
  color: #e0f0e8;
  padding: 8px 0;
  font-size: 13px;
}
.site-topbar .topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-topbar .topbar-tagline { color: #a8d8c0; }
.topbar-links { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar-links a {
  color: #a8d8c0;
  padding: 2px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  transition: color .2s, background .2s;
  font-size: 12px;
}
.topbar-links a:hover { color: #fff; background: rgba(255,255,255,0.12); text-decoration: none; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: #1f5c47;
  padding: 24px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.site-title {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.site-title a { color: inherit; text-decoration: none; }
.site-description {
  font-size: 13px;
  color: #9fd4ba;
  margin-top: 3px;
}
.header-partner { text-align: right; }
.header-partner span { display: block; font-size: 12px; color: #a0d0bc; margin-bottom: 2px; }
.header-partner a {
  font-size: 16px;
  font-weight: 500;
  color: #5ecfa0;
  text-decoration: none;
}
.header-partner a:hover { color: #fff; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav-wrapper {
  background: #17453a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.main-navigation ul li a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  color: #c8e8d8;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a {
  color: #fff;
  border-bottom-color: #5ecfa0;
}
.nav-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #c8e8d8;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* =====================================================
   HERO
   ===================================================== */
.site-hero {
  background: linear-gradient(135deg, #1f5c47 0%, #2e7a5e 60%, #1a4a3a 100%);
  padding: 56px 0 48px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.hero-content { flex: 1; }
.hero-content h2 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  max-width: 500px;
}
.hero-content p {
  font-size: 15px;
  color: #b8dece;
  margin-top: 14px;
  max-width: 460px;
  line-height: 1.65;
}
.hero-links { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-links a {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #d4f0e4;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: background .2s;
}
.hero-links a:hover { background: rgba(255,255,255,0.22); color: #fff; }
.hero-stats {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 24px 28px;
  min-width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-item .stat-num { font-size: 32px; font-weight: 500; color: #5ecfa0; }
.stat-item .stat-label { font-size: 12px; color: #a0d0bc; margin-top: 2px; }

/* =====================================================
   SERVICES STRIP
   ===================================================== */
.services-strip {
  background: #f4f9f6;
  border-bottom: 1px solid #dceee6;
  padding: 24px 0;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 0.5px solid #c8e0d4;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: #5ecfa0; }
.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e2f4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 20px; height: 20px; stroke: #1f6b4e; fill: none; stroke-width: 1.8; }
.service-card h3 { font-size: 14px; font-weight: 500; color: #1a1a1a; line-height: 1.3; }
.service-card p { font-size: 12px; color: #666; margin-top: 3px; line-height: 1.5; }

/* =====================================================
   LAYOUT: MAIN + SIDEBAR
   ===================================================== */
.site-content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

/* =====================================================
   POSTS / ARCHIVE
   ===================================================== */
.posts-header { margin-bottom: 24px; }
.posts-header h1, .posts-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
}

.post-card {
  background: #fff;
  border: 0.5px solid #d0e8dc;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.post-card:hover { border-color: #5ecfa0; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
}
.post-tag {
  background: #e2f4ec;
  color: #1a5c3e;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.post-card h2, .post-card h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}
.post-card h2 a, .post-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}
.post-card h2 a:hover, .post-card h3 a:hover { color: #1f6b4e; }
.post-excerpt { font-size: 14px; color: #555; line-height: 1.65; }
.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #1f6b4e;
  font-weight: 500;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* SINGLE POST */
.single-post-content {
  background: #fff;
  border: 0.5px solid #d0e8dc;
  border-radius: 10px;
  padding: 32px;
}
.single-post-content h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.single-post-content .entry-content { font-size: 15px; line-height: 1.75; color: #333; }
.single-post-content .entry-content p { margin-bottom: 1.2em; }
.single-post-content .entry-content h2 { font-size: 20px; font-weight: 500; margin: 1.8em 0 .6em; color: #1a1a1a; }
.single-post-content .entry-content h3 { font-size: 17px; font-weight: 500; margin: 1.5em 0 .5em; color: #1a1a1a; }
.single-post-content .entry-content ul, .single-post-content .entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.single-post-content .entry-content li { margin-bottom: .4em; }
.single-post-content .entry-content a { color: #1f6b4e; }
.single-post-content .entry-content blockquote {
  border-left: 3px solid #5ecfa0;
  padding: 12px 20px;
  margin: 1.5em 0;
  background: #f4f9f6;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #444;
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0.5px solid #c8e0d4;
  font-size: 14px;
  color: #1f6b4e;
  background: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.pagination a:hover { background: #e2f4ec; border-color: #5ecfa0; }
.pagination span.current { background: #1f5c47; color: #fff; border-color: #1f5c47; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar-widget {
  background: #fff;
  border: 0.5px solid #d0e8dc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid #e0eeea;
}
.sidebar-link-list { list-style: none; }
.sidebar-link-list li { border-bottom: 0.5px solid #eef6f2; }
.sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-link-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  transition: color .2s;
}
.sidebar-link-list li a::before { content: '›'; color: #5ecfa0; font-size: 18px; line-height: 1; }
.sidebar-link-list li a:hover { color: #1f6b4e; }
.sidebar-cta {
  background: linear-gradient(135deg, #1f5c47, #2e7a5e);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}
.sidebar-cta h3 { font-size: 17px; font-weight: 500; color: #fff; margin-bottom: 8px; border: none; padding: 0; }
.sidebar-cta p { font-size: 13px; color: #a8d8c0; margin-bottom: 18px; line-height: 1.55; }
.btn-cta {
  display: block;
  background: #5ecfa0;
  color: #0f3d2c;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.btn-cta:hover { background: #4db98a; text-decoration: none; }

/* Recent posts widget */
.widget_recent_entries ul { list-style: none; }
.widget_recent_entries ul li { padding: 8px 0; border-bottom: 0.5px solid #eef6f2; font-size: 13px; }
.widget_recent_entries ul li:last-child { border-bottom: none; }
.widget_recent_entries ul li a { color: #1a1a1a; text-decoration: none; }
.widget_recent_entries ul li a:hover { color: #1f6b4e; }
.widget_recent_entries .post-date { display: block; font-size: 11px; color: #888; margin-top: 2px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #142f25; }
.footer-widgets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid #1f4535;
}
.footer-widget h4 {
  font-size: 14px;
  font-weight: 500;
  color: #d4ece2;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1f4535;
}
.footer-widget p { font-size: 13px; color: #7fb09a; line-height: 1.7; }
.footer-widget ul { list-style: none; }
.footer-widget ul li { padding: 4px 0; }
.footer-widget ul li a { font-size: 13px; color: #7fb09a; text-decoration: none; transition: color .2s; }
.footer-widget ul li a:hover { color: #c0e0d0; }
.footer-partner { margin-top: 14px; }
.footer-partner a { color: #5ecfa0; font-size: 14px; }
.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  color: #4a7060;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .services-inner { grid-template-columns: 1fr 1fr; }
  .site-content-area { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; }
  .hero-stats { flex-direction: row; min-width: 0; width: 100%; justify-content: space-around; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-partner { text-align: left; }
  .site-topbar .topbar-tagline { display: none; }
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; width: 100%; }
  .main-navigation.toggled ul { flex-direction: column; }
  .main-navigation.toggled ul li a { border-bottom: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .nav-menu-toggle { display: block; }
  .services-inner { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
  .hero-content h2 { font-size: 22px; }
}
