.top {
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  width: 230px;
  min-width: 230px;
}

.logo img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.foot-brand > img {
  display: block;
  width: 340px;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.catalog-toggle .ui-icon {
  fill: currentColor;
  stroke: none;
  width: 16px;
  height: 16px;
}

.add,
.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
}

.add .ui-icon,
.buy .ui-icon {
  color: #fff;
}

.header-cart {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
}

.header-cart .ui-icon {
  width: 25px;
  height: 25px;
  color: #222;
}

dialog.modal {
  position: relative;
  width: min(480px, calc(100% - 30px));
  padding: 34px 36px 36px;
  overflow: hidden;
  border: 0;
  border-top: 6px solid #ad001f;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

dialog.modal::backdrop {
  background: rgba(18, 18, 18, .66);
  backdrop-filter: blur(3px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #f7f7f7;
  color: #444;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8e9ec;
  color: #99001b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal h2 {
  margin: 18px 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.modal > p {
  margin: 0 0 24px;
  color: #666;
  font-size: 16px;
}

.modal .lead-form.vertical {
  display: grid;
  gap: 12px;
}

.modal .lead-form input {
  width: 100%;
  height: 54px;
  border: 1px solid #d9d9d9;
  border-radius: 11px;
  background: #fafafa;
  padding: 0 16px;
  outline: none;
}

.modal .lead-form input:focus {
  border-color: #ad001f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(173, 0, 31, .1);
}

.modal .lead-form button {
  min-height: 54px;
  border-radius: 11px;
  background: #ad001f;
  color: #fff;
  font-weight: 800;
}

.modal-note {
  display: block;
  margin-top: 14px;
  color: #888;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .top {
    height: 66px;
    gap: 12px;
  }

  .logo {
    width: 160px;
    min-width: 160px;
  }

  .logo img {
    height: 46px;
  }

  dialog.modal {
    padding: 30px 22px 26px;
  }

  .modal h2 {
    font-size: 26px;
  }
}

/* Светлая коммерческая палитра: красный остаётся только в логотипе. */
:root {
  --green: #bd344a;
  --cyan: #dce9f1;
  --red: #bd344a;
  --ink: #35434c;
  --muted: #6f7b83;
  --line: #dfe8ee;
  --bg: #f3f7fa;
}

body {
  color: #35434c;
  background: #f3f7fa;
}

.site-header,
.catalog-menu,
.product-card,
.category-page aside,
.info-grid > div,
.info-grid > a,
.partner-box {
  background: #fff;
}

.site-header {
  box-shadow: 0 4px 20px rgba(68, 86, 96, .08);
}

.call,
.add,
.buy,
.contact-form button,
.checkout-form button,
.cart-summary a,
.modal .lead-form button {
  background: #bd344a;
  color: #fff;
}

.call:hover,
.add:hover,
.buy:hover,
.contact-form button:hover,
.checkout-form button:hover,
.cart-summary a:hover,
.modal .lead-form button:hover {
  background: #a9273d;
}

.catalog-toggle,
.hero-copy a,
.more {
  background: linear-gradient(100deg, #bd344a, #c64b5f);
  color: #fff;
  box-shadow: 0 7px 18px rgba(189, 52, 74, .18);
}

.navrow nav a:hover,
.titleline a,
.contact-phone,
.empty-page a,
.category-page aside a.active,
.category-page aside a:hover {
  color: #bd344a;
}

.hero::after {
  background: linear-gradient(90deg, rgba(53, 67, 76, .86) 0, rgba(89, 116, 132, .48) 44%, transparent 76%);
}

.hero-copy small {
  color: #eef9fc;
}

.discount {
  background: #e3edf4;
  color: #35434c;
  box-shadow: 0 4px 12px rgba(77, 101, 115, .12);
}

.advantages span {
  border: 2px solid rgba(189, 52, 74, .48);
  background: #fff;
  color: #bd344a;
  box-shadow: 0 7px 18px rgba(53, 67, 76, .1);
}

.category-head,
.steps li {
  background: #e3edf4;
}

.steps li {
  border-top-color: #bd344a;
}

.consult {
  background: #e3edf4;
  color: #35434c;
}

.consult h2 {
  color: #35434c;
}

.consult .lead-form input {
  border: 1px solid #cfdee7;
  background: #fff;
}

.consult .lead-form button {
  background: #bd344a;
  color: #fff;
}

footer {
  background: #ffffff;
  color: #596167;
}

.foot-grid b,
.foot-brand b {
  color: #35434c;
}

.foot-contacts {
  gap: 4px !important;
}

.foot-label {
  color: #8a949a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.foot-label:not(:first-child) {
  margin-top: 14px;
}

.foot-contact-value {
  margin: 0;
  color: #35434c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.foot-contact-secondary {
  color: #68777f;
  font-size: 12px;
  line-height: 1.45;
}

.foot-contacts a:hover {
  color: #bd344a;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #cfdee7;
  border-radius: 10px;
  background: #f6fafc;
  color: #35434c;
  font-size: 13px;
  font-weight: 800;
}

.footer-social b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #0077ff;
  color: #fff;
  font-size: 11px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.legal a,
.contact-form small a,
.modal-note a,
.privacy-policy a {
  color: #bd344a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details {
  display: grid;
  align-content: start;
  gap: 10px;
}

.contact-details p {
  margin: 0;
}

.contact-phone--secondary {
  color: #53616a;
  font-size: 19px;
}

.map-link {
  width: max-content;
  margin-top: 10px;
  color: #bd344a;
  font-weight: 800;
}

.contact-form small {
  color: #7b878e;
  font-size: 11px;
}

.privacy-policy {
  max-width: 920px;
  padding-bottom: 60px;
}

.privacy-policy h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.privacy-policy li {
  margin: 7px 0;
}

.privacy-note {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid #e4cad0;
  border-radius: 12px;
  background: #fff8f9;
}

.privacy-note p {
  margin: 6px 0 0;
}

.form-success {
  padding: 18px;
  border: 1px solid #cfe3da;
  border-radius: 12px;
  background: #f2faf6;
}

.form-success h3,
.form-success p {
  margin: 0;
}

.form-success p {
  margin-top: 5px;
  color: #63716a;
  font-size: 13px;
}

.legal {
  border-top-color: #d8d3ca;
  color: #777c80;
}

dialog.modal {
  border-top-color: #bd344a;
}

.modal-kicker {
  background: #e3edf4;
  color: #35434c;
}

.modal .lead-form input:focus {
  border-color: #bd344a;
  box-shadow: 0 0 0 3px rgba(189, 52, 74, .12);
}

.tabs {
  --green: #bd344a;
}

.tabs nav {
  border-bottom-color: #bd344a;
}

.tabs button.active {
  background: #bd344a;
}

/* Чуть более просторные каталоги на главной странице. */
.round-cats.container,
.home-catalog.container {
  width: min(1320px, calc(100% - 40px));
}

.site-header .top.container,
.site-header .navrow.container {
  width: min(1320px, calc(100% - 40px));
}

.round-cats {
  gap: 24px;
}

.round-cats a {
  font-size: 14px;
  line-height: 1.35;
}

.round-cats span {
  width: 104px;
  height: 104px;
  margin-bottom: 14px;
}

.home-catalog .product-grid {
  gap: 20px;
}

@media (max-width: 900px) {
  .round-cats.container,
  .home-catalog.container,
  .site-header .top.container,
  .site-header .navrow.container {
    width: min(100% - 28px, 1320px);
  }

  .round-cats {
    gap: 18px;
  }
}

/* Карусель hero: сохраняет исходные размеры и композицию блока. */
.hero-carousel {
  isolation: isolate;
}

.hero-carousel::after {
  display: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(53, 67, 76, .88) 0, rgba(76, 99, 112, .52) 44%, transparent 76%);
}

.hero-slide .hero-copy {
  z-index: 2;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 0 4px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #35434c;
  box-shadow: 0 6px 18px rgba(28, 39, 45, .16);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.hero-dots button.active {
  width: 28px;
  background: #fff;
}

@media (max-width: 620px) {
  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-dots {
    bottom: 14px;
  }
}

/* Мягкое взаимодействие с товарными карточками. */
.product-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card .pic {
  overflow: hidden;
}

.product-card .pic img {
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: #d1dee6;
  box-shadow: 0 16px 34px rgba(53, 67, 76, .13);
}

.product-card:hover .pic img,
.product-card:focus-within .pic img {
  transform: scale(1.025);
}

/* Временный демонстрационный калькулятор. */
.demo-calculator {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 46px;
  scroll-margin-top: 138px;
  margin: 12px 0 64px;
  padding: 42px;
  border: 1px solid #d6e2e9;
  border-radius: 22px;
  background: #e3edf4;
}

.demo-calculator__label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #bd344a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-calculator h2 {
  margin: 18px 0 12px;
  font-size: 34px;
  line-height: 1.08;
}

.demo-calculator__intro p {
  margin: 0 0 22px;
  color: #5f6d75;
  font-size: 16px;
}

.demo-calculator__intro ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.demo-calculator__intro li::before {
  content: "✓";
  margin-right: 9px;
  color: #bd344a;
}

.demo-calculator__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(53, 67, 76, .08);
}

.demo-calculator__form > label:not(.demo-check) {
  display: grid;
  gap: 7px;
  color: #52616a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-calculator select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #d9e2e7;
  border-radius: 9px;
  outline: none;
  background: #f7fafc;
  color: #35434c;
  text-transform: none;
}

.demo-calculator select:focus {
  border-color: #bd344a;
  box-shadow: 0 0 0 3px rgba(189, 52, 74, .1);
}

.demo-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #e0e7eb;
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
}

.demo-check input {
  accent-color: #bd344a;
}

.demo-check b {
  color: #6f7b83;
  font-size: 11px;
}

.demo-calculator__result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 20px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid #e0e7eb;
}

.demo-calculator__result small,
.demo-calculator__result span {
  color: #718089;
}

.demo-calculator__result strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #35434c;
  font-size: 27px;
}

.demo-calculator__result span {
  font-size: 10px;
}

.demo-calc-submit {
  grid-column: 1 / -1;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: #bd344a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* Мобильная панель действий. */
.mobile-actions {
  display: none;
}

/* Плавающая кнопка связи. */
.floating-chat {
  position: fixed;
  z-index: 46;
  right: 24px;
  bottom: 24px;
}

.floating-chat__toggle {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bd344a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(189, 52, 74, .34);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.floating-chat__toggle:hover {
  transform: translateY(-3px);
  background: #a9273d;
  box-shadow: 0 16px 34px rgba(189, 52, 74, .4);
}

.floating-chat__toggle svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-chat__panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 310px;
  padding: 25px;
  border: 1px solid #d8e3e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(36, 51, 60, .22);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity .2s ease, visibility .2s ease, translate .2s ease;
}

.floating-chat.open .floating-chat__panel {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.floating-chat__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e0e7eb;
  border-radius: 50%;
  background: #f7fafb;
  color: #65737b;
  font-size: 20px;
  cursor: pointer;
}

.floating-chat__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #65737b;
  font-size: 12px;
  font-weight: 700;
}

.floating-chat__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a85b;
  box-shadow: 0 0 0 4px rgba(53, 168, 91, .12);
}

.floating-chat__panel h2 {
  margin: 13px 0 8px;
  font-size: 25px;
  line-height: 1.1;
}

.floating-chat__panel p {
  margin: 0 0 18px;
  color: #68767e;
  font-size: 14px;
}

.floating-chat__request,
.floating-chat__panel > a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.floating-chat__request {
  border: 0;
  background: #bd344a;
  color: #fff;
  cursor: pointer;
}

.floating-chat__panel > a {
  margin-top: 8px;
  border: 1px solid #d8e3e9;
  background: #fff;
}

/* Галерея выполненных работ на странице компании. */
.works-showcase {
  margin-top: 72px;
  padding-top: 54px;
  border-top: 1px solid #dbe5eb;
}

.works-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}

.works-head span,
.articles-intro > span,
.article-page > header > span,
.promo-hero span {
  color: #bd344a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.works-head h2 {
  margin: 8px 0 0;
  font-size: 36px;
}

.works-head p {
  max-width: 440px;
  margin: 0;
  color: #6f7b83;
}

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

.work-shot {
  position: relative;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #dce7ed;
  cursor: zoom-in;
}

.work-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform .45s ease;
}

.work-shot span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(31, 43, 50, .82));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.work-shot:hover img {
  transform: scale(1.035);
}

dialog.work-lightbox {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #182127;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

dialog.work-lightbox::backdrop {
  background: rgba(22, 29, 34, .78);
  backdrop-filter: blur(4px);
}

.work-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.work-lightbox p {
  margin: 0;
  padding: 15px 20px 18px;
  font-size: 14px;
}

.work-lightbox button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(18, 24, 28, .72);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Полноценный раздел статей. */
.articles-hub,
.article-page,
.promotions-page {
  padding-bottom: 76px;
}

.articles-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.articles-intro h1,
.article-page > header h1,
.promo-hero h1 {
  margin: 10px 0 14px;
  color: #35434c;
}

.articles-intro p,
.article-page > header p {
  color: #65737b;
  font-size: 18px;
}

.articles-hub .article-grid article {
  overflow: hidden;
  border: 1px solid #dbe4e9;
  border-radius: 14px;
  background: #fff;
}

.articles-hub .article-grid img {
  height: 240px;
  object-fit: cover;
}

.articles-hub .article-grid article > div {
  padding: 24px;
}

.articles-hub .article-grid h2 {
  margin: 10px 0;
  font-size: 23px;
  line-height: 1.18;
}

.articles-hub .article-grid p {
  color: #6f7b83;
}

.articles-hub .article-grid a {
  color: #bd344a;
  font-weight: 800;
}

.article-page > header {
  max-width: 850px;
  margin-bottom: 34px;
}

.article-page > header h1 {
  font-size: 48px;
  line-height: 1.05;
}

.article-cover {
  display: block;
  width: 100%;
  height: min(500px, 42vw);
  min-height: 320px;
  border-radius: 18px;
  object-fit: cover;
}

.article-body {
  max-width: 820px;
  margin: 46px auto 0;
}

.article-body h2 {
  margin: 38px 0 12px;
  font-size: 28px;
}

.article-body p {
  color: #57666f;
  font-size: 17px;
  line-height: 1.75;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding: 28px;
  border-radius: 16px;
  background: #e3edf4;
}

.article-cta h2,
.article-cta p {
  margin: 0;
}

/* Отдельная страница акций. */
.promo-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  overflow: hidden;
  border-radius: 20px;
  background: #e3edf4;
}

.promo-hero > div {
  z-index: 1;
  align-self: center;
  padding: 52px;
}

.promo-hero h1 {
  font-size: 50px;
  line-height: 1;
}

.promo-hero p {
  max-width: 500px;
  color: #5c6a73;
  font-size: 18px;
}

.promo-hero a {
  display: inline-flex;
  margin-top: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #bd344a;
  color: #fff;
  font-weight: 800;
}

.promo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-note {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin: 20px 0 42px;
  padding: 18px 24px;
  border: 1px solid #d9e4ea;
  border-radius: 14px;
  background: #fff;
  color: #66747d;
  font-size: 14px;
}

.promo-note b {
  color: #bd344a;
  font-size: 27px;
}

/* Появление секций при прокрутке. Свойство translate не конфликтует с hover карточек. */
.reveal-item {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .55s ease var(--reveal-delay, 0ms), translate .55s ease var(--reveal-delay, 0ms);
}

.reveal-item.reveal-visible {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 900px) {
  .demo-calculator {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px;
  }

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

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

  .promo-hero img {
    max-height: 330px;
  }

  .promo-note {
    grid-template-columns: auto 1fr;
  }

  .promo-note span:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 68px;
  }

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

  .mobile-actions {
    position: fixed;
    z-index: 45;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(207, 222, 231, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(53, 67, 76, .2);
    backdrop-filter: blur(12px);
  }

  .mobile-actions a {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-actions__phone {
    border: 1px solid #d6e1e7;
    background: #fff;
  }

  .mobile-actions__calc {
    background: #bd344a;
    color: #fff;
  }

  .floating-chat {
    right: 16px;
    bottom: 88px;
  }

  .floating-chat__toggle {
    width: 52px;
    height: 52px;
  }

  .floating-chat__panel {
    bottom: 64px;
    width: min(310px, calc(100vw - 32px));
  }

  .demo-calculator {
    margin-bottom: 46px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .demo-calculator h2 {
    font-size: 28px;
  }

  .demo-calculator__form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .demo-calculator__result {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .demo-calculator__result strong {
    grid-row: auto;
    grid-column: auto;
  }

  .demo-calc-submit {
    grid-column: auto;
  }

  .works-head,
  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .work-shot,
  .work-shot img {
    min-height: 220px;
  }

  .article-page > header h1,
  .promo-hero h1 {
    font-size: 36px;
  }

  .article-cover {
    height: 280px;
    min-height: 0;
  }

  .promo-hero > div {
    padding: 30px 22px;
  }

  .promo-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .promo-note span:last-child {
    grid-column: auto;
  }
}

/* Shopify-style checkout */
.shopify-checkout {
  padding-top: 34px;
  padding-bottom: 90px;
}

.checkout-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.checkout-heading > span {
  color: #bd344a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.checkout-heading h1 {
  margin: 8px 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.checkout-heading p {
  margin: 0;
  color: #6f7b83;
  font-size: 16px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: 34px;
  align-items: start;
}

.checkout-details {
  min-width: 0;
}

.shopify-checkout .checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-block,
.order-summary {
  border: 1px solid #dbe4e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(63, 81, 91, .07);
}

.checkout-block {
  padding: 28px;
}

.checkout-block__title {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.checkout-block__title i {
  display: grid;
  flex: 0 0 31px;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e3edf4;
  color: #bd344a;
  font-style: normal;
  font-weight: 900;
}

.checkout-block__title h2 {
  margin: 0 0 3px;
  font-size: 21px;
}

.checkout-block__title p {
  margin: 0;
  color: #7c878e;
  font-size: 13px;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-fields label,
.checkout-address,
.checkout-comment {
  display: grid;
  gap: 7px;
  color: #53616a;
  font-size: 13px;
  font-weight: 700;
}

.checkout-fields small {
  color: #8a949a;
  font-weight: 400;
}

.field-wide {
  grid-column: 1 / -1;
}

.shopify-checkout .checkout-form input,
.shopify-checkout .checkout-form textarea {
  width: 100%;
  border: 1px solid #d7e0e5;
  border-radius: 10px;
  background: #f9fbfc;
  outline: none;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.shopify-checkout .checkout-form input {
  height: 50px;
  padding: 0 14px;
}

.shopify-checkout .checkout-form textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

.shopify-checkout .checkout-form input:focus,
.shopify-checkout .checkout-form textarea:focus {
  border-color: #bd344a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(189, 52, 74, .1);
}

.delivery-options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.delivery-options > label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #dbe4e9;
  border-radius: 11px;
  cursor: pointer;
}

.delivery-options > label:has(input:checked) {
  border-color: #bd344a;
  background: #fff8f9;
  box-shadow: 0 0 0 2px rgba(189, 52, 74, .08);
}

.shopify-checkout .delivery-options input {
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  accent-color: #bd344a;
}

.delivery-options span {
  display: grid;
  gap: 3px;
}

.delivery-options b {
  font-size: 14px;
}

.delivery-options small,
.delivery-options em {
  color: #7b878e;
  font-size: 12px;
}

.delivery-options em {
  font-style: normal;
}

.checkout-address {
  margin-top: 14px;
}

.checkout-submit {
  min-height: 56px !important;
  border-radius: 11px !important;
  background: #bd344a !important;
  font-size: 16px;
}

.checkout-submit:disabled {
  background: #b7c0c5 !important;
  cursor: not-allowed;
}

.checkout-consent {
  margin: -6px 0 0;
  color: #89949a;
  font-size: 11px;
  text-align: center;
}

.order-summary {
  position: sticky;
  top: 132px;
  padding: 28px;
}

.order-summary h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

#checkout-items {
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e1e8ec;
}

.checkout-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.checkout-item__image {
  position: relative;
  width: 68px;
  height: 68px;
  border: 1px solid #dbe4e9;
  border-radius: 10px;
  background: #f6f8f9;
}

.checkout-item__image img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.checkout-item__image i {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 99px;
  background: #35434c;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.checkout-item > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.checkout-item b {
  font-size: 13px;
  line-height: 1.25;
}

.checkout-item span {
  color: #7d888f;
  font-size: 11px;
}

.checkout-item > strong {
  font-size: 13px;
  white-space: nowrap;
}

.checkout-empty {
  padding: 20px;
  border-radius: 10px;
  background: #f6f9fa;
  text-align: center;
}

.checkout-empty p {
  margin: 0 0 8px;
}

.checkout-empty a,
.order-summary > a {
  color: #bd344a;
  font-weight: 800;
}

.order-totals {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #e1e8ec;
}

.order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #65737b;
  font-size: 13px;
}

.order-totals b {
  color: #35434c;
  font-size: 12px;
  text-align: right;
}

.order-total {
  padding-top: 12px;
  border-top: 1px solid #e1e8ec;
  color: #35434c !important;
  font-size: 17px !important;
}

.order-total strong {
  font-size: 25px;
}

.order-benefits {
  display: flex;
  gap: 11px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 11px;
  background: #eaf3f7;
}

.order-benefits > span {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #bd344a;
  font-weight: 900;
}

.order-benefits p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.order-benefits b {
  font-size: 12px;
}

.order-benefits small {
  color: #68777f;
  font-size: 10px;
  line-height: 1.4;
}

.order-summary > a {
  font-size: 13px;
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .shopify-checkout {
    padding-top: 20px;
  }

  .checkout-heading h1 {
    font-size: 32px;
  }

  .checkout-block,
  .order-summary {
    padding: 20px 16px;
    border-radius: 13px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .delivery-options > label {
    grid-template-columns: auto 1fr;
  }

  .delivery-options em {
    grid-column: 2;
  }

  .checkout-item {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .checkout-item__image {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card .pic img,
  .reveal-item {
    transition: none;
  }

  .reveal-item {
    opacity: 1;
    translate: none;
  }
}

/* Расширенная карточка товара с галереей и вариантами комплектации. */
.product-page {
  align-items: start;
}

.product-gallery,
.product-info {
  min-width: 0;
}

.product-gallery-main {
  display: block;
  border-radius: 16px;
  background: #f8fafb;
  object-fit: cover !important;
}

.thumbs {
  padding: 2px 1px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 0 0 88px;
  height: 68px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: #bd344a;
  box-shadow: 0 0 0 2px rgba(189, 52, 74, .1);
}

.price-note {
  margin: -13px 0 22px;
  color: #78858d;
  font-size: 12px;
}

.product-options {
  display: grid;
  gap: 18px;
}
.product-options.is-empty {
  display: none;
}

.option-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-group legend,
.option-selects label {
  margin-bottom: 8px;
  color: #53616a;
  font-size: 13px;
  font-weight: 800;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-values input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-values span {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid #d8e2e7;
  border-radius: 9px;
  background: #fff;
  color: #53616a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.option-values span small {
  display: block;
  margin-top: 2px;
  color: #859098;
  font-size: 10px;
  font-weight: 500;
}

.option-values input:checked + span small {
  color: #a9273d;
}

.option-values input:checked + span {
  border-color: #bd344a;
  background: #fff8f9;
  color: #a9273d;
  box-shadow: 0 0 0 2px rgba(189, 52, 74, .08);
}

.option-values input:focus-visible + span {
  outline: 3px solid rgba(189, 52, 74, .18);
  outline-offset: 2px;
}

.option-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-selects label {
  display: grid;
  gap: 7px;
}

.option-selects select {
  width: 100%;
  height: 46px;
  padding: 0 11px;
  border: 1px solid #d8e2e7;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #35434c;
}

.payment-mini {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: 11px;
  background: #eaf3f7;
}

.payment-mini b {
  font-size: 13px;
}

.payment-mini span {
  color: #68777f;
  font-size: 12px;
}

.product-tabs nav {
  gap: 3px;
}

.product-tab-panel {
  display: none;
  max-width: 980px;
  padding: 12px 0 10px;
}

.product-tab-panel.active {
  display: block;
}

.product-tab-panel h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

.product-description {
  color: #53616a;
  font-size: 16px;
  line-height: 1.72;
}

.product-description h3 {
  margin: 32px 0 10px;
  color: #35434c;
  font-size: 22px;
}

.product-description blockquote {
  margin: 22px 0;
  padding: 17px 20px;
  border-left: 4px solid #bd344a;
  border-radius: 0 10px 10px 0;
  background: #eaf3f7;
  color: #43525b;
}

.product-description blockquote p {
  margin: 0;
}

.product-specifications table {
  overflow: hidden;
  border: 1px solid #dce5ea;
  border-radius: 12px;
  background: #fff;
}

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

.delivery-payment-grid > div {
  padding: 20px;
  border: 1px solid #dce5ea;
  border-radius: 12px;
  background: #fff;
}

.delivery-payment-grid h3,
.delivery-payment-grid p {
  margin: 0;
}

.delivery-payment-grid p {
  margin-top: 8px;
  color: #68777f;
  font-size: 14px;
}

.product-source {
  margin: 5px 0 0;
  color: #879198;
  font-size: 11px;
}

.product-source a {
  color: #bd344a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .product-gallery-main {
    height: 330px !important;
  }

  .product-info h1 {
    overflow-wrap: anywhere;
  }

  .option-selects,
  .delivery-payment-grid {
    grid-template-columns: 1fr;
  }

  .product-tabs {
    overflow: visible;
  }

  .product-tabs nav {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .product-tabs button {
    white-space: nowrap;
  }

  .product-tab-panel h2 {
    font-size: 25px;
  }
}



