:root {
  --green: #17442a;
  --green-dark: #0f2e1c;
  --green-light: #e6efe1;
  --cream: #ffffff;
  --cream-deep: #f0f0f0;
  --surface: #f7f7f5;
  --text: #2b2b26;
  --muted: #6b6459;
  --border: #e5e5e0;
  --shadow: 0 8px 32px rgba(23, 68, 42, 0.1);
  --radius: 16px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }

/* ---- Шапка (как у Перекрёсток / Чижик) ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green);
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.wordmark-leaf {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.9;
}

.wordmark-leaf:last-child {
  transform: scaleX(-1);
}

.topbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-cta .cta-max,
.topbar-cta .cta-telegram {
  padding: 13px 23px;
  font-size: 1.06rem;
  min-width: auto;
  border-radius: 12px;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 10px 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .wordmark {
    justify-content: center;
  }

  .wordmark-text { font-size: 1.4rem; }
  .wordmark-leaf { font-size: 0.95rem; }

  .topbar-cta {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .topbar-cta .cta-max,
  .topbar-cta .cta-telegram {
    padding: 11px 8px;
    font-size: 0.8rem;
    border-radius: 10px;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* ---- Карусель (split: фото слева, текст справа) ---- */
.hero-carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 16px 24px 0;
}

.carousel-shell {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  position: relative;
  min-height: 300px;
}

.carousel-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 300px;
}

.carousel-slide.is-active {
  display: grid;
}

.slide-media {
  position: relative;
  min-height: 280px;
  background: var(--surface);
}

.slide-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.slide-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  background: #fff;
}

.slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 12px;
}

.slide-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green);
  margin: 0 0 14px;
}

.slide-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
  font-weight: 500;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.slide-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.slide-cta--accent {
  background: #c9a227;
}

.slide-cta--accent:hover {
  background: #a8861a;
}

@media (max-width: 800px) {
  .hero-carousel {
    padding: 12px 12px 0;
    margin-bottom: 16px;
  }

  .carousel-shell {
    border-radius: 14px;
  }

  .carousel-track,
  .carousel-slide,
  .carousel-slide.is-active {
    min-height: auto;
  }

  .carousel-slide,
  .carousel-slide.is-active {
    grid-template-columns: 1fr;
  }

  .slide-media { min-height: 160px; max-height: 180px; }
  .slide-media img { min-height: 160px; max-height: 180px; }

  .slide-panel {
    padding: 16px 16px 12px;
    text-align: center;
    align-items: center;
  }

  .slide-title {
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .slide-text {
    display: none;
  }

  .slide-cta {
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    align-self: center;
  }

  .carousel-btn { display: none; }

  .carousel-dots {
    padding: 10px 0 12px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.15s;
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 16px;
  background: #fff;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--cream-deep);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.carousel-dot.is-active {
  background: var(--green);
  transform: scale(1.15);
}

/* ---- Основной контент ---- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.page--hero {
  padding-bottom: 12px;
}

.hero {
  text-align: center;
  padding: 12px 0 8px;
}

.hero-headline {
  margin: 0 auto 24px;
  max-width: 960px;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
  border: 1px solid rgba(23, 68, 42, 0.12);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(23, 68, 42, 0.08);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--green);
  margin: 0;
  letter-spacing: 0.01em;
}

.hero p.pitch {
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 820px;
  font-weight: 500;
}

.hero p.pitch strong { color: var(--green); }

/* ---- Ценности ---- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page { padding: 0 14px 60px; }

  .hero-headline {
    padding: 20px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .hero h1 { font-size: 1.75rem; }

  .hero p.pitch {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .value-card {
    padding: 14px 10px;
  }

  .value-icon { font-size: 22px; }

  .value-card strong { font-size: 0.85rem; }
  .value-card span { font-size: 0.75rem; }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .category-card { aspect-ratio: 3 / 4; }

  .category-overlay { padding: 14px 10px; }
  .category-overlay h3 { font-size: 1rem; }
  .category-overlay p { font-size: 0.75rem; }
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(23, 68, 42, 0.04);
}

.value-icon { font-size: 28px; line-height: 1; }

.value-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}

.value-card span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- CTA ---- */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cta-max, .cta-telegram, .cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  padding: 20px 40px;
  border-radius: 14px;
  min-width: min(100%, 280px);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-max:hover, .cta-telegram:hover {
  transform: translateY(-2px);
}

.cta-max {
  background: #7C5CFC;
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35);
  order: 1;
}

.cta-telegram {
  background: #229ED9;
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
  order: 2;
}

.cta-outline {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
  font-size: 1rem;
  padding: 14px 28px;
}

.cta-hint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 56px;
}

/* ---- Преимущества (карточки в стиле блоков продавцов) ---- */
.section-title {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--green);
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.01em;
}

.page--continue { padding-top: 8px; padding-bottom: 80px; }

.advantages { margin-bottom: 56px; }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .advantages-grid { grid-template-columns: 1fr; }
}

.advantage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(23, 68, 42, 0.06);
}

.advantage-visual {
  background: linear-gradient(145deg, var(--green-light), #f7f7f5);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.advantage-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.advantage-body {
  padding: 18px 20px 22px;
}

.advantage-body h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.advantage-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.categories { margin-bottom: 56px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-card:hover img { transform: scale(1.05); }

.category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(15, 46, 28, 0.85));
  color: #fff;
}

.category-overlay h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}

.category-overlay p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ---- Как это работает ---- */
.how-it-works { margin-bottom: 56px; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 24px 72px;
  min-height: 100px;
  box-shadow: 0 2px 8px rgba(23, 68, 42, 0.04);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.steps li span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- Лояльность ---- */
.loyalty-teaser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 56px;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
}

.loyalty-teaser p {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.loyalty-teaser a {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.loyalty-teaser a:hover { text-decoration: underline; }

/* ---- Футер ---- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  font-size: 15px;
}

.footer-cols {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; color: var(--text); }
.footer-col a:hover { text-decoration: underline; }

.footer-admin {
  text-align: center;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-admin a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-admin a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ---- Информационные страницы ---- */
.content-page {
  max-width: 820px;
}

.content-hero {
  margin: 8px auto 28px;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
  border: 1px solid rgba(23, 68, 42, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.content-hero h1 {
  font-family: var(--display);
  color: var(--green);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.content-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 500;
}

.content-lead strong {
  color: var(--green);
  font-weight: 700;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(23, 68, 42, 0.06);
}

.info-card h2 {
  font-family: var(--display);
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.info-card p,
.info-card ul {
  margin: 0 0 10px;
  line-height: 1.65;
  font-size: 15px;
  color: var(--text);
}

.info-card p:last-child,
.info-card ul:last-child {
  margin-bottom: 0;
}

.info-card ul {
  padding-left: 1.2em;
}

.content-table-wrap {
  overflow-x: auto;
  margin: 4px 0 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
  background: #fff;
}

.content-page th {
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.content-page td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.content-page tr:last-child td {
  border-bottom: none;
}

.content-page .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 28px 0 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
  transition: transform 0.15s, box-shadow 0.15s;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 68, 42, 0.12);
}

/* legacy selectors kept for compatibility */
.content-page h1 {
  font-family: var(--display);
  color: var(--green);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  margin: 16px 0 20px;
}

.content-page h2 {
  font-family: var(--display);
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 28px 0 10px;
}

.content-page p { line-height: 1.65; font-size: 15px; }
.content-page ul { line-height: 1.65; font-size: 15px; }

/* ---- Модалка входа продавца на титульной / for-sellers ---- */
.landing-login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.landing-login-modal.is-open {
  display: flex;
}
.landing-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 46, 28, 0.45);
}
.landing-login-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 64px rgba(23, 68, 42, 0.22);
}
.landing-login-panel h3 {
  margin: 0 0 8px;
  color: var(--green, #17442a);
  font-size: 1.35rem;
}
.landing-login-panel .muted {
  color: var(--muted, #6b6459);
  font-size: 0.92rem;
  line-height: 1.45;
}
.landing-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #6b6459);
}
.landing-login-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--green, #17442a);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .content-hero {
    padding: 20px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .info-card {
    padding: 18px 16px;
  }
}
