/* Мастерская — extends blog/portfolio shell */

.page-workshop {
  --hover-bg: rgba(220, 38, 38, 0.06);
}

.page-workshop #ws-hero {
  min-height: 50vh;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-bottom: var(--rule);
}

.page-workshop #ws-hero .hero__headline {
  font-size: clamp(4.2vw, 6.5vw, 8vw);
}

.page-workshop #ws-hero .hero__live-clock {
  font-size: clamp(3rem, 6vw, 6.5rem);
}

.page-workshop #ws-hero .hero__tagline {
  font-size: clamp(0.82rem, 1.35vw, 1.05rem);
  line-height: 1.45;
  max-width: min(36rem, 90vw);
}

.page-workshop .blog-acc__title {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

/* Аккордеон — маленький логотип: белый → красный при hover / раскрытии */
.page-workshop .blog-acc__thumb {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  background: rgba(10, 10, 10, 0.85);
  border: var(--rule-thin);
  overflow: visible;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.page-workshop .blog-acc__thumb img {
  width: 1.75rem;
  height: 1.75rem;
  max-width: 1.75rem;
  max-height: 1.75rem;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 1;
  transition:
    filter 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-workshop .blog-acc:hover .blog-acc__thumb img,
.page-workshop .blog-acc.is-open .blog-acc__thumb img {
  filter: none;
  opacity: 1;
}

.page-workshop .blog-acc:hover .blog-acc__thumb img {
  transform: scale(1.06);
}

.page-workshop .blog-acc:hover .blog-acc__thumb,
.page-workshop .blog-acc.is-open .blog-acc__thumb {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.18);
}

@media (max-width: 768px) {
  .page-workshop .blog-acc__thumb {
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .page-workshop .blog-acc__summary {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-workshop .blog-acc__thumb img {
    transition: none !important;
  }
}

/* ─── Страницы инструментов (LayherCAD, C-lib) ─── */

.page-workshop-tool .main {
  padding: 0 0 6rem;
}

.page-workshop-tool #ws-tool-hero {
  min-height: 42vh;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-bottom: var(--rule);
}

.page-workshop-tool #ws-tool-hero .hero__headline {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
}

.page-workshop-tool #ws-tool-hero .hero__live-clock {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.page-workshop-tool #ws-tool-hero .hero__tagline {
  font-size: clamp(0.82rem, 1.25vw, 1rem);
  line-height: 1.45;
  max-width: min(34rem, 90vw);
}

.page-workshop-tool #ws-tool-hero .hero__sub,
.page-workshop-tool #ws-tool-hero .hero__buttons {
  position: relative;
  z-index: 2;
}

.page-workshop-tool #ws-tool-hero .hero__geometry canvas {
  width: min(62vw, 520px);
  height: min(62vw, 520px);
  max-height: 100%;
  right: -4%;
}

@media (max-width: 900px) {
  .page-workshop-tool .main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .page-workshop-tool .ws-tool,
  .page-layhercad .ws-tool,
  .page-clib .ws-tool,
  .page-gma2 .ws-tool,
  .page-midima .ws-tool,
  .page-midiavo .ws-tool,
  .page-lumi .ws-tool {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .page-layhercad .layhercad-presentations,
  .page-layhercad .layhercad-block,
  .page-layhercad .layhercad-carousel-wrap,
  .page-clib .clib-carousel-wrap,
  .page-pointworks .pointworks-carousel-wrap,
  .page-lumi .lumi-carousel-wrap,
  .page-gma2 .layhercad-block,
  .page-midima .layhercad-block,
  .page-midiavo .layhercad-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-workshop-tool #ws-tool-hero .hero__geometry canvas {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(92vw, 440px);
    height: min(92vw, 440px);
    max-height: 46vh;
    opacity: 0.9;
  }
}

.page-workshop-tool .ws-tool {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(52rem, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 2rem 4vw 0;
  box-sizing: border-box;
}

.ws-breadcrumb {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.ws-breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ws-breadcrumb a:hover {
  color: var(--accent-red);
}

.ws-breadcrumb .sep {
  margin: 0 0.4rem;
  color: var(--text-dim);
}

.ws-tool__header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--rule-thin);
}

.ws-tool__header h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.ws-tool__lead {
  font-family: var(--condensed);
  font-size: 1.15rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.ws-tool__intro {
  font-family: var(--mono);
  font-size: calc(0.9rem + 2pt);
  line-height: 1.65;
  color: var(--text-gray);
}

.ws-tool__intro p + p {
  margin-top: 0.75rem;
}

.ws-tool__intro strong {
  color: var(--text-white);
}

.ws-tool__intro h2 {
  font-family: var(--condensed);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 1.75rem 0 0.85rem;
}

.ws-tool__intro ol {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  list-style: decimal;
}

.ws-tool__intro ol > li + li {
  margin-top: 0.65rem;
}

.ws-tool__intro ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.ws-tool__intro li {
  margin-top: 0.35rem;
}

.ws-tool__intro code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--accent-orange);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
  padding: 0.08em 0.35em;
}

.ws-tool__intro a {
  color: var(--accent-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 38, 38, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ws-tool__intro a:hover {
  color: var(--accent-orange);
  border-color: rgba(249, 115, 22, 0.55);
}

.page-layhercad .ws-tool,
.page-clib .ws-tool {
  max-width: min(58rem, 100%);
}

.page-layhercad .ws-tool {
  overflow-x: clip;
}

.page-layhercad .layhercad-presentations {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.page-layhercad .ws-tool__lead,
.page-layhercad .ws-tool__intro p {
  overflow-wrap: break-word;
}

/* LayherCAD blocks */
.layhercad-presentations {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.layhercad-block {
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(10, 10, 10, 0.45);
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.layhercad-block-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
}

.layhercad-block-header > div:not(.step-index) {
  flex: 1;
  min-width: 0;
}

.layhercad-block-header .step-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-red);
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
}

.layhercad-block-header h2 {
  font-family: var(--condensed);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 0.25rem;
  overflow-wrap: break-word;
}

.layhercad-block .block-subtitle {
  font-family: var(--mono);
  font-size: calc(0.82rem + 2pt);
  color: var(--text-dim);
  margin: 0;
  overflow-wrap: break-word;
}

.layhercad-block-body {
  padding: 1rem 1.25rem 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.layhercad-block-body p,
.page-layhercad .description-text p {
  font-family: var(--mono);
  font-size: calc(0.88rem + 2pt);
  line-height: 1.65;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.layhercad-video-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.layhercad-video-wrap video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  max-height: min(56vh, 480px);
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: #0a0a0a;
}

.layhercad-screenshots {
  margin-top: 3rem;
}

.layhercad-screenshots h2,
.pointworks-screenshots h2,
.clib-screenshots h2,
.lumi-screenshots h2,
.ws-tool h2.ws-section-title {
  font-family: var(--condensed);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.clib-screenshots {
  margin-top: 3rem;
}

.pointworks-screenshots {
  margin-top: 3rem;
}

.ws-tool__section-hint {
  font-family: var(--mono);
  font-size: calc(0.82rem + 2pt);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 0.5rem;
}

.layhercad-carousel-wrap,
.clib-carousel-wrap,
.pointworks-carousel-wrap,
.lumi-carousel-wrap {
  margin-top: 1.25rem;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(10, 10, 10, 0.45);
  padding: 1rem 1rem 0.5rem;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.layhercad-carousel-viewport,
.clib-carousel-viewport,
.pointworks-carousel-viewport,
.lumi-carousel-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(220, 38, 38, 0.15);
  background: #0a0a0a;
}

.layhercad-carousel-track,
.clib-carousel-track,
.pointworks-carousel-track,
.lumi-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.layhercad-carousel-slide,
.clib-carousel-slide,
.pointworks-carousel-slide,
.lumi-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 1rem;
  cursor: zoom-in;
}

.layhercad-carousel-slide img,
.clib-carousel-slide img,
.pointworks-carousel-slide img,
.lumi-carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(52vh, 480px);
  object-fit: contain;
  border: 1px solid rgba(220, 38, 38, 0.15);
  background: #141414;
  cursor: zoom-in;
}

.layhercad-carousel-caption,
.clib-carousel-caption,
.pointworks-carousel-caption,
.lumi-carousel-caption {
  text-align: center;
  padding: 0.85rem 0.5rem 0.25rem;
  font-family: var(--mono);
  font-size: calc(0.82rem + 2pt);
  color: var(--text-dim);
}

.ws-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.ws-carousel-nav button {
  font-family: var(--mono);
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: transparent;
  color: var(--text-white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ws-carousel-nav button:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: var(--accent-red);
}

.ws-download {
  position: relative;
  z-index: 3;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: var(--rule-thin);
}

.page-workshop-tool .promo-actions {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.page-workshop-tool .promo-actions .btn {
  position: relative;
  z-index: 1;
}

.clib-download-note {
  font-family: var(--mono);
  font-size: calc(0.82rem + 2pt);
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Lightbox */
body.ws-lightbox-open {
  overflow: hidden;
}

.ws-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ws-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(6px);
}

.ws-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.ws-lightbox .modal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 3.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
  pointer-events: none;
}

.ws-lightbox img,
.ws-lightbox .modal-image {
  pointer-events: auto;
  max-width: min(96vw, 1600px);
  max-height: calc(100dvh - 5.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: #0a0a0a;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.65);
  cursor: zoom-out;
}

.ws-lightbox__close,
.ws-lightbox__prev,
.ws-lightbox__next {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text-white);
  cursor: pointer;
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ws-lightbox__close:hover,
.ws-lightbox__prev:hover,
.ws-lightbox__next:hover,
.ws-lightbox .lightbox-nav:hover,
.ws-lightbox .modal-close:hover,
.ws-lightbox .lightbox-close:hover {
  background: rgba(220, 38, 38, 0.18);
  border-color: var(--accent-red);
  color: var(--text-white);
}

.ws-lightbox__close {
  top: 1rem;
  right: 1rem;
}

.ws-lightbox__prev {
  left: max(0.75rem, 2vw);
  top: 50%;
  transform: translateY(-50%);
}

.ws-lightbox__next {
  right: max(0.75rem, 2vw);
  top: 50%;
  transform: translateY(-50%);
}

.ws-lightbox__cap,
.ws-lightbox .modal-caption {
  position: absolute;
  z-index: 2;
  bottom: max(0.75rem, 2vh);
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 40rem);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  pointer-events: none;
}

/* Legacy lightbox markup inside ws-lightbox */
.ws-lightbox .lightbox-nav.prev,
.ws-lightbox .ws-lightbox__prev {
  left: max(0.75rem, 2vw);
  top: 50%;
  transform: translateY(-50%);
}

.ws-lightbox .lightbox-nav.next,
.ws-lightbox .ws-lightbox__next {
  right: max(0.75rem, 2vw);
  top: 50%;
  transform: translateY(-50%);
}

.ws-lightbox .modal-close,
.ws-lightbox .lightbox-close {
  top: 1rem;
  right: 1rem;
}

.ws-lightbox .lightbox-nav,
.ws-lightbox .modal-close,
.ws-lightbox .lightbox-close {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text-white);
  cursor: pointer;
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
}

@media (max-width: 640px) {
  .ws-lightbox .modal-content {
    padding: 3rem 0.75rem 2rem;
  }

  .ws-lightbox img,
  .ws-lightbox .modal-image {
    max-width: 100vw;
    max-height: calc(100dvh - 4.5rem);
    border-left: none;
    border-right: none;
  }

  .ws-lightbox__prev,
  .ws-lightbox__next,
  .ws-lightbox .lightbox-nav.prev,
  .ws-lightbox .lightbox-nav.next {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.2rem;
  }
}

.page-workshop-app {
  min-height: 100vh;
  background: #0a0a0a;
}

.page-workshop-app #app {
  height: calc(100vh - 42px) !important;
  max-height: calc(100vh - 42px) !important;
}

.page-workshop-app .nav-container {
  height: calc(100vh - 42px);
}

.page-workshop-tool .site-footer {
  padding: 4vh 4vw 5vh;
}

.page-workshop-tool > .page-shell > .main > .footer-bar {
  padding: 4vh 4vw 5vh;
}

/* App bar для встроенных приложений */
.ws-app-bar {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid rgba(220, 38, 38, 0.35);
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: var(--fs-sm, 0.67rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ws-app-bar a {
  color: var(--text-gray, #b5b5b5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ws-app-bar a:hover {
  color: var(--accent-red, #dc2626);
}

.ws-app-bar__title {
  color: var(--accent-orange, #f97316);
  font-family: var(--condensed, 'Barlow Condensed', sans-serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: none;
  text-align: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-app-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.page-workshop-app .ws-app-bar .ws-app-bar__brand {
  font-family: var(--display, 'Anton', sans-serif);
  color: var(--text-white, #f5f5f5);
  letter-spacing: 0.04em;
}

.ws-app-bar__menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.45rem;
  background: #dc2626;
  border: none;
  cursor: pointer;
}

.ws-app-bar__menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}

@media (max-width: 860px) {
  .ws-app-bar--calc .ws-app-bar__brand {
    display: none;
  }

  .ws-app-bar__menu {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .page-workshop-tool .ws-tool,
  .page-layhercad .ws-tool,
  .page-clib .ws-tool,
  .page-gma2 .ws-tool,
  .page-midima .ws-tool,
  .page-midiavo .ws-tool,
  .page-lumi .ws-tool {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .page-layhercad #ws-tool-hero {
    min-height: auto;
    padding-bottom: 3vh;
  }

  .page-layhercad #ws-tool-hero .hero__headline {
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .page-layhercad #ws-tool-hero .hero__tagline {
    max-width: 100%;
  }

  .page-layhercad .sticky-label {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
  }

  .page-layhercad .layhercad-block-header {
    padding: 0.85rem 1rem;
  }

  .page-layhercad .layhercad-block-body {
    padding: 0.85rem 1rem 1rem;
  }

  .page-layhercad .layhercad-carousel-wrap {
    padding: 0.75rem 0.5rem 0.5rem;
  }

  .page-layhercad .layhercad-carousel-slide,
  .page-clib .clib-carousel-slide,
  .page-pointworks .pointworks-carousel-slide,
  .page-lumi .lumi-carousel-slide {
    min-height: 180px;
    padding: 0.65rem;
  }
}

/* Документация на страницах программ (Rental Assistant, PointWorks) */
.ws-doc {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--rule-thin);
}

.ws-doc__section {
  margin-bottom: 2rem;
}

.ws-doc__section h3 {
  font-family: var(--condensed);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 0.75rem;
}

.ws-doc__section p,
.ws-doc__section li {
  font-family: var(--mono);
  font-size: calc(0.88rem + 2pt);
  line-height: 1.65;
  color: var(--text-gray);
}

.ws-doc__section ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.ws-doc__section li {
  margin-bottom: 0.35rem;
}

.ws-doc__section code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--text-white);
  background: rgba(220, 38, 38, 0.08);
  padding: 0.1em 0.35em;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.ws-doc__tools-list {
  columns: 1;
}

@media (min-width: 640px) {
  .ws-doc__tools-list {
    columns: 2;
    column-gap: 2rem;
  }
}

.ws-doc__table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.ws-doc__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: calc(0.82rem + 2pt);
}

.ws-doc__table th,
.ws-doc__table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
  color: var(--text-gray);
}

.ws-doc__table th {
  color: var(--text-white);
  background: rgba(220, 38, 38, 0.06);
  font-weight: 500;
}

.ws-doc__pdf-note {
  font-family: var(--mono);
  font-size: calc(0.82rem + 2pt);
  color: var(--text-dim);
  margin-top: 1.5rem;
}

.ws-doc__pdf-note a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ─── grandMA2 plugin bundle ─── */

.page-gma2 .ws-tool,
.page-midima .ws-tool,
.page-midiavo .ws-tool,
.page-lumi .ws-tool {
  max-width: min(58rem, 100%);
  overflow-x: clip;
}

.gma2-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.gma2-bundle-logo {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: #0a0a0a;
  grid-row: span 2;
}

.page-midiavo .midiavo-logo {
  padding: 0.45rem;
  background: #111;
  border-radius: 0.85rem;
}

.page-midima .midima-logo {
  background: transparent;
  border: none;
  border-radius: 50%;
}

.page-lumi .lumi-logo,
.page-lumi .lumi-author-logo {
  background: transparent;
  border: none;
}

.lumi-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 0.25rem 0 2rem;
}

.lumi-metrics__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: var(--rule-thin);
}

.lumi-metrics__value {
  font-family: var(--condensed);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-white);
}

.lumi-metrics__label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lumi-metrics-title {
  font-family: var(--condensed);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 1.5rem 0 0.85rem;
}

.lumi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
}

.lumi-card {
  padding: 1.05rem 0;
  border-bottom: var(--rule-thin);
}

.lumi-card h3 {
  font-family: var(--condensed);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 0.45rem;
}

.lumi-card p,
.lumi-card li {
  font-family: var(--mono);
  font-size: calc(0.88rem + 2pt);
  line-height: 1.65;
  color: var(--text-gray);
}

.lumi-card ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.lumi-card li {
  margin-bottom: 0.35rem;
}

.lumi-card .promo-actions {
  margin-top: 0.85rem;
}

.lumi-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
}

.lumi-download-extras {
  margin-top: 1.75rem;
}

.lumi-screenshots {
  margin-top: 3rem;
}

@media (max-width: 720px) {
  .lumi-grid,
  .lumi-download-grid {
    grid-template-columns: 1fr;
  }
}

.gma2-pack-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 0.5rem;
}

.gma2-pack {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gma2-pack__header {
  padding-bottom: 0.35rem;
  border-bottom: var(--rule-thin);
}

.gma2-pack__title {
  font-family: var(--condensed);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 0.35rem;
}

.gma2-plugin-logo {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.gma2-video-wrap.is-empty {
  position: relative;
}

.gma2-video-wrap.is-empty::after {
  content: "Видеопрезентация";
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  pointer-events: none;
}

@media (max-width: 768px) {
  .page-gma2 .ws-tool,
  .page-midima .ws-tool,
  .page-midiavo .ws-tool,
  .page-lumi .ws-tool {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .page-gma2 #ws-tool-hero .hero__headline,
  .page-midima #ws-tool-hero .hero__headline,
  .page-midiavo #ws-tool-hero .hero__headline,
  .page-lumi #ws-tool-hero .hero__headline {
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .gma2-intro {
    grid-template-columns: 1fr;
  }

  .gma2-bundle-logo {
    width: 5.5rem;
    height: 5.5rem;
  }

  .gma2-plugin-logo {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}
