:root {
  --bg: #eef3ef;
  --bg-soft: #f7faf7;
  --ink: #14201a;
  --muted: #5a6b61;
  --pine: #1f4d3a;
  --pine-deep: #143528;
  --amber: #c9893a;
  --amber-soft: #f0d9b0;
  --line: rgba(20, 32, 26, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 53, 40, 0.12);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 137, 58, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 77, 58, 0.12), transparent 50%),
    linear-gradient(180deg, #e8f0ea 0%, var(--bg) 40%, #e6ebe7 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 247, 0.82);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--pine-deep);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--pine);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone {
  font-weight: 600;
  white-space: nowrap;
}

.cart-btn,
.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: var(--pine);
  color: var(--white);
}

.cart-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 28, 22, 0.78) 0%, rgba(14, 28, 22, 0.45) 48%, rgba(14, 28, 22, 0.18) 100%),
    linear-gradient(180deg, transparent 40%, rgba(14, 28, 22, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8vh 6vw 7vh;
  max-width: 760px;
  animation: riseIn 0.9s ease both;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--amber-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-lead {
  margin: 1rem 0 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  background: var(--amber);
  color: var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-block {
  width: 100%;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit {
  background: var(--bg-soft);
  padding: 1.35rem 4vw;
  display: grid;
  gap: 0.2rem;
}

.benefit strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.benefit span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4.5rem 4vw;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2,
.about-grid h2,
.order-panel h2,
.delivery-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-head p,
.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.product:hover {
  transform: translateY(-4px);
}

.product-media {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #dfeae3, #f4f1ea);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.product-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 77, 58, 0.1);
  color: var(--pine);
  font-size: 0.75rem;
  font-weight: 700;
}

.product h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.price {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pine-deep);
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.product .btn {
  margin-top: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--amber);
}

.about-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8eee8;
  aspect-ratio: 3 / 4;
  max-height: min(520px, 70vh);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.delivery-grid article {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.delivery-grid p {
  margin: 0;
  color: var(--muted);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.review {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.review strong {
  display: block;
  margin-bottom: 0.45rem;
}

.review p {
  margin: 0;
  color: var(--muted);
}

.order-section {
  padding-bottom: 5rem;
}

.order-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(31, 77, 58, 0.94), rgba(20, 53, 40, 0.98)),
    var(--pine-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.steps {
  margin: 1rem 0 1.4rem;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
}

.order-contacts a {
  color: var(--amber-soft);
  font-weight: 600;
}

.order-form {
  display: grid;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 1.2rem;
}

.order-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 4vw 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--pine);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 14, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer.open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  transition: transform 0.3s ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-panel header,
.cart-panel footer {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cart-panel footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.cart-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel h3 {
  margin: 0;
  font-family: var(--display);
}

.icon-close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.cart-items {
  padding: 1rem;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.cart-line .qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-line button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.cart-total {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--pine-deep);
  color: var(--white);
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: min(92vw, 520px);
  text-align: center;
}

.api-banner {
  position: fixed;
  left: 50%;
  top: 4.6rem;
  transform: translateX(-50%);
  z-index: 70;
  background: #7a2e14;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  max-width: min(94vw, 560px);
  text-align: center;
}

.api-banner a,
.api-banner code {
  color: #ffd7a8;
  font-weight: 700;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .benefits,
  .about-grid,
  .delivery-grid,
  .order-panel {
    grid-template-columns: 1fr;
  }
  .phone { display: none; }
  .hero-content { padding-top: 18vh; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 1rem; }
  .section { padding-inline: 1rem; }
  .order-panel { padding: 1.2rem; }
}
