/* style.css — YANDI Official */
:root {
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --green: #316534;
  --green-hover: #224a25;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.6;
  padding: 0;
}

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

/* ===== Шапка ===== */
header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover {
  background: #eef2ff;
  color: var(--accent);
}

/* ===== Футер ===== */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Секции ===== */
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type {
  border-bottom: none;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
h1 span {
  color: var(--accent);
}
.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 0.25rem;
}
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
strong {
  color: var(--text-primary);
}

/* ===== Кнопка ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(49,101,52,0.25);
}
.btn:hover {
  background: var(--green-hover);
  transform: scale(1.01);
}

/* ===== Карточка ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin: 20px 0;
  border: 1px solid var(--border);
}

/* ===== Адаптив ===== */
@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  .container { padding: 0 16px; }
  section { padding: 28px 0; }
  .logo img { height: 32px; }
  .btn { padding: 0.5rem 1.4rem; font-size: 0.95rem; }
}