* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #3f2d20;
  background: #fff9f2;
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 249, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #f0e2d2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: #8a4b1f;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8923a;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.nav { display: flex; gap: 22px; align-items: center; }

.nav-link, .nav-catalog-btn {
  color: #6b4a33;
  text-decoration: none;
  font-size: 15px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav a:hover, .nav-catalog-btn:hover { color: #c96a1e; }

.nav-drop { position: relative; }

.drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid #f0e2d2;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(122, 63, 19, 0.15);
  padding: 10px 0;
  min-width: 170px;
  flex-direction: column;
}

.drop-menu.show { display: flex; }

.drop-menu a {
  padding: 8px 18px;
  color: #6b4a33;
  text-decoration: none;
  font-size: 15px;
}

.drop-menu a:hover { background: #fff3e3; color: #c96a1e; }

.header-right { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  font-size: 20px;
  text-decoration: none;
  padding: 4px 6px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #d97a2b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 3px; background: #8a4b1f; border-radius: 2px; margin: 4px 0; transition: transform 0.2s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #fff3e3 0%, #fff9f2 100%);
  padding: 60px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.15;
  color: #7a3f13;
}

.hero h1 span { color: #d97a2b; }

.hero p {
  margin: 0 0 28px;
  font-size: 18px;
  color: #7d6350;
}

.btn {
  display: inline-block;
  background: #d97a2b;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(217, 122, 43, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #c4661d;
  transform: translateY(-2px);
}

.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(122, 63, 19, 0.18);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Товары */
.products { padding: 70px 0 40px; }

.section-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 34px;
  color: #7a3f13;
}

.section-sub {
  text-align: center;
  margin: 0 0 40px;
  color: #7d6350;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #f0e2d2;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  scroll-margin-top: 90px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(122, 63, 19, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c96a1e;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  color: #5a3517;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #8a6f5c;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.card-price {
  font-weight: 700;
  color: #c96a1e;
  font-size: 18px;
}

.add-btn {
  background: #d97a2b;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.add-btn:hover { background: #c4661d; }

/* Корзина */
.cart-section { padding: 20px 0 70px; }

.cart-box {
  background: #fff;
  border: 1px solid #f0e2d2;
  border-radius: 18px;
  padding: 24px 28px;
  max-width: 640px;
  margin: 0 auto;
}

.cart-empty { margin: 0; text-align: center; color: #8a6f5c; }

.cart-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0e2d2;
  font-size: 15px;
}

.rm {
  background: none;
  border: 0;
  color: #c96a1e;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.cart-total strong { color: #c96a1e; }

/* Футер */
.footer {
  background: #4a2c14;
  color: #f4e4d3;
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer h4 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #fff;
}

.footer p { margin: 0; font-size: 14px; }

.footer-contacts a {
  color: #f4e4d3;
  text-decoration: none;
}

.footer-contacts a:hover { color: #f0b27a; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: #cfae8d;
  text-align: center;
}

/* Адаптив */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #f0e2d2;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
    gap: 12px;
    box-shadow: 0 14px 30px rgba(122, 63, 19, 0.12);
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .drop-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 14px;
    display: none;
  }
  .drop-menu.show { display: flex; }
}

@media (max-width: 390px) {
  .container { padding: 0 14px; }
  .hero { padding: 28px 0 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 16px; }
  .btn { display: block; text-align: center; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .add-btn { width: 100%; padding: 12px; font-size: 16px; }
  .card-price { font-size: 20px; }
  .section-title { font-size: 24px; }
  .cart-box { padding: 18px 16px; }
  .cart-total { font-size: 16px; }
  .logo { font-size: 17px; }
}
