/* ============================================================
   AgroVerse — «Понятный рынок» v2 (mobile-first)
   Подключается ПОСЛЕ style.css и переопределяет его.
   Для кого: фермеры и покупатели старшего возраста, в основном с телефона.
   Правила: шрифт от 17px, кнопки от 52px, у каждой иконки есть подпись,
   ничего не прячется в «гамбургер» — всё в нижней панели и в «Меню».
   Layout: телефон — верхняя панель (язык, размер текста) + нижняя панель
   из 5 вкладок; ПК — тёмно-зелёное меню слева + поиск сверху.
   ============================================================ */

:root {
  --field:      #105C38;  /* основной зелёный — кнопки, ссылки */
  --field-deep: #0A3D25;  /* меню на ПК, тёмные плашки */
  --sprout:     #E4F1E8;  /* светло-зелёный фон выбранного */
  --sun:        #F0B429;  /* солнце/пшеница — «сейчас», главное действие */
  --sun-lt:     #FFF4D6;
  --soil:       #7A5634;  /* почва — второстепенный акцент */
  --ground:     #F3F5F0;  /* фон страницы */
  --card:       #FFFFFF;
  --ink:        #16221A;  /* текст */
  --ink-2:      #3B4840;  /* второстепенный текст, контраст > 9:1 */
  --ink-3:      #59675E;  /* подписи, контраст > 5.5:1 */
  --rule:       #D6DED8;
  --danger:     #C2362B;
  --shadow:     0 1px 2px rgba(16, 40, 26, .06), 0 4px 14px rgba(16, 40, 26, .06);

  --font-display: 'Rubik', 'Golos Text', system-ui, sans-serif;
  --font-body:    'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* совместимость со старыми токенами style.css */
  --bg: var(--ground);
  --txt: var(--ink); --txt-1: var(--ink); --txt-2: var(--ink-2); --txt-3: var(--ink-3);
  --txt-muted: var(--ink-3); --muted: var(--ink-3); --body: var(--ink-2);
  --clr-primary: var(--field); --clr-green: var(--field); --clr-green-lt: var(--sprout);
  --line: var(--rule); --hairline: var(--rule);

  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --tap: 54px;
  --side-w: 280px;
  --top-h: 76px;
  --bottom-h: 76px;
}

/* ---------- База ---------- */
[hidden] { display: none !important; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--ground);
  color: var(--ink);
}
body.sheet-open { overflow: hidden; }
#app { animation: none; }
.app-layout { background: var(--ground); }

h1, h2, h3, h4, .page-title { text-wrap: balance; font-family: var(--font-display); }
.page-title { font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.page-desc { font-size: 17px; color: var(--ink-2); }
.page-head { margin-bottom: 20px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Размер текста: масштабируем только рабочую область */
html[data-text="l"]  .main-zoom { zoom: 1.12; }
html[data-text="xl"] .main-zoom { zoom: 1.25; }

/* Без «магнитных» и наклонных эффектов кнопок */
.btn { transform: none !important; }
.btn-ripple { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Кнопки и поля ---------- */
.btn {
  min-height: var(--tap);
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--r-sm);
  gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}
.btn-sm { min-height: 46px; font-size: 16px; padding: 10px 16px; }
.btn-lg { min-height: 60px; font-size: 18px; padding: 14px 26px; }
.btn-full { width: 100%; }
.btn-primary {
  background: var(--fill) !important;
  color: #fff !important;
  border: 2px solid var(--fill) !important;
  box-shadow: 0 2px 0 var(--fill-deep);
}
.btn-primary:hover { background: var(--fill-hover) !important; border-color: var(--fill-hover) !important; }
.btn-primary:disabled { opacity: .65; }
.btn-outline, .btn-ghost {
  background: var(--card) !important;
  color: var(--field) !important;
  border: 2px solid var(--field) !important;
}
.btn-outline:hover, .btn-ghost:hover { background: var(--sprout) !important; }
.btn-danger { background: var(--danger) !important; color: #fff !important; }

input, select, textarea { font-size: 17px; font-family: var(--font-body); }
.form-input, .pn-input, .input, input[type="text"], input[type="tel"], input[type="email"],
input[type="password"], input[type="number"], input[type="search"], select, textarea {
  min-height: var(--tap);
  border-radius: var(--r-sm);
  border: 2px solid var(--rule);
  color: var(--ink);
  background: var(--card);
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus, .pn-input:focus {
  border-color: var(--field) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 92, 56, 0.15) !important;
}
input.error, textarea.error, .pn-input.error { border-color: var(--danger) !important; background: #FFF6F5; }
label, .form-label { font-size: 16px; font-weight: 600; color: var(--ink); }
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; min-height: 0; accent-color: var(--field); flex: 0 0 auto; }

/* ---------- Поиск (с голосом) ---------- */
.search-form {
  display: flex; align-items: center; gap: 6px;
  height: 56px; width: 100%;
  padding: 0 6px 0 16px;
  background: var(--card);
  border: 2px solid var(--rule);
  border-radius: var(--r-md);
}
.search-form:focus-within { border-color: var(--field); box-shadow: 0 0 0 4px rgba(16, 92, 56, 0.12); }
.search-form .sf-ic { font-size: 19px; color: var(--ink-3); flex: 0 0 auto; }
.search-form input {
  flex: 1; min-width: 0; min-height: 0; height: 100%;
  border: none !important; box-shadow: none !important; background: transparent; padding: 0 4px;
  font-size: 17px;
}
.search-form input::-webkit-search-cancel-button { display: none; }
.sf-go {
  height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--fill); color: #fff; font-size: 16px; font-weight: 600; flex: 0 0 auto;
}
.voice-btn {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sprout); color: var(--field); font-size: 19px;
}
.voice-btn.listening { background: var(--danger); color: #fff; animation: pulse 1s ease-in-out infinite; }
.search-form.big { height: 64px; border-radius: 18px; box-shadow: var(--shadow); }
.search-form.big .sf-go { height: 50px; padding: 0 22px; font-size: 17px; }
.search-form.big .voice-btn { width: 50px; height: 50px; flex-basis: 50px; }

/* ---------- Боковое меню (ПК) ---------- */
.sidebar-green {
  width: var(--side-w);
  background: var(--fill-deep);
  padding: 22px 14px 18px;
  gap: 6px;
}
.sidebar-brand { padding: 4px 8px 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.sb-logo-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--sun); color: var(--on-sun); font-size: 21px;
}
.sb-logo-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.sb-logo-sub { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 2px; }

.sidebar-nav { gap: 6px; }
.nav-item-link { min-height: 64px; padding: 10px 12px; gap: 14px; border-radius: var(--r-md); opacity: 1; }
.nav-item-link:hover { transform: none; background: rgba(255,255,255,0.10); }
.nav-item-link .nav-ic {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  background: rgba(255,255,255,0.10); font-size: 20px;
}
.nav-txt-wrap { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nav-tx { font-size: 18px; font-weight: 600; white-space: normal; }
.nav-hint { font-size: 14px; color: rgba(255,255,255,0.74); font-weight: 400; }
.nav-item-link.active { background: #fff !important; box-shadow: none; }
.nav-item-link.active .nav-ic { background: var(--sprout); }
.nav-item-link.active .nav-hint { color: var(--ink-3); }
.nav-item-link .nav-badge {
  font-size: 15px; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 14px; display: grid; place-items: center; background: var(--danger);
}
.sidebar-user { margin-top: 10px; border-radius: var(--r-md); padding: 12px; min-height: 64px; }
.su-avatar {
  width: 44px; height: 44px; border-radius: 12px; font-size: 18px; flex: 0 0 auto;
  display: grid; place-items: center; background: #fff; color: var(--field-deep); font-weight: 800;
}
.su-name { font-size: 16px; }
.su-role { font-size: 14px; }
.sb-logout {
  margin-top: 6px; min-height: 48px; border-radius: var(--r-sm);
  color: rgba(255,255,255,0.88); font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}
.sb-logout:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---------- Верхняя панель ---------- */
.top-header-bar {
  left: var(--side-w);
  height: var(--top-h);
  padding: 0 28px;
  gap: 14px;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
}
.tb-brand { display: none; }
.top-header-left { flex: 1; min-width: 0; max-width: 620px; }
.top-header-right { gap: 10px; flex: 0 0 auto; }
.tb-btn {
  height: 52px; min-width: 52px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-sm);
  background: var(--ground); border: 2px solid var(--rule);
  color: var(--ink); font-size: 16px; font-weight: 700;
}
.tb-btn i { font-size: 19px; color: var(--field); }
.tb-btn:hover { border-color: var(--field); }
.tb-aa { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
.tb-aa small { font-size: 15px; margin-left: 1px; }
.cart-header-btn {
  width: auto; height: 52px; padding: 0 16px; gap: 10px;
  display: flex; align-items: center;
  border-radius: var(--r-sm); font-size: 20px;
  background: var(--sprout); color: var(--field); border: 2px solid transparent;
}
.chb-tx { font-size: 17px; font-weight: 600; }
.cart-header-badge {
  position: static; min-width: 28px; height: 28px; font-size: 15px; padding: 0 6px;
  border-radius: 14px; border: none; background: var(--danger); color: #fff;
  display: grid; place-items: center;
}

/* ---------- Рабочая область ---------- */
.app-main-content {
  margin-left: var(--side-w);
  margin-top: var(--top-h);
  padding: 32px 36px 72px;
  max-width: 1320px;
  min-width: 0;
}
.mobile-bottom-bar { display: none; }

/* ---------- Нижняя «шторка» ---------- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(10, 30, 20, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.sheet-overlay.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(30px); transition: transform .25s ease-out;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
.sheet-overlay.show .sheet { transform: none; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px 12px 22px; border-bottom: 1px solid var(--rule);
}
.sheet-title { font-size: 22px; font-weight: 700; color: var(--ink); }
.sheet-close {
  min-height: 48px; padding: 0 14px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ground); color: var(--ink); font-size: 16px; font-weight: 600;
}
.sheet-close i { font-size: 20px; }
.sheet-body { overflow-y: auto; padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.sheet-sub { font-size: 17px; font-weight: 700; color: var(--ink-2); margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.sheet-sub i { color: var(--field); }
@media (min-width: 993px) {
  .sheet-overlay { align-items: center; }
  .sheet { border-radius: 24px; }
}

.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-row {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 16px;
  border: 2px solid var(--rule); border-radius: var(--r-md);
  background: var(--card); text-align: left; color: var(--ink);
}
.opt-row.active { border-color: var(--field); background: var(--sprout); }
.opt-badge {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ground); font-weight: 800; font-size: 16px; font-family: var(--font-display);
}
.opt-row.active .opt-badge { background: var(--fill); color: #fff; }
.opt-text { flex: 1; font-size: 19px; font-weight: 600; display: flex; flex-direction: column; min-width: 0; }
.opt-text small { color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.opt-check { font-size: 24px; color: var(--field); visibility: hidden; }
.opt-row.active .opt-check { visibility: visible; }

.seg { display: flex; gap: 6px; padding: 5px; background: var(--ground); border-radius: var(--r-md); border: 1px solid var(--rule); }
.seg-btn {
  flex: 1; min-height: 50px; padding: 6px 8px; border-radius: 11px;
  font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.2;
}
.seg-btn.active { background: var(--fill); color: #fff; }

.menu-user, .menu-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 68px; padding: 10px 14px; text-align: left; color: var(--ink);
  border-radius: var(--r-md);
}
.menu-user { background: var(--sprout); }
.menu-list { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.menu-row { border-radius: 0; border-bottom: 1px solid var(--rule); background: var(--card); }
.menu-row:last-child { border-bottom: none; }
.menu-row.active { background: var(--sprout); }
.menu-ic {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--sprout); color: var(--field); font-size: 20px;
}
.menu-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.menu-tx b { font-size: 18px; font-weight: 600; }
.menu-tx small { font-size: 15px; color: var(--ink-3); }
.menu-go { color: var(--ink-3); font-size: 16px; }
.menu-logout {
  margin-top: 8px; min-height: 56px; border-radius: var(--r-md);
  border: 2px solid #F1C9C5; color: var(--danger); background: #FFF7F6;
  font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* ---------- Средние экраны ---------- */
@media (max-width: 1280px) {
  .chb-tx { display: none; }
}

/* ---------- Телефон и планшет ---------- */
@media (max-width: 992px) {
  :root { --top-h: 64px; }
  .sidebar-green, .sidebar-scrim, .mobile-menu-btn { display: none !important; }
  .top-header-bar {
    left: 0; height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0 14px; gap: 8px;
  }
  .tb-brand {
    display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer;
  }
  .tb-brand .sb-logo-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .tb-brand-tx { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--field-deep); }
  .top-header-left, .cart-header-btn { display: none; }
  .tb-btn { height: 48px; min-width: 48px; padding: 0 12px; }

  .app-main-content {
    margin-left: 0;
    margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
    padding: 18px 16px calc(var(--bottom-h) + 28px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    height: auto;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--card);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -4px 18px rgba(10, 30, 20, 0.07);
    align-items: stretch; justify-content: space-around;
  }
  .mbb-item {
    flex: 1 1 0; min-width: 0;
    min-height: 64px; padding: 6px 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--ink-3);
    border-radius: 14px; text-align: center; line-height: 1.15; cursor: pointer;
  }
  .mbb-tx { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbb-ic { position: relative; font-size: 23px; line-height: 1; }
  .mbb-item i { font-size: 23px; }
  .mbb-item.active { color: var(--field); background: var(--sprout); }
  .mbb-main .mbb-ic {
    width: 46px; height: 46px; border-radius: 50%; margin-top: -4px;
    background: var(--sun); color: var(--on-sun); display: grid; place-items: center;
  }
  .mbb-main { color: var(--field-deep); }
  .mbb-main.active { background: transparent; }
  .mbb-badge {
    position: absolute; top: -8px; right: -14px;
    font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 11px; background: var(--danger); color: #fff;
    border: 2px solid var(--card);
  }

  /* Плавающий «AI» мешает на телефоне: помощник есть в меню и на главной */
  #ai-fab-container { display: none !important; }
}
@media (max-width: 380px) {
  .tb-brand-tx { font-size: 18px; }
  .mbb-item { font-size: 12px; }
}

/* ---------- Карточка товара ---------- */
.agri-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.agri-product-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: none !important;
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
}
.agri-product-card:hover { border-color: var(--field) !important; transform: none !important; }
.apc-media { aspect-ratio: 4 / 3; height: auto !important; max-width: 100%; }
.apc-media .pc-img-ph { height: 100%; display: grid; place-items: center; }
.apc-cat-tag { font-size: 14px; padding: 5px 12px; color: var(--field-deep); background: rgba(255,255,255,0.95); border-radius: 10px; }
.apc-body { padding: 14px 16px 16px; }
.apc-farmer { font-size: 15px; color: var(--ink-3); }
.apc-name { font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.apc-rating { font-size: 15px; }
.apc-price { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.apc-price small { font-size: 16px; color: var(--ink-3); font-family: var(--font-body); font-weight: 500; }
.apc-footer .btn { min-height: 52px; font-size: 17px; border-radius: var(--r-sm); width: 100%; }
@media (max-width: 560px) {
  .agri-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .apc-body { padding: 10px 12px 12px; }
  .apc-farmer { font-size: 13px; }
  .apc-name { font-size: 17px; }
  .apc-price { font-size: 19px; }
  .apc-price small { font-size: 13px; display: block; }
  .apc-footer .btn { font-size: 15px; padding: 8px; min-height: 48px; gap: 6px; }
  .apc-rating { display: none; }
  .apc-cat-tag { font-size: 12px; padding: 3px 8px; top: 8px; left: 8px; }
}

/* ---------- Общие элементы ---------- */
.empty-state { font-size: 18px; color: var(--ink-2); }
.toast { font-size: 17px !important; padding: 16px 20px !important; }
@media (max-width: 992px) {
  #toast-container { top: calc(var(--top-h) + 8px) !important; left: 12px !important; right: 12px !important; }
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  min-height: 48px; padding: 0 16px; margin-bottom: 14px;
  border-radius: var(--r-sm); border: 2px solid var(--rule); background: var(--card);
  font-size: 16px; font-weight: 600; color: var(--field);
}

/* ============================================================
   ВХОД И РЕГИСТРАЦИЯ
   ============================================================ */
.auth2 { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--ground); }
.auth2-art { position: relative; overflow: hidden; background: var(--fill); }
.auth2-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth2-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,61,37,0) 40%, rgba(10,61,37,.85) 100%); }
.auth2-art-text { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 1; color: #fff; }
.auth2-art-text p { font-size: 24px; font-family: var(--font-display); font-weight: 600; margin-top: 12px; max-width: 18ch; }
.auth2-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.auth2-brand.small { font-size: 22px; color: var(--field-deep); }
.auth2-brand.small .sb-logo-icon { width: 42px; height: 42px; font-size: 19px; }
.auth2-main { display: flex; flex-direction: column; padding: 24px clamp(16px, 5vw, 56px) 40px; gap: 20px; min-width: 0; }
.auth2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth2-lang { flex: 0 1 380px; }
.auth2-box { width: 100%; max-width: 460px; margin: auto; display: flex; flex-direction: column; gap: 16px; padding-block: 12px; }
.auth2-title { font-size: clamp(30px, 6vw, 38px); font-weight: 700; color: var(--ink); }
.auth2-sub { font-size: 18px; color: var(--ink-2); margin-top: -8px; }
.auth2-form { display: flex; flex-direction: column; gap: 16px; }
.auth2-field { display: flex; flex-direction: column; gap: 8px; }
.auth2-field > span { font-size: 17px; font-weight: 600; }
.auth2-field input { height: 58px; font-size: 18px; }
.auth2-note { padding: 14px 16px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; }
.auth2-note.err { background: #FDECEA; color: #8C221A; border: 1px solid #F3C2BC; }
.auth2-note.ok  { background: var(--sprout); color: var(--field-deep); border: 1px solid #BFDCC9; }
.auth2-switch { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule); text-align: center; color: var(--ink-2); font-size: 16px; }
.pwd-wrap { position: relative; display: flex; align-items: center; }
.pwd-wrap input { padding-right: 64px; }
.pwd-toggle {
  position: absolute; right: 5px; width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ground); color: var(--ink-2); font-size: 19px;
}
.auth2-role { border: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth2-role legend { font-size: 17px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.role-card {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 16px 10px; border: 2px solid var(--rule); border-radius: var(--r-md); background: var(--card);
}
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card b { font-size: 18px; font-weight: 700; }
.role-card small { font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.role-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sprout); color: var(--field); font-size: 22px; margin-bottom: 4px; }
.role-card:has(input:checked) { border-color: var(--field); background: var(--sprout); box-shadow: inset 0 0 0 1px var(--field); }
.role-card:has(input:checked) .role-ic { background: var(--fill); color: #fff; }
.role-card:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (max-width: 860px) {
  .auth2 { grid-template-columns: 1fr; }
  .auth2-art { display: none; }
  .auth2-main { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .auth2-lang { flex: 1 1 100%; }
  .auth2-box { margin: 0 auto; }
}

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */
.fh { display: flex; flex-direction: column; gap: 36px; }
.fh-section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fh-h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 700; line-height: 1.2; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.fh-h2 i { color: var(--sun); }
.fh-note { color: var(--ink-2); font-size: 17px; margin-top: 4px; }
.fh-more {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 17px; font-weight: 600; color: var(--field);
  border: 2px solid var(--rule); background: var(--card); cursor: pointer;
}
.fh-more:hover { border-color: var(--field); background: var(--sprout); }
.fh-search { margin-top: -14px; }

/* Приветствие */
.fh-greet {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--fill); color: #fff; min-height: 240px;
}
.fh-greet-text { padding: clamp(22px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.fh-date {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 999px;
  font-size: 16px; font-weight: 500;
}
.fh-hello { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; line-height: 1.12; }
.fh-hello span { color: var(--sun); }
.fh-sub { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,0.92); max-width: 46ch; }
.fh-greet-art { position: relative; background: var(--fill-deep); min-height: 200px; }
.fh-greet-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fh-greet-art::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--field) 0%, rgba(16,92,56,0) 18%);
}

/* Крупные действия: плитки на ПК, строки на телефоне */
.act-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.act-tile {
  text-align: left; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 22px 20px 18px;
  background: var(--card); border: 2px solid var(--rule); border-radius: var(--r-lg);
  color: var(--ink); min-width: 0;
  transition: border-color .15s, background .15s;
}
.act-tile:hover { border-color: var(--field); }
.act-ic {
  position: relative; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; font-size: 28px; color: var(--field); background: var(--sprout);
  margin-bottom: 6px; flex: 0 0 auto;
}
.act-badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px;
  background: var(--danger); color: #fff; font-size: 15px; font-weight: 700;
  display: grid; place-items: center; border: 3px solid var(--card);
}
.act-title { font-size: 21px; font-weight: 700; line-height: 1.2; font-family: var(--font-display); }
.act-desc { font-size: 16px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.act-go { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--field); display: inline-flex; align-items: center; gap: 8px; }
.act-chev { display: none; }
.act-tile.main { background: var(--sun-lt); border-color: var(--sun); }
.act-tile.main .act-ic { background: var(--sun); color: var(--on-sun); }
.act-tile.main:hover { border-color: var(--soil); }

/* Календарь поля */
.fc-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); }
.fc-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.fc-month {
  position: relative; min-height: 60px; padding: 8px 2px;
  border-radius: var(--r-sm); background: var(--ground); color: var(--ink-2);
  font-size: 16px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid transparent;
}
.fc-month em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--soil); text-transform: uppercase; letter-spacing: .04em; }
.fc-month:hover { border-color: var(--rule); }
.fc-month.now { background: var(--sun-lt); }
.fc-month.sel { background: var(--fill); color: #fff; border-color: var(--field); }
.fc-month.sel em { color: var(--sun); }
.fc-body { margin-top: 18px; }
.fc-month-name { font-family: var(--font-display); font-size: 23px; font-weight: 700; margin-bottom: 12px; color: var(--field); }
.fc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fc-col { padding: 16px 18px; border-radius: var(--r-md); background: var(--ground); }
.fc-col p { font-size: 17px; color: var(--ink); margin-top: 6px; }
.fc-label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.fc-col.harvest .fc-label i { color: var(--soil); }
.fc-col.sow .fc-label i { color: var(--field); }
.fc-col.tip { background: var(--sun-lt); }
.fc-col.tip .fc-label i { color: #B7791F; }
html[data-text="l"] .fc-strip, html[data-text="xl"] .fc-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Категории с фото */
.cat-photo-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.cat-photo { display: flex; flex-direction: column; gap: 8px; align-items: stretch; background: none; text-align: center; color: var(--ink); min-width: 0; }
.cp-media {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%;
  border-radius: var(--r-lg); overflow: hidden; background: var(--sprout);
  display: grid; place-items: center; border: 2px solid transparent; transition: border-color .15s;
}
.cp-media i { font-size: 36px; color: var(--field); }
.cp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-photo:hover .cp-media { border-color: var(--field); }
.cp-name { font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }

/* Как пользоваться + помощь */
.fh-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.fh-how, .fh-help { text-align: left; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.fh-how { background: var(--card); border: 1px solid var(--rule); }
.fh-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fh-step { display: flex; gap: 14px; align-items: flex-start; }
.fh-step-n {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fill); color: #fff;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
}
.fh-step-t { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.fh-step-t i { color: var(--field); font-size: 17px; }
.fh-step-d { font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.fh-help { background: var(--fill-deep); color: #fff; align-items: flex-start; }
.fh-help .fh-h2 { color: #fff; }
.fh-help p { font-size: 17px; color: rgba(255,255,255,0.9); }
.fh-help-ic { font-size: 40px; color: var(--sun); }
.fh-help .btn-primary { margin-top: auto; background: var(--sun) !important; color: var(--on-sun) !important; border-color: var(--sun) !important; box-shadow: none; }

@media (max-width: 1200px) {
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fh { gap: 28px; }
  .fh-greet { grid-template-columns: 1fr; min-height: 0; }
  .fh-greet-art { order: -1; min-height: 110px; }
  .fh-greet-art::before { background: linear-gradient(0deg, var(--field) 0%, rgba(16,92,56,0) 35%); }
  .fh-greet-text { padding: 18px 20px 22px; }
  .fh-search { margin-top: -10px; }
  .search-form.big .sf-go { display: none; }

  /* действия — строками во всю ширину */
  .act-grid { grid-template-columns: 1fr; gap: 10px; }
  .act-tile {
    display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px; grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 2px; align-items: center;
    padding: 14px 14px 14px 14px; border-radius: var(--r-md);
  }
  .act-ic { grid-row: 1 / 3; width: 58px; height: 58px; font-size: 25px; border-radius: 16px; margin: 0; }
  .act-title { font-size: 19px; grid-column: 2; }
  .act-desc { font-size: 15px; grid-column: 2; }
  .act-go { display: none; }
  .act-chev { display: block; grid-column: 3; grid-row: 1 / 3; color: var(--ink-3); font-size: 18px; }

  /* месяцы — лента вбок */
  .fc-strip, html[data-text="l"] .fc-strip, html[data-text="xl"] .fc-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 8px;
    margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none;
  }
  .fc-strip::-webkit-scrollbar { display: none; }
  .fc-month { flex: 0 0 68px; scroll-snap-align: center; }
  .fc-cols, .fh-split { grid-template-columns: 1fr; }
  .fc-card { margin: 0 -4px; }
  .cat-photo-grid { gap: 10px; }
  .cp-media { border-radius: 16px; }
  .cp-media i { font-size: 30px; }
  .cp-name { font-size: 14px; }
}

/* ============================================================
   РЫНОК
   ============================================================ */
.mk { display: flex; flex-direction: column; gap: 14px; }
.mk-head { display: flex; flex-direction: column; gap: 12px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 50px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--rule); background: var(--card);
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.mk-chip i { color: var(--field); font-size: 17px; }
.mk-chip.active { background: var(--fill); border-color: var(--field); color: #fff; }
.mk-chip.active i { color: var(--sun); }
.mk-tools { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.mk-price { flex: 1 1 280px; background: var(--card); border: 2px solid var(--rule); border-radius: var(--r-md); }
.mk-price summary {
  list-style: none; cursor: pointer; min-height: 50px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink);
}
.mk-price summary::-webkit-details-marker { display: none; }
.mk-price summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: 14px; color: var(--ink-3); }
.mk-price[open] summary::after { content: '\f077'; }
.mk-price summary i { color: var(--field); }
.mk-price-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 14px 14px; }
.mk-price-body .btn { grid-column: 1 / -1; }
.mk-field { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.mk-sort {
  flex: 1 1 220px; position: relative; display: flex; align-items: center;
}
.mk-sort i { position: absolute; left: 16px; color: var(--field); pointer-events: none; }
.mk-sort select { padding-left: 44px; min-height: 54px; font-weight: 600; }
.mk-count { font-size: 16px; color: var(--ink-3); font-weight: 500; }
@media (max-width: 760px) {
  .mk-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity;
  }
  .mk-chips::-webkit-scrollbar { display: none; }
  .mk-chip { scroll-snap-align: start; }
  .mk-tools { gap: 8px; }
  .mk-price, .mk-sort { flex: 1 1 100%; }
}

/* ============================================================
   СТРАНИЦА ТОВАРА
   ============================================================ */
.pd-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 700; color: var(--ink); }
.pd-price { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px) !important; font-weight: 700; color: var(--field) !important; }
.pd-price small { font-family: var(--font-body); font-size: 17px !important; color: var(--ink-3); }
.pd-desc p, .pd-info-value { font-size: 17px; }
.pd-desc-title, .pd-order-title { font-family: var(--font-display); font-size: 20px !important; font-weight: 700; }
.pd-qty-input { min-height: 58px !important; font-size: 20px !important; font-weight: 700; }
.pd-order-panel .btn { min-height: 58px; font-size: 18px; }
@media (max-width: 860px) {
  .pd-layout { display: flex !important; flex-direction: column; gap: 14px; }
  .pd-main { display: contents !important; }
  .pd-photo-block { order: 1; }
  .pd-head { order: 2; }
  .pd-sidebar { order: 3 !important; }
  .pd-details { order: 4; }
  .pd-photo-block, .pd-photo-block img, .pd-photo { max-height: 320px; border-radius: var(--r-lg); object-fit: cover; width: 100%; }
}

/* ============================================================
   ДОБАВИТЬ ТОВАР
   ============================================================ */
.pn-page { padding: 8px 0 20px !important; animation: none !important; }
.pn-header { margin-bottom: 20px !important; flex-wrap: wrap; }
.pn-header-text h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px) !important; }
.pn-header-text p { font-size: 17px !important; color: var(--ink-2) !important; }
.pn-back-btn { min-height: 48px; font-size: 16px !important; }
.pn-card { border-radius: var(--r-lg) !important; padding: clamp(16px, 3vw, 26px) !important; }
.pn-card-title { font-family: var(--font-display); font-size: 21px !important; font-weight: 700; display: flex; align-items: center; gap: 12px; color: var(--ink) !important; }
.pn-step {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fill); color: #fff; font-size: 18px;
}
.pn-field label { font-size: 17px !important; }
.pn-hint { font-size: 15px !important; color: var(--ink-3) !important; }
.pn-cat-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 8px !important; }
.pn-cat-chip {
  min-height: 54px; display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important;
  gap: 10px; padding: 8px 14px !important; text-align: left; font-size: 16px !important; font-weight: 600;
  border: 2px solid var(--rule) !important; border-radius: var(--r-sm) !important; background: var(--card) !important; color: var(--ink) !important;
}
.pn-cat-chip i { color: var(--field); font-size: 18px; }
.pn-cat-chip.active { border-color: var(--field) !important; background: var(--sprout) !important; box-shadow: inset 0 0 0 1px var(--field); }
.pn-dropzone { padding: 24px 16px !important; }
.pn-upload-icon { width: 64px !important; height: 64px !important; border-radius: 18px !important; background: var(--sprout) !important; }
.pn-upload-icon i { font-size: 30px; color: var(--field); }
.pn-drop-title { font-size: 18px !important; font-weight: 700; }
.pn-choose-btn { min-height: 54px; font-size: 17px !important; padding: 0 20px !important; }
.pn-check {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border: 2px solid var(--rule); border-radius: var(--r-md); margin-top: 6px;
}
.pn-check:has(input:checked) { border-color: var(--field); background: var(--sprout); }
.pn-check span { display: flex; flex-direction: column; gap: 2px; }
.pn-check b { font-size: 17px; }
.pn-check small { font-size: 15px; color: var(--ink-3); font-weight: 400; }
.pn-submit-bar { position: sticky; bottom: 12px; z-index: 5; }
.pn-submit-btn {
  width: 100%; min-height: 62px; font-size: 19px !important; border-radius: var(--r-md) !important;
  background: var(--fill) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(10, 61, 37, .25) !important;
}
.pn-err { font-size: 16px; }
@media (max-width: 860px) {
  .pn-form-col { order: 1 !important; }
  .pn-aside { order: 2 !important; }
}
@media (max-width: 992px) {
  .pn-submit-bar { bottom: calc(var(--bottom-h) + 10px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .pn-cat-grid { grid-template-columns: 1fr 1fr !important; }
  .pn-price-row { grid-template-columns: 1fr !important; }
}

/* ============================================================
   ПРОФИЛЬ И КОРЗИНА
   ============================================================ */
.pr-header .pr-name, .pr-header .pr-meta, .pr-header .pr-phone, .pr-header .pr-role-badge { color: #fff !important; }
.pr-header .pr-role-badge { background: rgba(255,255,255,.18) !important; }
.pr-header .btn-primary { background: #fff !important; color: var(--field) !important; border-color: #fff !important; box-shadow: none; }
.pr-stat-card.featured .pr-stat-num, .pr-stat-card.featured .pr-stat-label, .pr-stat-card.featured .pr-stat-icon { color: #fff !important; }
.pr-stat-card.featured .pr-stat-icon { background: rgba(255,255,255,.16) !important; }
.pr-header .pr-name { font-family: var(--font-display); }
.pr-tab { min-height: 50px; font-size: 16px !important; white-space: nowrap; }
@media (max-width: 760px) {
  .pr-header { padding: 20px !important; }
  .pr-header-actions, .pr-header-actions .btn { width: 100%; }
  .pr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .pr-stat-card { padding: 12px 8px !important; }
  .pr-stat-num { font-size: 24px !important; }
  .pr-stat-label { font-size: 13px !important; }
}

.cart-item { border-radius: var(--r-lg) !important; }
.ci-qty button { width: 44px !important; height: 44px !important; font-size: 20px !important; border-radius: 10px !important; }
.ci-qty span { font-size: 18px !important; font-weight: 700; min-width: 32px; text-align: center; }
.ci-del { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.cart-summary .radio-label { font-size: 16px !important; min-height: 54px; display: flex; align-items: center; gap: 10px; }
.cart-summary h3 { font-size: 22px !important; }
.cs-row { font-size: 16px !important; }
.cs-total, .cs-total b { font-size: 22px !important; }
.cart-summary .btn-lg { font-size: 18px !important; min-height: 60px; }
.ci-name { font-size: 17px !important; }
.ci-price { font-size: 15px !important; }
@media (max-width: 760px) {
  .cart-item {
    display: grid !important; grid-template-columns: 70px minmax(0, 1fr) 48px !important;
    grid-template-areas: "img info del" "img qty sum"; gap: 8px 12px !important; align-items: center; padding: 12px !important;
  }
  .ci-img { grid-area: img; align-self: start; }
  .ci-info { grid-area: info; padding: 0 !important; min-width: 0; }
  .ci-qty { grid-area: qty; }
  .ci-sum { grid-area: sum; text-align: right; font-size: 17px; }
  .ci-del { grid-area: del; }
  .cart-layout { grid-template-columns: 1fr !important; }
}

/* Широкие таблицы листаются внутри своей рамки, страница не уезжает вбок */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll .compare-table { min-width: 460px; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
  margin: 56px -36px -72px; padding: 44px 36px 28px;
  background: #121A15; color: rgba(255,255,255,.72);
  display: flex; flex-direction: column; gap: 28px;
}
.sf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.sf-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; }
.sf-brand { display: flex; flex-direction: column; gap: 12px; }
.sf-brand p { font-size: 16px; line-height: 1.55; max-width: 42ch; }
.sf-contact { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: rgba(255,255,255,.88); min-height: 40px; }
.sf-contact i { font-size: 20px; color: var(--sun); width: 22px; }
.sf-col { display: flex; flex-direction: column; gap: 6px; }
.sf-col h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sf-col a { font-size: 17px; font-weight: 500; color: rgba(255,255,255,.7); min-height: 40px; display: flex; align-items: center; cursor: pointer; }
.sf-col a:hover, .sf-contact:hover { color: #fff; }
.sf-social { display: flex; gap: 12px; }
.sf-social a {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.22); color: #fff; font-size: 24px;
}
.sf-social a:hover { background: rgba(255,255,255,.08); border-color: var(--sun); }
.sf-word {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 9vw, 88px); line-height: 1; color: #fff; letter-spacing: -1px;
}
.sf-word span { background: var(--sun); color: #121A15; padding: 0 .12em; border-radius: .08em; margin-left: .04em; }
.sf-copy { text-align: center; font-size: 15px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
@media (max-width: 992px) {
  .site-footer { margin: 44px -16px 0; padding: 32px 20px 24px; }
}
@media (max-width: 760px) {
  .sf-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ============================================================
   ЗАКАЗЫ
   ============================================================ */
.od-tabs { margin-bottom: 18px; }
.od-tabs .seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-size: 16px; }
.od-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-grid; place-items: center; font-size: 14px; background: rgba(0,0,0,.08); }
.seg-btn.active .od-count { background: rgba(255,255,255,.22); }
.od-count.hot { background: var(--danger) !important; color: #fff; }
.od-h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 6px 0 12px; display: flex; align-items: center; gap: 10px; }
.od-h2 span { font-size: 15px; background: var(--sprout); color: var(--field); border-radius: 12px; padding: 2px 10px; }
.od-h2.muted { color: var(--ink-3); margin-top: 26px; }
.od-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.od-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.od-card.new { border: 2px solid var(--sun); box-shadow: 0 6px 22px rgba(240, 180, 41, .18); }
.od-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; font-size: 16px; font-weight: 700; }
.od-status .od-id { margin-left: auto; font-weight: 500; font-size: 14px; opacity: .75; }
.od-status.new  { background: var(--sun-lt); color: #7A4E00; }
.od-status.wait { background: var(--sprout); color: var(--field-deep); }
.od-status.done { background: #E6F4EA; color: #136B34; }
.od-status.off  { background: #F4F1F0; color: #7B5550; }
.od-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.od-product { display: flex; gap: 14px; align-items: center; }
.od-img { position: relative; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 14px; overflow: hidden; background: var(--sprout); display: grid; place-items: center; color: var(--field); font-size: 24px; }
.od-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.od-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.od-title b { font-family: var(--font-display); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.od-title a { font-size: 15px; font-weight: 600; color: var(--field); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.od-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.od-figs > div { background: var(--ground); border-radius: var(--r-sm); padding: 10px 14px; display: flex; flex-direction: column; }
.od-figs span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.od-figs b { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.od-person { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: var(--r-md); }
.od-person-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sprout); color: var(--field); font-size: 19px; }
.od-person-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.od-person-tx > span:first-child { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.od-person-tx b { font-size: 18px; }
.od-phone { font-size: 18px; font-weight: 700; color: var(--field-deep); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.od-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.od-hint { font-size: 15px; color: var(--ink-2); background: var(--ground); border-radius: var(--r-sm); padding: 10px 14px; }
.od-actions { display: flex; flex-direction: column; gap: 10px; }
.od-note { font-size: 15px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.od-note i { color: var(--field); margin-top: 3px; }
.btn-reject-o { background: var(--card) !important; color: var(--danger) !important; border: 2px solid #E9B8B2 !important; }
.btn-reject-o:hover { background: #FFF5F4 !important; }
.od-empty { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--card); border: 1px dashed var(--rule); border-radius: var(--r-lg); }
.od-empty i { font-size: 44px; color: var(--field); }
.od-empty p { font-size: 18px; color: var(--ink-2); max-width: 40ch; }
.cf-text { font-size: 18px; color: var(--ink-2); line-height: 1.5; }
.cf-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* Нижняя панель на 6 вкладок (у фермера есть «Продать») */
@media (max-width: 992px) {
  .mobile-bottom-bar.six .mbb-item { font-size: 12px; padding: 6px 0; }
  .mobile-bottom-bar.six .mbb-ic, .mobile-bottom-bar.six .mbb-item i { font-size: 21px; }
  .mobile-bottom-bar.six .mbb-main .mbb-ic { width: 42px; height: 42px; }
}
@media (max-width: 370px) {
  .mobile-bottom-bar.six .mbb-item { font-size: 11px; }
}

/* Вход: код из СМС, Google */
.otp-block { display: flex; flex-direction: column; gap: 12px; }
.otp-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.otp-note { font-size: 15px; color: var(--ink-3); }
.auth2-or { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth2-or > span { font-size: 15px; color: var(--ink-3); display: flex; align-items: center; gap: 12px; width: 100%; }
.auth2-or > span::before, .auth2-or > span::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.g-btn { min-height: 44px; display: flex; justify-content: center; width: 100%; }
#login-mode .seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }


/* ============================================================
   ПРОФИЛЬ — «Паспорт фермера»
   ============================================================ */
.pr2 { display: flex; flex-direction: column; gap: 22px; }
.pr2-hero { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; }
.pr2-cover { position: relative; height: 170px; background: var(--fill); }
.pr2-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr2-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,61,37,0) 55%, rgba(10,61,37,.35)); }
.pr2-id { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px; margin-top: -62px; position: relative; z-index: 1; flex-wrap: wrap; }
.pr2-ava-wrap { position: relative; width: 132px; height: 132px; flex: 0 0 132px; }
.pr-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pr-ring-bg { fill: none; stroke: var(--card); stroke-width: 10; }
.pr-ring-fg { fill: none; stroke: var(--sun); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.pr2-ava {
  position: absolute; inset: 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--field) 0%, var(--field-deep) 100%);
  color: #fff; font-family: var(--font-display); font-size: 40px; font-weight: 700;
  border: 4px solid var(--card); box-shadow: 0 6px 20px rgba(10,61,37,.25);
}
.pr2-lvl-ic {
  position: absolute; right: 2px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--on-sun); font-size: 18px;
  border: 3px solid var(--card);
}
.pr2-who { flex: 1; min-width: 220px; padding: 70px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.pr2-role { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; background: var(--sprout); color: var(--field-deep); font-weight: 700; font-size: 15px; padding: 5px 12px; border-radius: 999px; }
.pr2-name { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); font-weight: 700; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.pr2-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 17px; color: var(--ink-2); font-weight: 500; }
.pr2-meta i { color: var(--field); margin-right: 6px; }
.pr2-add-city { color: var(--field); font-weight: 700; font-size: 16px; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
.pr2-edit { margin-bottom: 8px; }
.pr2-level { margin: 20px 28px 24px; padding: 16px 18px; background: var(--ground); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px; }
.pr2-level-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.pr2-level-top b { font-size: 18px; display: inline-flex; gap: 8px; align-items: center; }
.pr2-level-top b i { color: var(--soil); }
.pr2-level-top span { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.pr2-bar { height: 12px; border-radius: 6px; background: #E2E7E1; overflow: hidden; }
.pr2-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--field), #2E8B57 60%, var(--sun)); }
.pr2-level small { font-size: 14px; color: var(--ink-3); }

.pr2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr2-stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr2-stat > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sprout); color: var(--field); font-size: 18px; margin-bottom: 6px; }
.pr2-stat b { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pr2-stat b small { font-size: 15px; color: var(--ink-3); font-family: var(--font-body); font-weight: 600; }
.pr2-stat > span { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.pr2-stat:first-child { background: var(--fill); border-color: var(--field); color: #fff; }
.pr2-stat:first-child > i { background: rgba(255,255,255,.15); color: var(--sun); }
.pr2-stat:first-child > span, .pr2-stat:first-child b small { color: rgba(255,255,255,.8); }

.pr2-alert {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--r-lg); background: var(--sun-lt); border: 2px solid var(--sun); color: #5E3E00;
}
.pr2-alert-ic { position: relative; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--on-sun); font-size: 21px; }
.pr2-alert-ic em, .pr2-act-ic em { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--danger); color: #fff; font-style: normal; font-size: 13px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--card); }
.pr2-alert > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.pr2-alert b { font-size: 18px; }
.pr2-alert small { font-size: 15px; }

.pr2-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pr2-act { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); font-size: 16px; font-weight: 600; color: var(--ink); text-align: center; }
.pr2-act:hover { border-color: var(--field); }
.pr2-act-ic { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sprout); color: var(--field); font-size: 22px; }
.pr2-act.main { background: var(--sun-lt); border-color: var(--sun); }
.pr2-act.main .pr2-act-ic { background: var(--sun); color: var(--on-sun); }

.pr2-sec { display: flex; flex-direction: column; gap: 14px; }
.pr2-count { font-size: 15px; background: var(--sprout); color: var(--field); border-radius: 12px; padding: 2px 10px; font-family: var(--font-body); }
.pr2-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pr2-prod { display: flex; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.pr2-prod.out { opacity: .75; }
.pr2-prod-img { position: relative; width: 120px; flex: 0 0 120px; background: var(--sprout); display: grid; place-items: center; color: var(--field); font-size: 30px; cursor: pointer; }
.pr2-prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr2-prod-state { position: absolute; left: 8px; bottom: 8px; z-index: 1; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--field-deep); }
.pr2-prod.out .pr2-prod-state { color: var(--danger); }
.pr2-prod-body { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pr2-prod-body > b { font-family: var(--font-display); font-size: 18px; overflow-wrap: anywhere; }
.pr2-prod-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--field); }
.pr2-prod-price small { font-family: var(--font-body); font-size: 14px; color: var(--ink-3); font-weight: 500; }
.pr2-prod-left { font-size: 15px; color: var(--ink-2); }
.pr2-prod-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.pr2-prod-btns .btn-outline { flex: 1; }
.pr2-prod-btns .btn-reject-o { width: 46px; padding: 0; }

.pr2-settings { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.pr2-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 16px; border-bottom: 1px solid var(--rule); text-align: left; color: var(--ink); background: var(--card); width: 100%; }
.pr2-row:last-child { border-bottom: none; }
button.pr2-row:hover { background: #FAFCFA; }
.pr2-row .menu-tx small { font-size: 14px; color: var(--ink-3); font-weight: 600; order: -1; }
.pr2-row .menu-tx b { font-size: 18px; overflow-wrap: anywhere; }
.pr2-row-go { color: var(--field); font-weight: 700; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.pr2-row-lock { color: var(--ink-3); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; text-align: right; }
.pe-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }

@media (max-width: 760px) {
  .pr2 { gap: 16px; }
  .pr2-cover { height: 120px; }
  .pr2-id { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; margin-top: -66px; gap: 12px; }
  .pr2-who { align-items: center; min-width: 0; padding: 0; }
  .pr2-role { align-self: center; }
  .pr2-meta { justify-content: center; }
  .pr2-edit { margin: 0; }
  .pr2-level { margin: 16px; }
  .pr2-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pr2-stat b { font-size: 26px; }
  .pr2-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pr2-act { font-size: 14px; padding: 12px 4px; }
  .pr2-act-ic { width: 48px; height: 48px; font-size: 20px; }
  .pr2-prod-img { width: 104px; flex-basis: 104px; }
  .pr2-row-go, .pr2-row-lock { font-size: 0; gap: 0; }
  .pr2-row-lock i { font-size: 16px; }
  .pr2-row-go i { font-size: 16px; }
}


/* ============================================================
   СТАРТОВАЯ СТРАНИЦА ДЛЯ ГОСТЕЙ (/welcome, /about, /contacts)
   Тёмное поле с солнцем → светлые разделы → тёмные контакты.
   ============================================================ */
.lp { background: var(--ground); color: var(--ink); min-height: 100vh; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.lp section[id] { scroll-margin-top: 84px; }

/* верхняя панель */
.lp-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.lp-top-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--field-deep); cursor: pointer; flex: 0 0 auto; }
.lp-brand .sb-logo-icon { width: 42px; height: 42px; font-size: 19px; border-radius: 12px; }
.lp-nav { display: flex; gap: 4px; margin: 0 auto; }
.lp-nav button, .lp-nav-m button {
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  font-size: 17px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.lp-nav button:hover { background: var(--sprout); color: var(--field); }
.lp-top-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lp-lang { padding: 4px; gap: 2px; }
.lp-lang .seg-btn { min-height: 40px; padding: 4px 10px; font-size: 15px; flex: 0 0 auto; }
.lp-top .btn { min-height: 50px; padding: 10px 18px; font-size: 17px; gap: 8px; border-radius: 14px; }
.lp-nav-m { display: none; }
.lg-short { display: none; }

/* первый экран */
.lp-hero { position: relative; overflow: hidden; background: #07170E; color: #fff; isolation: isolate; }
.lp-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,18,34,.82) 0%, rgba(12,18,34,.5) 45%, rgba(12,18,34,0) 100%),
    url('../assets/hero-dusk.svg') center 60% / cover no-repeat;
}
.lp-hero-bg::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(7,23,14,0), #07170E);
}
.lp-hero-in { padding-top: clamp(56px, 10vh, 112px); padding-bottom: clamp(56px, 9vh, 96px); }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: 16px; font-weight: 600; color: rgba(255,255,255,.92);
}
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(240,180,41,.25); }
.lp-h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(38px, 6vw, 74px); line-height: 1.04; margin: 22px 0 20px; max-width: 15ch; color: #fff;
}
.lp-h1 em { font-style: normal; color: var(--sun); }
.lp-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: rgba(255,255,255,.86); max-width: 52ch; }
.lp-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin-top: 34px; }
.lp-role {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 96px; border-radius: 20px;
  text-align: left; background: #fff; color: var(--ink); border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease;
}
.lp-role:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.32); }
.lp-role:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.lp-role.farmer { background: var(--sun); color: #1C1503; }
.lp-role-ic { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--sprout); color: var(--field); }
.lp-role.farmer .lp-role-ic { background: rgba(255,255,255,.55); color: #6B4A00; }
.lp-role-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lp-role-tx b { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.lp-role-tx small { font-size: 16px; opacity: .8; margin-top: 2px; }
.lp-role-go { font-size: 22px; flex: 0 0 auto; }
.lp-hero-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; font-size: 17px; color: rgba(255,255,255,.8); }
.lp-hero-foot a { color: var(--sun); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lp-hero-foot .lp-hero-phone { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.lp-hero-phone i { color: var(--sun); }
.lp-hero-phone b { color: #fff; white-space: nowrap; }

/* разделы */
.lp-sec { padding: clamp(56px, 9vw, 96px) 0; }
.lp-k {
  display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--field);
  background: var(--sprout); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.lp-h2 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; max-width: 22ch; }
.lp-p { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.lp-p.strong { color: var(--ink); font-weight: 600; font-size: 21px; }

/* идея: длинная цепочка против короткой */
.lp-chains { display: grid; gap: 16px; margin-top: 36px; }
.lp-chain { position: relative; border-radius: 24px; padding: 30px 26px 22px; }
.lp-chain.old { background: var(--card); border: 1px solid var(--rule); }
.lp-chain.new { background: var(--fill-deep); color: #fff; }
.lp-chain-tag {
  position: absolute; top: -14px; left: 22px; padding: 4px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 700; background: #E9ECE9; color: var(--ink-2);
}
.lp-chain.new .lp-chain-tag { background: var(--sun); color: #1C1503; }
.lp-chain-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lp-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; padding: 14px 12px;
  border-radius: 16px; background: var(--sprout); color: var(--field-deep); text-align: center;
}
.lp-node i { font-size: 26px; }
.lp-node b { font-size: 17px; font-weight: 700; line-height: 1.2; }
.lp-node small { font-size: 14px; font-weight: 700; color: var(--danger); }
.lp-node.mid { background: #F4F1EC; color: var(--ink-2); }
.lp-chain.new .lp-node { background: rgba(255,255,255,.1); color: #fff; min-width: 150px; padding: 18px 16px; }
.lp-chain.new .lp-node i { color: var(--sun); font-size: 30px; }
.lp-chain.new .lp-node b { font-size: 19px; }
.lp-arrow { color: var(--ink-3); font-size: 18px; }
.lp-chain.new .lp-arrow { color: var(--sun); font-size: 26px; }
.lp-chain.new .lp-chain-row { gap: 18px; }
.lp-chain-res { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 18px; font-weight: 700; color: var(--danger); }
.lp-chain.new .lp-chain-res { color: #9BE3B0; }
.lp-chain-res i { font-size: 22px; }

/* как это работает */
.lp-how { background: var(--card); border-block: 1px solid var(--rule); }
.lp-tabs { max-width: 520px; margin: 26px 0 26px; }
.lp-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-size: 17px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.lp-step {
  position: relative; background: var(--ground); border: 1px solid var(--rule); border-radius: 22px;
  padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 8px;
}
.lp-step-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 21px; font-weight: 700; background: var(--sun); color: #1C1503;
}
.lp-step-ic { position: absolute; top: 22px; right: 20px; font-size: 26px; color: var(--field); opacity: .85; }
.lp-step h3 { font-size: 21px; font-weight: 700; margin-top: 8px; line-height: 1.2; }
.lp-step p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* почему удобно */
.lp-feats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feat { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.lp-feat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: var(--sprout); color: var(--field); margin-bottom: 6px; }
.lp-feat:nth-child(3n+2) .lp-feat-ic { background: var(--sun-lt); color: #8A6200; }
.lp-feat h3 { font-size: 21px; font-weight: 700; }
.lp-feat p { font-size: 17px; color: var(--ink-2); line-height: 1.5; }

/* о нас */
.lp-about { background: var(--card); border-block: 1px solid var(--rule); }
.lp-about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.lp-about-art { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--fill); }
.lp-about-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-about-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,61,37,0) 35%, rgba(10,61,37,.88) 100%); }
.lp-quote {
  position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; margin: 0;
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; color: #fff;
}
.lp-values { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lp-values li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--ground); border: 1px solid var(--rule); }
.lp-val-ic { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--fill); color: #fff; }
.lp-values span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.lp-values b { font-size: 19px; }
.lp-values small { font-size: 16px; color: var(--ink-2); }

/* вопросы */
.lp-narrow .lp-qs { max-width: 860px; }
.lp-qs { display: grid; gap: 12px; margin-top: 28px; }
.lp-q { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.lp-q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 14px 20px; font-size: 19px; font-weight: 700;
}
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sprout); color: var(--field); transition: transform .2s ease; }
.lp-q[open] summary i { transform: rotate(45deg); background: var(--fill); color: #fff; }
.lp-q p { padding: 0 20px 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* контакты */
.lp-contacts { padding-top: 0; }
.lp-ct-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--fill-deep); color: #fff; border-radius: 30px; padding: clamp(28px, 5vw, 56px);
  background-image: radial-gradient(circle at 100% 0%, rgba(240,180,41,.22), transparent 45%);
}
.lp-ct-card .lp-k { background: rgba(255,255,255,.12); color: var(--sun); }
.lp-ct-card .lp-h2 { color: #fff; }
.lp-ct-card .lp-p { color: rgba(255,255,255,.82); }
.lp-ct-phone {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; padding: 14px 26px 14px 14px; border-radius: 22px;
  background: var(--sun); color: #1C1503; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.lp-ct-phone:hover { filter: brightness(1.05); }
.lp-ct-phone-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: #1C1503; color: var(--sun); }
.lp-ct-phone span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.lp-ct-phone small { font-size: 15px; font-weight: 600; opacity: .75; }
.lp-ct-phone b { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; white-space: nowrap; }
.lp-ct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-ct-list a, .lp-ct-row {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 18px; border-radius: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.lp-ct-list a:hover { background: rgba(255,255,255,.14); border-color: var(--sun); }
.lp-ct-list i { font-size: 26px; width: 30px; text-align: center; color: var(--sun); }
.lp-ct-list span span, .lp-ct-list a > span { display: flex; flex-direction: column; line-height: 1.25; }
.lp-ct-list small { font-size: 15px; color: rgba(255,255,255,.7); }
.lp-ct-list b { font-size: 19px; }
.lp-ct-list .soon { opacity: .65; }

/* призыв + футер */
.lp-cta { background: var(--sun); color: #1C1503; }
.lp-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.lp-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.lp-cta p { font-size: 19px; margin-top: 4px; }
.lp-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-btn-sun { background: var(--fill-deep) !important; color: #fff !important; border: 2px solid var(--fill-deep) !important; gap: 10px; border-radius: 16px; }
.lp-btn-line { background: transparent !important; color: #1C1503 !important; border: 2px solid #1C1503 !important; border-radius: 16px; }
.lp-footer .site-footer { margin: 0; padding-left: max(32px, calc((100% - 1180px) / 2 + 32px)); padding-right: max(32px, calc((100% - 1180px) / 2 + 32px)); }

/* нижняя липкая панель — только на телефоне */
.lp-sticky { display: none; }

@media (max-width: 1080px) {
  .lp-nav { display: none; }
  .lp-top-right { margin-left: auto; }
  .lp-nav-m {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px;
  }
  .lp-nav-m::-webkit-scrollbar { display: none; }
  .lp-nav-m button { background: var(--ground); border: 1px solid var(--rule); min-height: 44px; font-size: 16px; flex: 0 0 auto; }
  .lp section[id] { scroll-margin-top: 136px; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .lp { padding-bottom: 84px; }
  .lp-wrap { padding: 0 16px; }
  .lp-top-in { min-height: 64px; gap: 8px; }
  .lp-brand { font-size: 20px; gap: 8px; }
  .lp-brand .sb-logo-icon { width: 38px; height: 38px; font-size: 17px; }
  .lp-top-cta { display: none !important; }
  .lp-top .btn { min-height: 46px; padding: 8px 12px; font-size: 16px; }
  .lp-lang .seg-btn { min-height: 40px; min-width: 40px; padding: 4px 6px; font-size: 15px; }
  .lg-full { display: none; }
  .lg-short { display: inline; }
  .lp section[id] { scroll-margin-top: 124px; }
  .lp-hero-phone { flex-wrap: wrap; }

  .lp-hero-bg { background:
    linear-gradient(180deg, rgba(12,18,34,.45) 0%, rgba(12,18,34,.7) 55%, rgba(7,23,14,.92) 100%),
    url('../assets/hero-dusk.svg') 60% center / cover no-repeat; }
  .lp-hero-in { padding-top: 36px; padding-bottom: 40px; }
  .lp-eyebrow { font-size: 15px; padding: 6px 12px; }
  .lp-h1 { margin: 18px 0 14px; }
  .lp-roles { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .lp-role { min-height: 84px; padding: 14px 16px; }
  .lp-role-ic { width: 52px; height: 52px; flex-basis: 52px; font-size: 23px; }
  .lp-role-tx b { font-size: 20px; }
  .lp-hero-foot { flex-direction: column; gap: 12px; }

  .lp-p { font-size: 18px; }
  .lp-chain { padding: 28px 16px 18px; }
  .lp-chain.old .lp-chain-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .lp-chain.old .lp-arrow { transform: rotate(90deg); align-self: center; }
  .lp-chain.old .lp-node { flex-direction: row; justify-content: flex-start; gap: 12px; min-width: 0; padding: 12px 14px; text-align: left; }
  .lp-chain.old .lp-node i { width: 30px; font-size: 22px; text-align: center; }
  .lp-chain.old .lp-node small { margin-left: auto; }
  .lp-chain.new .lp-chain-row { flex-wrap: nowrap; gap: 10px; }
  .lp-chain.new .lp-node { flex: 1; min-width: 0; }

  .lp-steps { grid-template-columns: 1fr; gap: 0; }
  .lp-step { background: none; border: none; border-radius: 0; padding: 0 0 22px 62px; }
  .lp-step::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--rule); }
  .lp-step:last-child::before { display: none; }
  .lp-step-n { position: absolute; left: 0; top: 0; }
  .lp-step-ic { display: none; }
  .lp-step h3 { margin-top: 6px; }

  .lp-feats { grid-template-columns: 1fr; gap: 10px; }
  .lp-feat { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
  .lp-feat-ic { margin: 0; width: 50px; height: 50px; font-size: 22px; }
  .lp-feat h3 { flex: 1; font-size: 19px; }
  .lp-feat p { flex-basis: 100%; }

  .lp-about-in { grid-template-columns: 1fr; gap: 26px; }
  .lp-about-art { aspect-ratio: 4 / 3; border-radius: 22px; }
  .lp-q summary { font-size: 18px; padding: 12px 16px; }
  .lp-q p { padding: 0 16px 16px; font-size: 17px; }

  .lp-ct-card { grid-template-columns: 1fr; gap: 22px; border-radius: 24px; padding: 26px 18px; }
  .lp-ct-phone { display: flex; padding-right: 18px; }
  .lp-cta-in { padding-top: 32px; padding-bottom: 32px; }
  .lp-cta-btns, .lp-cta-btns .btn { width: 100%; }
  .lp-footer .site-footer { padding: 32px 20px 24px; }

  .lp-sticky {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }
  .lp-sticky-call {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 104px; min-height: 58px; padding: 0 8px; border-radius: 16px; border: 2px solid var(--field); color: var(--field); font-size: 15px; font-weight: 700;
  }
  .lp-sticky-call i { font-size: 20px; }
  .lp-sticky-go {
    flex: 1; min-height: 58px; border-radius: 16px; background: var(--fill); color: #fff;
    font-size: 19px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
  }
}

@media (max-width: 440px) {
  .lp-brand-tx { display: none; }
}
@media (max-width: 330px) {
  .lp-top-login span { display: none; }
}

/* вход/регистрация: возврат на стартовую и телефон помощи */
.auth2-brand.small { cursor: pointer; }
.auth2-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  border-radius: 12px; font-size: 17px; font-weight: 600; color: var(--field); background: var(--sprout);
}
.auth2-help { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 17px; color: var(--ink-2); min-height: 48px; }
.auth2-help i { color: var(--field); }
.auth2-help b { color: var(--field-deep); white-space: nowrap; }
a.menu-row.menu-help { text-decoration: none; margin-top: 12px; border: 1px solid var(--rule); border-radius: 16px; }
.sf-col a { flex-wrap: wrap; }
.sf-col .nw { white-space: nowrap; }
