@font-face {
  font-family: "Droid";
  src: url("/fonts/droid.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #2b2b2b;
  background: #f7f8fa;
  overflow-x: clip;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 14px;
  left: 20px;
  right: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  z-index: 10;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header--hidden {
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
}

.header__pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 20px 0 14px;
  background: rgba(28, 168, 224, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.3s;
}

.header--over-hero .header__pill {
  background: rgba(60, 60, 60, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo__img {
  height: 38px;
  width: auto;
  margin-left: 12px;
}

.logo__text {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
}

.nav {
  position: absolute;
  top: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 20px 0 20px;
  gap: 4px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 400;
  display: inline-block;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.22);
}

.header--over-hero .nav a:hover,
.header--over-hero .nav a.active {
  color: #1ca8e0;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  height: min(calc(100vh - 56px), 56.25vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #1a1a1a;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__video--mobile { display: none; }

@media (max-width: 768px) {
  .hero__video--desktop { display: none; }
  .hero__video--mobile  { display: block; }
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.0) 100%);
}

/* Липкая панель связи — только на телефонах */
.mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  }

  .mobile-bar__btn {
    flex: 1 1 0;
    padding: 13px 10px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #fff;
  }

  .mobile-bar__btn--call { background: #1ca8e0; }
  .mobile-bar__btn--wa { background: #25d366; }

  /* панель не должна закрывать низ страницы и плавающие кнопки */
  body { padding-bottom: 68px; }
  .floating-buttons { bottom: 80px; }
}

.floating-buttons {
  position: fixed;
  right: 6px;
  top: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s, transform 0.3s;
}

.floating-buttons.is-hidden,
.floating-buttons.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(90px);
}

/* Крестик держим приглушённым: он нужен редко, а кнопки связи — часто */
.floating-dismiss {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.4);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}

.floating-buttons:hover .floating-dismiss,
.floating-dismiss:focus-visible {
  opacity: 1;
}

.floating-dismiss:hover {
  background: #222;
}

/* Убранные кнопки можно вернуть — иначе случайное нажатие отнимает связь */
.floating-restore {
  position: fixed;
  right: 6px;
  z-index: 9;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1ca8e0;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 168, 224, 0.35);
  transition: transform 0.2s;
}

.floating-restore.is-on {
  display: flex;
}

.floating-restore:hover {
  transform: scale(1.08);
}

.floating-restore svg {
  width: 20px;
  height: 20px;
}

.floating-cta {
  width: 84px;
  height: 84px;
  background: #1ca8e0;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(28, 168, 224, 0.45);
  transition: background 0.2s;
  flex-shrink: 0;
}

.floating-cta::before,
.floating-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #1ca8e0;
  animation: cta-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.floating-cta::after {
  animation-delay: 0.8s;
}

@keyframes cta-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2);   opacity: 0; }
}

.floating-cta__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  animation: phone-ring 3s ease-in-out infinite;
}

@keyframes phone-ring {
  0%,  55%, 100% { transform: rotate(0deg); }
  60%            { transform: rotate(-18deg); }
  65%            { transform: rotate(18deg); }
  70%            { transform: rotate(-18deg); }
  75%            { transform: rotate(18deg); }
  80%            { transform: rotate(0deg); }
}

.floating-cta:hover {
  background: #0e8bbd;
}


.marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #1ca8e0;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: inherit;
  transition: background 0.2s;
}

.marquee:hover {
  background: #0e8bbd;
}

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 55s linear infinite;
}

.marquee__item {
  flex-shrink: 0;
  padding: 0 80px;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.btn {
  display: inline-block;
  background: #fff;
  color: #1e3a8a;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Sections (stacked "magazine" panels) */
.section {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.section .container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px 30px;
  will-change: transform, filter, clip-path;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.section .container > * {
  max-width: 1500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222222;
}

#about { z-index: 1; background: #f7f8fa; }
#catalog { z-index: 2; background: #f7f8fa; }
#process { z-index: 3; background: #fff; }
#gallery { z-index: 4; background: transparent; }
#konstruktor { z-index: 6; background: #f7f8fa; }
/* Страница /konstruktor — та же главная, открытая на конструкторе (файл собирается из
   index.html, gen-konstruktor-page.mjs): порядок разделов и места в колоде у неё те же. */
#cta-block { z-index: 7; background: #222222; position: relative; }

/* Форма открывается вместо квиза и раньше закрывалась только перезагрузкой */
.cta-block__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-block__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
#contacts { z-index: 8; background: #222222; }

#konstruktor .container {
  background: #f7f8fa;
  -webkit-mask-image: none;
  mask-image: none;
}

#konstruktor .section-hd h2 {
  font-size: 6rem; /* на 25% меньше стандартных 8rem */
}

#konstruktor .section-hd__num {
  font-size: 4.5rem;
}

#about .container {
  background: #f7f8fa;
}

#about .container > * {
  max-width: 1500px;
}

#process .container {
  background: #fff;
}

#catalog .container {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 35%, rgba(255, 255, 255, 0) 100%);
  padding-top: 120px;
  padding-bottom: 120px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

#catalog .container > * {
  max-width: 1500px;
}

#gallery .container {
  align-items: stretch;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
  background: #fff;
}

#gallery .gallery__carousel {
  flex: 1;
  max-width: none;
}

#cta-block .container {
  background: #222222;
  -webkit-mask-image: none;
  mask-image: none;
}

#contacts .container {
  background: #222222;
  -webkit-mask-image: none;
  mask-image: none;
  overflow-y: auto;
}

#about h2 {
  font-size: 8rem;
  color: #222222;
}

/* Section heading with number */
.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #222222;
  padding-bottom: 10px;
  margin-bottom: 28px;
}

.section-hd h2 {
  font-family: "Droid", "Segoe UI", Arial, sans-serif;
  font-size: 8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  text-align: left;
  color: #222222;
}

.section-hd__num {
  font-family: "Droid", "Segoe UI", Arial, sans-serif;
  font-size: 8rem;
  font-weight: 400;
  color: #1ca8e0;
  line-height: 1;
  opacity: 0.7;
}

/* About */
.about__layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
  padding: 28px 0;
  min-height: 38vh;
}

.about__left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}

.about__right {
  flex: 1 1 50%;
  overflow: hidden;
  border-radius: 10px;
  min-height: 280px;
}

.about p {
  margin-bottom: 18px;
  color: #555;
  font-size: 1.2rem;
  line-height: 1.7;
}

.about__divider {
  border: none;
  border-top: 2px solid #222222;
  margin: 0;
}

.about__features {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
}

.feature {
  flex: 1;
  padding: 48px 48px;
  border-left: 2px solid #222222;
}

.feature:first-child {
  border-left: none;
  padding-left: 0;
}

.feature h3 {
  font-family: "Droid", "Segoe UI", Arial, sans-serif;
  font-size: 6rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #1ca8e0;
  line-height: 1;
}

.feature p {
  font-size: 1.25rem;
  color: #777;
  margin-bottom: 0;
  margin-top: 10px;
}

/* About auto-scroll carousel */
.about__carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.about__carousel-track {
  display: flex;
  gap: 10px;
  height: 100%;
  animation: about-scroll 28s linear infinite;
}

.about__carousel-track img {
  height: 100%;
  width: 320px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes about-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-7 * (200px + 10px))); }
}

/* Catalog */
#catalog .section-hd {
  border-bottom-color: #222222;
}

.catalog__rows {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  flex: 1;
  max-height: calc(100vh - 560px);
  min-height: 0;
}

.catalog__row {
  display: flex;
  gap: 10px;
  min-height: 0;
}

.catalog-card {
  flex: 1;
  border-radius: 12px;
  background: #ebebeb;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: row;
  min-width: 0;
  min-height: 0;
}

.catalog-card.is-active {
  flex: 3;
  background: #1ca8e0;
}

.catalog-card__content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.catalog-card h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #222222;
  line-height: 1.3;
  transition: color 0.3s, font-size 0.3s;
}

.catalog-card.is-active h3 {
  font-size: 2.2rem;
  color: #fff;
}

.catalog-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.4;
  opacity: 1;
  max-height: 80px;
  overflow: hidden;
  margin-top: 6px;
  transition: color 0.3s;
}

.catalog-card.is-active p {
  color: #e8f7fd;
}

.catalog-card__price {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1ca8e0;
  margin-top: auto;
  transition: color 0.3s, font-size 0.3s;
}

.catalog-card.is-active .catalog-card__price {
  color: #fff;
  font-size: 1.3rem;
}

.catalog-card__img {
  width: 0;
  align-self: stretch;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0 10px 10px 0;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.catalog-card.is-active .catalog-card__img {
  width: 55%;
}

/* Process */
.process__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-item__name {
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #222222;
  letter-spacing: 0.5px;
  border: 2px solid #222222;
  border-radius: 999px;
  padding: 10px 28px;
}

.process-item__desc {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 4px;
}

/* Gallery */
.gallery__carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery__carousel:active {
  cursor: grabbing;
}

.gallery__carousel::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Кадр, где мебель стоит в нижней части снимка (комод под телевизором): в широком
   окне карусель режет верх и низ, без сдвига у комода пропадали ножки. */
.gallery-item--low {
  object-position: center 68%;
}

.gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.gallery__dot {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s, background-color 0.2s;
}

.gallery__dot.is-active {
  width: 40px;
  background: #1ca8e0;
}

/* CTA block (dark) */
#cta-block .section-hd {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

#cta-block .section-hd h2 {
  color: #fff;
}

.cta-block__content {
  max-width: 600px;
}

#cta-block .cta-block__content > p {
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

#cta-block .cta-block__content > p strong {
  color: #fff;
}

#cta-block .callback-form {
  text-align: left;
  margin-top: 24px;
}

#cta-block .form-group label {
  color: rgba(255, 255, 255, 0.7);
}

#cta-block .form-group input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

#cta-block .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#cta-block .callback-form .btn {
  background: #fff;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#cta-block .callback-form .btn:hover {
  background: #e8f7fd;
  color: #222222;
}

/* Contacts (dark) */
.contacts__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 8px;
}

.contacts__logo {
  height: 44px;
  width: auto;
}

.contacts__cols {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.contact-item:hover,
.contact-item.is-open {
  border-color: #1ca8e0;
}

.contact-item__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 24px 20px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #fff;
}

.contact-item__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.contact-item__phone {
  margin-left: auto;
  color: #1ca8e0;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-item__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  color: #25D366;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contact-item__wa:hover {
  transform: scale(1.15);
}

.contact-item__wa svg {
  width: 22px;
  height: 22px;
}

.floating-wa {
  width: 84px;
  height: 84px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: background 0.2s;
  flex-shrink: 0;
}

.floating-wa:hover {
  background: #1fba59;
}

.floating-wa svg {
  width: 36px;
  height: 36px;
}

.contact-item__arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #1ca8e0;
  border-bottom: 2px solid #1ca8e0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.contact-item.is-open .contact-item__arrow {
  transform: rotate(-135deg);
}

.contact-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.contact-item__inner {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-item__details {
  flex: 1 1 220px;
  color: rgba(255, 255, 255, 0.65);
}

.contact-item__details p {
  margin-bottom: 8px;
}

.contact-item__details strong {
  color: #fff;
}

.contact-item__details a {
  color: #1ca8e0;
  text-decoration: none;
}

.contact-item__map {
  flex: 1 1 280px;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #2d3f56;
}

.contact-item__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* Feedback modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.modal__form-box {
  background: #fff;
  text-align: center;
  border: 2px solid #222222;
  border-radius: 10px;
  padding: 36px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #222222;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #222222;
}

.modal__form-box .form-group label {
  color: #222222;
}

.modal p {
  text-align: center;
  margin-bottom: 24px;
}

.modal__form-box p {
  color: #222222;
}

.callback-form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-group--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #333;
}

.form-group__error {
  display: none;
  font-size: 0.82rem;
  font-weight: 400;
  color: #dc2626;
  margin-bottom: 4px;
}

.form-group--error .form-group__error {
  display: block;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #1ca8e0;
}

.form-group--error input,
#cta-block .form-group--error input {
  border-color: #dc2626 !important;
  border-width: 2px;
}

.consent-label--error {
  color: #dc2626;
}

.consent-label--error input[type="checkbox"] {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
  border-radius: 2px;
}

.consent-text {
  display: block;
}

.consent-label--error .consent-error {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 2px;
}

.callback-form .btn {
  width: 100%;
  background: #1ca8e0;
  color: #fff;
}

.callback-form .btn:hover {
  background: #0e8bbd;
}

.form-message {
  margin-top: 14px;
  font-weight: 600;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

/* Footer */
.footer {
  background: #222222;
  color: #cbd5e1;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer a {
  color: #7dd3f0;
  text-decoration: none;
}

.modal--privacy {
  max-width: 640px;
}

.modal__privacy-box {
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__privacy-box h2 {
  text-align: center;
  margin-bottom: 4px;
}

.modal__privacy-box h3 {
  font-size: 1rem;
  margin: 20px 0 4px;
  color: #222;
}

.modal__privacy-box p {
  text-align: left;
  color: #444;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.modal__privacy-box a {
  color: #1ca8e0;
}

.privacy-updated {
  color: #888 !important;
  font-size: 0.82rem !important;
  margin-bottom: 16px !important;
}

.footer a:hover {
  text-decoration: underline;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 4px;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #1ca8e0;
  cursor: pointer;
}

.consent-label a {
  color: #1ca8e0;
  text-decoration: underline;
}


/* Mobile layout */
.nav-toggle {
  display: none;
}

/* Hamburger nav menu */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 80%;
    max-width: 320px;
    margin: 0;
    padding: 90px 30px 30px;
    background: rgba(40, 40, 40, 0.97);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 20;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    padding: 10px 14px;
  }

  .nav a:hover,
  .nav a.active {
    color: #1ca8e0;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .header {
    top: 8px;
    left: 10px;
    right: 10px;
  }

  .header__pill {
    height: 56px;
    padding: 0 14px 0 10px;
  }

  .logo__img {
    height: 36px;
  }

  .section {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .section .container {
    position: relative;
    inset: auto;
    height: auto;
    padding: 90px 16px 50px;
    overflow-y: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .section-hd h2 {
    font-size: 2rem;
  }

  .section-hd__num {
    font-size: 3rem;
  }

  .about__layout {
    flex-direction: column;
    height: auto;
    gap: 24px;
  }

  .about__right {
    height: 220px;
    border-radius: 10px;
  }

  .about__features {
    gap: 0;
  }

  .feature {
    padding: 20px 12px;
  }

  .feature:first-child {
    padding-left: 0;
  }

  .feature h3 {
    font-size: 2rem;
  }

  .feature p {
    font-size: 1rem;
  }

  #catalog .container {
    -webkit-mask-image: none;
    mask-image: none;
    background: #f7f8fa;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .catalog__rows {
    gap: 8px;
    max-height: none;
    flex: none;
  }

  .catalog__row {
    flex-direction: column;
    gap: 8px;
    flex: none;
  }

  .catalog-card {
    min-height: 90px;
  }

  .catalog-card.is-active {
    flex: 2;
  }

  .catalog-card.is-active .catalog-card__img {
    width: 38%;
  }

  .catalog-card h3 {
    font-size: 1rem;
  }

  .catalog-card.is-active h3 {
    font-size: 1.3rem;
  }

  .catalog-card p {
    font-size: 0.85rem;
  }

  .catalog-card__price {
    font-size: 0.9rem;
  }

  .catalog-card.is-active .catalog-card__price {
    font-size: 1rem;
  }

  #gallery {
    min-height: auto;
  }

  #gallery .container {
    min-height: auto;
    height: 66vh;
    padding: 0;
    margin-top: 90px;
    margin-bottom: 30px;
  }

  #contacts .container {
    overflow-y: visible;
  }

  .marquee__item {
    padding: 0 30px;
    font-size: 1rem;
  }

  .floating-buttons {
    right: 16px;
    top: auto;
    /* bottom не трогаем: выше в этом же медиазапросе стоит 80px, чтобы кнопки
       не садились на .mobile-bar. Указанные здесь 20px перебивали его и роняли
       кнопки прямо на панель «Позвонить / WhatsApp». */
  }

  .floating-restore {
    right: 16px;
  }

  /* На тачскрине наведения нет — крестик должен быть виден сразу */
  .floating-dismiss {
    opacity: 0.8;
  }

  .floating-cta {
    width: 54px;
    height: 54px;
  }

  .floating-wa {
    width: 54px;
    height: 54px;
  }

  .floating-wa svg {
    width: 24px;
    height: 24px;
  }

  .floating-cta__icon {
    width: 22px;
    height: 22px;
  }

  #cta-block .cta-block__content {
    max-width: none;
  }

  .hero {
    height: 70vh;
    aspect-ratio: unset;
  }
}

/* Quiz */
.modal--quiz {
  max-width: 640px;
}

.quiz__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.quiz__counter {
  font-size: 0.85rem;
  color: #777;
  white-space: nowrap;
}

.quiz__progress {
  flex: 1;
  height: 6px;
  background: #ebebeb;
  border-radius: 999px;
  overflow: hidden;
}

.quiz__progress-bar {
  height: 100%;
  width: 0;
  background: #1ca8e0;
  border-radius: 999px;
  transition: width 0.3s;
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: block;
}

.quiz__title {
  font-size: 1.35rem;
  color: #222222;
  margin-bottom: 18px;
  text-align: left;
}

.quiz__options {
  display: grid;
  gap: 12px;
}

.quiz__options--cards3 {
  grid-template-columns: repeat(3, 1fr);
}

.quiz__options--cards4 {
  grid-template-columns: repeat(2, 1fr);
}

.quiz__options--list {
  grid-template-columns: repeat(2, 1fr);
}

.quiz-card {
  background: #ebebeb;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  font-family: inherit;
}

.quiz-card:hover {
  border-color: #1ca8e0;
  transform: translateY(-2px);
}

.quiz-card.is-selected {
  border-color: #1ca8e0;
  background: #e8f7fd;
}

.quiz-card__img {
  display: block;
  width: 100%;
  padding: 10px 10px 0;
}

.quiz-card__img svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.quiz-card__label {
  padding: 10px 12px 12px;
  font-weight: 600;
  color: #222222;
  font-size: 0.92rem;
  line-height: 1.25;
}

.quiz-option {
  display: block;
  background: #ebebeb;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #222222;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover {
  border-color: #1ca8e0;
}

.quiz-option.is-selected {
  border-color: #1ca8e0;
  background: #e8f7fd;
}

.quiz__nav {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz__back,
/* короткий путь к заявке: раньше это была серая ссылка, и её не замечали */
.quiz__skip {
  background: #eaf7fd;
  border: 1px solid #bfe6f7;
  border-radius: 10px;
  color: #1584b0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px;
  transition: background 0.2s, color 0.2s;
}

.quiz__back:hover,
.quiz__skip:hover {
  color: #1ca8e0;
}

.quiz__back[disabled] {
  visibility: hidden;
}

@media (max-width: 640px) {
  .quiz__options--cards3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .quiz__options--cards4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quiz__options--list {
    grid-template-columns: 1fr;
  }

  .quiz-card__label {
    font-size: 0.8rem;
    padding: 8px 8px 10px;
  }

  .quiz__title {
    font-size: 1.15rem;
  }
}

/* Quiz inside dark cta-block */
#cta-block .quiz {
  margin-top: 24px;
}

#cta-block .quiz__title {
  color: #fff;
}

#cta-block .quiz__counter {
  color: rgba(255, 255, 255, 0.6);
}

#cta-block .quiz__progress {
  background: rgba(255, 255, 255, 0.15);
}

#cta-block .quiz__back,
#cta-block .quiz__skip {
  color: rgba(255, 255, 255, 0.55);
}

#cta-block .quiz__back:hover,
#cta-block .quiz__skip:hover {
  color: #fff;
}

#cta-block .quiz {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

#cta-block #quiz-final {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact method chips */
.contact-methods__label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

#cta-block .contact-methods__label {
  color: rgba(255, 255, 255, 0.7);
}

.contact-methods__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.method-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-chip span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.method-chip:hover span {
  border-color: #1ca8e0;
  color: #fff;
}

.method-chip input[type="checkbox"]:checked + span {
  background: #1ca8e0;
  border-color: #1ca8e0;
  color: #fff;
}

/* 3D-konstruktor section */
.konstruktor__sub {
  color: #666;
  margin: -8px 0 24px;
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

/* Вьюпорт и панель вставляет сам konstruktor.js, поэтому до его загрузки
   узел пуст. Держим за него место — иначе страница дёргается в момент,
   когда конструктор появляется. Высота та же, что у .viewport ниже. */
.builder:empty {
  min-height: clamp(300px, calc(100vh - 285px), 800px);
}

.viewport {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  height: calc(100vh - 285px);
  min-height: 300px;
  max-height: 800px;
}

/* Полноэкранный режим: весь конструктор с панелью настроек */
.builder:fullscreen {
  background: #f7f8fa;
  padding: 16px;
  gap: 16px;
  overflow: hidden;
}

.builder:fullscreen .viewport {
  height: 100%;
  max-height: none;
  min-height: 0;
}

.builder:fullscreen .builder-panel {
  height: 100%;
  max-height: none;
}

#canvas3d {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.viewport__price {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: #1ca8e0;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(28, 168, 224, 0.45);
}

.viewport__hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #999;
  font-size: 0.8rem;
}

.builder-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  padding: 18px 22px;
  max-height: calc(100vh - 285px);
  overflow-y: auto;
  overscroll-behavior: contain; /* прокрутка панели не утаскивает страницу */
}

.ctrl {
  margin-bottom: 22px;
}

.ctrl__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

/* внутри одного блока настроек подписи не должны липнуть к чипам выше */
.ctrl .colmodes + .ctrl__row,
.ctrl .colmodes + .decors,
.ctrl .decors + .ctrl__row {
  margin-top: 16px;
}

.ctrl .colmodes {
  margin-bottom: 2px;
}

.ctrl label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #222222;
}

.ctrl__val {
  color: #1ca8e0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ctrl input[type="range"] {
  width: 100%;
  accent-color: #1ca8e0;
  cursor: pointer;
}

/* Линейка со шкалой под ползунком */
.rng-ruler {
  position: relative;
  height: 18px;
  margin: 2px 8px 6px;     /* поля под бегунок, чтобы деления совпадали с его ходом */
}

/* ползунок скрыт — прячем и его шкалу */
input[type="range"][hidden] + .rng-ruler {
  display: none !important;
}

.rng-ruler__t {
  position: absolute;
  top: 0;
  width: 1px;
  height: 6px;
  margin-left: -0.5px;
  background: #c3ced6;
}

.rng-ruler__t--sm {
  height: 3px;
  background: #dde4e9;
}

.rng-ruler__t i {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.62rem;
  line-height: 1;
  color: #97a4ae;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-range__col {
  flex: 1;
  min-width: 0;
}

.cell-range__col input[type="range"] {
  width: 100%;
}

.cell-range .rng-ruler {
  margin-bottom: 0;
}

.decors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.decor {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.decor:hover {
  transform: scale(1.08);
}

.decor.is-active {
  border-color: #1ca8e0;
}

.decor-name {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
}

.price-note {
  background: #f0f7fb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.83rem;
  color: #556677;
  margin-bottom: 18px;
  line-height: 1.4;
}

.konstruktor__cta {
  display: block;
  width: 100%;
  background: #1ca8e0;
  color: #fff;
  border-radius: 8px;
  text-align: center;
}

.konstruktor__cta:hover {
  background: #178cbb;
}

@media (max-width: 900px) {
  .builder {
    grid-template-columns: 1fr;
  }

  .viewport {
    min-height: 320px;
  }
}

/* Телефон: 3D сверху на пол-экрана, настройки — листом снизу */
@media (max-width: 640px) {
  .builder {
    gap: 10px;
  }

  .viewport {
    position: sticky;
    top: 8px;
    z-index: 3;
    height: 46vh;
    min-height: 240px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }

  .builder-panel {
    max-height: none;
    overflow: visible;
    padding: 14px 14px 28px;
    border-radius: 16px 16px 0 0;
  }

  /* панель на телефоне не скроллится сама — полосу липнем к экрану под 3D */
  .bug-bar {
    top: 0;
    margin: -14px -14px 10px;
    padding: 9px 14px;
  }

  .viewport__hint {
    display: none;               /* на тач-экране подсказка про ЛКМ/ПКМ не нужна */
  }

  .viewport__price {
    font-size: 0.95rem;
    padding: 6px 12px;
  }

  .viewport__doors {
    width: 38px;
    height: 38px;
  }

  /* пальцем удобнее по крупным кнопкам */
  .colchip {
    min-width: 60px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .kit-mod select,
  .kit-mod input[type="number"] {
    padding: 10px;
    font-size: 0.95rem;
  }

  .kit-mod__del,
  .kit-mod__dup {
    width: 36px;
    height: 36px;
  }

  .ctrl input[type="range"] {
    height: 28px;                /* шире зона попадания пальцем */
  }

  .cell-panel {
    position: fixed !important;
    left: 8px !important;
    right: 8px;
    bottom: 8px;
    top: auto !important;
    width: auto !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    z-index: 40;
  }

  .price-parts {
    left: 8px;
    right: 8px;
    width: auto;
  }

  .draw-menu {
    left: 8px !important;
    right: 8px;
    width: auto;
  }
}

/* Column mode chips */
.colmodes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.colchip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  padding: 7px 10px;
  background: #ebebeb;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.72rem;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.colchip b {
  font-size: 0.95rem;
  color: #222222;
}

.colchip:hover {
  border-color: #1ca8e0;
}

.colchip.is-rod {
  background: #e8f7fd;
  border-color: #1ca8e0;
  color: #1ca8e0;
}

.colchip.is-rod b {
  color: #1ca8e0;
}

/* Наполнение секций: вкладки секций и галерея вариантов */
.sectabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.sectab {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 30px;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid #dfe5ea;
  border-radius: 999px;
  background: #fff;
  color: #5b6773;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sectab b {
  font-size: 0.85rem;
  color: #2a3138;
}

.sectab span {
  color: #8a97a3;
}

.sectab:hover {
  border-color: #1ca8e0;
}

.sectab.is-on {
  background: #e8f7fd;
  border-color: #1ca8e0;
}

.sectab.is-on b,
.sectab.is-on span {
  color: #1ca8e0;
}

.seccards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.seccard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 7px;
  border: 1px solid #dfe5ea;
  border-radius: 10px;
  background: #fff;
  color: #6c7a87;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.seccard__pic {
  display: block;
  width: 38px;
  color: #7b8894;
}

.seccard__pic svg {
  width: 100%;
  height: auto;
  display: block;
}

.seccard__name {
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  color: #5b6773;
}

.seccard:hover {
  border-color: #1ca8e0;
}

.seccard.is-on {
  border-color: #1ca8e0;
  box-shadow: 0 0 0 1px #1ca8e0 inset;
}

.seccard.is-on .seccard__pic,
.seccard.is-on .seccard__name {
  color: #1ca8e0;
}

.linkbtn {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #1ca8e0;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.linkbtn:hover {
  color: #1584b0;
}

/* крупная картинка варианта в панели выбранной секции */
.chip-pic {
  display: block;
  width: 30px;
  margin: 0 auto;
}

.chip-pic svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Заявка: запасной путь через мессенджер и необязательный второй шаг */
.btn--wa {
  display: block;
  margin-top: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.btn--wa:hover {
  background: #1eb355;
}

.btn--ghost {
  background: #fff;
  color: #1ca8e0;
  border: 1px solid #1ca8e0;
}

.form-step2 {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #e5eaef;
}

/* Kitchen module rows */
.kit-modules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.kit-mod {
  display: flex;
  gap: 6px;
  align-items: center;
}

.kit-mod.is-dragging {
  opacity: 0.4;
}

.kit-mod.is-over {
  box-shadow: 0 -2px 0 0 #1ca8e0;
}

.kit-mod__dup {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1.5px solid #d5d9de;
  border-radius: 8px;
  background: #fff;
  color: #6c7680;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.kit-mod__dup:hover {
  border-color: #1ca8e0;
  color: #1ca8e0;
}

.kit-mod select {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid #d5d9de;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #222222;
  background: #fff;
  cursor: pointer;
}

.kit-mod select:focus {
  outline: none;
  border-color: #1ca8e0;
}

.kit-mod__del {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: #ebebeb;
  color: #777;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.kit-mod__del:hover {
  background: #fde8e8;
  color: #dc2626;
}

.kit-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 2px 0 10px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2b3440;
  text-align: left;
  cursor: pointer;
}

.kit-sec:hover {
  color: #1ca8e0;
}

.kit-sec__ar {
  font-size: 0.8rem;
  color: #8a97a3;
}

.kit-add {
  width: 100%;
  padding: 9px;
  border: 1.5px dashed #b9c4cc;
  border-radius: 8px;
  background: none;
  color: #1ca8e0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.kit-add:hover {
  border-color: #1ca8e0;
  background: #f0f7fb;
}

/* Open/close doors button */
.viewport__doors {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: color 0.2s, background 0.2s;
}

.viewport__doors svg {
  width: 24px;
  height: 24px;
}

.viewport__doors:hover {
  color: #1ca8e0;
}

.viewport__doors.is-active {
  background: #1ca8e0;
  color: #fff;
}

/* Download drawings button */
.konstruktor__drawings {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: none;
  border: 1.5px solid #1ca8e0;
  border-radius: 8px;
  color: #1ca8e0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.konstruktor__drawings:hover {
  background: #1ca8e0;
  color: #fff;
}

/* Dimension labels in 3D */
.viewport__doors--dims {
  top: 66px;
}

.viewport__doors--fs {
  top: 170px;
}

.dim3d {
  background: rgba(255, 255, 255, 0.88);
  color: #1786b8;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 0 5px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* быстрый старт: готовые варианты */
.presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preset {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 9px 12px;
  border: 1.5px solid #d5d9de;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.preset b {
  font-size: 0.9rem;
  color: #2a3138;
}

.preset span {
  font-size: 0.78rem;
  color: #8a97a3;
}

.preset:hover {
  border-color: #1ca8e0;
  background: #f2f9fd;
}

/* полоса «восстановить черновик» */
.draft-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #eef6fc;
  border: 1px solid #cbe3f3;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #2a3138;
}

.draft-bar .btn--sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.draft-bar #draft-skip {
  border: 0;
  background: none;
  color: #6c7680;
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.price-parts__adj {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  color: #556677;
}

.price-parts__adj input {
  width: 70px;
  padding: 4px 6px;
  border: 1px solid #dfe3e6;
  border-radius: 6px;
  font-family: inherit;
  text-align: right;
}

.price-parts__row--sum b {
  color: #1ca8e0;
}

/* подпись, которой не хватило места — прячем, чтобы не было каши */
.dim3d.is-crowded {
  opacity: 0;
}

/* Price editor (hidden admin) */
.price-editor {
  background: #fff8e6;
  border: 1.5px solid #e5c96b;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.price-editor__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.price-editor__hd button {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #777;
}

.price-editor__note {
  color: #8a7a45;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.pe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.pe-row input {
  width: 90px;
  padding: 4px 8px;
  border: 1px solid #d5c58b;
  border-radius: 6px;
  font-family: inherit;
  text-align: right;
}

.pe-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.pe-actions .btn {
  background: #1ca8e0;
  color: #fff;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.pe-actions #pe-reset {
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  font-family: inherit;
}

.viewport__doors--prices {
  top: 118px;
  color: #999;
}

/* Низкие экраны (ноутбуки 1366×768 и т.п.):
   отключаем «журнальные» слои — секции идут обычным потоком */
@media (min-width: 769px) and (max-height: 840px) {
  .section {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .section .container {
    position: relative;
    inset: auto;
    height: auto;
    padding: 110px 24px 70px;
    overflow-y: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  #catalog .container {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .catalog__rows {
    max-height: none;
    height: 520px;
    flex: none;
  }

  #gallery {
    min-height: auto;
  }

  #gallery .container {
    min-height: auto;
    height: 74vh;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .viewport {
    height: 500px;
    min-height: 380px;
    max-height: none;
  }

  .builder-panel {
    max-height: 560px;
  }
}


/* Панель настроек секции/модуля (клик по 3D) */
.cell-panel {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 280px;
  max-height: calc(100% - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  padding: 14px;
  z-index: 5;
}

.cell-panel__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.cell-panel__hd button {
  border: none;
  background: none;
  font-size: 1.3rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.cell-panel__lbl {
  font-size: 0.8rem;
  color: #777;
  margin: 10px 0 6px;
}

.cell-panel__hint {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #8a6d3b;
  background: #fdf3e0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0 2px;
}

.cell-panel .colmodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cell-panel__del {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 9px;
  border: 1.5px solid #e3b1b1;
  border-radius: 8px;
  background: none;
  color: #c0392b;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cell-panel__del:hover {
  background: #fdeeee;
}

/* Чипы с мини-иконками наполнения */
.chip-ico {
  display: block;
  color: #7d8a94;
}

.chip-ico svg {
  width: 34px;
  height: 30px;
  display: block;
  margin: 0 auto;
}

.colchip.is-rod .chip-ico {
  color: #1ca8e0;
}

.cell-panel .colchip.chip-visual {
  width: 78px;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.15;
}

.cell-panel .colchip.chip-visual b {
  font-size: 0.7rem;
  display: block;
  margin-top: 3px;
}

/* AR */
.viewport__doors--ar {
  top: 222px;
  color: #1ca8e0;
}

.ar-note {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  background: rgba(34, 34, 34, 0.88);
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
  z-index: 6;
}

/* Скан комнаты */
.scan-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px dashed #1ca8e0;
  border-radius: 10px;
  background: rgba(28, 168, 224, 0.06);
  color: #1ca8e0;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.scan-btn:hover {
  background: rgba(28, 168, 224, 0.12);
}

.scan-hint {
  font-size: 0.78rem;
  color: #8a8a8a;
  margin: 8px 0 0;
  line-height: 1.45;
}

.scan-status {
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Текстовый конструктор */
.ai-input {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 44px;
  margin-bottom: 8px;
  background: #fff;
  color: #222;
}

.ai-input:focus {
  outline: none;
  border-color: #1ca8e0;
}

.ai-report {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 8px;
  color: #555;
}

.ai-report .ok { color: #1e9e46; }
.ai-report .warn { color: #b7791f; }

/* Проверка нейросетью */
.scan-btn--ai {
  border-style: solid;
}

.scan-btn--ai:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ai-verdict {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid #1ca8e0;
  border-radius: 0 10px 10px 0;
  background: rgba(28, 168, 224, 0.06);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #333;
  white-space: pre-line;
}

.ai-verdict.is-error {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}

/* Чат с технологом-нейросетью */
.ai-chat {
  margin-top: 10px;
}

.ai-chat__log {
  max-height: min(60vh, 520px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px;
}

.ai-msg {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.87rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.ai-msg--user {
  align-self: flex-end;
  background: #1ca8e0;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-msg--ai {
  align-self: flex-start;
  background: #f0f3f6;
  color: #333;
  border-bottom-left-radius: 4px;
}

.ai-msg--ai.is-wait {
  color: #999;
  font-style: italic;
}

.ai-msg--ai.is-error {
  background: rgba(192, 57, 43, 0.08);
  color: #a83226;
}

.ai-chat__row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ai-chat__row input {
  flex: 1;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: #222;
}

.ai-chat__row input:focus {
  outline: none;
  border-color: #1ca8e0;
}

.ai-chat__row button {
  border: none;
  border-radius: 10px;
  background: #1ca8e0;
  color: #fff;
  width: 42px;
  cursor: pointer;
  font-size: 1rem;
}

.ai-chat__row button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.ai-chat__clear {
  margin-top: 6px;
  border: none;
  background: none;
  color: #9aa4ad;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 0;
}

.ai-chat__clear:hover {
  color: #c0392b;
}

#ai-apply-btn {
  margin-top: 10px;
}

#ai-apply-btn.is-ok {
  border-color: #1e9e46;
  color: #1e9e46;
  background: rgba(30, 158, 70, 0.06);
  cursor: default;
  opacity: 1;
}

/* Фото в чате */
#ai-chat-attach {
  border: 1px solid #d6dde3;
  border-radius: 10px;
  background: #fff;
  width: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8691;
}

#ai-chat-attach svg {
  width: 18px;
  height: 18px;
}

#ai-chat-attach:hover {
  color: #1ca8e0;
}

#ai-chat-attach:hover {
  border-color: #1ca8e0;
}

.ai-thumb {
  align-self: flex-end;
  max-width: 55%;
  border-radius: 12px;
  border-bottom-right-radius: 4px;
}

/* hidden должен побеждать display у кнопок ИИ-блока */
.scan-btn[hidden] {
  display: none !important;
}

.chip-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 6px;
  vertical-align: -2px;
}

/* Голосовой ввод */
#ai-chat-mic {
  border: 1px solid #d6dde3;
  border-radius: 10px;
  background: #fff;
  width: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8691;
}

#ai-chat-mic svg {
  width: 18px;
  height: 18px;
}

#ai-chat-mic:hover {
  color: #1ca8e0;
}

#ai-chat-mic.is-rec {
  color: #fff;
  background: #e04a3a;
  border-color: #e04a3a;
  animation: mic-pulse 1.2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 74, 58, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(224, 74, 58, 0); }
}

#ai-chat-mic[hidden] {
  display: none !important;
}

/* Доп. настройки модуля */
.cell-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6c7680;
  padding: 8px 0 4px;
  cursor: pointer;
}

.cell-toggle:hover {
  color: #1ca8e0;
}

.cell-del {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #e3d2d2;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b45252;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cell-del:hover {
  background: #fdf0f0;
  border-color: #d8b0b0;
  color: #9c3f3f;
}

.fchip-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: -2px;
  margin-right: 6px;
}

.cell-panel {
  z-index: 40;
}

/* Баг-репорт */
/* Полоса «сообщить об ошибке» — вверху панели настроек, липнет при прокрутке */
.bug-bar {
  position: sticky;
  top: -18px;
  z-index: 6;
  margin: -18px -22px 12px;
  padding: 10px 22px;
  background: #fff;
  border-bottom: 1px solid #eef1f3;
}

.bug-link {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  color: #6c7680;
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 2px 0;
}

.bug-link:hover {
  color: #1ca8e0;
}

.bug-form {
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed #d6dde3;
  border-radius: 10px;
}

.bug-form textarea {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.83rem;
  resize: vertical;
  background: #fff;
  color: #222;
}

.bug-form textarea:focus {
  outline: none;
  border-color: #1ca8e0;
}

.bug-form__row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.bug-form__row button {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  cursor: pointer;
}

#bug-send {
  background: #1ca8e0;
  color: #fff;
}

#bug-send:disabled {
  opacity: 0.6;
}

#bug-cancel {
  background: #eef1f4;
  color: #555;
}

.bug-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #1e9e46;
}

.bug-note.is-error {
  color: #c0392b;
}

/* Вход для сотрудников */
.ai-auth__hint {
  font-size: 0.8rem;
  color: #6c7680;
  margin: 0 0 8px;
}

.ai-auth input {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 8px;
  background: #fff;
  color: #222;
}

.ai-auth input:focus {
  outline: none;
  border-color: #1ca8e0;
}

.ai-auth__err {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #c0392b;
}

/* Вход в хедере */
.hdr-auth {
  border: 1.5px solid #1ca8e0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  cursor: pointer;
  margin-left: 8px;
  white-space: nowrap;
}

.hdr-auth:hover {
  background: rgba(28, 168, 224, 0.12);
}

.hdr-auth.is-authed {
  border-color: #2ecc71;
  color: #fff;
}

/* Меню сотрудника: открывается по нажатию на логин (script.js, setupAccountMenu).
   Уголок у кнопки рисуем, только когда меню есть: без него нажатие означает выход. */
.hdr-auth[aria-haspopup]::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s, margin 0.2s;
}

.hdr-auth[aria-expanded="true"]::after {
  margin-bottom: -1px;
  transform: rotate(-135deg);
}

.hdr-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 16px;
  z-index: 30;
  box-sizing: border-box;
  min-width: 250px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(25, 42, 52, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}

.hdr-menu[hidden] {
  display: none;
}

/* поверх подсказок конструктора — как открытая панель навигации */
.header:has(.hdr-menu:not([hidden])) {
  z-index: 310;
}

.hdr-menu__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
}

.hdr-menu__rule {
  flex-shrink: 0;
  height: 1px;
  margin: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
}

.hdr-menu b {
  font-weight: 600;
}

.hdr-menu span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* Селектор длинный нарочно: правила .nav a (в том числе для шапки поверх
   первого экрана) иначе перекрасили бы пункты меню. */
.header .nav .hdr-menu .hdr-menu__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.header .nav .hdr-menu .hdr-menu__item:hover,
.header .nav .hdr-menu .hdr-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header .nav .hdr-menu .hdr-menu__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.header .nav .hdr-menu .hdr-menu__out {
  color: #ffc2b8;
}

/* Узкий экран: навигация — выпадающая панель столбиком, меню встаёт в неё */
@media (max-width: 1400px) {
  .hdr-menu {
    position: static;
    flex-shrink: 0;
    min-width: 0;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 28, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.auth-modal__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #222;
}

.auth-modal__hd button {
  border: none;
  background: none;
  font-size: 1.3rem;
  color: #9aa4ad;
  cursor: pointer;
  line-height: 1;
}

.auth-modal__box input {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 10px;
  background: #fff;
  color: #222;
}

.auth-modal__box input:focus {
  outline: none;
  border-color: #1ca8e0;
}

.auth-modal__btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #1ca8e0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.auth-modal__btn:disabled {
  opacity: 0.6;
}

#ai-block[hidden] {
  display: none !important;
}

/* Пошаговое обучение по конструктору */
.tour-target {
  outline: 3px solid #1ca8e0;
  outline-offset: 3px;
  border-radius: 10px;
  animation: tourPulse 1.6s ease-in-out infinite;
}

@keyframes tourPulse {
  0%, 100% { outline-color: #1ca8e0; }
  50% { outline-color: rgba(28, 168, 224, 0.35); }
}

.tour-tip {
  position: fixed;
  z-index: 300;
  width: 270px;
  max-width: calc(100vw - 16px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.45;
}

.tour-tip__step {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1ca8e0;
  margin-bottom: 4px;
}

.tour-tip__title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.tour-tip__video {
  display: block;
  width: 100%;
  height: auto;
  /* ролики бывают и вертикальные (сняты с телефона) — показываем целиком,
     ограничивая высоту, чтобы подсказка не выросла на весь экран */
  max-height: min(46vh, 320px);
  margin: 10px 0 4px;
  border-radius: 10px;
  background: #eef1f4;
  object-fit: contain;
}

.tour-tip__btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}

.tour-tip__next {
  border: none;
  border-radius: 999px;
  background: #1ca8e0;
  color: #fff;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 7px 18px;
  cursor: pointer;
}

.tour-tip__skip {
  border: none;
  background: none;
  color: #9aa4ad;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Меню «Скачать чертёж» */
.draw-menu {
  position: absolute;
  z-index: 120;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
}

.draw-menu button {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  color: #222;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.draw-menu button:hover {
  background: #eef7fc;
  color: #1ca8e0;
}

/* Мои проекты */
.proj-row {
  display: flex;
  gap: 8px;
}

.proj-row .scan-btn {
  flex: 1;
  margin: 0;
}

.proj-note {
  font-size: 0.78rem;
  color: #1ca8e0;
  margin-top: 8px;
  word-break: break-all;
}

.proj-note.is-error {
  color: #dc2626;
}

.proj-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7f9;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.proj-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222;
}

.proj-item__date {
  color: #98a2ab;
  font-size: 0.72rem;
  white-space: nowrap;
}

.proj-item button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  color: #1ca8e0;
  padding: 2px 4px;
}

.proj-item button.proj-del {
  color: #b9c2c9;
  font-size: 1rem;
  line-height: 1;
}

.proj-item button.proj-del:hover {
  color: #dc2626;
}

.proj-name {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: #222;
  margin-bottom: 8px;
}

.proj-name:focus {
  outline: none;
  border-color: #1ca8e0;
}

/* Сообщения между сотрудниками */
.msg-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.msg-badge[hidden] { display: none; }

.msg-dialogs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-dialog {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7f9;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.msg-dialog:hover { background: #eef7fc; }

.msg-dialog__name {
  font-weight: 600;
  color: #222;
  font-size: 0.84rem;
}

.msg-dialog__last {
  flex: 1;
  color: #8b959d;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-thread__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #222;
  font-size: 0.86rem;
}

.msg-thread__hd button {
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #1ca8e0;
  padding: 0 4px;
}

.msg-log {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px;
}

.msg-item {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-word;
}

.msg-item--in {
  align-self: flex-start;
  background: #f0f3f5;
  color: #222;
}

.msg-item--out {
  align-self: flex-end;
  background: #1ca8e0;
  color: #fff;
}

.msg-item__time {
  display: block;
  font-size: 0.66rem;
  opacity: 0.7;
  margin-top: 3px;
}

.msg-proj {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.msg-proj button {
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #1ca8e0;
}

.msg-item--in .msg-proj button {
  background: #fff;
  border: 1px solid #d6dde3;
}

.msg-attach {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #6b757d;
  margin: 8px 0 6px;
  cursor: pointer;
}

.msg-row {
  display: flex;
  gap: 6px;
}

.msg-row input {
  flex: 1;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: #222;
}

.msg-row input:focus { outline: none; border-color: #1ca8e0; }

.msg-row button {
  border: none;
  border-radius: 10px;
  background: #1ca8e0;
  color: #fff;
  font-size: 1rem;
  padding: 0 14px;
  cursor: pointer;
}

.msg-note {
  font-size: 0.76rem;
  color: #1ca8e0;
  margin-top: 6px;
}

.msg-note.is-error { color: #dc2626; }

.proj-send {
  color: #1ca8e0;
}

/* Числовой ввод рядом с ползунком */
.ctrl__num {
  width: 82px;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  padding: 3px 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1ca8e0;
  text-align: right;
  background: #fff;
  -moz-appearance: textfield;
}

.ctrl__num::-webkit-outer-spin-button,
.ctrl__num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ctrl__num:focus {
  outline: none;
  border-color: #1ca8e0;
  box-shadow: 0 0 0 2px rgba(28, 168, 224, 0.15);
}

.ctrl__num.is-bad {
  border-color: #dc2626;
  color: #dc2626;
}

.ctrl__numwrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #8b959d;
}

.cell-panel .ctrl__num {
  width: 74px;
}

.ctrl__row--sub {
  margin-top: 16px;
}

.ctrl__row--sub label {
  font-size: 0.78rem;
  color: #8b959d;
  font-weight: 500;
}

#kit-handle-cfg[hidden] {
  display: none !important;
}

/* Чат: собеседники как вкладки */
.msg-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e6ebef;
  scrollbar-width: thin;
}

.msg-tabs::-webkit-scrollbar {
  height: 4px;
}

.msg-tabs::-webkit-scrollbar-thumb {
  background: #d6dde3;
  border-radius: 4px;
}

.msg-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e0e6ea;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: #f4f7f9;
  color: #6b757d;
  font: inherit;
  font-size: 0.78rem;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.msg-tab:hover {
  background: #eef7fc;
  color: #1ca8e0;
}

.msg-tab.is-active {
  background: #fff;
  color: #1ca8e0;
  border-color: #1ca8e0;
  font-weight: 600;
}

.msg-tab__badge {
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.msg-thread[hidden],
.msg-tabs[hidden] {
  display: none !important;
}

.msg-hint {
  font-size: 0.8rem;
  color: #98a2ab;
  padding: 6px 2px;
}

.kit-mod input[type="number"] {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 0.84rem;
  background: #fff;
  color: #222;
  -moz-appearance: textfield;
}

.kit-mod input[type="number"]::-webkit-outer-spin-button,
.kit-mod input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.kit-mod input[type="number"]:focus {
  outline: none;
  border-color: #1ca8e0;
}

/* Единый чат: композер и вложения */
#chat-composer {
  margin-top: 8px;
  align-items: center;
}

#chat-composer button {
  border: none;
  background: none;
  color: #8b959d;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
}

#chat-composer button svg {
  width: 20px;
  height: 20px;
}

#chat-composer button:hover { color: #1ca8e0; }

#chat-composer #chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1ca8e0;
  color: #fff;
  border-radius: 10px;
  padding: 0;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

#chat-composer #chat-send svg {
  width: 19px;
  height: 19px;
}

#chat-composer #chat-send:hover {
  background: #178cbb;
}

#chat-composer button.is-rec {
  color: #dc2626;
  animation: recPulse 1.2s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.msg-img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 5px;
}

.msg-audio {
  display: block;
  width: 210px;
  max-width: 100%;
  margin-bottom: 4px;
}

#ai-pane .ai-chat__log {
  max-height: 260px;
  overflow-y: auto;
}

/* Степпер «минус — поле — плюс» (например число полок в секции) */
.stepper {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.stepper__btn {
  width: 34px;
  flex: 0 0 34px;
  border: 1.5px solid #e0e3e6;
  border-radius: 8px;
  background: #f4f6f7;
  color: #4a5560;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.stepper__btn:hover {
  background: #e8f6fd;
  border-color: #1ca8e0;
  color: #1ca8e0;
}

.stepper__in {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 4px;
  border: 1.5px solid #e0e3e6;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a3138;
  text-align: center;
}

.stepper__in:focus {
  outline: none;
  border-color: #1ca8e0;
}

.stepper__in.is-own {
  border-color: #1ca8e0;
  color: #1ca8e0;
}

.stepper__reset {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.76rem;
  color: #1ca8e0;
  text-decoration: underline;
  cursor: pointer;
}

/* hidden на строке настройки должен побеждать её display:flex */
[hidden] { display: none !important; }

/* Размер секции: ползунок + поле ввода */
.cell-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cell-range input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.cell-range__num {
  flex: 0 0 68px;
  width: 68px;
  padding: 6px 4px;
  border: 1.5px solid #e0e3e6;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a3138;
  text-align: center;
}

.cell-range__num:focus {
  outline: none;
  border-color: #1ca8e0;
}

.cell-range__num.is-own {
  border-color: #1ca8e0;
  color: #1ca8e0;
}

/* Свои позиции в настройке цен */
.pe-sub {
  margin: 14px 0 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2a3138;
}

.pe-crow {
  display: grid;
  grid-template-columns: 1fr 110px 82px 26px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.pe-crow input,
.pe-crow select {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #dfe3e6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
}

.pe-crow .pe-cdel {
  border: 0;
  background: none;
  color: #c0392b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.pe-add {
  margin: 2px 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #1ca8e0;
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Разделы прайса: каждый со своим цветом */
.pe-group {
  border-left: 4px solid var(--pe-color, #cfd8dd);
  background: var(--pe-bg, rgba(0, 0, 0, 0.02));
  border-radius: 0 10px 10px 0;
  padding: 2px 12px 10px;
  margin: 12px 0;
}

.pe-group .pe-sub {
  margin-top: 10px;
  color: var(--pe-color, #2a3138);
}

.pe-group .pe-add {
  color: var(--pe-color, #1ca8e0);
}

.pe-group--mat {
  --pe-color: #1c8ede;
  --pe-bg: #eef6fc;
}

.pe-group--work {
  --pe-color: #2e9e63;
  --pe-bg: #eef8f2;
}

.pe-group--margin {
  --pe-color: #c98a1e;
  --pe-bg: #fdf5e6;
}

.pe-group--other {
  --pe-color: #7b5cc4;
  --pe-bg: #f3eefc;
}

/* ВКонтакте: плавающая кнопка и ссылка в контактах */
.floating-vk {
  width: 84px;
  height: 84px;
  background: #0077FF;
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 119, 255, 0.45);
  transition: background 0.2s;
  flex-shrink: 0;
}

.floating-vk:hover {
  background: #0064d8;
}

.floating-vk svg {
  width: 40px;
  height: 40px;
}

.contacts__social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e4e7ea;
}

.contacts__social-label {
  font-weight: 600;
  color: #555;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link--vk {
  background: #0077FF;
  color: #fff;
}

.social-link--vk:hover {
  background: #0064d8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .floating-vk {
    width: 56px;
    height: 56px;
  }

  .floating-vk svg {
    width: 28px;
    height: 28px;
  }
}

/* Раскладка цены под бейджем */
.price-parts {
  position: absolute;
  right: 18px;
  bottom: 76px;
  z-index: 6;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
  font-size: 0.88rem;
}

.price-parts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  color: #444;
}

.price-parts__row b {
  color: #2a3138;
}

/* ---------- Готовые решения: мини-карточки конфигураций ---------- */
/* Раздел идёт обычным блоком: на высоких экранах остальные секции — «слайды»
   с наложением, и участие в этой механике прятало карточки под конструктором. */
.gotovye {
  position: relative;
  z-index: 5;
  background: #fff;
  padding: 70px 20px 80px;
}

.gotovye__inner {
  max-width: 1500px;
  margin: 0 auto;
}

.gotovye__sub {
  margin: 0 0 18px;
  font-size: 1rem;
  color: #6c7680;
  max-width: 900px;
}

.gotovye__tabs {
  margin: 0 0 20px;
  gap: 8px;
}

.gotovye__tabs .colchip {
  min-width: 0;
  padding: 9px 16px;
  font-size: 0.95rem;
  cursor: pointer;
}

.gotovye__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* Разделы готовых решений: крупные карточки со снимком из каталога. По нажатию
   на раздел вместо них показывается плитка его решений (.gotovye__grid) и
   строка «← Все разделы». */
.gotovye__cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gcat {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e9eef2;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gcat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gcat:hover img,
.gcat:focus-visible img {
  transform: scale(1.04);
}
.gcat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 33, 43, 0) 42%, rgba(16, 33, 43, 0.8) 100%);
}
.gcat:focus-visible {
  outline: 3px solid #1ca8e0;
  outline-offset: 2px;
}
.gcat__text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.gcat__name {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}
.gcat__meta {
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  opacity: 0.92;
}
.gotovye__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 18px;
}
.gcat-back {
  border: 1px solid #d6dde3;
  border-radius: 999px;
  background: #fff;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.95rem;
  color: #1ca8e0;
  cursor: pointer;
}
.gcat-back:hover {
  border-color: #1ca8e0;
}
.gcat-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
}
.gcat-n {
  font-size: 0.95rem;
  color: #6c7680;
}
@media (max-width: 1000px) {
  .gotovye__cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gcat__name { font-size: 1.3rem; }
}
@media (max-width: 560px) {
  .gotovye__cats { grid-template-columns: 1fr; gap: 12px; }
  .gcat__text { left: 16px; right: 16px; bottom: 14px; }
}

.gcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.gcard:hover {
  border-color: #1ca8e0;
  box-shadow: 0 8px 22px rgba(28, 168, 224, 0.13);
  transform: translateY(-2px);
}

.gcard__pic {
  display: block;
  background: #f3f6f8;
  aspect-ratio: 16 / 9;
}

.gcard__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gcard__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 6px;
}

.gcard__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2a3138;
  line-height: 1.25;
}

.gcard__size {
  font-size: 0.8rem;
  color: #8a97a3;
}

.gcard__price {
  margin-top: 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1ca8e0;
}

.gcard__hint {
  font-size: 0.8rem;
  color: #6c7a87;
  line-height: 1.3;
}

.gcard__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.gcard__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.gcard__dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(28, 168, 224, 0.35);
}

.gotovye__tabs .colchip i {
  font-style: normal;
  color: #9aa6b1;
  font-size: 0.85em;
}

.gotovye__tabs .colchip.is-rod i {
  color: #1ca8e0;
}

.gotovye__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.gotovye__count {
  font-size: 0.88rem;
  color: #8a97a3;
}

.gotovye__more {
  padding: 12px 30px;
  border: 1px solid #1ca8e0;
  border-radius: 10px;
  background: #fff;
  color: #1ca8e0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.gotovye__more:hover {
  background: #1ca8e0;
  color: #fff;
}

.gcard__cta {
  margin: 8px 14px 14px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f2f9fd;
  color: #1786b8;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: center;
}

.gcard:hover .gcard__cta {
  background: #1ca8e0;
  color: #fff;
}

@media (max-width: 640px) {
  .gotovye__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  /* разделы в одну строку с прокруткой: семь чипов столбиком съедали пол-экрана */
  .gotovye__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .gotovye__tabs::-webkit-scrollbar { display: none; }

  .gotovye__tabs .colchip {
    flex: 0 0 auto;
    padding: 8px 13px;
    font-size: 0.9rem;
  }

  /* кружки цвета — под палец */
  .gcard__dot {
    width: 18px;
    height: 18px;
  }

  .gcard__colors { gap: 6px; }

  .gcard__name { font-size: 0.88rem; }
  .gcard__cta { font-size: 0.78rem; margin: 6px 10px 10px; }
  .gcard__body { padding: 10px 10px 4px; }
}

/* Строка модуля кухни на телефоне: список типа сжимается, а поле ширины и
   кнопки «копия» и «удалить» остаются на экране. Раньше список занимал всю
   строку, поле ширины схлопывалось до 20 px, а «удалить» уходил за край
   экрана (найдено массовой проверкой 13.11.2026). */
@media (max-width: 640px) {
  .kit-mod select {
    flex: 1 1 0;
    min-width: 0;
  }

  .kit-mod input[type="number"] {
    flex: 0 0 64px;
    width: 64px;
  }

  .kit-mod__del,
  .kit-mod__dup {
    flex: 0 0 auto;
  }

  /* Панель настроек не шире экрана. Без этого одна длинная строка внутри
     (список крепежа в «своём проекте») раздвигала колонку сетки до 455 px,
     и правая часть панели на телефоне оказывалась за краем. */
  .builder-panel {
    min-width: 0;
  }
}

/* ---------- Карточка продавца («Товары для дома»): магазин на Ozon в цифрах ---------- */
/* Оценку товаров и число доставленных заказов подставляет script.js — их отдаёт склад
   из кабинета Ozon. Пока чисел нет, блока нет вовсе: карточка выглядит как раньше. */
.market-seller__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 4px 0 18px;
}

.market-seller__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.market-seller__stat b {
  font: 600 30px/1 Geologica, system-ui, sans-serif;
  color: #111418;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.market-seller__stat small {
  font: 400 12px/1.35 Geologica, system-ui, sans-serif;
  color: #647987;
}

.market-seller__stat--rating b::before {
  content: "\2605";
  color: #f5a623;
  font-size: 0.8em;
  margin-right: 0.22em;
  vertical-align: 0.06em;
}

@media (max-width: 520px) {
  .market-seller__stats { gap: 10px 22px; }
  .market-seller__stat b { font-size: 26px; }
}
