:root {
  --bg: #fff9ec;
  --surface: #ffffff;
  --surface-soft: #fffdf7;
  --line: #eadfb8;
  --text: #2b3240;
  --muted: #6a7688;
  --accent: #f3ba2f;
  --accent-strong: #df9c09;
  --success: #25a35a;
  --danger: #e04b6a;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow: 0 14px 34px rgba(67, 49, 7, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 225, 143, 0.35), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 237, 186, 0.55), transparent 32%),
    var(--bg);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

.topline {
  background: #fff2cd;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.topline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}

.topline-links,
.topline-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topline a,
.topline span {
  color: var(--muted);
}

.topline a:hover,
.nav-inner a:hover,
.footer-grid a:hover,
.section-head a:hover {
  color: var(--accent-strong);
}

.header-main {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 210px minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.menu-toggle,
.btn-main,
.btn-secondary,
.product-card button,
.contact-pill {
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.menu-toggle {
  border: 0;
  background: var(--accent);
  color: #fff;
  height: 46px;
  border-radius: var(--radius-md);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-toggle:hover,
.btn-main:hover,
.btn-secondary:hover,
.product-card button:hover,
.contact-pill:hover {
  transform: translateY(-1px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff2cd;
  font-size: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-size: 28px;
  font-weight: 800;
  color: #c88400;
}

.logo-text small {
  font-size: 12px;
  color: var(--muted);
}

.search {
  display: flex;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(67, 49, 7, 0.05);
}

.search input {
  border: 0;
  padding: 0 16px;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
}

.search button,
.product-card button {
  border: 0;
  background: var(--success);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search button {
  width: 110px;
}

.header-contacts,
.header-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.header-contacts a:first-child,
.header-actions .cart {
  font-weight: 800;
}

.header-actions a,
.header-contacts a:last-child {
  color: var(--muted);
}

.header-actions .cart {
  color: #c88400;
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
}

.nav-inner a,
.section-head a {
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 13px 4vw;
  border-top: 1px solid #f7efdb;
}

.mobile-menu.is-open {
  display: block;
}

.hero {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  gap: 18px;
}

.catalog-side,
.benefits article,
.category-card,
.product-card,
.info-card,
.policy-card,
.faq-item,
.contact-band {
  background: var(--surface);
  border: 1px solid rgba(234, 223, 184, 0.9);
  box-shadow: var(--shadow);
}

.catalog-side {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.catalog-side h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.catalog-side a {
  display: block;
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #f7efdb;
  color: #53627a;
}

.catalog-side a:last-child {
  border-bottom: 0;
}

.hero-slider {
  position: relative;
  min-height: 390px;
  background: linear-gradient(140deg, #fff3c9 0, #fffdfa 56%, #fff0d8 100%);
  border: 1px solid #f1dfad;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-tag,
.section-kicker {
  margin: 0 0 8px;
  color: var(--success);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.slide h1 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.04;
  max-width: 12ch;
}

.slide p {
  margin: 16px 0 0;
  font-size: 18px;
  max-width: 44ch;
  color: #4b5a71;
}

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

.btn-main,
.btn-secondary {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.btn-main {
  background: var(--accent);
  color: #fff;
}

.btn-main:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid var(--line);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 44px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #d9d3c0;
  cursor: pointer;
}

.dot.is-active {
  background: var(--accent);
}

.benefits {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benefits article {
  border-radius: 18px;
  padding: 16px;
}

.benefits h3 {
  margin: 0;
  font-size: 17px;
  color: #253a56;
}

.benefits p,
.info-card p,
.policy-card p,
.faq-answer p,
.contact-band p,
.search-status {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.category-block,
.products,
.info-section,
.policy-grid,
.faq,
.contact-band {
  margin-top: 34px;
}

.category-block h2,
.products h2,
.info-card h2,
.faq h2,
.contact-band h2 {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: clamp(28px, 2.5vw, 36px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.category-grid,
.info-section,
.policy-grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.category-card-body {
  padding: 16px;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card ul,
.feature-list {
  margin: 0;
  padding-left: 18px;
  color: #4f617d;
}

.category-card li,
.feature-list li {
  margin-bottom: 8px;
}

.product-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--success);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.label.sale {
  background: var(--danger);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 20px;
}

.product-card h3 {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.3;
  flex: 1;
}

.price {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price del {
  color: #8b96a7;
  font-size: 14px;
}

.price strong {
  font-size: 21px;
  color: #192f4d;
}

.product-card button {
  min-height: 44px;
  border-radius: 12px;
}

.product-card button:disabled {
  opacity: 0.8;
}

.info-section {
  grid-template-columns: 1.35fr 0.9fr;
}

.info-card,
.policy-card,
.faq-item,
.contact-band {
  border-radius: 22px;
  padding: 22px;
}

.info-card--wide p + p {
  margin-top: 12px;
}

.policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-card h3,
.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.faq-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding-top: 12px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.contact-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(130deg, #fff3c4 0, #ffffff 60%, #fff7de 100%);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-pill {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.site-footer {
  margin-top: 48px;
  background: #1f2b3c;
  color: #dce6f4;
}

.footer-grid {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 10px;
  color: #c9d7ec;
}

.footer-bottom {
  border-top: 1px solid #32435f;
}

.footer-bottom-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  font-size: 14px;
  color: #9eb0cb;
}

@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "menu logo actions"
      "search search search"
      "contacts contacts contacts";
    padding: 12px 0;
  }

  .menu-toggle { grid-area: menu; }
  .logo { grid-area: logo; }
  .search { grid-area: search; }
  .header-contacts {
    grid-area: contacts;
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
  }
  .header-actions {
    grid-area: actions;
    align-items: flex-end;
  }

  .hero,
  .info-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .catalog-side {
    display: none;
  }

  .category-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .benefits,
  .product-grid,
  .policy-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topline-links,
  .main-nav,
  .header-actions a:not(.cart) {
    display: none;
  }

  .benefits,
  .category-grid,
  .category-grid--4,
  .product-grid,
  .policy-grid,
  .footer-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 330px;
  }

  .slide {
    padding: 28px;
  }

  .slide h1 {
    font-size: 30px;
  }

  .slider-dots {
    left: 28px;
  }

  .footer-bottom-inner,
  .section-head,
  .topline-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.product-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.product-card .wa-order,
.product-card .add-to-cart {
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.product-card .wa-order {
  background: var(--success);
  color: #fff;
}

.product-card .wa-order:hover {
  transform: translateY(-1px);
}

.product-card .add-to-cart {
  background: #f4f4f4;
  color: var(--text);
  border: 1px solid var(--line);
}

.product-card .add-to-cart:hover {
  transform: translateY(-1px);
}

.product-card .add-to-cart:disabled {
  opacity: 0.8;
}
