/* ===== ТЕХНО·ДОМ — ЗАДАЧИ (расширенный обзор) ===== */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text-mid: #4B5563;
  --text-soft: #6B7280;
  --border: #E5E7EB;
  --accent: #1E40AF;
  --accent-light: #DBEAFE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --cleaning: #06B6D4;
  --cooking: #92400E;
  --laundry: #3B82F6;
  --storage: #1E40AF;
  --comfort: #0891B2;
  --dacha: #EA580C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== HEADER ===== */
.post-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.post-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-back {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--accent); }
.post-header-cat {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== TASK HERO ===== */
.task-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: left;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.task-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--task-color, var(--accent));
}
.task-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--task-color, var(--accent));
  color: #FFFFFF;
  border-radius: 100px;
  margin-bottom: 16px;
}
.task-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.post-lead {
  font-size: 19px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 720px;
}
.post-meta {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.post-meta span { position: relative; }
.post-meta span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -12px;
  color: var(--text-soft);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.post-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.post-content { font-size: 17px; line-height: 1.7; color: var(--text); }
.post-content > p {
  margin-bottom: 18px;
  color: var(--text-mid);
}
.post-content > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 6px 8px 0 0;
  color: var(--accent);
}
.post-content > h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  margin: 40px 0 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ===== ТОВАРНАЯ КАРТОЧКА ===== */
.post-product {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-product-img {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
}
.post-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.post-product-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.post-product-stats {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.post-product-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.post-product-old {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: line-through;
}
.post-product-discount {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.post-product-cta {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.15s;
}
.post-product-cta:hover {
  background: #1E3A8A;
  transform: translateY(-1px);
}

/* ===== БЛОК "ПОЧЕМУ ИМЕННО ЭТОТ" ===== */
.post-why {
  margin: 20px 0 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.post-why-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 8px;
}
.post-why p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

/* ===== КОМУ ПОДОЙДЁТ / НЕ ПОДОЙДЁТ ===== */
.post-fits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.post-fits-col {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #E5E7EB;
}
.post-fits-col h5 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-fits-col h5::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.post-fits-yes { background: #F0FDF4; border-color: #BBF7D0; }
.post-fits-yes h5 { color: #166534; }
.post-fits-yes h5::before { background: #16A34A; }
.post-fits-no { background: #FEF2F2; border-color: #FECACA; }
.post-fits-no h5 { color: #991B1B; }
.post-fits-no h5::before { background: #DC2626; }
.post-fits-col p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

/* ===== ПЛЮСЫ / МИНУСЫ ===== */
.post-pros, .post-cons {
  margin: 14px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #FAFAFA;
  border: 1px solid #EFEFEF;
}
.post-pros h4, .post-cons h4 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.post-pros h4::before { content: '✓ '; color: #16A34A; font-weight: 800; }
.post-cons h4::before { content: '✗ '; color: #DC2626; font-weight: 800; }
.post-pros ul, .post-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-pros li, .post-cons li {
  font-size: 14.5px;
  line-height: 1.55;
  padding: 4px 0 4px 18px;
  position: relative;
}
.post-pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #16A34A;
  font-weight: 800;
}
.post-cons li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: 800;
}

/* ===== КЛЮЧЕВЫЕ ХАРАКТЕРИСТИКИ ===== */
.post-specs {
  margin: 16px 0;
  padding: 14px 18px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
}
.post-specs h4 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #92400E;
}
.post-specs dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
.post-specs-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  font-size: 14px;
  padding: 3px 0;
  border-bottom: 1px dashed #FCD34D;
}
.post-specs-row:last-child { border-bottom: none; }
.post-specs dt { color: #78350F; font-weight: 500; }
.post-specs dd { color: var(--text); font-weight: 600; margin: 0; }

/* ===== СРАВНИТЕЛЬНАЯ ТАБЛИЦА ===== */
.post-compare { margin: 40px 0 24px; }
.post-compare h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.post-compare-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.post-compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.post-compare thead { background: var(--accent); color: #fff; }
.post-compare th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.01em;
}
.post-compare tbody tr {
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s;
}
.post-compare tbody tr:hover { background: #F9FAFB; }
.post-compare tbody tr:last-child { border-bottom: none; }
.post-compare th:first-child,
.post-compare td:first-child {
  font-weight: 600;
  background: #F9FAFB;
  color: var(--text);
}
.post-compare td { padding: 12px 16px; color: var(--text-mid); }

/* ===== FAQ ===== */
.post-faq { margin: 48px 0 24px; }
.post-faq h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.post-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s;
}
.post-faq details[open] {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
}
.post-faq details summary {
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fraunces', serif;
  transition: background 0.15s;
}
.post-faq details summary::-webkit-details-marker { display: none; }
.post-faq details summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
  font-family: 'Manrope', sans-serif;
}
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq details summary:hover { background: #F9FAFB; }
.post-faq details p {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===== FOOTER CTA ===== */
.post-footer-cta {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.post-footer-cta p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 15px;
}
.post-footer-cta a {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.post-footer-cta a:hover { background: #1E3A8A; }

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--text);
  color: #D1D5DB;
  padding: 32px 24px;
  text-align: center;
  margin-top: 60px;
}
.site-footer p { font-size: 14px; margin: 4px 0; }
.footer-disclaimer { color: #9CA3AF; font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .post-main { padding: 32px 16px 60px; }
  .task-hero { padding: 40px 16px 24px; }
  .task-hero h1 { font-size: 30px; }
  .post-lead { font-size: 17px; }
  .post-content { font-size: 16px; }
  .post-content > h2 { font-size: 24px; }
  .post-product {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .post-product-img { max-width: 240px; margin: 0 auto; width: 100%; }
  .post-product-body h2 { font-size: 20px; }
  .post-product-price { font-size: 24px; }
  .post-compare h2, .post-faq h2 { font-size: 24px; }
  .post-fits { grid-template-columns: 1fr; gap: 12px; }
  .post-compare-wrap { overflow-x: auto; }
  .post-faq details summary { font-size: 16px; padding: 14px 18px; }
  .post-specs-row { grid-template-columns: 130px 1fr; }
}
