:root {
  --bg: #f0fdf4;              /* Светло-зеленый фон */
  --card: #ffffff;
  --border: #bbf7d0;
  --text: #166534;
  --muted: #15803d;
  --link: #22c55e;
  --accent: #4ade80;          /* Зеленый акцент */
  --shadow: 0 8px 24px rgba(0,0,0,0.07);
  --btn-bg: #16a34a;          /* Зеленая кнопка */
  --btn-hover: #15803d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--text);
}

p, li {
  color: var(--text);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 8px;
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.nav a {
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.main-flex {
  display: flex;
  gap: 24px;
  flex-direction: column;
}

@media (min-width: 768px) {
  .main-flex { flex-direction: row; }
}

main {
  flex: 1;
}

.products-section {
  flex: 2;
}

.products-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

.product-icon {
  font-size: 2em;
  margin-bottom: 8px;
}

.benefits-flex {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.benefit-block {
  background: #dcfce7;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-weight: bold;
}

.benefit-emoji {
  font-size: 1.5em;
  margin-right: 8px;
}

.form-aside {
  flex: 1;
  position: sticky;
  top: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.muted { color: var(--muted); font-size: 0.95em; }

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 1em;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1em;
  background: #fff;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

form textarea.form-input { resize: vertical; }

.form-button {
  background: var(--btn-bg);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}

.form-button:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

.payment-note {
  margin-top: 16px;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  color: var(--text);
  background: #dcfce7;
  padding: 8px;
  border-radius: 8px;
}

details {
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 24px 12px;
  font-size: 0.9em;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}