.qunelle-system-modern,
.qunelle-catalog-modern {
  font-family: "TildaSans", Arial, sans-serif;
  color: #111916;
  background: #f7faf8;
  box-sizing: border-box;
}

.qunelle-system-modern *,
.qunelle-catalog-modern * {
  box-sizing: border-box;
}

.qunelle-system-modern {
  padding: 34px 20px 44px;
}

.qsys-shell,
.qcat-shell {
  width: min(1208px, 100%);
  margin: 0 auto;
}

.qsys-panel,
.qcat-panel {
  border: 1px solid rgba(18, 62, 34, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 47, 31, .09);
  overflow: hidden;
}

.qsys-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 42px 42px 20px;
}

.qsys-title,
.qcat-title {
  margin: 0;
  color: #080d0b;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.qsys-lead,
.qcat-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(17, 25, 22, .76);
  font-size: 20px;
  line-height: 1.45;
}

.qsys-visual {
  position: relative;
  min-height: 354px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.qsys-window {
  max-width: min(460px, 68%);
  max-height: 354px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(19, 41, 28, .12));
}

.qsys-parts-row {
  position: absolute;
  inset: 0 0 auto auto;
  width: 72%;
  height: 100%;
  pointer-events: none;
}

.qsys-part-float {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qsys-part-float img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(21, 42, 29, .10));
}

.qsys-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #48b23f, #27901f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(41, 143, 32, .26);
}

.qsys-part-float:nth-child(1) { left: 0; top: 30px; }
.qsys-part-float:nth-child(2) { left: 23%; top: 4px; }
.qsys-part-float:nth-child(3) { left: 44%; top: 56px; }
.qsys-part-float:nth-child(4) { left: 64%; top: 14px; }
.qsys-part-float:nth-child(5) { right: 0; top: 84px; }

.qsys-part-float::after {
  content: "";
  width: 2px;
  height: 34px;
  order: -1;
  background: linear-gradient(#2b9e24 45%, transparent 45%) 0 0 / 2px 8px repeat-y;
}

.qsys-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 30px 26px;
}

.qsys-card {
  min-height: 252px;
  padding: 17px;
  border: 1px solid rgba(17, 25, 22, .08);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfcfb);
  box-shadow: 0 10px 32px rgba(18, 62, 34, .06);
}

.qsys-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qsys-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.qsys-card img {
  display: block;
  width: 122px;
  height: 84px;
  margin: 18px auto 14px;
  object-fit: contain;
}

.qsys-card p {
  margin: 0;
  color: rgba(17, 25, 22, .74);
  font-size: 15px;
  line-height: 1.34;
}

.qsys-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 30px 30px;
}

.qsys-benefit,
.qsys-cta,
.qcat-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(18, 62, 34, .07);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f5fbf3);
}

.qsys-benefit-icon,
.qcat-cta-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eaf8e8;
  color: #2c9c25;
}

.qsys-benefit-icon svg,
.qcat-cta-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qsys-benefit strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.18;
}

.qsys-benefit span {
  display: block;
  color: rgba(17, 25, 22, .68);
  font-size: 14px;
  line-height: 1.35;
}

.qsys-cta {
  justify-content: space-between;
  margin: 0 30px 30px;
  min-height: 88px;
}

.qsys-cta h3,
.qcat-cta h3 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.15;
}

.qsys-cta p,
.qcat-cta p {
  margin: 0;
  color: rgba(17, 25, 22, .7);
  font-size: 16px;
  line-height: 1.35;
}

.qsys-btn,
.qcat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #35ae2b, #238d1e);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(34, 145, 29, .2);
}

.qunelle-catalog-modern {
  padding: 34px 20px 54px;
}

.qcat-panel {
  padding: 28px;
}

.qcat-hero {
  position: relative;
  min-height: 226px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 34px 28px;
  border: 1px solid rgba(18, 62, 34, .07);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 56%, rgba(73, 174, 62, .16), transparent 28%),
    linear-gradient(90deg, #fff 0%, #fbfdfb 52%, #eef7ed 100%);
}

.qcat-hero-art {
  position: relative;
  height: 190px;
}

.qcat-hero-art::before {
  content: "";
  position: absolute;
  inset: 34px 28px 0 auto;
  width: 290px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 97, 51, .08), rgba(28, 97, 51, 0));
}

.qcat-hero-art img {
  position: absolute;
  width: 166px;
  height: 166px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(15, 34, 22, .16));
}

.qcat-hero-art img:nth-child(1) { left: 18px; bottom: 8px; transform: rotate(-4deg); z-index: 5; }
.qcat-hero-art img:nth-child(2) { left: 120px; bottom: 20px; transform: rotate(2deg); z-index: 4; }
.qcat-hero-art img:nth-child(3) { left: 222px; bottom: 2px; transform: rotate(-1deg); z-index: 3; }
.qcat-hero-art img:nth-child(4) { right: 6px; bottom: 30px; transform: rotate(4deg); z-index: 2; }


.qunelle-home-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.qunelle-home-catalog__card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 150px;
  border: 1px solid rgba(17, 25, 22, .08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 62, 34, .06);
}

.qunelle-home-catalog__thumb {
  display: block;
  min-height: 150px;
  background: #f4f6f2;
}

.qunelle-home-catalog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qunelle-home-catalog__body {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.qunelle-home-catalog__title {
  margin: 0;
  color: #111916;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 800;
}

.qunelle-home-catalog__price {
  margin-top: 8px;
  color: #228a1e;
}

.qunelle-home-catalog__price-label {
  display: none;
}

.qunelle-home-catalog__price-value {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.qunelle-home-catalog__price-value::before {
  content: "от ";
}

.qunelle-home-catalog__meta {
  margin-top: 8px;
  color: rgba(17, 25, 22, .68);
  font-size: 14px;
  line-height: 1.35;
}

.qunelle-home-catalog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.qunelle-home-catalog__btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(17, 25, 22, .12);
  border-radius: 10px;
  background: #fff;
  color: #111916;
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.qunelle-home-catalog__btn--secondary {
  border-color: rgba(38, 153, 31, .28);
  background: #f6fbf4;
  color: #218b1d;
}

.qunelle-home-catalog__btn:hover,
.qunelle-home-catalog__btn--secondary:hover {
  border-color: #2b9e24;
  background: #2b9e24;
  color: #fff;
}

.qcat-cta {
  justify-content: space-between;
  margin-top: 20px;
  background: linear-gradient(90deg, #eef8eb, #fff);
}

.qunelle-quick-order[hidden] {
  display: none;
}

.qunelle-quick-order {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qunelle-quick-order__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 12, .46);
}

.qunelle-quick-order__dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.qunelle-quick-order__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  color: #000;
  cursor: pointer;
}

.qunelle-quick-order__dialog h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #000;
}

.qunelle-quick-order__dialog p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(0, 0, 0, .68);
}

.qunelle-quick-order__product {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f6f7f3;
  font-size: 14px;
  color: #000;
}

.qunelle-quick-order__form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.qunelle-quick-order__form input,
.qunelle-quick-order__form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 16px;
  padding: 0 14px;
  font: inherit;
}

.qunelle-quick-order__form textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.qunelle-quick-order__submit {
  width: 100%;
}

.qunelle-quick-order__note {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0, 0, 0, .58);
}

body.qunelle-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .qsys-hero {
    grid-template-columns: 1fr;
  }

  .qsys-visual {
    min-height: 300px;
  }

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

  .qsys-benefits,
  .qunelle-home-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qcat-hero {
    grid-template-columns: 1fr;
  }

  .qcat-hero-art {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .qunelle-system-modern,
  .qunelle-catalog-modern {
    padding: 22px 14px 34px;
  }

  .qsys-panel,
  .qcat-panel {
    border-radius: 22px;
  }

  .qsys-hero,
  .qcat-hero {
    padding: 24px 18px 18px;
  }

  .qsys-title,
  .qcat-title {
    font-size: 30px;
    line-height: 1.05;
  }

  .qsys-lead,
  .qcat-lead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.42;
  }

  .qsys-visual {
    min-height: 0;
    display: block;
  }

  .qsys-window {
    display: block;
    max-width: 78%;
    max-height: 260px;
    margin: 8px auto 0;
  }

  .qsys-parts-row {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
  }

  .qsys-part-float {
    position: static;
  }

  .qsys-part-float::after {
    display: none;
  }

  .qsys-part-float img {
    width: 46px;
    height: 46px;
  }

  .qsys-num {
    width: 23px;
    height: 23px;
    font-size: 13px;
  }

  .qsys-grid,
  .qsys-benefits,
  .qunelle-home-catalog__grid {
    grid-template-columns: 1fr;
  }

  .qsys-grid {
    padding: 8px 14px 18px;
    gap: 10px;
  }

  .qsys-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px 14px;
    min-height: 0;
    padding: 13px;
    align-items: center;
  }

  .qsys-card-head {
    grid-column: 2;
    align-self: end;
  }

  .qsys-card img {
    grid-row: 1 / span 2;
    width: 78px;
    height: 62px;
    margin: 0;
  }

  .qsys-card p {
    grid-column: 2;
    font-size: 13px;
  }

  .qsys-benefits {
    padding: 0 14px 18px;
    gap: 10px;
  }

  .qsys-benefit {
    min-height: 78px;
    padding: 14px;
  }

  .qsys-cta,
  .qcat-cta {
    display: grid;
    margin: 0 14px 18px;
    min-height: 0;
    padding: 16px;
  }

  .qcat-panel {
    padding: 14px;
  }

  .qcat-hero {
    min-height: 0;
    gap: 12px;
  }

  .qcat-hero-art {
    height: 120px;
  }

  .qcat-hero-art img {
    width: 105px;
    height: 105px;
  }

  .qcat-hero-art img:nth-child(1) { left: 4px; bottom: 2px; }
  .qcat-hero-art img:nth-child(2) { left: 70px; bottom: 10px; }
  .qcat-hero-art img:nth-child(3) { left: 136px; bottom: 0; }
  .qcat-hero-art img:nth-child(4) { right: 0; bottom: 14px; }


  .qunelle-home-catalog__card {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 116px;
    border-radius: 14px;
  }

  .qunelle-home-catalog__thumb {
    min-height: 116px;
  }

  .qunelle-home-catalog__body {
    padding: 13px 12px 12px;
  }

  .qunelle-home-catalog__title {
    font-size: 15px;
  }

  .qunelle-home-catalog__price {
    margin-top: 5px;
  }

  .qunelle-home-catalog__price-value {
    font-size: 15px;
  }

  .qunelle-home-catalog__meta {
    margin-top: 5px;
    font-size: 12px;
  }

  .qunelle-home-catalog__actions {
    display: flex;
    gap: 8px;
    padding-top: 10px;
  }

  .qunelle-home-catalog__btn {
    min-height: 34px;
    flex: 1 1 auto;
    padding: 0 8px;
    font-size: 12px;
  }

  .qcat-cta {
    margin: 16px 0 0;
  }

  .qsys-btn,
  .qcat-btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 390px) {
  .qunelle-home-catalog__card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .qunelle-home-catalog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
