:root {
  --ink: #121212;
  --paper: #ffffff;
  --mist: #f1f0f0;
  --grey: #888888;
  --soft: #5c5c5c;      /* вторичный текст на светлом */
  --soft-dark: #a9a9a9; /* вторичный текст на тёмном */
  --line: #e2e1e1;
  --coal: #1e1e1e;
  --r-l: 32px;
  --r-m: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 500 17px/1.55 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top a.plain { font-size: 14px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
.top a.plain:hover { background: var(--ink); color: #fff; }

/* кнопка-таблетка со стрелкой */
.open {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 8px 8px 8px 24px; border-radius: 999px;
}
.open::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11 11 3M5 3h6v6' fill='none' stroke='%23121212' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.open:hover::after { transform: rotate(45deg); }
.open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.dark .open, .remind .open { background: #fff; color: var(--ink); }
.dark .open::after, .remind .open::after {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11 11 3M5 3h6v6' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dark .open:focus-visible, .remind .open:focus-visible { outline-color: #fff; }

/* первый экран */
.hero { position: relative; padding: 24px 0 0; overflow: hidden; }
.ghost {
  position: absolute; inset: -4vw 0 auto 0; text-align: center; z-index: 0;
  font-size: min(31vw, 380px); font-weight: 700; line-height: 1; letter-spacing: -0.07em;
  color: #fff; user-select: none; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; padding-top: clamp(40px, 9vw, 120px); }
.hero h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.045em; line-height: 1; }
.hero .lead { font-size: 18px; color: var(--soft); margin: 24px 0 32px; max-width: 30em; }
.hero .terms { margin-top: 18px; font-size: 14px; color: var(--soft); }

/* пример напоминания */
.phone { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 18px; max-width: 400px; margin-left: auto; width: 100%; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; }
.chat-head b { display: block; font-size: 16px; line-height: 1.2; }
.chat-head span { font-size: 13px; color: var(--soft-dark); }
.msg { background: var(--coal); border-radius: 20px 20px 20px 6px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.msg ul { list-style: none; margin: 8px 0 0; padding: 0; }
.msg li { padding: 2px 0; }
.msg li i { font-style: normal; color: var(--soft-dark); }
.keys { display: grid; gap: 6px; margin-top: 8px; }
.keys input { position: absolute; opacity: 0; pointer-events: none; }
.keys label { display: block; text-align: center; background: #2a2a2a; border-radius: 14px; padding: 12px 10px; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; }
.keys label:hover { background: #343434; }
.keys label .done { display: none; }
.keys input:checked + label { background: #fff; color: var(--ink); }
.keys input:checked + label .todo { display: none; }
.keys input:checked + label .done { display: inline; }
.keys input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.try { text-align: center; font-size: 13px; color: var(--soft-dark); padding: 14px 0 2px; }

/* цифры под первым экраном */
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.stats li { background: var(--paper); border-radius: var(--r-m); padding: 24px; }
.stats b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 28px; }
.stats span { font-size: 14px; color: var(--soft); }

/* разделы */
section.wrap { padding-top: 88px; }
section h2 { font-size: clamp(30px, 4vw, 48px); max-width: 16em; }
.card { border-radius: var(--r-l); padding: 56px; }
.card.white { background: var(--paper); }
.card.dark { background: var(--ink); color: #fff; }

/* три шага */
.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--coal); border-radius: var(--r-m); padding: 24px 24px 28px; }
.steps li::before { content: "0" counter(step); display: block; font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 56px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.steps p { color: var(--soft-dark); font-size: 16px; }

/* что умеет */
.can { margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.can div { background: var(--paper); border-radius: var(--r-m); padding: 28px; }
.can dt { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.can dd { margin: 0; color: var(--soft); font-size: 16px; }

/* таблица частоты полива */
.intro { margin-top: 18px; color: var(--soft); max-width: 40em; }
.freq { width: 100%; border-collapse: collapse; margin-top: 28px; text-align: left; }
.freq th, .freq td { padding: 15px 16px 15px 0; border-top: 1px solid var(--line); vertical-align: top; }
.freq thead th { border-top: 0; font-size: 14px; color: var(--soft); font-weight: 600; }
.freq tbody th { font-weight: 700; }
.freq td:nth-child(2) { white-space: nowrap; font-weight: 700; }
.freq td:nth-child(3) { color: var(--soft); }
.freq tbody th a { text-decoration-color: #c9c8c8; text-underline-offset: 4px; }
.freq tbody th a:hover { text-decoration-color: var(--ink); }
.all { display: inline-block; margin-top: 26px; font-weight: 700; text-underline-offset: 4px; }

/* справочник */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.guide p { margin-top: 18px; color: var(--soft); max-width: 32em; }
.guide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide li { background: var(--paper); border-radius: var(--r-m); padding: 22px 24px; }
.guide li b { display: block; margin-bottom: 4px; letter-spacing: -0.01em; }
.guide li span { color: var(--soft); font-size: 15px; }

/* цена */
.free { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.free h2 { font-size: clamp(36px, 5vw, 64px); }
.free p { color: var(--soft-dark); margin-top: 16px; max-width: 34em; }

/* вопросы */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 32px; }
.faq details { background: var(--paper); border-radius: var(--r-m); margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; padding: 22px 64px 22px 26px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 26px 24px; color: var(--soft); max-width: 40em; }
.faq details p a { text-underline-offset: 3px; }

footer { padding: 72px 0 48px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .wrap span { flex-basis: 100%; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
footer a { text-underline-offset: 3px; }

/* страницы растений и статьи */
.wrap.plant { max-width: 860px; background: var(--paper); border-radius: var(--r-l); padding: 44px 56px 56px; margin: 12px auto 0; }
.crumbs { font-size: 14px; color: var(--soft); margin-bottom: 28px; }
.crumbs a { text-underline-offset: 3px; }
.plant h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.04em; }
.plant h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; margin: 48px 0 12px; }
.plant p { max-width: 40em; }
.plant p + p { margin-top: 14px; }
.plant .answer { font-size: 20px; line-height: 1.45; margin-top: 24px; }
.plant .freq { margin-top: 18px; }
.plant .freq + p { margin-top: 18px; color: var(--soft); }
.plant ul.txt { margin: 12px 0 0; padding-left: 22px; max-width: 40em; }
.plant ul.txt li { padding: 5px 0; }
.plant p a, .plant ul.txt a, .plant .freq td a { text-underline-offset: 3px; }
.remind { background: var(--ink); color: #fff; border-radius: var(--r-m); padding: 32px; margin-top: 52px; }
.plant .remind h2 { margin-top: 0; }
.remind p { color: var(--soft-dark); }
.remind .open { margin-top: 24px; }
.more { list-style: none; margin: 0; padding: 0; }
.more li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.more a { font-weight: 600; text-underline-offset: 4px; text-decoration-color: #c9c8c8; }
.more span { color: var(--soft); white-space: nowrap; }

@media (max-width: 900px) {
  .links { display: none; }
  .can { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 12px; }
  .top { padding: 14px 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 22vw; }
  .ghost { font-size: 34vw; inset: 0 0 auto 0; }
  .hero h1, .hero .lead, .hero .terms { padding: 0 4px; }
  .phone { margin: 0 auto; max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .stats li { padding: 18px; }
  .stats li:last-child { grid-column: 1 / -1; }
  .stats b { font-size: 36px; margin-bottom: 16px; }
  section.wrap { padding-top: 56px; }
  section > h2, .faq h2, .guide > div { padding: 0 4px; }
  .card { padding: 32px 20px; border-radius: var(--r-m); }
  .steps, .can, .guide, .free { grid-template-columns: 1fr; }
  .steps { gap: 10px; margin-top: 28px; }
  .steps li::before { margin-bottom: 28px; }
  .can { gap: 10px; margin-top: 28px; }
  .guide { gap: 28px; }
  .free { gap: 28px; }
  .faq summary { font-size: 17px; padding: 18px 60px 18px 20px; }
  .faq summary::after { top: 12px; right: 12px; }
  .faq details p { padding: 0 20px 20px; }
  .freq thead { display: none; }
  .freq tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-top: 1px solid var(--line); padding: 13px 0; }
  .freq th, .freq td { border: 0; padding: 0; }
  .freq td:nth-child(3) { grid-column: 1 / -1; font-size: 15px; margin-top: 3px; }
  .wrap.plant { margin: 4px 12px 0; padding: 28px 20px 36px; border-radius: var(--r-m); }
  .plant .answer { font-size: 18px; }
  .plant h2 { font-size: 23px; margin-top: 40px; }
  .remind { padding: 24px 20px; }
  footer { padding-top: 48px; }
  footer .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .open::after { transition: none; } }
