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

:root {
  --black:    #0d0d0d;
  --mid:      #6b6b6b;
  --light:    #e0e0e0;
  --bg:       #fafaf8;
  --accent:   #b85c38;
  --accent-h: #9e4a28;
  --font:     'Inter', sans-serif;
  --nav-h:    68px;
  --max-w:    1180px;
  --post-w:   680px;
  --ease:     cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.06); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--black);
  transition: color .2s;
}
.site-logo:hover { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: -.01em;
  padding: 6px 0;
  display: block;
  transition: color .2s;
}
.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a { color: var(--black); }

/* Dropdown */
.nav-menu > li.menu-item-has-children,
.nav-menu > li.has-dropdown { position: relative; }

/* Невидимый «мост» между пунктом меню и dropdown, чтобы hover не терялся */
.nav-menu > li.menu-item-has-children::after,
.nav-menu > li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  opacity: 0;
  pointer-events: none;
}
.nav-menu > li.menu-item-has-children:hover::after,
.nav-menu > li.has-dropdown:hover::after,
.nav-menu > li:focus-within.menu-item-has-children::after,
.nav-menu > li:focus-within.has-dropdown::after {
  opacity: 1;
  pointer-events: all;
}

.dropdown,
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 192px;
  background: var(--bg);
  border: 1px solid var(--light);
  list-style: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.nav-menu > li:hover .sub-menu,
.nav-menu > li:hover .dropdown,
.nav-menu > li:focus-within .sub-menu,
.nav-menu > li:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
  transition: color .15s, padding-left .15s;
}
.nav-menu .sub-menu li:last-child a { border: none; }
.nav-menu .sub-menu li a:hover { color: var(--accent); padding-left: 26px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform .25s var(--ease), opacity .25s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 199;
  padding: 40px 28px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav > ul { list-style: none; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--light); }
.mobile-nav > ul > li > a {
  display: block;
  padding: 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -.02em;
  transition: color .2s;
}
.mobile-nav > ul > li > a:hover { color: var(--accent); }
.mobile-sub { padding: 0 0 14px 0; list-style: none; }
.mobile-sub li a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  transition: color .2s;
}
.mobile-sub li a:hover { color: var(--accent); }

/* ── SECTION LABEL ──────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── HOMEPAGE: HERO ─────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--light);
  padding: 96px 40px 88px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}
.hero-left { animation: fadeUp .6s var(--ease) both; }
.hero-eyebrow { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}
.social-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  transition: color .2s;
}
.social-item svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.social-item:hover { color: var(--accent); }
.hero-photo {
  animation: fadeUp .6s var(--ease) .15s both;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo img {
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── HOMEPAGE: PROJECTS ─────────────────────────────────────── */
.section-projects { border-bottom: 1px solid var(--light); }
.projects-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}
.projects-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.projects-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.projects-title::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.project-card {
  padding: 48px 44px;
  border: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.project-card:nth-child(2) { animation-delay: .1s; }
.project-card:hover { background: rgba(0,0,0,.02); }
.project-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 32px;
}
.project-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--black);
}
.project-name .punct { color: var(--accent); }
.project-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 340px;
}
.project-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 36px;
  flex: 1;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s, border-color .2s, gap .2s;
}
.project-link::after { content: '→'; }
.project-link:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.project-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 24px;
  align-self: flex-start;
}
.project-type::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── HOMEPAGE: BLOG SECTION ─────────────────────────────────── */
.section-blog { border-bottom: 1px solid var(--light); }
.blog-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.blog-left { animation: fadeUp .5s var(--ease) both; }
.blog-kicker { margin-bottom: 24px; }
.blog-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.blog-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}
.btn-blog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 13px 28px;
  border: none;
  transition: background .2s var(--ease), gap .2s;
}
.btn-blog::after { content: '→'; }
.btn-blog:hover { background: var(--accent-h); gap: 14px; }
.blog-right { animation: fadeUp .5s var(--ease) .1s both; }
.blog-topics-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 18px;
}
.blog-topics { list-style: none; }
.blog-topics li {
  padding: 14px 0;
  border-bottom: 1px solid var(--light);
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color .2s;
}
.blog-topics li:first-child { border-top: 1px solid var(--light); }
.blog-topics li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.blog-topics li:hover { color: var(--black); }
.blog-topics li:hover::before { transform: scale(1.6); }

/* ── HOMEPAGE: ABOUT ────────────────────────────────────────── */
.section-about { border-bottom: 1px solid var(--light); }
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-left { animation: fadeUp .5s var(--ease) both; }
.about-kicker { margin-bottom: 24px; }
.about-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text strong { font-weight: 600; color: var(--black); }
.about-since {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
}
.about-since::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--accent);
}
.about-right {
  animation: fadeUp .5s var(--ease) .12s both;
  padding-top: 4px;
}
.about-stats { list-style: none; }
.about-stat {
  padding: 22px 0;
  border-bottom: 1px solid var(--light);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: baseline;
}
.about-stat:first-child { border-top: 1px solid var(--light); }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--black);
}
.stat-num span { font-size: 18px; color: var(--accent); }
.stat-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  line-height: 1.5;
}

/* ── BLOG ARCHIVE: HERO POST ────────────────────────────────── */
.hero-wrap { border-bottom: 1px solid var(--light); }
.hero-post {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 72px;
  animation: fadeUp .6s var(--ease) both;
}
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow-badge::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--accent);
  display: block;
}
.hero-post-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.03em;
  max-width: 760px;
  margin-bottom: 22px;
}
.hero-post-title a { transition: color .2s; }
.hero-post-title a:hover { color: var(--accent); }
.hero-post-meta {
  font-size: 13px;
  color: var(--mid);
  font-weight: 400;
  margin-bottom: 22px;
}
.hero-post-excerpt {
  font-size: 18px;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 36px;
}
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 24px;
  transition: background .2s var(--ease), gap .2s;
}
.btn-read::after { content: '→'; }
.btn-read:hover { background: var(--accent-h); gap: 14px; }

/* ── BLOG ARCHIVE: LAYOUT ───────────────────────────────────── */
.content-area {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 40px 96px;
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 72px;
  align-items: start;
}

/* ── POST LIST ──────────────────────────────────────────────── */
.post-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--light);
  animation: fadeUp .5s var(--ease) both;
}
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }
.post-item:nth-child(1) { animation-delay: .05s; }
.post-item:nth-child(2) { animation-delay: .12s; }
.post-item:nth-child(3) { animation-delay: .19s; }
.post-item:nth-child(4) { animation-delay: .26s; }
.post-item:nth-child(5) { animation-delay: .33s; }
.post-item:nth-child(6) { animation-delay: .40s; }
.post-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 10px;
}
.post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.post-title a { transition: color .2s; }
.post-title a:hover { color: var(--accent); }
.post-excerpt {
  font-size: 14.5px;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.7;
  max-width: 540px;
}

/* Пагинация */
.pagination {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination .page-numbers {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  padding: 8px 12px;
  border: 1px solid var(--light);
  transition: color .2s, border-color .2s;
  line-height: 1;
}
.pagination .page-numbers:hover { color: var(--accent); border-color: var(--accent); }
.pagination .page-numbers.current {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.pagination .page-numbers.dots { border: none; padding: 8px 4px; }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.widget-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-head::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.about-text-widget {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 18px;
}
.about-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.about-link::after { content: '→'; }
.about-link:hover { gap: 10px; }
.top-posts { list-style: none; }
.top-posts li {
  padding: 13px 0;
  border-bottom: 1px solid var(--light);
}
.top-posts li:last-child { border-bottom: none; }
.tp-date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light);
  display: block;
  margin-bottom: 4px;
}
.top-posts a {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  line-height: 1.45;
  transition: color .2s;
}
.top-posts a:hover { color: var(--accent); }

/* Виджеты WP */
.sidebar-widget .widget { }
.sidebar-widget .widget ul { list-style: none; }
.sidebar-widget .widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
}
.sidebar-widget .widget ul li a { transition: color .2s; }
.sidebar-widget .widget ul li a:hover { color: var(--accent); }
.sidebar-widget .widget_text p {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.75;
}

/* ── SINGLE POST ────────────────────────────────────────────── */
.read-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 300;
  transition: width .1s linear;
}

.breadcrumb-bar { border-bottom: 1px solid var(--light); }
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mid);
  font-weight: 500;
}
.breadcrumb a { color: var(--mid); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--light); }

.post-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 96px;
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 72px;
  align-items: start;
}
.post-layout .sidebar { padding-top: 64px; }

.post-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--light);
  margin-bottom: 52px;
  animation: fadeUp .55s var(--ease) both;
}
.post-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.post-category::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}
.post-h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  max-width: 640px;
  margin-bottom: 24px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-date-full {
  font-size: 13px;
  color: var(--mid);
  font-weight: 400;
}
.post-read-time {
  font-size: 12px;
  color: var(--light);
  font-weight: 500;
  letter-spacing: .04em;
}
.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--light);
  flex-shrink: 0;
}

/* ── POST BODY TYPOGRAPHY ───────────────────────────────────── */
.post-body {
  animation: fadeUp .6s var(--ease) .1s both;
  max-width: var(--post-w);
}
.post-body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 28px;
}
.post-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 52px 0 20px;
  color: var(--black);
}
.post-body h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 36px 0 14px;
}
.post-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.post-body a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.post-body a:hover { border-color: var(--accent); }
.post-body strong { font-weight: 700; color: var(--black); }
.post-body em { font-style: italic; }
.post-body ul,
.post-body ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 28px;
}
.post-body ul li,
.post-body ol li {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--black);
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid var(--light);
}
.post-body ul li:first-child,
.post-body ol li:first-child { border-top: 1px solid var(--light); }
.post-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
.post-body ol { counter-reset: post-ol; }
.post-body ol li::before {
  content: counter(post-ol) '.';
  counter-increment: post-ol;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.post-body blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: rgba(184,92,56,.04);
}
.post-body blockquote p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  font-style: italic;
  color: var(--black);
  margin: 0;
}
.post-body .lead {
  font-size: 19px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 36px;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--light);
  margin: 48px 0;
}
.post-body figure { margin: 36px 0; }
.post-body figcaption {
  font-size: 12px;
  color: var(--mid);
  margin-top: 10px;
  font-style: italic;
}
.post-body img { max-width: 100%; }
.post-body .wp-block-image { margin: 36px 0; }
.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: rgba(0,0,0,.05);
  padding: 2px 6px;
  border-radius: 2px;
}
.post-body pre {
  background: rgba(0,0,0,.05);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 28px;
}
.post-body pre code {
  background: none;
  padding: 0;
}

/* ── POST FOOTER: SHARE ─────────────────────────────────────── */
.post-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp .5s var(--ease) .2s both;
}
.share-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--light);
}
.share-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.share-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
}
.share-link:hover { color: var(--accent); }
.share-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.share-link.copied { color: var(--accent); }

/* ── AUTHOR CARD ────────────────────────────────────────────── */
.author-card {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid var(--light);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  animation: fadeUp .5s var(--ease) .25s both;
}
.author-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.author-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.author-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--black);
}
.author-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
}
.author-bio {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 18px;
}
.author-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.social-link svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.social-link:hover { color: var(--accent); }
.author-more {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.author-more::after { content: '→'; }
.author-more:hover { color: var(--accent); }

/* ── POST NAV ───────────────────────────────────────────────── */
.post-nav {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--light);
  animation: fadeUp .5s var(--ease) .25s both;
}
.post-nav-item {
  padding: 28px;
  transition: background .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-nav-item:hover { background: rgba(0,0,0,.02); }
.post-nav-item + .post-nav-item { border-left: 1px solid var(--light); }
.nav-dir {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dir.prev::before { content: '←'; color: var(--accent); }
.nav-dir.next { justify-content: flex-end; }
.nav-dir.next::after { content: '→'; color: var(--accent); }
.nav-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--black);
  transition: color .2s;
}
.post-nav-item:hover .nav-title { color: var(--accent); }
.post-nav-item.is-next .nav-dir,
.post-nav-item.is-next .nav-title { text-align: right; }

/* ── COMMENTS ───────────────────────────────────────────────── */
.comments-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 0 96px;
  border-top: 1px solid var(--light);
}
.comments-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.comments-heading::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.comments-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--light);
}
.comment-list {
  list-style: none;
  margin-bottom: 64px;
}
.comment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--light);
}
.comment:first-child { padding-top: 0; }
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.comment-avatar img { width: 40px; height: 40px; object-fit: cover; }
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.comment-author {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--black);
}
.comment-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--light);
  letter-spacing: .04em;
}
.comment-edit-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-left: auto;
  transition: color .2s;
}
.comment-edit-link:hover { color: var(--accent); }
.comment-reply-link {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.comment-reply-link:hover { color: var(--accent); }
.comment-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.7;
}
.comment-text p { margin-bottom: 12px; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
/* Вложенные ответы */
.children {
  list-style: none;
  padding-left: calc(40px + 16px);
}
.children .comment { padding: 20px 0; }
.children .comment-avatar { width: 32px; height: 32px; }
.children .comment-avatar img { width: 32px; height: 32px; }

/* ── COMMENT FORM ───────────────────────────────────────────── */
.comment-form-section {}
.form-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.form-heading::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
#respond h3#reply-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
#respond h3#reply-title::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
#respond h3#reply-title small { display: none; }
.login-note {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: 1.6;
}
.login-note a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.login-note a:hover { border-color: var(--accent); }
.logged-as {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--light);
  margin-bottom: 24px;
}
.logged-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.logged-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.logged-info { flex: 1; }
.logged-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.logged-hint {
  font-size: 11px;
  color: var(--mid);
  margin-top: 2px;
}
.logout-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .2s;
  white-space: nowrap;
}
.logout-link:hover { color: var(--accent); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-full { margin-bottom: 16px; }
.field label,
#respond label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
}
.field label .req { color: var(--accent); margin-left: 2px; }
.field input,
.field textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--bg);
  border: 1px solid var(--light);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
  line-height: 1.6;
  -webkit-appearance: none;
  width: 100%;
}
.field textarea { font-size: 15px; padding: 14px 16px; line-height: 1.65; }
#respond textarea { font-size: 15px; padding: 14px 16px; line-height: 1.65; }
.field input::placeholder,
.field textarea::placeholder,
#respond input::placeholder,
#respond textarea::placeholder { color: var(--light); }
.field input:focus,
.field textarea:focus,
#respond input:focus,
#respond textarea:focus {
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(107,107,107,.08);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"],
#respond input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-row span,
#respond .comment-form-cookies-consent label {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.5;
}
.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: -14px;
  margin-bottom: 24px;
}
.char-count {
  font-size: 11px;
  color: var(--light);
  font-weight: 500;
}
.char-count.warn { color: var(--accent); }
.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn-submit,
#respond #submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 13px 28px;
  cursor: pointer;
  transition: background .2s var(--ease), gap .2s;
}
.btn-submit::after,
#respond #submit::after { content: '→'; }
.btn-submit:hover,
#respond #submit:hover { background: var(--accent-h); gap: 14px; }
.btn-submit:disabled { background: var(--light); cursor: default; }
.btn-submit:disabled::after { content: ''; }
.cancel-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  transition: color .2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0;
}
.cancel-link:hover { color: var(--black); }
/* WP reply form fields */
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url { margin-bottom: 16px; }
#respond .comment-form-comment { margin-bottom: 4px; }
#respond .form-submit { margin-top: 0; }
#respond .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--light); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo { font-size: 14px; font-weight: 700; color: var(--black); }
.footer-copy { font-size: 12px; color: var(--mid); }

/* ── PAGE 404 ────────────────────────────────────────────────── */
.page-404 {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 40px;
  text-align: center;
}
.page-404 .error-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--light);
  margin-bottom: 24px;
}
.page-404 h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.page-404 p { font-size: 16px; color: var(--mid); margin-bottom: 36px; }
.page-404 .btn-read { margin: 0 auto; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { justify-content: flex-start; }
  .hero-photo img { width: 200px; height: 240px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(2) { border-top: none; }

  .blog-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }

  .content-area {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .sidebar { position: static; }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .post-layout .sidebar { position: static; padding-top: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item + .post-nav-item { border-left: none; border-top: 1px solid var(--light); }
  .post-nav-item.is-next .nav-dir,
  .post-nav-item.is-next .nav-title { text-align: left; }
  .nav-dir.next { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .nav-menu { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: block; }
  .nav-inner { padding: 0 20px; }

  .hero { padding: 56px 20px 52px; }
  .hero-desc { font-size: 16px; }
  .hero-socials { flex-wrap: wrap; gap: 16px; }

  .projects-inner { padding: 56px 20px; }
  .project-card { padding: 36px 28px; }

  .blog-inner { padding: 56px 20px; }
  .about-inner { padding: 56px 20px; }

  .hero-post { padding: 52px 20px 48px; }
  .hero-post-excerpt { font-size: 16px; }

  .content-area { padding: 44px 20px 64px; }
  .breadcrumb { padding: 14px 20px; }
  .post-layout { padding: 0 20px 64px; }
  .post-header { padding: 44px 0 36px; }

  .post-body p, .post-body ul li, .post-body ol li { font-size: 16px; }
  .post-body .lead { font-size: 17px; }
  .post-body blockquote p { font-size: 16px; }

  .author-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .author-photo { width: 56px; height: 56px; }
  .author-more { margin-left: 0; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
  }

  .comments-wrap { padding: 48px 0 64px; }
  .children { padding-left: calc(32px + 12px); }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .logged-as { flex-wrap: wrap; gap: 10px; }

  .page-404 { padding: 64px 20px; }
}
