:root {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --ink: #252525;
  --muted: #6a6a6a;
  --accent: #f18800;
  --accent-dark: #c96f00;
  --olive: #6f8f4f;
  --line: #d8d8d8;
  --olive-deep: #2e4223;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #f5f1df 0%, #efefef 55%, #e8e8e8 100%);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbf7 100%);
  border-bottom: 1px solid #e1e3d9;
  box-shadow: 0 8px 24px rgba(26, 31, 19, 0.08);
  backdrop-filter: saturate(120%) blur(4px);
  position: sticky;
  top: 0;
  z-index: 30;
}

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

.category-wrap {
  position: relative;
}

.category-toggle {
  border: 1px solid #cfd7bb;
  background: linear-gradient(180deg, #f6f9ee 0%, #edf2e1 100%);
  color: var(--olive-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-toggle:hover {
  border-color: #a6b78a;
  transform: translateY(-1px);
}

.category-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, 90vw);
  background: #fff;
  border: 1px solid #d9dec9;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(30, 40, 25, 0.16);
  padding: 12px;
  z-index: 25;
}

.category-menu h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.category-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-menu .filter-btn {
  font-size: 18px;
  padding: 9px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  width: 88px;
  height: auto;
  object-fit: contain;
  display: block;
}

.subtitle {
  font-size: 14px;
  color: #5b6154;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

.menu {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.menu a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cart-icon {
  border: 1px solid #e7c291;
  background: linear-gradient(180deg, #fffaf2 0%, #fff1df 100%);
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.cart-icon:hover {
  border-color: #ddaa63;
  transform: translateY(-1px);
}

.cart-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hero {
  position: relative;
  max-width: 1220px;
  margin: 22px auto 14px;
  padding: 70px 22px 58px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid #dddfd2;
  background:
    radial-gradient(circle at 18% -6%, rgba(244, 227, 181, 0.65) 0%, rgba(244, 227, 181, 0) 48%),
    radial-gradient(circle at 92% 20%, rgba(163, 182, 129, 0.19) 0%, rgba(163, 182, 129, 0) 38%),
    linear-gradient(180deg, #f9f7ef 0%, #f3f0e5 100%);
  box-shadow: 0 18px 34px rgba(34, 35, 25, 0.08);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(86%, 760px);
  height: 1px;
  background: linear-gradient(90deg, rgba(149, 160, 130, 0) 0%, rgba(149, 160, 130, 0.52) 30%, rgba(149, 160, 130, 0.52) 70%, rgba(149, 160, 130, 0) 100%);
}

.hero h1 {
  margin: 0 auto 14px;
  max-width: 980px;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto;
  max-width: 860px;
  color: #636960;
  font-size: clamp(21px, 2.35vw, 38px);
  line-height: 1.23;
  font-weight: 500;
}

.video-banner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dadcd2;
  box-shadow: 0 16px 34px rgba(32, 36, 24, 0.12);
  isolation: isolate;
}

.video-banner-media {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.28) 100%);
  pointer-events: none;
}

.video-banner-logo {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 58vw);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.layout {
  padding: 0 14px 40px;
}

.filter-btn {
  border: 0;
  background: transparent;
  font-size: 24px;
  padding: 10px 12px;
  cursor: pointer;
  color: #444;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--accent);
  background: rgba(241, 136, 0, 0.1);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-toolbar input,
.catalog-toolbar select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
#modal-volume,
.newsletter-form input {
  padding: 12px;
  border: 1px solid #bdbdbd;
  font-size: 16px;
  border-radius: 6px;
}

.catalog-toolbar input {
  width: min(460px, 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(32, 32, 32, 0.05);
}

.badge {
  background: var(--accent);
  color: #fff;
  display: inline-block;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #fff;
  cursor: pointer;
}

.card h3 {
  margin: 0;
  min-height: 58px;
}

.muted {
  color: var(--muted);
}

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

.qty button {
  width: 34px;
  height: 34px;
  border: 1px solid #b0b0b0;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.add-btn,
.checkout-btn,
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  width: 100%;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  border-radius: 6px;
}

.add-btn:hover,
.checkout-btn:hover,
.newsletter-form button:hover {
  background: var(--accent-dark);
}

.add-btn.outline {
  background: linear-gradient(180deg, #fffdf8 0%, #fff7eb 100%);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 12px;
  letter-spacing: 0.2px;
}

.content-section {
  margin: 0 auto 18px;
  max-width: 1280px;
  background: #fff;
  border: 1px solid #dbddd1;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 24px rgba(37, 37, 37, 0.06);
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(30px, 2.1vw, 42px);
  line-height: 1.02;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.warm {
  background: linear-gradient(120deg, #f2e9cf 0%, #fff 60%);
}

.who {
  background: linear-gradient(120deg, #fff 40%, #eef4e4 100%);
}

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

.cards-4 article {
  border: 1px solid #e7e9de;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8f2 100%);
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cards-4 article:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(41, 52, 29, 0.12);
}

.faq details {
  border: 1px solid #dde1d4;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 12px;
  background: #fcfdf9;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 18px 20px;
  font-size: clamp(20px, 1.2vw, 28px);
  line-height: 1.15;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 10px;
}

.faq details[open] summary::before {
  content: "▾";
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px 45px;
  color: #4f4f4f;
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.4;
}

.contacts {
  text-align: center;
}

.site-footer {
  margin-top: 22px;
  background: linear-gradient(120deg, #2f4a27 0%, #4f7f39 55%, #7aa959 100%);
  color: #fff;
  padding: 34px 30px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #f5f5f5;
}

.footer-logo {
  width: 82px;
  height: auto;
  display: block;
  margin-bottom: 8px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.site-footer .newsletter-form input {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #263024;
  border-radius: 10px;
}

.cart-drawer {
  position: fixed;
  right: -520px;
  top: 0;
  width: min(520px, 92vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #ddd;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  transition: right 0.25s ease;
}

.cart-drawer.open {
  right: 0;
}

.drawer-header {
  background: linear-gradient(135deg, #202124 0%, #2a2b2f 100%);
  color: #fff;
  padding: 22px 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-icon {
  width: 20px;
  height: 20px;
  color: #f39a22;
}

.drawer-count-pill {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(243, 154, 34, 0.16);
  color: #ffbe68;
  border: 1px solid rgba(243, 154, 34, 0.45);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.drawer-items {
  padding: 16px;
  overflow: auto;
  background: #fcfcfc;
}

.drawer-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 12px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.drawer-item img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  border-radius: 10px;
}

.drawer-main {
  min-width: 0;
}

.drawer-name {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.drawer-meta {
  margin: 0 0 10px;
  color: #5f5f5f;
  font-size: 15px;
}

.drawer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  padding: 4px;
  background: #fafafa;
}

.drawer-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.drawer-qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}

.drawer-item-total {
  font-size: 21px;
}

.drawer-remove {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #f8e6e6;
  color: #8f2f2f;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.drawer-total {
  border-top: 1px solid #ddd;
  padding: 18px 20px 10px;
  background: #fff;
}

.drawer-total p {
  margin: 0 0 6px;
  color: #666;
}

.drawer-total strong {
  font-size: 34px;
}

.cart-drawer .checkout-btn {
  width: auto;
  margin: 12px 16px 18px;
  border-radius: 10px;
}

.drawer-empty {
  border: 1px dashed #ddd;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: #707070;
  background: #fff;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.ghost,
.close,
.remove,
.link-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.close {
  font-size: 24px;
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.product-modal {
  width: min(1020px, 95vw);
  border: 0;
}

.modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.modal-content img {
  width: 100%;
  height: 440px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  border: 1px solid #ddd;
}

.thumbs {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.thumb {
  border: 1px solid #ccc;
  padding: 2px;
  cursor: pointer;
  background: #fff;
}

.thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.close {
  position: absolute;
  right: 12px;
  top: 8px;
}

.cart-page {
  max-width: 1260px;
  margin: 18px auto 28px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
}

.cart-topbar {
  background: #fff;
}

.cart-back-link {
  border: 1px solid #d8d8d8;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.cart-back-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-headline {
  max-width: 1260px;
  margin: 22px auto 8px;
  padding: 0 18px;
}

.cart-headline h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
}

.cart-headline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cart-list-panel {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.cart-panel-top {
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.cart-panel-top h2 {
  margin: 0;
}

.cart-panel-top p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cart-row {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff 0%, #fafafa 100%);
  padding: 14px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  margin-bottom: 10px;
}

.cart-row img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  border-radius: 10px;
}

.cart-row h3 {
  margin: 0 0 6px;
}

.cart-row p {
  margin: 0 0 10px;
}

.qty {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  font-size: 18px;
}

.qty span {
  min-width: 26px;
  text-align: center;
  display: inline-block;
  font-weight: 700;
}

.remove {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f9e7e7;
  color: #922d2d;
  font-size: 18px;
}

.summary-elevated {
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 16px 35px rgba(35, 35, 35, 0.08);
}

.summary {
  background: #fff;
  padding: 18px;
  height: fit-content;
}

.line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  align-items: center;
}

.line-label {
  position: relative;
  padding-left: 18px;
}

.line-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  position: absolute;
  left: 0;
  top: 8px;
}

.line.total {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  font-size: 28px;
}

.checkout-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-title {
  margin: 14px 0 4px;
  font-size: 20px;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 8px;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.external-box {
  border: 1px dashed #bbb;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
}

.external-box pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 160px;
  overflow: auto;
}

.checkout-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(32, 32, 32, 0.5);
  display: grid;
  place-items: center;
}

.checkout-loader[hidden] {
  display: none;
}

.loader-card {
  width: min(320px, 90vw);
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  border: 1px solid #ddd;
}

.loader-logo-img {
  width: 96px;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.loader-dots {
  margin-top: 8px;
}

.loader-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--olive);
  animation: pulse 1s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.cart-footer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .topbar {
    padding: 14px 16px;
  }

  .logo-image {
    width: 76px;
  }

  .subtitle {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .menu {
    display: none;
  }

  .layout,
  .cart-page,
  .modal-content,
  .split,
  .site-footer,
  .cards-4,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .video-banner {
    margin: 0 14px 20px;
    border-radius: 12px;
  }

  .hero {
    margin: 14px 14px 12px;
    border-radius: 14px;
    padding: 44px 16px 34px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 58px);
    line-height: 1.02;
  }

  .hero p {
    font-size: clamp(21px, 5.6vw, 32px);
    line-height: 1.2;
  }

  .video-banner-media {
    height: 320px;
  }

  .video-banner-logo {
    width: min(320px, 70vw);
    top: 16px;
  }

  .category-toggle {
    padding: 9px 12px;
  }

  .category-menu {
    right: auto;
    left: 0;
    width: min(320px, 86vw);
  }

  .category-menu .filter-btn {
    font-size: 17px;
  }

  .content-section {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .content-section h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .content-section p,
  .content-section li {
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.35;
  }

  .site-footer {
    padding: 30px 22px;
    gap: 18px;
  }

  .site-footer h4 {
    font-size: 24px;
  }

  .site-footer a,
  .site-footer p {
    font-size: 18px;
    line-height: 1.3;
  }

  .site-footer .newsletter-form input,
  .site-footer .newsletter-form button {
    font-size: 18px;
    padding: 12px;
  }
}
