/* ============================================================
   «Свои Грядки» — сайт проекта.
   Палитра повторяет тёплую «дачную» тему приложения
   (design_preview.html): крем, зелень, терракота; шрифт Golos Text.
   ============================================================ */

:root {
  --page-bg: #EDF0EA;
  --cream: #FAF8F1;
  --surface: #FFFFFF;
  --ink: #1B211B;
  --muted: #5B635B;
  --primary: #2E6B44;
  --primary-deep: #235232;
  --leaf: #43A047;
  --terra: #B3542E;
  --sage: #A9C3A0;
  --sage-deep: #7FA37B;
  --light-green: #E4EAD6;
  --pill: #D8E8D5;
  --border: #D9E0D5;
  --dark-bg: #1D2A1B;
  --dark-bg-2: #16210F;
  --dark-ink: #E7EAE3;
  --dark-muted: #A9B3A3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(27, 33, 27, .10);
  --shadow-lift: 0 16px 40px rgba(27, 33, 27, .16);
  --font: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

section { scroll-margin-top: 72px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 800px; }

/* ==================== Шапка ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 241, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-logo { border-radius: 9px; flex: none; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
}
.site-nav a:hover {
  color: var(--ink);
  background: rgba(43, 70, 43, .07);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==================== Герой ==================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--page-bg) 100%);
}

/* Тонкая сетка «плана» на фоне героя */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(46, 107, 68, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 107, 68, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero .lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
}
.hero-facts li {
  position: relative;
  padding-left: 22px;
}
.hero-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(46, 107, 68, .28);
}
.btn-primary:hover { background: var(--primary-deep); }

.btn-outline {
  background: transparent;
  border-color: rgba(27, 33, 27, .22);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-light {
  background: #fff;
  color: var(--dark-bg);
}
.btn-light:hover { background: var(--light-green); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ==================== Макет экрана (герой) ==================== */

.hero-visual { position: relative; }

.mock {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(27, 33, 27, .06);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mock-title {
  font-size: 13.5px;
  font-weight: 700;
}
.mock-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
/* чип сезона — бейдж в углу поля плана */
.mock-chip.canvas-chip {
  position: absolute;
  right: 2%;
  top: 5%;
  z-index: 2;
}

.mock-canvas {
  position: relative;
  aspect-ratio: 10 / 6.8;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: #F5F2E8;
  background-image:
    linear-gradient(to right, rgba(94, 108, 78, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 108, 78, .12) 1px, transparent 1px);
  background-size: 9% 13%;
}

/* дом */
.m-house {
  position: absolute;
  left: 4%;
  top: 5%;
  width: 34%;
  height: 17%;
  background: #CFC9B8;
  border: 2px solid #A8A18C;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #5E594A;
}

/* дорожка */
.m-path {
  position: absolute;
  left: 40%;
  top: 5%;
  width: 7%;
  height: 66%;
  background: #E0D5BC;
  border-radius: 8px;
  transform: skewX(-8deg);
}

/* деревья */
.m-tree {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #7CB342, #55744C 75%);
  box-shadow: 0 0 0 3px rgba(85, 116, 76, .25);
}
.m-tree.t1 { right: 5%; top: 22%; }
.m-tree.t2 { right: 20%; top: 9%; width: 7%; }

/* зона солнца */
.m-sun {
  position: absolute;
  right: 3%;
  top: 36%;
  width: 34%;
  height: 26%;
  border-radius: 40%;
  background: rgba(255, 214, 79, .30);
  border: 1.5px dashed rgba(202, 164, 40, .55);
}

/* грядки */
.m-bed {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--sage);
  border: 2px solid var(--sage-deep);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35);
  font-size: 11.5px;
  font-weight: 700;
  color: #2F4A2B;
  text-align: center;
}
.m-bed.b1 { left: 4%;  top: 34%; width: 32%; height: 18%; }
.m-bed.b2 { left: 4%;  top: 54%; width: 32%; height: 18%; background: #C5DFB4; }
.m-bed.b3 {
  right: 6%; top: 64%;
  width: 17%; aspect-ratio: 1; height: auto;
  border-radius: 50%;
  background: #D9A6B0;
  border-color: #B8788A;
  color: #7A3D51;
}
.m-bed.b4 { right: 30%; top: 42%; width: 13%; height: 20%; }

/* плавающие карточки */
.mock-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 10px 14px;
  font-size: 13px;
}

.mock-card.weather {
  top: -20px;
  right: -14px;
  max-width: 230px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.4;
}
.w-ic { font-size: 18px; line-height: 1; }

.mock-card.tasks {
  left: -16px;
  bottom: -24px;
  min-width: 215px;
}
.tasks-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
}
.mock-card.tasks ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mock-card.tasks li {
  padding: 3px 0 3px 24px;
  position: relative;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.mock-card.tasks li em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.mock-card.tasks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 2px solid var(--sage-deep);
  background: transparent;
}
.mock-card.tasks li.done {
  color: var(--muted);
  text-decoration: line-through;
}
.mock-card.tasks li.done::before {
  background: var(--primary);
  border-color: var(--primary);
}
.mock-card.tasks li.warn::before { border-color: var(--terra); }

/* ==================== Секции ==================== */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.015em;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ==================== Возможности ==================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.f-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--light-green);
  color: var(--primary);
  margin-bottom: 14px;
}
.f-ic svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ==================== Бесплатно / PRO ==================== */

.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.pro-card {
  border-radius: 20px;
  padding: 32px 30px;
}

.pro-card.free {
  background: var(--page-bg);
  border: 1.5px solid var(--border);
}

.pro-card.paid {
  background: linear-gradient(150deg, #2F5D3A 0%, #1D3A24 100%);
  color: var(--dark-ink);
  box-shadow: 0 20px 50px rgba(29, 58, 36, .35);
}

.pro-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.pro-card.paid h3 { color: #fff; }

.pro-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.pro-card.paid .pro-sub { color: #B9CDBA; }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
}
.check-list li::before {
  background-color: var(--pill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232E6B44' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E");
}
.pro-card.paid .check-list li::before {
  background-color: rgba(255, 255, 255, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23AED581' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E");
}

.pro-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 13.5px;
  line-height: 1.55;
  color: #C4D4C4;
}
.pro-note strong { color: #fff; }

/* ==================== Скачать ==================== */

.section-dark {
  background: linear-gradient(140deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
  color: var(--dark-ink);
}
.section-dark h2 { color: #fff; }

.download-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.download-text p {
  color: var(--dark-muted);
  max-width: 520px;
}

.download-aside {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 24px;
}
.download-aside h3 {
  color: #fff;
  font-size: 17px;
}
.download-aside ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--dark-muted);
  font-size: 14.5px;
}
.download-aside li { padding: 3px 0; }
.aside-note {
  font-size: 13px;
  color: var(--dark-muted);
  margin: 0;
}

.build-details {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  overflow: hidden;
}
.build-details summary {
  cursor: pointer;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--dark-ink);
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.build-details summary::-webkit-details-marker { display: none; }
.build-details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--dark-muted);
  transition: transform .2s;
}
.build-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.build-body {
  padding: 4px 18px 16px;
  color: var(--dark-muted);
  font-size: 14px;
}
.build-body pre {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .30);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #D3E3CB;
}
.build-body code { font-family: ui-monospace, Consolas, monospace; }

/* ==================== FAQ ==================== */

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 4px;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 600;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-body {
  padding: 0 44px 22px 4px;
  color: var(--muted);
  font-size: 15px;
  max-width: 700px;
}
.faq-body code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  background: var(--pill);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--primary-deep);
}

/* ==================== Подвал ==================== */

.site-footer {
  background: var(--ink);
  color: var(--dark-muted);
  padding: 36px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.footer-nav a { color: var(--dark-muted); font-size: 14px; }
.footer-nav a:hover { color: #fff; }

.footer-note {
  margin: 0;
  font-size: 13px;
  width: 100%;
  text-align: right;
  color: #8B968A;
}

/* ==================== Адаптив ==================== */

@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .pro-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 16px; }

  .mock-card.weather { right: -10px; top: -20px; font-size: 12px; max-width: 200px; }
  .mock-card.tasks { left: -10px; bottom: -16px; }
  .footer-nav { margin-left: 0; }
  .footer-note { text-align: left; width: auto; margin-left: auto; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .mock-card.weather { display: none; }
}

/* Плавное появление героя */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-visual {
    animation: rise .6s ease-out both;
  }
  .hero-visual { animation-delay: .12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
