/* Цветовая палитра:
   Фон: Cream Shea #FAF3E8
   Текст: Cocoa Shell #4C2F26
   Второстепенный фон: Warm Sand #E2C9A5
   Акцент 1 (кнопки): Olive Leaf #7A8F3A
   Акцент 2: Soft Terracotta #D97A5A
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #FAF3E8;
  color: #4C2F26;
}

a {
  color: inherit;
}

/* Контейнер */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Шапка */

.header {
  background: #4C2F26;
  color: #FAF3E8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.nav a {
  color: #FAF3E8;
  margin-left: 16px;
  text-decoration: none;
  font-size: 14px;
}

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

.cart-btn {
  border: none;
  background: #FAF3E8;
  color: #4C2F26;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}

.cart-btn span {
  font-weight: 700;
}

/* HERO */

.hero {
  padding: 40px 0 48px;
  background: radial-gradient(circle at top left, #FFE0C7 0, #FAF3E8 50%, #E2C9A5 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 15px;
  margin-bottom: 14px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-bullet {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 143, 58, 0.12);
  border: 1px solid rgba(124, 143, 58, 0.35);
}

.hero-image {
  display: flex;
  justify-content: center;
}
.hero-logo {
  max-width: 260px;      /* размер лого */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); /* красивая легкая тень */
}

/* Кнопки */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #7A8F3A;
  color: #FFFFFF;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* Общие секции */

.section {
  padding: 32px 0;
}

.section-alt {
  padding: 32px 0;
  background: #F2E3CF;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.section .lead {
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 640px;
}

/* Сетки */

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Чек-листы */

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 14px;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: #7A8F3A;
}

/* Карточки */

.card-soft {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  font-size: 14px;
}

.card-soft h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

/* Как использовать */

.how-steps ol {
  margin-left: 18px;
  font-size: 14px;
}

.how-steps li {
  margin-bottom: 6px;
}

/* Каталог */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.product-card {
  background: #FFF6EB;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.product-image {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(145deg, #FFF6EB, #E2C9A5);
  margin-bottom: 10px;
  overflow: hidden;           /* чтобы изображение не вылезало за рамку */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* красиво заполняет блок, не искажая пропорции сильно */
  display: block;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 12px;
  color: #777777;
  margin-bottom: 8px;
}

.product-price {
  font-weight: 700;
  margin-bottom: 6px;
}

.product-volume {
  font-size: 12px;
  margin-bottom: 10px;
}

.product-card .btn {
  margin-top: auto;
}

/* Отзывы */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  background: #FAF3E8;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  font-size: 14px;
}

.review-text {
  margin-bottom: 8px;
}

.review-author {
  font-size: 12px;
  opacity: .8;
}

/* Контакты */

.contacts-note {
  font-size: 12px;
  opacity: .7;
  margin-top: 6px;
}

.section#contacts a {
  color: #7A8F3A;
  text-decoration: none;
}

.section#contacts a:hover {
  text-decoration: underline;
}

/* Подвал */

.footer {
  padding: 16px 0;
  background: #4C2F26;
  color: #FAF3E8;
  font-size: 13px;
  text-align: center;
}

/* Панель корзины */

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  justify-content: flex-end;
  z-index: 20;
}

.cart-panel.open {
  display: flex;
}

.cart-panel-inner {
  background: #FAF3E8;
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.close-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-item span {
  margin-right: 8px;
}

.cart-footer {
  border-top: 1px solid #E2C9A5;
  padding-top: 12px;
}

/* Checkout */

.checkout {
  padding: 32px 0;
}

.checkout h1 {
  font-size: 24px;
  margin-bottom: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.order-summary,
.order-form {
  background: #FFF6EB;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.order-summary h2,
.order-form h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.order-table th,
.order-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #E2C9A5;
}

.order-table th {
  text-align: left;
}

.order-table tfoot td {
  border-top: 1px solid #E2C9A5;
  border-bottom: none;
  padding-top: 8px;
}

/* Форма */

.order-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 4px;
}

.order-form input,
.order-form textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #D2D2D7;
  font-size: 14px;
  outline: none;
  background: #FAF3E8;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: #7A8F3A;
}

/* Выбор канала */

.channel-fieldset {
  border: none;
  padding: 0;
  margin-top: 10px;
}

.channel-fieldset legend {
  font-size: 14px;
  margin-bottom: 6px;
}

.channel-option {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 4px;
}

.channel-hint {
  font-size: 12px;
  opacity: .8;
  margin-top: 4px;
}

/* Сообщения формы */

.form-message {
  margin-top: 10px;
  font-size: 14px;
}

.form-message_success {
  color: #0a7b34;
}

.form-message_error {
  color: #c41c1c;
}

.empty-message {
  font-size: 14px;
  margin-top: 16px;
}

.empty-message a {
  color: #7A8F3A;
  text-decoration: none;
}

.empty-message a:hover {
  text-decoration: underline;
}

/* Адаптив */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
  .grid-three {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 8px;
  }
  .nav {
    display: none;
  }
}
