/* ==========================================================================
   Растишка — справочник домашнего садовода
   Палитра: кремовая бумага, глубокая зелень, приглушённый шалфей,
   розовый акцент. Мотив: перистый лист, повторяется в фоне, в знаке,
   в разделителях и в маркерах списков.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-cyrillic-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-cyrillic-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122, U+2212;
}

/* ---------- Переменные ---------- */
:root {
  --ink:      #22362a;
  --ink-soft: #4d6152;
  --ink-mute: #77887c;
  --bg:       #f6f4ea;
  --paper:    #ffffff;
  --sand:     #efe9d8;
  --line:     #e0ddcc;
  --green:    #4d7a44;
  --green-dp: #2f5230;
  --sage:     #9db492;
  --blush:    #ecd2d6;
  --blush-dp: #b47a84;
  --clay:     #c98a5a;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --gap: 20px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(34, 54, 42, .06), 0 8px 24px rgba(34, 54, 42, .05);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* Мотив сайта: перистый лист, разреженной сеткой по всему полотну */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%234d7a44' stroke-opacity='.09' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M40 200 C40 150 60 110 96 78'/%3E%3Cpath d='M52 168 C64 168 76 160 84 146'/%3E%3Cpath d='M46 182 C58 184 72 178 82 166'/%3E%3Cpath d='M62 146 C74 144 84 136 90 122'/%3E%3Cpath d='M74 124 C84 120 92 112 96 100'/%3E%3Cpath d='M200 40 C200 90 180 130 144 162'/%3E%3Cpath d='M188 72 C176 72 164 80 156 94'/%3E%3Cpath d='M194 58 C182 56 168 62 158 74'/%3E%3Cpath d='M178 94 C166 96 156 104 150 118'/%3E%3Cpath d='M166 116 C156 120 148 128 144 140'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

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

a { color: var(--green-dp); text-decoration-color: rgba(77, 122, 68, .45); text-underline-offset: 2px; }
a:hover { color: var(--green); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1.05em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-dp); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Верхняя служебная полоса ---------- */
.topbar {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topbar__in {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  align-items: center; justify-content: center;
  min-height: 34px; padding-top: 5px; padding-bottom: 5px;
}
.topbar a { color: var(--ink-soft); text-decoration: none; }
.topbar a:hover { color: var(--green-dp); text-decoration: underline; }

/* ---------- Шапка ---------- */
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 10px; background: var(--green);
  display: grid; place-items: center;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__name {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--ink); line-height: 1;
}
.brand__sub {
  display: block; font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
  margin-top: 4px;
}
.header__note {
  display: none; font-size: 13px; color: var(--ink-soft); text-align: right; max-width: 320px;
}

/* ---------- Основное меню ---------- */
/* Переключатель — чекбокс: состояние задаётся только CSS, без скриптов
   и без опоры на поведение <details>, которое в разных браузерах разное. */
.mainnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.mainnav__in { position: relative; }

.mainnav__check {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  margin: 0; top: 14px; left: 16px;
}
.mainnav__burger {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 0; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.mainnav__burger > span { display: inline-flex; flex-direction: column; gap: 3px; }
.mainnav__burger i { display: block; width: 18px; height: 2px; background: var(--green); }
.mainnav__check:focus-visible + .mainnav__burger {
  outline: 2px solid var(--green); outline-offset: 2px;
}

.mainnav__list { display: none; list-style: none; margin: 0; padding: 0 0 10px; }
.mainnav__check:checked ~ .mainnav__list { display: block; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a,
.mainnav__list > li > .mainnav__top {
  display: block; padding: 9px 0;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.mainnav__list > li > a:hover,
.mainnav__list > li > .mainnav__top:hover { color: var(--green); }
.mainnav a[aria-current="page"] { color: var(--green); }

.mainnav__top {
  background: none; border: 0; font-family: var(--sans);
  cursor: pointer; width: 100%; text-align: left;
}

/* Подменю: на узком экране — вложенный список внутри раскрытого меню */
.mainnav__sub {
  list-style: none; margin: 0 0 8px; padding: 0 0 0 14px;
  border-left: 2px solid var(--sage);
}
.mainnav__sub > li > a {
  display: block; padding: 6px 0; font-size: 14px;
  text-decoration: none; color: var(--ink-soft);
}
.mainnav__sub > li > a:hover { color: var(--green-dp); }

/* ---------- Герой ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blush) 0%, #f4e3e5 55%, #f6efe4 100%);
  border-bottom: 1px solid var(--line);
}
.hero__in { padding: 34px 16px 38px; position: relative; z-index: 2; }
.hero__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blush-dp); margin: 0 0 10px;
}
.hero h1 { font-size: 30px; margin-bottom: .35em; max-width: 16ch; }
.hero__lead { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 20px; }
.hero__leaf {
  position: absolute; right: -60px; bottom: -40px; width: 300px; opacity: .5; z-index: 1;
  pointer-events: none;
}

.btn {
  display: inline-block; padding: 11px 22px;
  background: var(--green); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius); transition: background .18s ease;
}
.btn:hover { background: var(--green-dp); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--green-dp);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.btn--ghost:hover { background: rgba(77, 122, 68, .08); color: var(--green-dp); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Полоса преимуществ ---------- */
.usp { background: var(--paper); border-bottom: 1px solid var(--line); }
.usp__grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: 22px 0;
}
.usp__i { display: flex; gap: 12px; align-items: flex-start; }
.usp__ico { flex: none; width: 34px; height: 34px; color: var(--green); }
.usp__i h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.usp__i p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Секции ---------- */
.section { padding: 34px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 20px; }
.section__title {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
}
.section__title::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d7a44' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 21C4 12 9 6 20 4c1 10-4 16-13 17z'/%3E%3Cpath d='M4 21c3-6 7-9 12-11'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section__note { color: var(--ink-soft); max-width: 62ch; margin: 0; }

/* ---------- Мозаика разделов ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--sand);
  text-decoration: none; box-shadow: var(--shadow);
  min-height: 168px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile__label {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(255, 255, 255, .93);
  padding: 7px 13px; border-radius: 3px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.tile__hint {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  background: rgba(34, 54, 42, .72); color: #fff;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px;
}
.tile:hover img { transform: scale(1.03); }
.tile img { transition: transform .35s ease; }

/* ---------- Карточки материалов ---------- */
.cards {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card__media { display: block; background: var(--sand); aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__date {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 7px;
}
.card__title { font-size: 18px; margin: 0 0 8px; }
.card__title a { text-decoration: none; color: var(--ink); }
.card__title a:hover { color: var(--green); }
.card__desc { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; }
.card__more {
  margin-top: auto; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dp); text-decoration: none;
}
.card__more:hover { text-decoration: underline; }

.cards--home .card__media { aspect-ratio: 16 / 9; }

.empty-note {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--ink-mute); background: var(--paper);
  font-size: 14.5px;
}

/* ---------- Пагинация ---------- */
.pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  justify-content: center; margin: 26px 0 0;
}
.pager__i, .pager__nav {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 500;
}
.pager__i:hover, .pager__nav:hover { border-color: var(--sage); color: var(--green-dp); }
.pager__i--cur { background: var(--green); border-color: var(--green); color: #fff; }
.pager__nav { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Текстовые блоки ---------- */
.prose { max-width: 74ch; }
.prose--wide { max-width: 82ch; }
.prose p, .prose li { font-size: 16.5px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.1em; }
.prose ul { list-style: none; padding-left: 22px; }
.prose ul > li { position: relative; margin-bottom: .45em; }
.prose ul > li::before {
  content: ""; position: absolute; left: -20px; top: .55em;
  width: 11px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234d7a44'%3E%3Cpath d='M4 21C4 12 9 6 20 4c1 10-4 16-13 17z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.prose ol > li { margin-bottom: .45em; }
.prose a { font-weight: 500; }

.lead {
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  color: var(--green-dp);
}

.callout {
  background: var(--paper); border-left: 3px solid var(--sage);
  padding: 16px 18px; margin: 0 0 1.3em; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.callout h3 { margin-top: 0; font-size: 17px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.factbox {
  background: var(--sand); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 1.3em;
}
.factbox p:last-child, .factbox ul:last-child, .factbox dl:last-child { margin-bottom: 0; }

.deflist { margin: 0 0 1.3em; }
.deflist dt { font-weight: 700; color: var(--ink); margin-top: 1em; }
.deflist dd { margin: .2em 0 0; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; margin: 0 0 1.3em; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--paper);
  font-size: 15px; min-width: 460px;
}
table.data th, table.data td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top;
}
table.data th { background: var(--sand); font-weight: 700; }

/* ---------- Блок под платные ссылки ---------- */
.promo {
  background: var(--paper); border-left: 3px solid var(--blush-dp);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin: 0 0 22px;
  font-size: 15.5px; color: var(--ink-soft);
}
.promo p:last-child { margin-bottom: 0; }
/* Пока между маркерами пусто, внутри только комментарии — :empty срабатывает
   и блок не занимает места на странице. */
.promo:empty { display: none; }

.u-mt { margin-top: 22px; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 13px; color: var(--ink-mute); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "→"; margin-right: 6px; color: var(--sage); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Соседние страницы ---------- */
.readnext { margin-top: 34px; }
.readnext__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.readnext__list a {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px; text-decoration: none;
}
.readnext__list a:hover { border-color: var(--sage); }
.readnext__list b { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.readnext__list span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Статья ---------- */
.article__head { padding: 22px 0 6px; }
.article__meta {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px;
}
.article__cover { margin: 0 0 22px; }
.article__cover img { width: 100%; border-radius: var(--radius); }
.article__cover figcaption { font-size: 13px; color: var(--ink-mute); padding-top: 7px; }

/* ---------- Подвал ---------- */
.footer {
  background: var(--paper); border-top: 1px solid var(--line);
  margin-top: 40px; padding: 30px 0 34px; font-size: 14px;
}
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer h2 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--green-dp); text-decoration: underline; }
.footer p { color: var(--ink-soft); font-size: 13px; }
.footer__bottom {
  border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px;
  font-size: 12.5px; color: var(--ink-mute);
}

/* ---------- Адаптив ---------- */
@media (min-width: 600px) {
  .usp__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 36px; }
  .hero h1 { font-size: 38px; }
  .hero__in { padding: 46px 16px 50px; }
}

@media (min-width: 900px) {
  body { font-size: 16.5px; }
  .header__note { display: block; }
  .usp__grid { grid-template-columns: repeat(4, 1fr); padding: 26px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .section { padding: 44px 0; }
  h1 { font-size: 40px; }
  .hero h1 { font-size: 44px; }
  .hero__in { padding: 60px 16px 64px; }
  .hero__lead { font-size: 18px; }
  .readnext__list { grid-template-columns: repeat(3, 1fr); }

  /* мозаика: крупная плитка + две мелкие, вторая строка зеркальная */
  .tiles { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .tile { min-height: 0; }
  .tiles > .tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }

  /* меню: раскрытая горизонтальная строка, переключатель не нужен */
  .mainnav__check, .mainnav__burger { display: none; }
  .mainnav .mainnav__list {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0 26px; padding: 0;
  }
  .mainnav__list > li > a,
  .mainnav__list > li > .mainnav__top { padding: 13px 0; }
  .mainnav__list > li > .mainnav__top { width: auto; display: flex; align-items: center; gap: 7px; }
  .mainnav__list > li > .mainnav__top::after {
    content: ""; width: 6px; height: 6px;
    border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
    transform: translateY(-2px) rotate(45deg);
  }

  /* Выпадающее подменю. В покое закрыто; селекторы с > , чтобы правило
     на .mainnav__sub не перебивалось по специфичности. */
  .mainnav__list > li > .mainnav__sub {
    display: none;
    position: absolute; top: 100%; left: -14px; z-index: 30;
    min-width: 268px; margin: 0; padding: 8px 0;
    background: var(--paper); border: 1px solid var(--line);
    border-top: 2px solid var(--green);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }
  .mainnav__list > li:hover > .mainnav__sub,
  .mainnav__list > li:focus-within > .mainnav__sub { display: block; }
  .mainnav__list > li > .mainnav__sub > li > a { padding: 8px 18px; }
  .mainnav__list > li > .mainnav__sub > li > a:hover { background: var(--sand); }
}

@media (min-width: 1100px) {
  .hero__leaf { right: -20px; bottom: -30px; width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tile:hover img { transform: none; }
}

@media print {
  .topbar, .mainnav, .hero__leaf, .footer, .promo { display: none; }
  body { background: #fff; }
}
