/* Колючий сад — локальная дизайн-система в духе Material 3 */
:root {
  color-scheme: light;
  --bg: #f7f8f1;
  --surface: #fffefa;
  --surface-low: #eef2e7;
  --surface-high: #e5ebde;
  --ink: #1c2c22;
  --muted: #5e6d61;
  --green: #315f45;
  --green-strong: #244b36;
  --green-soft: #dce9d7;
  --lime: #d4e49c;
  --sand: #f1dfbf;
  --terracotta: #b76d50;
  --line: #dce3d7;
  --shadow-1: 0 2px 10px rgba(37, 57, 42, .06), 0 1px 3px rgba(37, 57, 42, .05);
  --shadow-2: 0 14px 40px rgba(37, 57, 42, .10), 0 3px 10px rgba(37, 57, 42, .05);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 42px;
  --content: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9cba65; outline-offset: 4px; }
::selection { color: var(--green-strong); background: var(--lime); }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green-strong);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(49, 95, 69, .09);
  background: rgba(247, 248, 241, .92);
}
.nav-wrap {
  width: min(var(--content), calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--green-strong);
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.035em;
}
.brand img { width: 40px; height: 40px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { color: var(--green-strong); background: var(--surface-high); }
.nav-links a[aria-current="page"] { color: var(--green-strong); background: var(--green-soft); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 750;
  box-shadow: var(--shadow-1);
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--green-strong); transform: translateY(-1px); }

main { overflow: hidden; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 3px; background: #8eaa68; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.045em; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.7rem, 5.6vw, 5.2rem); font-weight: 820; }
h2 { margin-bottom: 15px; font-size: clamp(2rem, 3.8vw, 3.15rem); font-weight: 790; }
h3 { margin-bottom: 10px; font-size: 1.28rem; font-weight: 760; }
.lead { max-width: 590px; color: var(--muted); font-size: clamp(1.07rem, 1.55vw, 1.22rem); line-height: 1.7; }
.section { padding: 92px 0; }
.soft-section { background: var(--surface-low); }
.button-row-center { justify-content: center; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head > div { max-width: 650px; }
.section-head p { max-width: 410px; margin-bottom: 4px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); text-decoration: none; font-weight: 780; }
.text-link::after { content: "↗"; font-size: 1.1em; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px, -2px); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 780;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-strong); }
.button-secondary { border-color: #cbd8c6; background: rgba(255, 255, 255, .5); color: var(--green-strong); }
.button-secondary:hover { background: var(--green-soft); }

.hero { padding: 54px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 36px; }
.hero-copy { padding: 26px 0 35px; }
.hero-copy h1 span { color: var(--green); }
.hero-copy .lead { max-width: 535px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.note-dot { width: 9px; height: 9px; border-radius: 50%; background: #92ad69; box-shadow: 0 0 0 5px #e7edda; }
.hero-art {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #e9efdf 0%, #f3ead7 100%);
  overflow: hidden;
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 1px solid rgba(66, 102, 75, .13); border-radius: 50%; }
.hero-art::before { width: 440px; height: 440px; }
.hero-art::after { width: 520px; height: 520px; }
.hero-art img { position: relative; z-index: 1; width: min(100%, 620px); margin-top: 13px; filter: drop-shadow(0 16px 15px rgba(63, 73, 48, .08)); }
.art-sticker {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  background: rgba(255, 254, 250, .82);
  box-shadow: var(--shadow-1);
  color: var(--green-strong);
  font-size: .84rem;
  font-weight: 760;
  backdrop-filter: blur(10px);
}
.sticker-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 11px; background: var(--lime); font-size: 1.1rem; }

.value-strip { padding: 0 0 36px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.52); }
.value-item { display: flex; align-items: center; gap: 16px; padding: 23px 28px; }
.value-item + .value-item { border-left: 1px solid var(--line); }
.value-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 15px; background: var(--green-soft); color: var(--green); font-size: 1.25rem; }
.value-item strong { display: block; margin-bottom: 2px; font-size: .96rem; }
.value-item span:last-child { color: var(--muted); font-size: .84rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plant-card {
  overflow: hidden;
  border: 1px solid rgba(49,95,69,.09);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.plant-visual { display: grid; min-height: 220px; place-items: center; padding: 15px; background: #e9eee2; }
.plant-card:nth-child(2) .plant-visual { background: #f1e6d9; }
.plant-card:nth-child(3) .plant-visual { background: #e7ece6; }
.plant-visual img { width: 230px; height: 205px; object-fit: contain; }
.plant-body { padding: 22px 23px 24px; }
.plant-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--surface-low); color: var(--green); font-size: .72rem; font-weight: 800; }
.plant-meta small { color: #778277; font-size: .76rem; }
.plant-body p { min-height: 54px; margin-bottom: 16px; color: var(--muted); font-size: .91rem; }

.story-band { position: relative; padding: 64px 0; overflow: hidden; background: var(--green-strong); color: #edf3e7; }
.story-band::after { content: ""; position: absolute; top: -190px; right: -100px; width: 520px; height: 520px; border: 1px solid rgba(238,244,229,.14); border-radius: 50%; box-shadow: 0 0 0 45px rgba(238,244,229,.035), 0 0 0 90px rgba(238,244,229,.025); }
.story-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.story-inner h2 { max-width: 640px; margin-bottom: 12px; color: #fff; }
.story-inner p { max-width: 600px; margin-bottom: 0; color: #d4e1d2; }
.story-inner .button { flex: 0 0 auto; background: var(--lime); color: var(--green-strong); }

.page-hero { padding: 68px 0 45px; }
.page-hero .lead { max-width: 700px; }
.page-hero h1 { max-width: 850px; font-size: clamp(2.55rem, 4.7vw, 4.35rem); }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #738073; font-size: .83rem; }
.breadcrumb a { color: var(--green); text-decoration: none; font-weight: 700; }
.breadcrumb span { opacity: .65; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 88px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.catalog-card .plant-visual { min-height: 245px; }
.catalog-card .plant-visual img { width: 250px; height: 225px; }
.catalog-card .plant-body { padding: 23px 24px 25px; }
.catalog-card .plant-body p { min-height: 76px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 11px; background: var(--surface-low); color: #4c6551; font-size: .76rem; font-weight: 700; }

.care-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; padding: 20px 0 78px; }
.care-aside { padding: 30px; border-radius: var(--radius-lg); background: var(--green-strong); color: #eff4e8; }
.care-aside h2 { color: #fff; font-size: 1.65rem; }
.care-aside p { color: #d3e0cf; font-size: .95rem; }
.care-aside .aside-tip { display: flex; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: #f2e6c9; font-size: .88rem; }
.care-list { display: grid; gap: 14px; }
.care-step { display: grid; grid-template-columns: 54px 1fr; gap: 17px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.step-num { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 17px; background: var(--green-soft); color: var(--green); font-weight: 850; }
.care-step p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 92px; }
.season-card { padding: 22px 20px; border-radius: var(--radius-md); background: var(--surface-low); }
.season-card .season-icon { display: block; margin-bottom: 12px; font-size: 1.5rem; }
.season-card h3 { font-size: 1.03rem; }
.season-card p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }

.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; padding: 10px 0 82px; }
.about-copy p { max-width: 650px; color: var(--muted); font-size: 1.02rem; }
.about-illustration { position: relative; display: grid; min-height: 390px; place-items: center; overflow: hidden; border-radius: var(--radius-xl); background: var(--sand); }
.about-illustration::before { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(119,85,52,.22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.13), 0 0 0 56px rgba(255,255,255,.1); }
.about-illustration img { position: relative; width: 90%; max-width: 420px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 90px; }
.principle { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.principle .value-icon { margin-bottom: 18px; }
.principle p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }

.not-found { display: grid; min-height: 68vh; place-items: center; padding: 76px 0; text-align: center; }
.not-found-inner { max-width: 680px; }
.error-code { display: block; margin-bottom: 10px; color: #8eaa68; font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.09em; }
.not-found h1 { margin-inline: auto; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.not-found p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.not-found img { width: 170px; margin: 26px auto 0; }

.site-footer { padding: 42px 0 26px; background: #edf1e7; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 30px; }
.footer-brand { max-width: 350px; }
.footer-brand .brand { margin-bottom: 13px; }
.footer-brand p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 24px; }
.footer-nav a { color: #526454; text-decoration: none; font-size: .9rem; font-weight: 700; }
.footer-nav a:hover { color: var(--green-strong); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid #d9e1d5; color: #738073; font-size: .78rem; }

@media (max-width: 900px) {
  .nav-wrap { width: min(var(--content), calc(100% - 36px)); min-height: 74px; gap: 15px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 11px; font-size: .86rem; }
  .nav-cta { display: none; }
  .container { width: min(var(--content), calc(100% - 36px)); }
  .hero-grid { grid-template-columns: 1fr .9fr; gap: 18px; }
  .hero-art { min-height: 390px; }
  .card-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .care-intro { gap: 28px; }
  .about-layout { gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav-wrap { width: calc(100% - 28px); min-height: auto; padding: 13px 0 10px; flex-direction: column; align-items: stretch; gap: 10px; }
  .brand { align-self: center; }
  .brand img { width: 35px; height: 35px; }
  .nav-links { justify-content: center; flex-wrap: wrap; }
  .nav-links a { min-height: 37px; padding: 0 12px; font-size: .82rem; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 35px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 10px 0 0; }
  h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-art { min-height: 330px; border-radius: 28px; }
  .hero-art::before { width: 280px; height: 280px; }
  .hero-art::after { width: 340px; height: 340px; }
  .art-sticker { right: 12px; bottom: 12px; padding: 9px 12px; font-size: .76rem; }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { padding: 16px 19px; }
  .value-item + .value-item { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding: 65px 0; }
  .section-head { display: block; margin-bottom: 25px; }
  .section-head p { margin-top: 10px; }
  .card-grid, .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .plant-visual { min-height: 210px; }
  .plant-body p, .catalog-card .plant-body p { min-height: 0; }
  .story-inner { align-items: start; flex-direction: column; }
  .story-band { padding: 53px 0; }
  .page-hero { padding: 43px 0 28px; }
  .care-intro, .about-layout { grid-template-columns: 1fr; padding-bottom: 62px; }
  .care-aside { order: 2; }
  .care-step { grid-template-columns: 45px 1fr; gap: 12px; padding: 17px; }
  .step-num { width: 42px; height: 42px; border-radius: 14px; }
  .season-grid, .principles { grid-template-columns: 1fr 1fr; gap: 11px; }
  .season-card, .principle { padding: 18px 16px; }
  .about-illustration { min-height: 300px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-top { gap: 25px; }
}
@media (max-width: 390px) {
  .nav-links a { padding-inline: 9px; }
  .season-grid, .principles { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
