:root {
  /* Typography */
  --font-heading: "Nunito", sans-serif; /* Modern, bold, very popular */
  --font-body: "Montserrat", sans-serif;
  --font-accent: "Manrope", sans-serif;
  --font-logo: "Old Standard TT", sans-serif;

  --color-pr: #fff;
  --color-ac: #333;
  --color-sd: #ccc;

  --color-pr1: #606c5d;
  --color-pr2: #f1c376;
  --color-fg1: #222222;
  --color-fg2: #666666;
  --color-bg1: white;
  --color-bg2: #eeeeee;
  --color-bg3: #dddddd;

  --noise: url(data:image/png;base64,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);

  --base-radius: 24px;

  --header-height: 36px;
  --header-height-half: 18px;
  --header-height-twice: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  background-image: var(--noise);
}

a {
  text-decoration: none;
  font-weight: bold;
  color: var(--color-ac);

  display: inline-flex;
  align-items: center;
  gap: 8px;
}
a:hover {
  color: crimson;
}

small svg {
  height: 16px;
}
small a svg {
  color: var(--color-ac);
}
small a:hover svg {
  color: crimson;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: var(--font-heading); */
}

header {
  display: flex;
  height: var(--header-height);
  padding: var(--header-height-half) var(--header-height);
  justify-content: space-between;

  background-color: var(--color-header-bg);
  color: var(--color-header-fg);
}
header svg {
  align-self: center;
  color: var(--color-ac);
  width: var(--header-height-half);
}
.header-item {
  text-align: center;
  display: flex;
  justify-content: flex-end;
  height: 100%;
  align-items: center;
  gap: 8px;
}
.header-item small {
  height: var(--header-height-half);
}

nav {
  position: sticky;
  top: var(--header-height);
  display: flex;
  padding: var(--header-height-half) var(--header-height);
  justify-content: space-between;
  
  background-color: var(--color-pr);
  background-image: none;
  color: var(--color-nav-fg);
  height: 80px;

  background: #fffa;
  z-index: 10;
  backdrop-filter: blur(var(--header-height));
  border-radius: var(--base-radius);

}
.site-nav {
  align-items: center;
}
.nav-item {
  text-align: center;
  display: flex;
  justify-content: flex-end;
  height: 100%;
  align-items: center;
  gap: var(--header-height-half);
}
.nav-links {
  margin-left: auto;
}
.nav-burger,
.nav-mobile-spacer {
  display: none;
}
.nav-burger {
  position: relative;
}
.nav-burger summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: #0000;
}
.nav-burger summary::-webkit-details-marker {
  display: none;
}
.nav-burger summary span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--color-ac);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger[open] summary span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-burger[open] summary span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}
.nav-burger-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 12px 36px #0002;
  background: #fffc;
  backdrop-filter: blur(var(--header-height));
}
.nav-mobile-categories a {
  display: flex;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
}
.nav-mobile-categories a:hover {
  background: #00000008;
}
.nav-mobile-contacts {
  display: none;
}

footer {
  margin-top: var(--header-height-half) !important;
  margin-bottom: var(--header-height-half) !important;
}
.copyright-container {
  text-align: center;
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: calc(1280px + 36px)) {
  .container {
    margin: 0 var(--header-height-half);
  }
}

.slider-container {
  display: flex;
  width: 100%;
  gap: var(--header-height-half);
  overflow-x: auto;

  scrollbar-color: var(--color-ac) var(--color-sd);
  scrollbar-width: none;
  scroll-behavior: smooth;

  /* Card box shadow size */
  padding: 24px 0;
  margin: -24px 0;
}
.slider-container .left {
  left: calc(0.5 * (100% - 1280px - 72px));
}
.slider-container .right {
  right: calc(0.5 * (100% - 1280px - 72px));
}
.slider-container .slider-button {
  position: absolute;
  top: calc(50% - 36px);
  margin: auto 0;
  height: var(--header-height-twice);
  width: var(--header-height-twice);
  border: none;
  border-radius: 100%;
  cursor: pointer;
  z-index: 1;

  background: #0000;
  color: #0000;
  transition: color 0.1s;
}
.slider-container:hover .slider-button {
  background: #0000;
  border: 1px solid #0005;
  color: #0005;
  backdrop-filter: blur(var(--header-height));
  /* box-shadow: 0 0 24px #0004; */
}
.slider-container .slider-button:hover {
  color: #000b !important;
}
.slider-button svg {
  height: 100%;
  width: 100%;
}
.slider-separator {
  min-width: calc(0.5 * (100% - 1280px - 36px));
}
@media (max-width: calc(1280px + 72px)) {
  min-width: 0;
}

.heading-container {
  text-align: center;
  width: 100%;
  margin: var(--header-height-twice) auto var(--header-height) auto;
}


section {
  margin: var(--header-height-half) auto !important;
}

#hero {
  height: 50vh;
  min-height: 420px;
}
.hero-row {
  display: flex;
  box-sizing: border-box;
  height: 100%;
  gap: var(--header-height-half);
}
.hero-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  gap: var(--header-height-half);
}
.hero-card {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  color: var(--color-ac);
  background: var(--color-card-bg);
  overflow: hidden;
  border-radius: var(--base-radius);
  box-shadow: 0 0 24px #0002;
  font-weight: 700;
  transition: box-shadow 0.12s ease, color 0.12s ease;
}
.hero-card:hover {
  color: crimson;
  box-shadow: 0 0 24px #0005;
}
.hero-card:focus-visible {
  outline: 2px solid var(--color-ac);
  outline-offset: 4px;
}
.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transition: transform 0.16s ease;
}
.hero-card-position-right img {
  object-position: 80% center;
}
.hero-card:hover img {
  transform: scale(1.04);
}
.hero-card-title {
  position: absolute;
  left: var(--header-height);
  bottom: var(--header-height);
  z-index: 1;
  max-width: calc(100% - var(--header-height-twice));
  color: inherit;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  text-shadow: 0 1px 18px #fff, 0 1px 6px #fff;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff0 58%, #fff8 100%);
  pointer-events: none;
}
#hero .wide {
  flex: 1.5 !important;
}
#hero .hero-card-large {
  flex: 1 !important;
}
@media (max-width: 1024px) {
  #hero {
    height: auto;
    min-height: 0;
  }
  .hero-row {
    flex-direction: column;
    height: auto;
  }
  .hero-card {
    height: clamp(205px, 58vw, 300px);
    min-height: 0;
  }
  .hero-card img {
    height: 100%;
  }
  .hero-card-title {
    left: var(--header-height-half);
    bottom: var(--header-height-half);
    max-width: calc(100% - var(--header-height));
  }
}

#advantages {
  margin-top: var(--header-height);
  margin-bottom: var(--header-height);
}
.advantages-grid {
  display: flex;
  gap: var(--header-height-half);
}
.advantages-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.advantages-item svg {
  flex: 3;
  align-self: center;
  color: var(--color-ac);
  width: 96px;
}
.advantages-item p {
  flex: 1;
  line-height: 1.6rem;
  text-align: center;
  place-items: center;
  margin-top: var(--header-height-half);
  margin-left: var(--header-height);
  margin-right: var(--header-height);
}
@media (max-width: 1024px) {
  .advantages-grid {
    flex-direction: column;
    gap: var(--header-height);
  }
  .advantages-item svg {
    flex: 2;
    width: 80px;
  }
  .advantages-item p {
    line-height: inherit;
  }
}

#featured {
}
.featured-container {
  position: relative;
}

#pipeline {
}
.pipeline-grid {
  display: flex;
  justify-content: space-between;
}
.pipeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 var(--header-height);
  gap: 16px;
}
.pipeline-item .number {
  height: var(--header-height-twice);
  width: var(--header-height-twice);
  border: 3px solid var(--color-ac);
  margin: 0 auto;
  border-radius: 100%;
  text-align: center;
  align-content: center;
  font-size: var(--header-height);
}
.pipeline-item h3 {
  text-align: center;
}
.pipeline-item p {
  text-align: center;
}
.pipeline-separator {
  flex: 0.1;
  text-align: center;
  align-content: center;
  color: var(--color-ac);
}
.pipeline-separator svg {
  height: var(--header-height);
  width: var(--header-height);
}

#contacts {
  margin-top: var(--header-height-twice) !important;
}
.contacts-grid {
  display: flex;
}
.contacts-item {
  flex: 1;
}
.contacts-list {
  display: flex;
  list-style: none;
  flex-direction: column;
  justify-content: space-evenly;
}
.contacts-list li {
  margin: 8px var(--header-height);
}
.contacts-list svg {
  width: 1rem;
  height: 1rem;
}
.contacts-list h2,
.contacts-list h3 {
  margin: 8px 0;
}
.contacts-list p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contacts-map {
  flex: 3;
}
#map-container {
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--base-radius);
}
.contacts-map iframe {
  border-radius: var(--base-radius);
  box-shadow: 0 0 24px #0002;
  border: none !important;
}

#gallery {
}
.gallery-slider-container {
  position: relative;
}
.gallery-card {
  background: white !important;
  padding: 0 !important;
  height: 360px;
  cursor: pointer;
}
.gallery-card:focus-visible {
  outline: 2px solid var(--color-ac);
  outline-offset: 4px;
}
.gallery-card img {
  object-fit: cover;
  height: 100%;
  border-radius: var(--header-height-half);
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  transform: translateY(2px);
}

.card {
  flex: 1;
  border-radius: var(--base-radius);
  box-shadow: 0 0 24px #0002;
  padding: var(--header-height);
  color: #333;
  transition: box-shadow 0.1s;
}
.card:hover {
  box-shadow: 0 0 24px #0005;
}
.bg-dark {
  color: var(--color-pr);
  background: var(--color-ac);
}
.bg-light {
  color: var(--color-ac);
  background: var(--color-pr);
}
.mirror-x {
    transform: scaleX(-1);
}
.mirror-y {
    transform: scaleY(-1);
}
.thin-scrollbar {
  overflow: scroll;
  scrollbar-color: var(--color-ac) var(--color-sd);
  scrollbar-width: thin;
}

/* Olive decorations */
.olive-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--header-height-half);
    width: 100%;
    margin: var(--header-height) auto;
}
.olive-decoration-line {
    flex: 1;
    height: 1px;
    border: none;
    background: var(--color-ac);
    opacity: 0.25;
}
.olive-wrapper {
    display: flex;
    align-items: center;
}
.olive-branch {
    width: var(--header-height);
    height: var(--header-height);
    fill: var(--color-ac);
}

/* Product card */
.product-card {
  position: relative;
  flex: 1 0 360px;
  background: white;
  cursor: pointer;
  overflow: hidden;
}
.product-card:focus-visible {
  outline: 2px solid var(--color-ac);
  outline-offset: 4px;
}
.product-card .product-card-img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 212px;
  margin-bottom: var(--header-height);
}
.product-card-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: 1;
  transition: transform 0.16s ease;
}
.product-card:hover .product-card-img-container img,
.product-card:focus-visible .product-card-img-container img {
  transform: scale(1.045);
}
.product-card h3 {
  transition: color 0.12s ease;
}
.product-card:hover h3,
.product-card:focus-visible h3 {
  color: crimson;
}

/* Products page */
#products-page {
  width: 100%;
}
.products-layout {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--header-height-half);
}
.products-filter-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}
.products-filter-panel,
.products-body,
.products-content {
  min-width: 0;
}
.products-body {
  display: grid;
  grid-template-columns: clamp(240px, 22vw, 320px) minmax(0, 1fr);
  gap: var(--header-height-half);
  align-items: start;
}
.products-filter-panel {
  position: sticky;
  top: calc(var(--header-height-twice) + var(--header-height));
  width: 100%;
  align-self: start;
  padding: var(--header-height-half) 0;
}
.products-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid #0002;
  border-radius: 14px;
  color: var(--color-fg2);
  background: #0000;
  cursor: pointer;
}
.products-filter-button:hover {
  color: var(--color-ac);
}
.products-filter-button svg {
  width: 24px;
  height: 24px;
}
.products-filter-button {
  gap: 8px;
  justify-self: start;
  width: fit-content;
  padding: 0 14px;
  font-weight: 600;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.products-filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--header-height-half) 0;
  border-top: 1px solid #0001;
}
.products-filter-group:first-child {
  padding-top: 0;
  border-top: none;
}
.products-filter-group h3 {
  font-size: 1rem;
}
.products-filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-fg2);
  line-height: 1.4;
}
.products-filter-group input {
  accent-color: var(--color-ac);
}
.products-category-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.products-category-toggle,
.products-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #0002;
  border-radius: 14px;
  color: var(--color-fg2);
  background: #0000;
  font-weight: 600;
  line-height: 1.2;
}
.products-category-toggle:hover,
.products-page-link:hover {
  color: var(--color-ac);
}
.products-category-toggle.is-active,
.products-page-link.is-active {
  color: crimson;
  border-color: crimson;
  background: #0000;
  box-shadow: none;
}
.products-category-toggle.is-active:hover,
.products-page-link.is-active:hover {
  color: crimson;
  border-color: crimson;
  background: #0000;
}
.products-count {
  color: var(--color-fg2);
  font-weight: 600;
}
.products-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.products-price-row input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #0002;
  border-radius: 12px;
  font: inherit;
  background: white;
}
.products-content {
  width: 100%;
}
.products-title {
  margin-bottom: var(--header-height-half);
  padding: var(--header-height) var(--header-height-half) 0;
  text-align: center;
}
.products-title h1 {
  font-size: 2rem;
  line-height: 1.1;
}
.products-title p {
  margin-top: 6px;
  color: var(--color-fg2);
}
.products-controls-row {
  display: flex;
  gap: var(--header-height-half);
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: var(--header-height-half);
}
.products-sort-form {
  margin-left: auto;
  width: min(280px, 100%);
}
.products-sort-select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid #0002;
  border-radius: 14px;
  color: var(--color-fg2);
  background-color: #0000;
  font: inherit;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
}
.products-sort-select:hover,
.products-sort-select:focus {
  color: var(--color-ac);
  border-color: #0004;
}
.products-sort-select:focus {
  outline: none;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--header-height-half);
  align-items: stretch;
}
.products-results {
  min-width: 0;
}
.products-infinite-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-height-twice);
  margin-top: var(--header-height-half);
  color: var(--color-fg2);
  font-weight: 600;
}
.products-infinite-loader::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid #0002;
  border-top-color: var(--color-ac);
  border-radius: 100%;
  animation: products-loader-spin 0.8s linear infinite;
}
.products-infinite-loader.is-error::before {
  display: none;
}
@keyframes products-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
.products-grid .product-card {
  display: flex;
  align-items: stretch;
  flex: none;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.products-grid .product-card h3 {
  line-height: 1.35;
}
.products-grid .product-card p {
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-fg2);
  font-weight: 600;
}
.product-card-link {
  display: flex;
  align-items: stretch;
  gap: 0;
  color: var(--color-ac);
  font-weight: inherit;
  text-decoration: none;
}
.product-card-link:hover {
  color: var(--color-ac);
}
.product-card-link:hover h3 {
  color: crimson;
}
.products-filter-toggle:checked ~ .products-content .products-filter-panel {
  display: none;
}
.products-filter-toggle:checked ~ .products-content .products-body {
  grid-template-columns: minmax(0, 1fr);
}
.products-filter-toggle:checked ~ .products-content .products-filter-button {
  color: var(--color-ac);
  background: #fff9;
  box-shadow: 0 0 18px #0002;
}
.products-filter-toggle:checked ~ .products-content .products-filter-button:hover {
  color: crimson;
}
.products-filter-button:active {
  transform: translateY(1px);
}

/* Product page */
#product-page {
  width: 100%;
}
.product-detail-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--header-height);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.product-detail-image,
.product-detail-info {
  min-width: 0;
}
.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(680px, 68vh);
  padding: var(--header-height);
  border-radius: var(--base-radius);
  background: white;
  box-shadow: 0 0 24px #0002;
}
.product-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 62vh;
  object-fit: contain;
}
.product-detail-info {
  padding: var(--header-height);
}
.product-detail-info h1 {
  font-size: 2rem;
  line-height: 1.2;
}
.product-detail-price {
  margin-top: var(--header-height-half);
  color: var(--color-fg2);
  font-size: 1.35rem;
  font-weight: 600;
}

/* Product overlay */
.has-product-overlay {
  overflow: hidden;
}
.product-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  padding: var(--header-height-half);
}
.product-overlay.is-open {
  display: grid;
}
.product-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: #0009;
  cursor: pointer;
}
.product-overlay-shell {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(1280px, calc(100vw - var(--header-height)));
}
.product-overlay:not(.is-gallery) .product-overlay-shell {
  width: min(640px, calc(100vw - var(--header-height)));
  max-width: min(640px, calc(100vw - var(--header-height)));
}
.product-overlay:not(.is-gallery) .product-overlay-dialog {
  width: 100%;
  max-width: 100%;
}
.product-overlay-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--header-height-half);
  width: 100%;
  max-height: calc(100vh - var(--header-height));
  overflow: auto;
  padding: var(--header-height);
  border-radius: var(--base-radius);
  background: var(--color-bg1);
  box-shadow: 0 18px 64px #0008;
}
.product-overlay-close {
  position: fixed;
  top: var(--header-height-half);
  right: var(--header-height-half);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  color: var(--color-pr);
  background: #0000;
  cursor: pointer;
}
.product-overlay-close:hover {
  color: crimson;
}
.product-overlay-close:focus-visible {
  outline: none;
  color: crimson;
}
.product-overlay-close svg {
  width: 28px;
  height: 28px;
}
.product-overlay-image,
.product-overlay-info {
  min-width: 0;
}
.product-overlay-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(560px, 62vh);
}
.product-overlay:not(.is-gallery) .product-overlay-image {
  min-height: 0;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
}
.product-overlay-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 58vh;
  object-fit: contain;
}
.product-overlay:not(.is-gallery) .product-overlay-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: min(54vh, 520px);
  object-position: center center;
}
.product-overlay:not(.is-gallery) .product-overlay-info {
  width: 100%;
}
.product-overlay-info h2 {
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: break-word;
}
.product-overlay-price {
  margin-top: var(--header-height-half);
  color: var(--color-fg2);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
}
.product-overlay.is-gallery .product-overlay-shell {
  max-width: min(1280px, calc(100vw - var(--header-height)));
}
.product-overlay.is-gallery .product-overlay-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #0000;
  box-shadow: none;
  overflow: visible;
}
.product-overlay.is-gallery .product-overlay-image {
  min-height: 0;
  width: 100%;
}
.product-overlay.is-gallery .product-overlay-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-height));
  border-radius: var(--base-radius);
  box-shadow: 0 18px 64px #0008;
}
.product-overlay.is-gallery .product-overlay-info {
  display: none;
}

/* Not found */
.not-found-page {
  min-height: 46vh;
}
.not-found-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--header-height-half);
  min-height: 46vh;
  padding: var(--header-height);
}
.not-found-content h1 {
  font-size: 2rem;
  line-height: 1.15;
}
.not-found-content p {
  color: var(--color-fg2);
}
.not-found-link {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #0002;
  border-radius: 14px;
}
@media (max-width: calc(1280px + 36px)) {
  .product-detail-container {
    width: auto;
    margin: 0 var(--header-height-half);
  }
}

@media (max-width: 1024px) {
  html:has(.nav-burger[open]),
  body:has(.nav-burger[open]) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  header {
    display: none;
  }

  main {
    padding-top: calc(var(--header-height-half) + 72px);
  }

  nav {
    position: fixed;
    top: var(--header-height-half);
    left: var(--header-height-half);
    right: var(--header-height-half);
    width: auto;
    max-width: none;
    height: auto;
    min-height: 72px;
    padding: 14px var(--header-height-half);
    margin: 0;
    z-index: 20;
    backdrop-filter: none;
  }
  .site-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    margin: 0;
  }
  .nav-burger,
  .nav-mobile-spacer {
    display: block;
  }
  .nav-burger {
    grid-column: 1;
  }
  .nav-burger summary,
  .nav-logo,
  .nav-mobile-spacer {
    position: relative;
    z-index: 2;
  }
  .nav-burger-menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(var(--header-height-half) + 72px + var(--header-height-half)) var(--header-height-half) var(--header-height-half);
    border-radius: 0;
    box-shadow: none;
    background: var(--color-bg1);
    backdrop-filter: none;
  }
  .nav-mobile-categories {
    display: flex;
    flex-direction: column;
  }
  .nav-mobile-categories a {
    min-height: 48px;
    padding: 14px var(--header-height-half);
    border-radius: 0;
    border-bottom: 1px solid #0001;
    font-size: 1rem;
  }
  .nav-mobile-contacts {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding: var(--header-height-half) 0 0;
    border-top: 1px solid #0001;
    color: var(--color-fg2);
  }
  .nav-mobile-contact-row {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 var(--header-height-half);
  }
  .nav-mobile-address {
    line-height: 1.45;
  }
  .nav-mobile-phone,
  .nav-mobile-email {
    line-height: 1.4;
  }
  .nav-mobile-socials {
    gap: var(--header-height-half);
    padding-top: 2px;
  }
  .nav-mobile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--color-ac);
  }
  .nav-mobile-socials svg {
    width: 30px;
    height: 30px;
  }
  .nav-logo {
    grid-column: 2;
    justify-content: center;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
  .nav-mobile-spacer {
    grid-column: 3;
    width: 44px;
    height: 44px;
  }

  .slider-container {
    padding-bottom: 12px;
  }
  .slider-container .slider-button {
    display: none;
  }
  .slider-separator {
    min-width: 1px;
    width: 0;
  }

  .pipeline-grid {
    flex-direction: column;
    gap: 20px;
  }
  .pipeline-item {
    margin: 0;
  }
  .pipeline-separator {
    transform: rotate(90deg);
  }

  .contacts-grid {
    flex-direction: column;
    gap: var(--header-height);
  }
  .contacts-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .contacts-list li {
    margin: 0;
    padding: 0 var(--header-height-half);
  }
  .contacts-map {
    width: 100%;
  }
  #map-container iframe,
  #map-container > div,
  #map-container > a {
    max-width: 100%;
  }

  #gallery{
    margin-bottom: var(--header-height) !important;
  }
  .gallery-card {
    height: 300px;
  }

  .products-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .products-filter-panel {
    position: static;
  }
  .products-title {
    padding: var(--header-height-half) 0 0;
  }
  .products-controls-row {
    padding: 0;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .product-detail-container {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--header-height-half);
  }
  .product-detail-image {
    min-height: 420px;
  }
  .product-detail-info {
    padding: var(--header-height-half) 0;
  }

  .product-overlay-dialog {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--header-height-half);
  }
  .product-overlay-image {
    min-height: 360px;
  }
  .product-overlay:not(.is-gallery) .product-overlay-image,
  .product-overlay.is-gallery .product-overlay-image {
    min-height: 0;
  }
  .product-overlay-info {
    padding-right: 0;
  }
  .not-found-content {
    padding: var(--header-height-half);
  }
}

@media (max-width: 560px) {
  .hero-card {
    height: clamp(190px, 60vw, 255px);
  }
  .products-controls-row {
    gap: 10px;
  }
  .products-filter-button {
    flex-shrink: 0;
  }
  .products-sort-form {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }
  .contacts-list {
    gap: 20px 0;
  }
  .contacts-list p {
    align-items: flex-start;
  }
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-detail-image {
    min-height: 320px;
    padding: var(--header-height-half);
  }
  .product-detail-info h1 {
    font-size: 1.5rem;
  }
  .product-overlay-dialog {
    padding: var(--header-height-half);
  }
  .product-overlay-image {
    min-height: 260px;
  }
  .product-overlay:not(.is-gallery) .product-overlay-image,
  .product-overlay.is-gallery .product-overlay-image {
    min-height: 0;
  }
  .product-overlay-info h2 {
    font-size: 1.5rem;
  }
}
