@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --poma-ink: #1c1917;
  --poma-muted: #57534e;
  --poma-bg: #fafaf9;
  --poma-card: #ffffff;
  --poma-accent: #44403c;
  --poma-accent-soft: #78716c;
  --poma-border: #e7e5e4;
  --poma-radius: 16px;
  --poma-shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
}

/* ===== Блог и каталог ===== */
.poma-wrap {
  font-family: 'Inter', sans-serif;
  color: var(--poma-ink);
  background: var(--poma-bg);
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.poma-wrap h1,
.poma-wrap h2,
.poma-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.25;
}

.poma-hero {
  text-align: center;
  margin-bottom: 48px;
}

.poma-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.poma-hero p {
  color: var(--poma-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.poma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.poma-card {
  background: var(--poma-card);
  border: 1px solid var(--poma-border);
  border-radius: var(--poma-radius);
  padding: 24px;
  box-shadow: var(--poma-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.poma-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.12);
}

.poma-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.poma-card p {
  color: var(--poma-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.poma-card a.poma-link {
  color: var(--poma-accent);
  font-weight: 600;
  text-decoration: none;
}

.poma-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.poma-cats a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--poma-border);
  background: var(--poma-card);
  color: var(--poma-ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.poma-cats a:hover {
  background: var(--poma-border);
}

/* ===== Статьи блога (single post) ===== */
.poma-article .entry-content,
.poma-article .poma-geo {
  max-width: 760px;
  margin: 0 auto;
}

.poma-geo {
  background: var(--poma-card);
  border-left: 4px solid var(--poma-accent-soft);
  padding: 20px 24px;
  margin: 24px 0 32px;
  border-radius: 0 var(--poma-radius) var(--poma-radius) 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.poma-article .entry-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.poma-article .entry-content ul,
.poma-article .entry-content ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

/* ===== Интерактивные тесты ===== */
.poma-quiz {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  font-family: 'Inter', sans-serif;
}

.poma-quiz__progress {
  height: 6px;
  background: var(--poma-border);
  border-radius: 999px;
  margin-bottom: 32px;
  overflow: hidden;
}

.poma-quiz__progress-bar {
  height: 100%;
  background: var(--poma-accent);
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 0%;
}

.poma-quiz__question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 28px;
  line-height: 1.35;
}

.poma-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poma-quiz__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--poma-border);
  border-radius: 12px;
  background: var(--poma-card);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}

.poma-quiz__option:hover {
  border-color: var(--poma-accent-soft);
  background: #f5f5f4;
}

.poma-quiz__result {
  display: none;
}

.poma-quiz__result.is-visible {
  display: block;
}

.poma-quiz__result h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.poma-quiz__result-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--poma-ink);
  margin-bottom: 28px;
}

.poma-quiz__cta {
  background: var(--poma-card);
  border: 1px solid var(--poma-border);
  border-radius: var(--poma-radius);
  padding: 28px;
  text-align: center;
}

.poma-quiz__cta h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
}

.poma-quiz__cta p {
  color: var(--poma-muted);
  margin-bottom: 20px;
}

.poma-quiz__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.poma-quiz__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.poma-quiz__btn--tg { background: #229ed9; color: #fff; }
.poma-quiz__btn--wa { background: #25d366; color: #fff; }
.poma-quiz__btn--max { background: #7c3aed; color: #fff; }
.poma-quiz__btn--phone { background: var(--poma-accent); color: #fff; }

.poma-quiz__btn:hover { opacity: 0.9; color: #fff; }

.poma-quiz__phone {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 600;
}

.poma-quiz__phone a {
  color: var(--poma-ink);
  text-decoration: none;
}

@media (max-width: 640px) {
  .poma-wrap { padding: 24px 16px 48px; }
  .poma-quiz { padding: 20px 16px 48px; }
}
