:root {
  --bg: #f4f6ed;
  --panel: #fbf9f3;
  --text: #1e2a1e;
  --muted: #5f6d5f;
  --accent: #2f6f3e;
  --accent-soft: #dbe9db;
  --border: #cad8c4;
  /* Тёплый акцент — янтарь/терракота для CTA и ценников */
  --warm: #c27a35;
  --warm-hover: #a8631f;
  --warm-soft: #fdf0e3;
}

* {
  box-sizing: border-box;
}

*:focus-visible {
  outline: 2px solid rgba(47, 111, 62, 0.75);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #eff8dc 0%, var(--bg) 40%, #ecf0e5 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #123524 0%, #2f6f3e 60%, #89ad7f 100%);
  color: #f8fff8;
  padding: 2.4rem 1rem;
  border-bottom: 1px solid rgba(248, 255, 248, 0.18);
  box-shadow: 0 16px 36px rgba(18, 53, 36, 0.22);
}

.hero--page::before,
.hero--page::after,
.hero--history::before,
.hero--history::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.0) 55%),
    radial-gradient(circle at 70% 60%, rgba(219, 233, 219, 0.18) 0%, rgba(219, 233, 219, 0.0) 55%),
    radial-gradient(circle at 50% 80%, rgba(137, 173, 127, 0.18) 0%, rgba(137, 173, 127, 0.0) 55%);
  transform: rotate(8deg);
  pointer-events: none;
}

.hero--page::after,
.hero--history::after {
  opacity: 0.55;
  animation: drift 10s ease-in-out infinite;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(2.2%, -1.2%, 0) rotate(6deg); }
  100% { transform: translate3d(0, 0, 0) rotate(8deg); }
}

.hero__inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
}

.hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.hero h1 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
}

.hero__subtitle {
  margin: 0;
  max-width: 60ch;
  color: rgba(248, 255, 248, 0.92);
}

.hero__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.hero__cta--primary {
  color: #fff;
  background: var(--warm);
  border-color: var(--warm);
}

.hero__cta--primary:hover {
  background: var(--warm-hover);
  border-color: var(--warm-hover);
  transform: translateY(-1px);
}

.hero__cta--ghost {
  color: #f8fff8;
  background: rgba(248, 255, 248, 0.1);
  border-color: rgba(248, 255, 248, 0.4);
}

.hero__metrics {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero__metrics li {
  font-size: 0.84rem;
  color: rgba(248, 255, 248, 0.93);
  border: 1px solid rgba(248, 255, 248, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: rgba(248, 255, 248, 0.08);
}

.hero__nav {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__nav a {
  color: #f8fff8;
  border: 1px solid rgba(248, 255, 248, 0.35);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.hero__nav a:hover {
  background: rgba(248, 255, 248, 0.18);
  border-color: rgba(248, 255, 248, 0.6);
  transform: translateY(-1px);
}

.hero__nav--tabs a[aria-current="page"] {
  background: rgba(248, 255, 248, 0.22);
  border-color: rgba(248, 255, 248, 0.78);
  box-shadow: 0 8px 18px rgba(16, 46, 27, 0.2);
}

.layout {
  max-width: 1040px;
  margin: 0 auto 2rem;
  padding: 2.5rem 1rem 2rem;
}

.filters {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.09);
  position: sticky;
  top: calc(0.5rem + env(safe-area-inset-top));
  z-index: 4;
}

.filters label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.filters__actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

select,
button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
}

input[type="text"] {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.55);
}

button {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  min-height: 40px;
}

select {
  min-height: 40px;
}

.btn-secondary {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(202, 216, 196, 0.95);
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.58);
}

.btn-secondary[href] {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin: 1.2rem 0 0.8rem;
}

.showcase-panels {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-panel {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(251, 249, 243, 0.8);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.07);
  min-height: 220px;
}

.feed-meta-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(251, 249, 243, 0.8);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.06);
}

.faq-item + .faq-item {
  margin-top: 0.55rem;
}

.faq-item {
  border: 1px solid rgba(202, 216, 196, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.55rem 0.65rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--text);
}

.subscribe {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(251, 249, 243, 0.8);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.06);
}

.subscribe-form {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  flex-wrap: wrap;
}

.subscribe-form label {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 300px;
}

#feed-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.active-filters {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.active-filters:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 62, 0.35);
  background: rgba(47, 111, 62, 0.08);
  color: #173f26;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
}

.filter-chip button {
  all: unset;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #173f26;
  font-size: 0.8rem;
  line-height: 1;
}

.filter-chip button:hover {
  background: rgba(47, 111, 62, 0.16);
}

.filter-reset-all {
  border: 1px solid rgba(47, 111, 62, 0.4);
  border-radius: 999px;
  background: rgba(47, 111, 62, 0.08);
  color: #173f26;
  min-height: 0;
  padding: 0.23rem 0.6rem;
  font-size: 0.82rem;
}

.filter-reset-all:hover {
  background: rgba(47, 111, 62, 0.15);
}

.feed--skeleton {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skeleton-card {
  min-height: 164px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    linear-gradient(110deg, rgba(219, 233, 219, 0.45) 8%, rgba(255, 255, 255, 0.72) 18%, rgba(219, 233, 219, 0.45) 33%),
    rgba(251, 249, 243, 0.96);
  background-size: 220% 100%;
  animation: skeleton-wave 1.45s linear infinite;
}

@keyframes skeleton-wave {
  from { background-position-x: 100%; }
  to { background-position-x: -120%; }
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.pagination__size {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.feed {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(32, 67, 44, 0.08);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  display: flex;
  flex-direction: column;
}

.card:hover,
.card:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(32, 67, 44, 0.15);
}

.card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__image--fallback {
  object-fit: contain;
  background: rgba(232, 239, 227, 0.9);
  padding: 0.35rem;
}

.card__body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #20482b;
  background: rgba(219, 233, 219, 0.95);
  border: 1px solid rgba(140, 173, 131, 0.6);
}

.card__latin {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0;
}

.tag {
  font-size: 0.78rem;
  color: #224a2e;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.card__description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5em;
  flex: 1;
}

.card__more {
  margin-top: 0.55rem !important;
  color: var(--accent);
  font-size: 0.85rem !important;
}

.showcase-empty {
  border: 1px dashed rgba(95, 109, 95, 0.35);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.42);
}

.showcase-empty p {
  margin: 0;
  color: var(--muted);
}

.showcase-empty__actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plant-details {
  margin-top: 1rem;
}

.plant-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.plant-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.plant-card__body {
  padding: 1rem;
}

.plant-meta {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.plant-meta li {
  margin-bottom: 0.45rem;
}

.purchase-links {
  margin-top: 1rem;
}

.purchase-links__grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.purchase-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: var(--text);
}

.purchase-link:hover {
  border-color: rgba(47, 111, 62, 0.65);
  box-shadow: 0 8px 18px rgba(32, 67, 44, 0.1);
}

.purchase-link__label {
  font-weight: 700;
  color: #1f4f2b;
}

.purchase-link__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
}

.site-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.site-footer__title {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer__legal a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
}

.site-footer__requisites {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__social a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.site-footer__social a:hover {
  border-color: rgba(47, 111, 62, 0.7);
  color: #1f4f2b;
}

.legal-summary {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(251, 249, 243, 0.8);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.06);
}

.legal-summary__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.legal-summary__actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quiz-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.quiz-panel {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.09);
}

.quiz-progress {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quiz-question {
  margin: 0.5rem 0 0;
}

.quiz-options {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.quiz-option {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}

.quiz-option input {
  margin-top: 0.15rem;
}

.quiz-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.quiz-actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.quiz-meta {
  color: var(--muted);
  margin: 0.3rem 0 1rem;
}

.quiz-cta {
  margin-top: 1rem;
}

.quiz-cta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 111, 62, 0.4);
}

.quiz-cta a:hover {
  border-bottom-color: var(--accent);
}

.quiz-save {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(202, 216, 196, 0.9);
}

.quiz-email {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(202, 216, 196, 0.9);
}

.quiz-care-plan {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(202, 216, 196, 0.9);
}

.care-plan-list {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.care-plan-item {
  border: 1px solid rgba(202, 216, 196, 0.95);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.42);
}

.care-plan-item ul {
  margin: 0.35rem 0 0;
}

.quiz-fio {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  max-width: 420px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: rgba(47, 111, 62, 0.88);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  border: 1px solid rgba(47, 111, 62, 0.98);
}

.btn-link:hover {
  filter: brightness(1.05);
}

.btn-link[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.history-toolbar {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.09);
}

.history-toolbar label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.history-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.history-list {
  margin-top: 1rem;
}

.history-empty {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.attempt {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 46, 27, 0.08);
  transform-origin: top center;
  animation: rise 420ms ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.attempt__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
}

.attempt__summary::-webkit-details-marker {
  display: none;
}

.attempt__title {
  display: grid;
  gap: 0.2rem;
}

.attempt__name {
  font-size: 1.15rem;
  font-weight: 700;
}

.attempt__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.attempt__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  border: 1px solid rgba(202, 216, 196, 0.95);
  background: rgba(219, 233, 219, 0.55);
  color: #224a2e;
}

.chip--muted {
  background: rgba(255, 255, 255, 0.35);
  color: var(--muted);
}

.chip--accent {
  background: rgba(47, 111, 62, 0.12);
  border-color: rgba(47, 111, 62, 0.35);
  color: #123524;
}

.attempt__body {
  padding: 0 1rem 1rem;
}

.attempt__grid {
  display: grid;
  gap: 1rem;
}

.attempt__panel {
  border: 1px solid rgba(202, 216, 196, 0.95);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.32);
}

.attempt__panel h3 {
  margin: 0 0 0.6rem;
}

.attempt__line {
  margin: 0.35rem 0;
  color: var(--text);
}

.attempt__edit {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  max-width: 420px;
}

.attempt__actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.history-card {
  animation: cardIn 520ms ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--page::after,
  .hero--history::after,
  .attempt,
  .history-card {
    animation: none !important;
  }
}

.blog-root {
  margin-top: 1rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.09);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.blog-card:hover,
.blog-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 46, 27, 0.13);
}

.blog-card__emoji {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(219, 233, 219, 0.55);
  border: 1px solid rgba(202, 216, 196, 0.95);
}

.blog-card__body h2 {
  margin: 0;
  font-size: 1.15rem;
}

.blog-card__meta {
  margin: 0.35rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-card__more {
  margin-top: 0.55rem !important;
  color: var(--accent);
  font-size: 0.9rem !important;
}

.blog-post {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.09);
}

.blog-back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.blog-post__header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.blog-post__content {
  margin-top: 0.8rem;
  line-height: 1.45;
}

.blog-share,
.blog-social {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(202, 216, 196, 0.9);
}

.blog-next {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(202, 216, 196, 0.9);
}

.blog-share__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.blog-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quiz-form fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 0.8rem;
}

.quiz-form label {
  display: block;
  margin-top: 0.45rem;
}

.quiz-result {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.3rem;
    padding-bottom: 1.65rem;
  }

  .hero__inner {
    padding: 0.9rem 0.95rem;
    border-radius: 14px;
  }

  .layout {
    padding-top: 1.5rem;
  }

  .hero__nav {
    gap: 0.5rem;
  }

  .hero__nav a {
    text-align: center;
    flex: 1 1 calc(50% - 0.5rem);
    padding: 0.5rem 0.6rem;
  }

  .feed-header {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .showcase-panels {
    grid-template-columns: 1fr;
  }

  .feed--skeleton {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination__size {
    margin-left: 0;
    justify-content: space-between;
  }

  .filters,
  .subscribe-form,
  .quiz-actions,
  .attempt__actions,
  .blog-share__actions,
  .showcase-empty__actions,
  .legal-summary__actions,
  .site-footer__legal {
    flex-direction: column;
    align-items: stretch;
  }

  .filters label,
  .subscribe-form label {
    width: 100%;
  }

  .filters__actions {
    width: 100%;
  }

  #apply-filters,
  #reset-filters,
  #subscribe-submit,
  #pagination-prev,
  #pagination-next,
  .history-actions button,
  .quiz-actions button,
  .btn-link,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .blog-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .blog-card__emoji {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

/* =============================================
   App Promo / Download Section
   ============================================= */

.app-promo {
  margin-top: 1.2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(219, 233, 219, 0.55) 0%, rgba(251, 249, 243, 0.9) 100%);
  box-shadow: 0 10px 24px rgba(16, 46, 27, 0.08);
}

.app-promo__body {
  display: grid;
  gap: 1.25rem;
}

.app-promo__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-promo__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.app-promo__icon {
  font-size: 1.35rem;
  line-height: 1.35;
  flex-shrink: 0;
}

.app-promo__actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* APK download — primary CTA */
.app-promo__apk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  background: var(--warm);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: inherit;
  align-self: flex-start;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(194, 122, 53, 0.35);
}

.app-promo__apk-btn:hover {
  background: var(--warm-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 122, 53, 0.45);
}

.app-promo__apk-btn:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

.app-promo__apk-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.app-promo__apk-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.82;
  margin-left: 0.2rem;
}

.app-promo__stores {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.app-promo__apk-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: #f3f4f6;
  border: 1px solid #e0e7e0;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-promo__store-btn {
  position: relative;
  display: inline-flex;
  cursor: default;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  background: #1a1a2e;
  color: #fff;
  font-family: inherit;
  transition: background 0.18s, transform 0.12s;
  overflow: hidden;
}

.app-promo__store-btn:hover {
  background: #252545;
  transform: translateY(-1px);
}

.app-promo__store-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-promo__store-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}

.app-promo__store-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.app-promo__store-text small {
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-promo__store-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-promo__soon-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--warm);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1;
}

.app-promo__install-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
}

@media (max-width: 480px) {
  .app-promo__apk-btn {
    align-self: stretch;
    justify-content: center;
  }

  .app-promo__stores {
    flex-direction: column;
  }

  .app-promo__store-btn {
    justify-content: center;
  }
}

/* =============================================
   PWA Install Banner
   ============================================= */
#pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1b5e20;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
  animation: pwa-slide-up 0.28s ease-out;
}

@keyframes pwa-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pwa-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.pwa-banner__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pwa-banner__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.pwa-banner__btn {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.pwa-banner__btn:hover { opacity: 0.85; }

.pwa-banner__btn--install {
  background: #fff;
  color: #1b5e20;
}

.pwa-banner__btn--dismiss {
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .pwa-banner__inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pwa-banner__text {
    order: 1;
    width: calc(100% - 2.5rem);
  }
  .pwa-banner__btn--install {
    order: 2;
    flex: 1;
  }
  .pwa-banner__btn--dismiss {
    order: 0;
    margin-left: auto;
  }
}

@media (max-width: 479px) {
  .card img { height: 150px; }
}

/* ── Auth forms ─────────────────────────────────────────── */
.auth-form-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.auth-form {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e0e7e0;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1b5e20;
  margin: 0;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.auth-form__field input {
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
  background: #fafafa;
}

.auth-form__field input:focus {
  border-color: #2e7d32;
  background: #fff;
}

.auth-form__error {
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
}

.auth-form__submit {
  padding: 0.75rem 1rem;
  background: #2e7d32;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-form__submit:hover {
  background: #1b5e20;
}

.auth-form__submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.auth-form__switch {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.auth-form__switch a {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
}

.auth-form__switch a:hover {
  text-decoration: underline;
}

/* ── Collection (Мои растения) ──────────────────────────── */
.collection-header {
  margin-bottom: 1.5rem;
}

.collection-header h2 {
  font-size: 1.1rem;
  color: #374151;
  font-weight: 600;
}

.plant-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.plant-card-item {
  background: #fff;
  border: 1px solid #e0e7e0;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plant-card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plant-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.plant-card-body {
  padding: 0.75rem;
  flex: 1;
}

.plant-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #1a1a1a;
}

.plant-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.btn-remove-plant {
  width: 100%;
  padding: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  border: none;
  border-top: 1px solid #fca5a5;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-remove-plant:hover {
  background: #fee2e2;
}

.btn-remove-plant:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.feed-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.feed-empty-icon {
  display: block;
  margin: 0 auto 1.25rem;
}

.feed-empty--heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary, #1b5e20);
  margin-bottom: 0.5rem;
}

.feed-empty--hint {
  color: var(--text-secondary, #555);
  max-width: 28rem;
  margin: 0 auto 0.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--warm);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--warm-hover);
}

/* Кнопка «В коллекцию» на карточке растения */
.collection-action {
  margin-top: 1.5rem;
}

.btn-collection {
  padding: 0.65rem 1.25rem;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-collection:hover {
  background: #c8e6c9;
}

.btn-collection--in {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

.btn-collection--in:hover {
  background: #1b5e20;
}

/* --- Paywall CTA блок (quiz-result, my-plants) --- */
.paywall-cta {
  max-width: 540px;
  margin: 2.5rem auto 1rem;
}

.paywall-cta__inner {
  background: linear-gradient(135deg, #fdf0e3 0%, #fbf9f3 100%);
  border: 2px solid #e8c99a;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: center;
}

.paywall-cta__icon { font-size: 2.5rem; margin: 0 0 0.5rem; }

.paywall-cta__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.paywall-cta__sub {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.paywall-cta__btn {
  display: inline-block;
  background: #c27a35;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.paywall-cta__btn:hover { opacity: 0.88; }

.paywall-cta__note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* =========================================================
   NEW COMPONENTS: index.html, catalog.html, quiz intro
   ========================================================= */

:root {
  --warm-border: rgba(194, 122, 53, 0.35);
  --dark-green: #1a3a28;
  --dark-green-2: #264d35;
}

/* ----- CTA кнопки (btn-cta) ----- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
  min-height: 44px;
}
.btn-cta:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-cta--amber {
  background: var(--warm);
  color: #fff;
  border-color: var(--warm);
}
.btn-cta--amber:hover { background: var(--warm-hover); border-color: var(--warm-hover); }
.btn-cta--ghost {
  background: rgba(248, 255, 248, 0.1);
  color: #f8fff8;
  border-color: rgba(248, 255, 248, 0.4);
}

/* ----- Editorial Hero (index.html) ----- */
.editorial-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  align-items: center;
}

/* Featured plant card */
.featured-card {
  border-radius: 20px;
  background: linear-gradient(145deg, var(--dark-green) 0%, var(--dark-green-2) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 48px rgba(18, 53, 36, 0.35),
    0 0 60px rgba(194, 122, 53, 0.18);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}
.featured-card__photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: none; /* скрыта пока JS не загрузит src */
  flex-shrink: 0;
}
.featured-card__photo.is-loaded {
  display: block;
}
.featured-card__inner {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: #f0fff4;
}
.featured-card__emoji {
  font-size: 3rem;
  line-height: 1;
}
.featured-card__name {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.featured-card__desc {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(240, 255, 244, 0.82);
  line-height: 1.4;
}
.featured-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--warm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(194, 122, 53, 0.35);
  width: fit-content;
  padding-bottom: 1px;
  transition: border-color 0.14s;
}
.featured-card__link:hover { border-color: var(--warm); }

.badge--amber {
  background: rgba(194, 122, 53, 0.22);
  color: #f5c07a;
  border: 1px solid rgba(194, 122, 53, 0.45);
}

/* Hero pitch (right column) */
.hero-pitch {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-pitch__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.hero-pitch__h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  color: var(--text);
}
.hero-pitch__sep {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--warm);
}
.hero-pitch__sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42ch;
}
.hero-pitch__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Mobile: editorial hero → 1 col */
@media (max-width: 767px) {
  .editorial-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 1rem;
    gap: 1.25rem;
  }
  .featured-card { min-height: 260px; }
  .btn-cta--ghost { display: none; } /* скрываем ghost-кнопку на мобиле, экономим место */
  .hero-pitch__actions { flex-direction: column; }
  .hero-pitch__actions .btn-cta { width: 100%; text-align: center; }
}

/* ----- Quiz Strip ----- */
.quiz-strip {
  background: linear-gradient(120deg, #f5efe6 0%, #ede4d6 100%);
  color: #2a1f14;
  margin: 0;
  border-top: 1px solid #e0d4c3;
  border-bottom: 1px solid #e0d4c3;
}
.quiz-strip__label { color: #2a1f14; }
.quiz-strip__sub { color: #6b5a47; }
.quiz-strip__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.quiz-strip__label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.quiz-strip__sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: rgba(240, 255, 244, 0.78);
}

/* ----- Preview Section (index.html) ----- */
.preview-section {
  padding-top: 1.5rem;
}
.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.preview-section__footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
@media (max-width: 639px) {
  .preview-grid {
    grid-template-columns: minmax(200px, 1fr);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.9rem;
    padding-bottom: 0.5rem;
  }
  .preview-grid .card {
    min-width: 220px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ----- App Promo Strip (index.html) ----- */
.app-promo-strip {
  background: linear-gradient(135deg, var(--dark-green) 0%, #264d35 100%);
  color: #f0fff4;
  margin-top: 2rem;
  box-shadow: 0 0 60px rgba(194, 122, 53, 0.12) inset;
}
.app-promo-strip__inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.app-promo-strip__header { margin-bottom: 1.25rem; }
.app-promo-strip__header h2 { margin: 0; color: #fff; }
.app-promo-strip__sub {
  margin: 0.3rem 0 0;
  color: rgba(240, 255, 244, 0.8);
}
.app-promo-strip__features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.app-promo-strip__features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(240, 255, 244, 0.9);
  font-size: 0.95rem;
}
.app-promo-strip__icon { font-size: 1.25rem; flex-shrink: 0; }
.app-promo-strip__actions { margin-bottom: 1rem; }

/* Сохраняем совместимость с существующим .app-promo__apk-btn */
.app-promo__apk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--warm);
  color: #fff;
  border-radius: 14px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.14s, transform 0.14s;
  min-height: 44px;
}
.app-promo__apk-btn:hover { background: var(--warm-hover); transform: translateY(-2px); }
.app-promo__apk-sub {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.85;
}
.app-promo__apk-icon { flex-shrink: 0; }
.app-promo__install-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(240, 255, 244, 0.6);
}

/* ----- Catalog Layout (catalog.html) ----- */
.catalog-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.catalog-sidebar {
  position: sticky;
  top: 56px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(251, 249, 243, 0.88);
  box-shadow: 0 8px 20px rgba(16, 46, 27, 0.07);
}
.sidebar-section { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  padding: 0.42rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
  text-align: left;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.sidebar-btn:hover {
  background: var(--accent-soft);
  border-color: rgba(47, 111, 62, 0.25);
}
.sidebar-btn.active {
  background: rgba(47, 111, 62, 0.12);
  border-color: rgba(47, 111, 62, 0.45);
  color: #1a3a1a;
  font-weight: 600;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  min-height: 36px;
}
.sidebar-toggle input { display: none; }
.sidebar-toggle__track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s;
}
.sidebar-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.sidebar-toggle input:checked ~ .sidebar-toggle__track {
  background: var(--accent);
}
.sidebar-toggle input:checked ~ .sidebar-toggle__track::after {
  transform: translateX(16px);
}
.sidebar-reset {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px dashed rgba(95, 109, 95, 0.4);
  transition: color 0.12s, border-color 0.12s;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-reset:hover { color: var(--text); border-color: rgba(95, 109, 95, 0.7); }

/* Catalog content header */
.catalog-content { min-width: 0; }
.catalog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.catalog-title { margin: 0; font-size: 1.25rem; }
.catalog-sort-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
.catalog-sort-label select { font-size: 0.88rem; min-height: 36px; }

/* Catalog search row */
.catalog-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.catalog-search-row input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
}
.catalog-search-row input[type="search"]:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 0;
}
.catalog-search-row button {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Promo card (inline grid) */
.card--promo {
  cursor: default;
  background: var(--warm-soft);
  border: 2px solid var(--warm-border);
  box-shadow: 0 6px 18px rgba(194, 122, 53, 0.1);
}
.card--promo:hover { transform: none; box-shadow: 0 6px 18px rgba(194, 122, 53, 0.15); }
.card__body--promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.5rem;
}
.promo-card__emoji { font-size: 2rem; }
.promo-card__title { margin: 0; font-size: 1rem; color: #6b3a0f; }
.promo-card__text { margin: 0; font-size: 0.88rem; color: #8a4e18; line-height: 1.4; }
.promo-card__btn {
  display: inline-flex;
  align-items: center;
  background: var(--warm);
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  transition: background 0.14s;
  min-height: 40px;
}
.promo-card__btn:hover { background: var(--warm-hover); }

/* Mobile filter strip */
.mobile-filter-strip {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  scrollbar-width: none;
  background: rgba(251, 249, 243, 0.92);
  border-bottom: 1px solid var(--border);
}
.mobile-filter-strip::-webkit-scrollbar { display: none; }
.pill-filter {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: background 0.12s, border-color 0.12s;
}
.pill-filter:hover { background: var(--accent-soft); border-color: rgba(47, 111, 62, 0.35); }
.pill-filter.active {
  background: rgba(47, 111, 62, 0.12);
  border-color: rgba(47, 111, 62, 0.5);
  color: #1a3a1a;
  font-weight: 600;
}
@media (max-width: 767px) {
  .mobile-filter-strip { display: flex; }
  .catalog-layout {
    grid-template-columns: 1fr;
    padding-top: 0.75rem;
  }
  .catalog-sidebar { display: none; }
}

/* ----- Quiz Intro (quiz.html) ----- */
.quiz-intro {
  position: relative;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--dark-green-2) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  color: #f0fff4;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.quiz-intro::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 60% 30%, rgba(194, 122, 53, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.quiz-intro__float-emoji {
  font-size: 3rem;
  animation: float 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.quiz-intro__badge {
  background: rgba(194, 122, 53, 0.2);
  border: 1px solid rgba(194, 122, 53, 0.45);
  color: #f5c07a;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}
.quiz-intro__h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  z-index: 1;
}
.quiz-intro__sub {
  margin: 0;
  color: rgba(240, 255, 244, 0.8);
  max-width: 46ch;
  line-height: 1.5;
  font-size: 0.97rem;
  z-index: 1;
}

/* Quiz preview card — glassmorphism */
.quiz-preview-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  z-index: 1;
}
.quiz-preview-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.progress-dots {
  display: flex;
  gap: 5px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.dot--active { background: var(--warm); }
.quiz-preview-card__step {
  font-size: 0.8rem;
  color: rgba(240, 255, 244, 0.65);
}
.quiz-preview-card__q {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 0.97rem;
  color: #fff;
  line-height: 1.35;
}
.quiz-preview-opts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.quiz-preview-opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  color: rgba(240, 255, 244, 0.85);
}
.quiz-preview-opt--selected {
  background: rgba(194, 122, 53, 0.22);
  border-color: rgba(194, 122, 53, 0.5);
  color: #fbe5c5;
}

/* Start button */
.quiz-intro__start-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  background: var(--warm);
  color: #fff;
  border-radius: 14px;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1;
  min-height: 52px;
  transition: background 0.14s, transform 0.14s;
}
.quiz-intro__start-btn:hover { background: var(--warm-hover); transform: translateY(-2px); }

/* ----- App Result CTA (quiz-result.html) ----- */
.app-result-cta {
  margin-top: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--dark-green) 0%, var(--dark-green-2) 100%);
  box-shadow: 0 0 40px rgba(194, 122, 53, 0.12);
  padding: 1.25rem 1.5rem;
  color: #f0fff4;
}
.app-result-cta__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-result-cta__emoji { font-size: 2rem; flex-shrink: 0; }
.app-result-cta__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.app-result-cta__sub {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: rgba(240, 255, 244, 0.75);
}
.app-result-cta__btn {
  display: inline-flex;
  align-items: center;
  background: var(--warm);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  margin-left: auto;
  transition: background 0.14s;
  min-height: 44px;
  white-space: nowrap;
}
.app-result-cta__btn:hover { background: var(--warm-hover); }
@media (max-width: 540px) {
  .app-result-cta__btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ── "Войти" как выделенная кнопка в навигации ───────────── */
.hero__nav--login {
  background: rgba(194, 122, 53, 0.18) !important;
  border-color: var(--warm) !important;
  color: #ffd49a !important;
  font-weight: 600;
  margin-left: 0.5rem;
}
.hero__nav--login:hover {
  background: rgba(194, 122, 53, 0.35) !important;
  border-color: #e8963f !important;
  color: #fff !important;
}

/* ── Social proof strip ──────────────────────────────────── */
.social-proof {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.social-proof__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.social-proof__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0.75rem 1rem;
}
.social-proof__num {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.social-proof__label {
  font-size: 0.85rem;
  color: var(--muted);
}
.social-proof__divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .social-proof__divider { display: none; }
  .social-proof__item { min-width: 100px; }
}

/* ===== BEGINNER CARE PAGE ===== */
.care-intro {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}
.care-intro__lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.care-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.care-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin: 1.25rem 0;
}
.care-section h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.care-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d4a2d;
  margin: 1.25rem 0 0.5rem;
}
.care-section p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.care-list {
  margin: 0.5rem 0 0.75rem 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
.care-list li {
  margin-bottom: 0.5rem;
}
.care-list--mistakes li {
  margin-bottom: 0.9rem;
}
.care-dl dt {
  font-weight: 700;
  color: #1b5e20;
  margin-top: 0.85rem;
}
.care-dl dd {
  margin-left: 0;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.care-note {
  background: #f9fbe7;
  border-left: 3px solid #aed581;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.93rem;
  color: #33691e;
  margin: 1rem 0;
}
.care-cta-inline {
  margin-top: 1.25rem;
}
.care-bottom-cta {
  background: var(--accent);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
  color: #fff;
}
.care-bottom-cta__inner h2 {
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
  color: #fff;
}
.care-bottom-cta__inner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.care-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.care-related {
  margin: 2rem 0;
}
.care-related h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
@media (max-width: 540px) {
  .care-section { padding: 1.25rem 1rem; }
  .care-intro { padding: 1.25rem 1rem; }
  .care-bottom-cta { padding: 1.75rem 1rem; }
  .care-intro__actions { flex-direction: column; }
  .care-bottom-cta__actions { flex-direction: column; align-items: center; }
}
