:root {
  --ink: #102321;
  --muted: #5d6d68;
  --line: #dbe7df;
  --surface: #ffffff;
  --soft: #f3f7f4;
  --brand: #079b52;
  --brand-deep: #04633a;
  --cyan: #0aa2a7;
  --accent: #e84f77;
  --shadow: 0 18px 45px rgba(16, 35, 33, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand span {
  white-space: nowrap;
}

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

.main-nav a {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #102321;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 25, 22, 0.78), rgba(6, 25, 22, 0.18) 62%, rgba(6, 25, 22, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(36px, 7vw, 86px);
  color: #fff;
}

.hero-copy p,
.section-heading p,
.page-title p,
.contact-strip p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy span {
  display: block;
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(18px, 2.2vw, 25px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.band,
.category-preview,
.contact-layout,
.catalog-layout,
.page-title,
.contact-strip {
  padding-inline: clamp(18px, 4vw, 64px);
}

.intro,
.category-preview {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.band {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-title h1,
.contact-strip h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.intro-grid article,
.category-links a,
.contact-panel,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.intro-grid article {
  padding: 24px;
}

.intro-grid h3,
.contact-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
}

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

.category-links a {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 22px;
  border-left: 5px solid var(--brand);
}

.category-links span {
  font-size: 22px;
  font-weight: 800;
}

.category-links small {
  color: var(--muted);
  font-size: 15px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 34px;
  padding-bottom: 34px;
  color: #fff;
  background: var(--brand-deep);
}

.contact-strip p {
  color: #9ef2c9;
}

.page-title {
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: 28px;
  background: var(--soft);
}

.page-title span {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 64px;
}

.category-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.category-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.category-button.active {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: 30px;
}

.search-field {
  display: grid;
  gap: 6px;
  width: min(300px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

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

.product-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  object-fit: cover;
}

.product-info {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.product-info h3 {
  min-height: 45px;
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--brand-deep);
  font-weight: 800;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 35, 33, 0.72);
}

.product-modal[hidden] {
  display: none;
}

.modal-panel {
  display: grid;
  grid-template-columns: minmax(260px, 470px) minmax(240px, 360px);
  align-items: center;
  gap: 24px;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
}

.modal-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  background: var(--soft);
  border-radius: 8px;
  overflow: hidden;
}

.modal-panel img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.modal-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.modal-kicker p,
.modal-kicker span {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.1;
}

.modal-panel span {
  display: block;
  margin-bottom: 22px;
  color: var(--brand-deep);
  font-size: 20px;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 16px;
  padding: 14px;
  background: rgba(243, 247, 244, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.order-heading h3 {
  margin: 0;
  font-size: 18px;
}

.order-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-options {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.order-option {
  display: grid;
  grid-template-columns: 76px 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-option input {
  width: 100%;
  height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.option-color {
  display: grid;
  place-items: center;
  min-height: 36px;
}

.color-swatch,
.color-crop {
  display: block;
  width: 40px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--soft);
  background-repeat: no-repeat;
}

.color-crop {
  background-size: cover;
}

.option-label {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cart-add-button {
  width: 100%;
}

.cart-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 16px;
  color: #fff;
  background: var(--brand-deep);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cart-toggle strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: var(--brand-deep);
  background: #fff;
  border-radius: 999px;
}

.cart-drawer {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 35;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(440px, calc(100vw - 36px));
  max-height: min(660px, calc(100vh - 120px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-header,
.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

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

.cart-header button,
.cart-row button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.cart-row strong,
.cart-row span {
  display: block;
  overflow-wrap: anywhere;
}

.cart-row span {
  color: var(--muted);
  font-size: 13px;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.image-tool {
  position: absolute;
  z-index: 32;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(4, 18, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  cursor: pointer;
}

.fullscreen-tool {
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.image-nav {
  position: absolute;
  top: 50%;
  z-index: 32;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 92px;
  color: #fff;
  background: rgba(4, 18, 16, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  font-size: 62px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.image-prev {
  left: 12px;
}

.image-next {
  right: 12px;
}

.image-tool:hover,
.image-nav:hover {
  background: rgba(7, 155, 82, 0.88);
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.product-modal.is-fullscreen {
  padding: 18px clamp(18px, 4vw, 56px);
  background: #071412;
}

.product-modal.is-fullscreen .modal-panel {
  grid-template-columns: minmax(0, 1fr) 320px;
  width: 100%;
  height: 100%;
  max-height: none;
  background: transparent;
  color: #fff;
  overflow: hidden;
}

.product-modal.is-fullscreen .modal-media {
  min-height: 0;
  height: 100%;
  background: #050807;
}

.product-modal.is-fullscreen .modal-panel img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
}

.product-modal.is-fullscreen .image-nav {
  width: 82px;
  height: 116px;
  font-size: 76px;
}

.product-modal.is-fullscreen .fullscreen-tool {
  width: 58px;
  height: 58px;
  font-size: 32px;
}

.modal-media:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #050807;
}

.modal-media:fullscreen img {
  width: auto;
  max-width: 100vw;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}

.product-modal.is-fullscreen .modal-panel h2,
.product-modal.is-fullscreen .modal-panel span {
  color: #fff;
}

.product-modal.is-fullscreen .modal-kicker p,
.product-modal.is-fullscreen .modal-kicker span {
  color: #bde8d0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 72px;
}

.map-wrap {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.contact-panel {
  padding: 24px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 6px 0 0;
  font-size: 17px;
}

.contact-list a {
  color: var(--brand-deep);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    justify-content: space-between;
  }

  .main-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: 620px;
  }

  .intro-grid,
  .category-links,
  .catalog-layout,
  .contact-layout,
  .modal-panel,
  .product-modal.is-fullscreen .modal-panel {
    grid-template-columns: 1fr;
  }

  .product-modal.is-fullscreen .modal-panel {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .image-nav {
    width: 58px;
    height: 78px;
    font-size: 52px;
  }

  .category-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-options {
    max-height: 220px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: sticky;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px;
  }

  .brand span {
    white-space: normal;
    font-size: 15px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .main-nav a {
    padding: 9px 8px;
    font-size: 14px;
  }

  .hero-copy {
    padding: 34px 16px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .contact-actions,
  .cart-footer {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .band,
  .category-preview,
  .contact-layout,
  .catalog-layout,
  .page-title,
  .contact-strip {
    padding-inline: 12px;
  }

  .intro,
  .category-preview {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .catalog-layout {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 84px;
  }

  .page-title {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .page-title h1,
  .section-heading h2,
  .contact-strip h2 {
    font-size: 30px;
  }

  .page-title span {
    font-size: 16px;
  }

  .category-sidebar {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .category-button {
    padding: 12px;
    white-space: nowrap;
  }

  .catalog-toolbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .catalog-toolbar h2 {
    font-size: 24px;
  }

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

  .product-info h3 {
    min-height: 56px;
    font-size: 13px;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-modal {
    align-items: stretch;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    gap: 12px;
    padding: 10px;
    border-radius: 0;
    overflow: auto;
  }

  .modal-media {
    min-height: auto;
  }

  .modal-panel img {
    max-height: 56vh;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    z-index: 60;
  }

  .image-nav {
    width: 46px;
    height: 64px;
    font-size: 44px;
  }

  .fullscreen-tool {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .modal-panel h2 {
    font-size: 23px;
  }

  .modal-panel span {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .order-panel {
    margin-top: 12px;
    padding: 10px;
  }

  .order-option {
    grid-template-columns: 70px 42px minmax(0, 1fr);
    gap: 8px;
  }

  .contact-layout {
    gap: 14px;
    padding-bottom: 84px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 360px;
  }

  .contact-panel {
    padding: 16px;
  }

  .cart-toggle {
    right: 12px;
    bottom: 12px;
  }

  .cart-drawer {
    inset: auto 10px 74px 10px;
    width: auto;
    max-height: calc(100vh - 92px);
  }

  .cart-row {
    grid-template-columns: 52px minmax(0, 1fr) 36px;
  }

  .cart-row img {
    width: 52px;
    height: 52px;
  }
}
