:root {
  --bg-page: #f5efe6;
  --bg-alt: #f0e6d7;
  --bg-card: #ffffff;
  --accent: #ca8f3d;
  --accent-soft: #e3b86a;
  --accent-muted: #b98035;
  --text-main: #2b2620;
  --text-soft: #6f6357;
  --border-soft: #ded0bf;
  --danger: #c65353;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-soft: 0 8px 20px rgba(61, 44, 21, 0.18);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #f9f3ea 0, #f1e7d8 45%, #ebddca 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 18px;
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  background: rgba(245, 239, 230, 0.96);
  border-bottom: 1px solid rgba(189, 167, 132, 0.3);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
}

.tagline {
  font-size: 11px;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--text-soft);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.22s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(189, 167, 132, 0.7);
  background: #fdf7ee;
  font-size: 13px;
}

.cart-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 12px;
}

/* Hero */

main {
  flex: 1;
}

.hero {
  padding: 32px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 14px;
}

.hero-text p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
}

.hero-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #f7eee1;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(189, 167, 132, 0.4);
}

.hero-note {
  background: #fffaf2;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(129, 104, 67, 0.15);
}

.hero-note h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.hero-note p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* Sections */

.section {
  padding: 34px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(243, 233, 217, 0.9), #f7efe3);
}

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

.section-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.section-header p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-soft);
}

/* Feature cards */

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Split block */

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.split-text h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.split-text p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: var(--text-soft);
}

.split-media img {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  background: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-color: rgba(141, 96, 30, 0.8);
  box-shadow: 0 8px 18px rgba(158, 113, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(158, 113, 53, 0.5);
}

.btn-secondary {
  background: #f5ebde;
  color: var(--text-main);
  border-color: rgba(189, 167, 132, 0.9);
}

.btn-secondary:hover {
  background: #efe1cf;
}

.btn-outline {
  border-color: rgba(189, 167, 132, 0.9);
  color: var(--text-main);
  background: #fffaf2;
}

.btn-outline:hover {
  background: #f4e6d4;
}

/* Catalog row */

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card h3,
.product-card h2 {
  margin: 0 0 4px;
}

.product-card p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text-soft);
}

.product-card .price {
  font-weight: 600;
  color: var(--accent-muted);
  margin-top: 2px;
}

.product-card .btn {
  margin-top: 6px;
}

.link-more {
  font-size: 13px;
  text-decoration: underline;
}

/* Page header */

.page-header {
  padding: 26px 0 8px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.page-header p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Product layout */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: flex-start;
}

.product-media img {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.product-info p {
  margin: 0 0 10px;
  color: var(--text-soft);
  line-height: 1.6;
}

.price.big {
  font-size: 21px;
  margin-top: 4px;
}

/* Forms */

.lead-form,
.checkout-form,
.contact-form {
  margin-top: 18px;
  border-radius: var(--radius-md);
  background: #fffaf3;
  border: 1px solid var(--border-soft);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-soft);
}

.lead-form h2,
.checkout-form h2,
.contact-form h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-row label {
  font-size: 13px;
  color: var(--text-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  padding: 8px 9px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fffdf8;
  color: var(--text-main);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(202, 143, 61, 0.35);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Catalog grid page */

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

/* Cart */

.cart-empty {
  border-radius: var(--radius-md);
  background: #fffaf2;
  border: 1px dashed var(--border-soft);
  padding: 16px 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.cart-content.hidden {
  display: none;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.cart-table th,
.cart-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(189, 167, 132, 0.4);
  text-align: left;
}

.cart-summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 22px;
}

.cart-total-label {
  margin: 0 0 4px;
  color: var(--text-soft);
}

.cart-total-value {
  margin: 0;
  font-size: 20px;
  color: var(--accent-muted);
}

.cart-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.remove-btn {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
}

/* Lists & legal text */

.list {
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
  color: var(--text-soft);
}

.legal-text p {
  margin: 0 0 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Contact layout */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 30px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(189, 167, 132, 0.6);
  background: #f2e6d5;
  padding: 22px 0 16px;
  margin-top: 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.2fr;
  gap: 26px;
  font-size: 13px;
}

.footer-col h4 {
  margin: 0 0 8px;
}

.footer-col p {
  margin: 0 0 4px;
  color: var(--text-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(189, 167, 132, 0.6);
  margin-top: 12px;
  padding-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Responsive */

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: minmax(0, 1.7fr) auto;
    grid-template-rows: auto auto;
  }

  .main-nav {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }

  .hero-grid,
  .split-block,
  .product-layout,
  .contact-layout,
  .cart-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-row,
  .catalog-grid,
  .three-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    display: none;
  }

  .catalog-row,
  .catalog-grid,
  .three-features,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
