/* Страница платного модуля «Цех» (владелец, 18.10.2026): настоящие экраны кабинета — станок, схема маршрута, запуск, лист заказа с журналом, доска.
   Снимки — `static/img/module/*.webp` (их делает deploy/ui-check/module_shots.py из настоящего кабинета на выдуманных данных).
   Все классы — с префиксом mod- (урок отзывов 18.10.2026: голые короткие имена на витрине заняты; `.rv` растянул «Собери заказ»). Типографика, кнопки, `.facts`,
   `.steps`, `.faq`, `.final` — общие из landing6.css. */

/* ---------- первый экран: планшет ---------- */
.mod-hero .hero-cta {
  margin-top: 28px;
}
.mod-hero-price {
  max-width: 62ch;
  margin: 18px auto 0;
  font-size: 14.5px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-2);
}
.mod-tablet {
  position: relative;
  max-width: 1040px;
  margin: clamp(28px, 4vw, 52px) auto 0;
  padding: clamp(7px, 1.1vw, 14px);
  border-radius: clamp(20px, 3vw, 38px);
  background: #14161b;
  box-shadow:
    0 0 0 2px #2b2e36,
    0 50px 90px -40px rgba(15, 23, 42, 0.55),
    0 22px 40px -26px rgba(15, 23, 42, 0.4);
}
.mod-tablet .mod-zoom {
  border-radius: clamp(13px, 2vw, 26px);
}
.mod-cap {
  max-width: 62ch;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-3);
}

/* снимок, который увеличивается по нажатию */
.mod-zoom {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.mod-zoom img {
  display: block;
  width: 100%;
  height: auto;
}
.mod-zoom::after {
  content: 'Увеличить';
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(15, 17, 21, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.mod-zoom:hover::after,
.mod-zoom:focus-visible::after {
  opacity: 1;
  transform: none;
}
.mod-zoom:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 3px;
}
@media (hover: none) {
  /* на телефоне подсказка не прячется, но и не закрывает снимок: маленькая метка в углу */
  .mod-zoom::after {
    top: 10px;
    right: 10px;
    bottom: auto;
    padding: 5px 10px;
    font-size: 12px;
    opacity: 1;
    transform: none;
  }
}

/* ---------- фото: экран у станков в цеху ---------- */
.mod-floor {
  padding-block: clamp(36px, 5vw, 72px) 0;
}
.mod-floor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.mod-photo {
  position: relative;
  margin: 0;
  border-radius: clamp(18px, 2.2vw, 28px);
  overflow: hidden;
  background: #1a1d24;
  box-shadow: 0 34px 70px -40px rgba(15, 23, 42, 0.55);
}
.mod-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.mod-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 56px clamp(16px, 2vw, 26px) clamp(14px, 1.8vw, 22px);
  background: linear-gradient(to top, rgba(10, 12, 16, 0.78), rgba(10, 12, 16, 0));
  color: #fff;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .mod-floor-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- плитки под планшетом: что делает станок ---------- */
.mod-pins {
  padding-block: clamp(32px, 5vw, 72px) 0;
}
.mod-pins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mod-pins-grid li {
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line-2);
}
.mod-pins-grid b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.mod-pins-grid p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- строки: текст и экран ---------- */
.mod-rows {
  padding-block: clamp(24px, 4vw, 56px);
}
.mod-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 80px);
}
.mod-row + .mod-row {
  border-top: 1px solid var(--line-2);
}
.mod-row.flip .mod-txt {
  order: 2;
}
.mod-row.narrow {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
/* широкий снимок (схема, доска): текст сверху, экран на всю ширину под ним — в узкой колонке мелкий текст не прочесть */
.mod-row.wide {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.mod-row.wide .mod-txt {
  order: 0;
  max-width: 880px;
}
.mod-row.wide .facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
}
@media (max-width: 900px) {
  .mod-row.wide .facts {
    grid-template-columns: 1fr;
  }
}
.mod-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-accent);
}
.mod-row .h2 {
  margin-top: 14px;
}
.mod-row .lead {
  margin-top: 18px;
}
.mod-shot {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 0 0 1px var(--line),
    0 34px 70px -38px rgba(15, 23, 42, 0.5);
}
.mod-row.narrow .mod-vis {
  width: min(100%, 500px);
  justify-self: center;
}
.mod-vis-stack {
  display: grid;
  gap: 18px;
}
.mod-vis-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .mod-row,
  .mod-row.narrow {
    grid-template-columns: 1fr;
  }
  .mod-row.flip .mod-txt {
    order: 0;
  }
}

/* ---------- цена и подключение ---------- */
.mod-price {
  padding-block: clamp(48px, 6vw, 96px);
}
.mod-price-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}
.mod-price-box .h2 {
  color: #fff;
}
.mod-price-box .lead {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}
.mod-price-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 22px;
}
.mod-price-num b {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.04em;
}
.mod-price-num span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
}
.mod-price-box .hero-cta {
  justify-content: flex-start;
  margin-top: 26px;
}
.mod-price-box .btn-go {
  background: #fff;
  color: var(--ink);
}
.mod-price-box .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.mod-incl {
  display: grid;
  align-self: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mod-incl li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.mod-incl li:first-child {
  padding-top: 0;
}
.mod-incl li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.mod-incl li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    rgba(255, 255, 255, 0.16);
}
@media (max-width: 900px) {
  .mod-price-box {
    grid-template-columns: 1fr;
  }
}

/* ---------- экран крупно ---------- */
.mod-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 28px);
  background: rgba(15, 17, 21, 0.88);
}
.mod-lb[hidden] {
  display: none;
}
.mod-lb-box {
  max-width: 96vw;
  max-height: 94vh;
  overflow: auto;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}
.mod-lb-box img {
  display: block;
  height: auto;
  max-width: none;
}
.mod-lb-x {
  position: fixed;
  top: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.mod-lb-x:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 2px;
}
html.mod-lb-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .mod-zoom::after {
    transition: none;
  }
}
