/* =========================================================================
   GrOw — базовые стили: шрифты, палитра, типографика, хедер, футер,
   корзина, возрастная модалка. Всё, что общее для всех страниц.
   Страничные стили лежат рядом с самой страницей.

   Пути к шрифтам заданы относительно этого файла — так сайт открывается
   и с сервера, и напрямую из папки, без привязки к корню домена.
   ========================================================================= */

/* ---------- Шрифты. Локальные, без обращений к сторонним хостам ---------- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */

:root {
  --bg: #f6f7f6;
  --surface: #ffffff;
  --surface-alt: #eff2f0;
  --sage: #cedddb;
  --sage-soft: #e4ecea;
  --accent: #0b5b45;
  --accent-dark: #073f30;
  --accent-soft: #dfeae5;
  --ink: #14181a;
  --muted: #5c6663;
  --line: #e3e7e5;
  --line-strong: #cfd6d3;
  --danger: #a4392f;

  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 26, 0.05);
  --shadow: 0 6px 24px rgba(20, 24, 26, 0.07);
  --shadow-lg: 0 18px 48px rgba(20, 24, 26, 0.14);

  --container: 1280px;
  --gutter: 24px;
  --header-h: 132px;
}

@media (max-width: 860px) {
  :root {
    --gutter: 16px;
    --header-h: 118px;
  }
}

/* ---------- Сброс ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Типографика ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}
h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
h4 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

/* ---------- Каркас ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(36px, 4.4vw, 64px) 0;
}

.section--tight {
  padding: clamp(22px, 2.6vw, 36px) 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section__head > div:first-child {
  flex: 1 1 min(52ch, 100%);
}

.section__head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

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

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: #fff;
  color: var(--accent);
}

.btn--light:hover {
  background: var(--accent-soft);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* На сенсорных экранах даже мелкая кнопка должна оставаться
   комфортной целью — добираем высоту до 38 px. */
@media (max-width: 860px) {
  .btn--sm {
    padding: 12px 20px;
  }
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Теги ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip[aria-pressed='true'],
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .chip-row::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- Хедер ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 247, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__top {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 18px 0 14px;
}

.header__logo {
  flex: 0 0 auto;
  display: block;
  width: 148px;
  color: var(--ink);
}

.header__logo svg {
  width: 100%;
  height: auto;
}

.header__search {
  flex: 1 1 auto;
  max-width: 560px;
  position: relative;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search__input {
  width: 100%;
  padding: 13px 46px 13px 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* У input[type=search] браузер рисует собственный крестик очистки.
   Убираем его: свой, в стилистике проекта, лежит рядом. */
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration,
.search__input::-webkit-search-results-button,
.search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search__input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search__clear {
  position: absolute;
  right: 14px;
  width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.search__clear.is-visible {
  display: grid;
}

.search__clear:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

/* Выпадающие подсказки поиска */
.search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 70;
  display: none;
  max-height: min(60vh, 460px);
  overflow-y: auto;
}

.search__results.is-open {
  display: block;
}

.search__result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.search__result:last-child {
  border-bottom: 0;
}

.search__result:hover,
.search__result.is-highlighted {
  background: var(--accent-soft);
}

.search__result img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.search__result-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.search__result-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.search__empty {
  padding: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

/* ---------- Меню ---------- */

.nav {
  border-top: 1px solid var(--line);
}

.nav__list {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  padding: 12px 0;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (max-width: 860px) {
  .header__logo {
    width: 116px;
  }
  .header__burger {
    display: grid;
  }
  .nav {
    display: none;
  }
  .nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    /* Своей верхней границы у панели быть не должно: сразу над ней уже
       есть нижняя граница шапки, вдвоём они дают заметный двойной волосок. */
    border-top: 0;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 6px 0 14px;
  }

  /**
   * Пункт меню — блок во всю ширину строки.
   *
   * Инлайн-ссылке вертикальные поля не раздвигают строки: нажимать можно
   * было только по самим буквам («О нас» — 43 px при строке в 326),
   * а области соседних пунктов налезали друг на друга на 22 px, и палец
   * у границы попадал не туда.
   *
   * Подчёркивания в выпадающем меню не нужны: они обрывались по ширине
   * контейнера и читались как случайные полосы. Пункты разделяет воздух,
   * активный помечен цветом.
   */
  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 0;
    font-size: 1rem;
  }

  .nav__link:active {
    background: var(--surface-alt);
  }

  .nav__link[aria-current='page'] {
    color: var(--accent);
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .header__top {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .header__search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .header__actions {
    margin-left: auto;
  }
}

/* ---------- Футер ---------- */

.footer {
  background: var(--ink);
  color: #d5dad8;
  padding: clamp(40px, 4.5vw, 60px) 0 28px;
  margin-top: clamp(24px, 2.8vw, 40px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer__logo {
  width: 150px;
  display: block;
  margin-bottom: 18px;
}

.footer__about {
  font-size: 0.9rem;
  color: #9aa5a1;
  max-width: 34ch;
}

.footer__title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f8a86;
  margin: 0 0 16px;
  font-weight: 600;
}

.footer__nav a {
  display: block;
  padding: 7px 0;
  font-size: 0.95rem;
  color: #d5dad8;
  transition: color 0.16s ease;
}

.footer__nav a:hover {
  color: #fff;
}

/* Плашка подобрана по высоте так, чтобы её нижний край вставал
   на одну линию с последним пунктом меню в соседней колонке. */
.tg-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0d6b51 0%, #094c3a 100%);
  color: #fff;
}

.tg-banner__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.tg-banner__icon svg {
  width: 21px;
  height: 21px;
}

.tg-banner h3 {
  font-size: 1.18rem;
  margin: 0 0 3px;
  color: #fff;
}

.tg-banner p {
  margin: 0 0 11px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.tg-banner .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* На десктопе кнопка компактная — так низ плашки встаёт на одну линию
   с меню в соседней колонке. На мобильном колонки идут друг под другом,
   выравнивать нечего, и кнопке возвращается нормальный размер. */
@media (max-width: 860px) {
  .tg-banner .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #7f8a86;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .tg-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Карточка сорта ---------- */

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

.strain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.strain-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.strain-card.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.strain-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 12px;
  display: grid;
  place-items: center;
}

.strain-card__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.strain-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.strain-card__body {
  padding: 4px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Название сидбанка держим в одну строку, название сорта — ровно в две.
   Иначе характеристики и цена в соседних карточках встают на разной
   высоте и сетка выглядит рваной. */
.strain-card__bank {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strain-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.16;
  margin-bottom: 10px;
  min-height: calc(1.16em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.strain-card__specs {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.strain-card__specs b {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Цена и кнопка — в строку, выбор фасовки (если он есть) — под ними
   на всю ширину карточки: в узкой карточке иначе обрезается подпись. */
.strain-card__foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'price btn'
    'pack pack';
  align-items: center;
  gap: 10px 12px;
}

.strain-card__price {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.strain-card__price span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* Обёртка цены и фасовки не участвует в сетке: её дети встают в свои области. */
.strain-card__offer {
  display: contents;
}

.strain-card__price {
  grid-area: price;
}

.strain-card__price--none {
  color: var(--muted);
  font-weight: 600;
}

/* Выбор фасовки: компактный, под ценой — на месте подписи «за N семян». */
.pack-select {
  grid-area: pack;
  width: 100%;
  min-width: 0;
  padding: 3px 26px 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  text-overflow: ellipsis;
}

.pack-select:hover {
  border-color: var(--accent);
}

.pack-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* В узких карточках цена и кнопка не помещаются в строку — складываем. */
@media (max-width: 1500px) {
  .strain-grid--tile .strain-card__foot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'price'
      'pack'
      'btn';
    gap: 10px;
  }
  .strain-grid--tile .pick-btn {
    justify-content: center;
  }
}

.pick-btn {
  grid-area: btn;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.pick-btn:hover {
  background: var(--accent);
  color: #fff;
}

.is-picked .pick-btn {
  background: var(--accent);
  color: #fff;
}

/* ---------- Плашка выбранного и шторка ---------- */

.picker-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 22px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: picker-in 0.24s ease;
}

.picker-bar.is-visible {
  display: flex;
}

@keyframes picker-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.picker-bar__count {
  font-size: 0.9rem;
}

.picker-bar__count b {
  font-weight: 700;
}

.picker-bar__sum {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 560px) {
  .picker-bar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: space-between;
  }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 26, 0.42);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.drawer.is-open {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  font-size: 1.6rem;
}

.drawer__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.drawer__close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px var(--gutter) 16px;
}

.drawer__foot {
  border-top: 1px solid var(--line);
  padding: 18px var(--gutter) 22px;
  background: var(--surface);
}

.drawer__empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

.drawer-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.drawer-item__media {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 4px;
}

.drawer-item__name {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.25;
}

.drawer-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}

.drawer-item__remove {
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: underline;
  margin-top: 6px;
}

.drawer-item__remove:hover {
  color: var(--danger);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  overflow: hidden;
}

.qty button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.qty button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.qty input {
  width: 38px;
  border: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.drawer-total b {
  font-size: 1.3rem;
}

.drawer-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- Форма оформления ---------- */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.94rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field__error {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 5px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.field.has-error .field__error {
  display: block;
}

/* Ловушка для ботов — прячем от людей, но не от скринридеров-ботов. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Область сообщений всегда в дереве (пустая — без отступов): так экранный
   диктор объявляет текст, когда он появляется. */
.form-status {
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.form-status.is-visible {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.form-status p {
  margin: 0 0 8px;
}

.form-status p:last-child {
  margin-bottom: 0;
}

.form-status__list {
  margin: 0 0 12px;
  padding-left: 18px;
}

.form-status--info {
  background: var(--surface-alt);
  color: var(--ink);
}

.form-status--warn {
  background: #fbf3df;
  color: #5c4300;
}

.drawer-back {
  margin-top: 10px;
}

.checkout-pay {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.checkout-pay__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.checkout-pay__test {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #fbf3df;
  color: #5c4300;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------- Шаги оформления ---------- */

.checkout__step {
  padding: 14px 0 6px;
  border-top: 1px solid var(--line);
}

.checkout__step:first-child {
  border-top: 0;
  padding-top: 0;
}

.checkout__title {
  font-family: var(--font-body, inherit);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 0.94rem;
}

.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field input[disabled] {
  background: var(--surface-alt);
  color: var(--muted);
}

/* Вкладки групп доставки и списки вариантов: настоящие радио-кнопки, видимое
   состояние — рамкой и жирным текстом, не только цветом. */
.choice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.choice-tab {
  position: relative;
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-size: 0.8rem;
  cursor: pointer;
}

.choice-tab.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 700;
}

.choice-tab input,
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-tab:focus-within,
.choice:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice-tag {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: var(--pill);
  background: #ffe58a;
  color: #4a3b00;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

/* Поиск города (оформление): поле-комбобокс и список совпадений под ним. */
.city-search {
  position: relative;
}

.city-search__list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  max-height: 260px;
  margin: 4px 0 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.city-search__option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}

.city-search__option small {
  color: var(--muted);
  font-size: 0.76rem;
}

/* Активный вариант виден и без цвета: рамка + фон. */
.city-search__option[aria-selected='true'],
.city-search__option:hover {
  background: var(--accent-soft);
  outline: 1px solid var(--accent);
}

.choice-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.choice-group {
  margin: 8px 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.86rem;
}

/* Отметка выбора: кружок с точкой, виден и без цвета. */
.choice::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 13px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.choice.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice.is-active::before {
  border-color: var(--accent);
  background: radial-gradient(var(--accent) 0 3px, #fff 4px);
}

.choice.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.choice__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice__meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.choice__why {
  color: var(--danger);
  font-size: 0.78rem;
}

.choice__price {
  flex: none;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.choice__price small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.checkout__notice {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0 8px;
  font-size: 0.86rem;
}

.field .check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}

.checkout-summary__list {
  margin: 0 0 12px;
  font-size: 0.86rem;
}

.checkout-summary__list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.checkout-summary__list dt {
  color: var(--muted);
}

.checkout-summary__list dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.checkout-summary__total {
  margin-top: 6px;
  padding-top: 8px !important;
  border-top: 1px solid var(--line-strong);
  font-size: 1.05rem;
}

.checkout-summary__total dt {
  color: var(--ink) !important;
  font-weight: 700;
}

.drawer__foot .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.order-done h3 {
  margin-bottom: 10px;
}

.form-status--ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.form-status--error {
  background: #f7e6e4;
  color: var(--danger);
}

/* ---------- Возрастная модалка ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: var(--gutter);
  background: rgba(20, 24, 26, 0.72);
  backdrop-filter: blur(6px);
}

.age-gate.is-open {
  display: grid;
}

.age-gate__card {
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.age-gate__logo {
  width: 128px;
  margin: 0 auto 22px;
}

.age-gate__card h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.age-gate__card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.age-gate__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.age-gate__actions .btn {
  flex: 1 1 0;
}

.age-gate__deny {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Прочее ---------- */

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 18px 0 0;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--line-strong);
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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