/* style.css */
:root {
  --primary: #1e3a8a; /* Темно-синий */
  --accent: #fbbf24;  /* Янтарный (немецкая тематика) */
  --bg: #f5f5f7;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Узкий контейнер для мобильного вида */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px;
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Шапка */
header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

header p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  color: var(--primary);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

/* Карточки товаров */
.products {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background-color: #e5e7eb;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.card .description {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.card .features {
  list-style: none;
  font-size: 13px;
  color: var(--text-light);
}

.card .features li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.card .features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  margin-top: 4px;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #172554;
}

/* Подвал */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

footer .legal-info {
  margin-bottom: 16px;
  line-height: 1.6;
}

footer .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer .links a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
  padding-bottom: 2px;
  align-self: center;
}

footer .links a:hover {
  color: #172554;
  border-bottom-style: solid;
}

/* Стили для текстовых страниц */
.page-content {
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  line-height: 1.6;
}

.page-content h2 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}

.page-content p, .page-content ul {
  margin-bottom: 12px;
}

.page-content ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}