/* Inner pages — shared shell from homepage DNA */

.st-main--inner {
  padding: calc(var(--st-header-h) + var(--st-space-10)) 0 var(--st-space-12);
  background: var(--st-bg);
}

.st-main--inner.st-main--has-hero {
  padding-top: 0;
}

.st-inner {
  min-height: 40vh;
}

/* ========== PAGE HERO (spec §20) ========== */
.st-page-hero {
  position: relative;
  min-height: clamp(140px, 18vw, 200px);
  margin-bottom: var(--st-space-8);
  overflow: hidden;
  padding: var(--st-space-5) 0;
}

.st-page-hero__bg {
  position: absolute;
  inset: 0;
}

.st-page-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.st-page-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 10, 0.35) 0%, rgba(4, 8, 10, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 8, 10, 0.75) 0%, rgba(4, 8, 10, 0.2) 70%);
}

.st-page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0;
}

.st-page-hero__eyebrow {
  margin: 0 0 var(--st-space-2);
  font-family: var(--st-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-page-hero__title {
  margin: 0;
  max-width: none;
  font-family: var(--st-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-main--shop .st-page-hero__title {
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.2;
}

.st-page-hero__lead {
  margin: var(--st-space-4) 0 0;
  max-width: 52ch;
  font-family: var(--st-font-ui);
  font-size: var(--st-text-md);
  line-height: 1.65;
  color: var(--st-text-secondary);
}

.st-page-hero__hud {
  position: absolute;
  right: 0;
  top: var(--st-space-5);
  bottom: auto;
  font-family: var(--st-font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(201, 168, 106, 0.14);
  pointer-events: none;
  user-select: none;
}

/* Legacy simple hero (fallback) */
.st-inner-hero {
  margin-bottom: var(--st-space-8);
  padding-bottom: var(--st-space-8);
  border-bottom: 1px solid var(--st-line);
}

.st-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--st-space-4);
  font-family: var(--st-font-ui);
  font-size: var(--st-text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-crumbs__link {
  color: var(--st-muted);
  transition: color 0.2s;
}

.st-crumbs__link:hover {
  color: var(--st-gold);
}

.st-crumbs__sep {
  opacity: 0.45;
}

.st-crumbs__current {
  color: var(--st-text-secondary);
}

.st-inner-hero__eyebrow {
  margin: 0 0 var(--st-space-2);
  font-family: var(--st-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-inner-hero__title {
  margin: 0;
  font-family: var(--st-font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--st-text);
}

/* ========== PAGE LAYOUT ========== */
.st-page {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-10);
  padding-bottom: var(--st-space-12);
}

.st-page__section {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-6);
}

.st-page__head {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-2);
  max-width: 52ch;
}

.st-page__title {
  margin: 0;
  font-family: var(--st-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-page__lead {
  margin: 0;
  font-family: var(--st-font-ui);
  font-size: var(--st-text-md);
  line-height: 1.7;
  color: var(--st-text-secondary);
}

/* Stats row */
.st-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--st-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-stats__item {
  padding: var(--st-space-6);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  background: var(--st-bg-panel);
}

.st-stats__value {
  display: block;
  margin-bottom: var(--st-space-2);
  font-family: var(--st-font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-stats__label {
  font-family: var(--st-font-ui);
  font-size: var(--st-text-sm);
  line-height: 1.5;
  color: var(--st-text-secondary);
}

/* Cards grid */
.st-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--st-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.st-card {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  min-height: 100%;
  padding: var(--st-space-5);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  background: var(--st-bg-panel);
}

.st-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.st-card__code {
  font-family: var(--st-font-display);
  font-size: var(--st-text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-card__title {
  margin: 0;
  font-family: var(--st-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-card__text {
  margin: 0;
  font-family: var(--st-font-ui);
  font-size: var(--st-text-sm);
  line-height: 1.6;
  color: var(--st-text-secondary);
}

/* Steps */
.st-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--st-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-step {
  position: relative;
  padding: var(--st-space-5);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  background: linear-gradient(180deg, rgba(24, 28, 30, 0.9) 0%, rgba(14, 16, 18, 0.95) 100%);
}

.st-step__num {
  display: block;
  margin-bottom: var(--st-space-3);
  font-family: var(--st-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--st-gold);
}

.st-step__title {
  margin: 0 0 var(--st-space-2);
  font-family: var(--st-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-step__text {
  margin: 0;
  font-size: var(--st-text-sm);
  line-height: 1.55;
  color: var(--st-text-secondary);
}

/* Split layout */
.st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--st-space-8);
  align-items: start;
}

.st-split__media {
  margin: 0;
  border-radius: var(--st-radius-md);
  overflow: hidden;
  border: 1px solid var(--st-line);
}

.st-split__media img,
.st-split__media video {
  display: block;
  width: 100%;
  height: auto;
}

/* Contacts page */
.st-contacts-page {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--st-space-8);
  align-items: start;
}

.st-contacts-page__channels {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-6);
}

.st-contacts-page .st-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-contacts-page .st-contacts__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--st-space-3);
  padding: var(--st-space-4) 0;
  border-bottom: 1px solid var(--st-line);
}

.st-contacts-page .st-contacts__main {
  font-family: var(--st-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--st-text);
}

.st-contacts-page .st-contacts__sub {
  display: block;
  margin-top: 4px;
  font-size: var(--st-text-sm);
  color: var(--st-muted);
}

.st-contacts-page__map {
  min-height: 280px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  overflow: hidden;
  background: var(--st-bg-panel);
}

/* Forms on inner pages */
.st-form--page {
  padding: var(--st-space-6);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  background: var(--st-bg-panel);
}

.st-form__eyebrow {
  margin: 0 0 var(--st-space-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-form--page .st-form__field input,
.st-form--page .st-form__field textarea,
.st-form--page .st-form__select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--st-line);
  border-radius: 0;
  background: transparent;
  color: var(--st-text);
  font-family: var(--st-font-ui);
  font-size: var(--st-text-sm);
}

.st-form--page .st-form__select {
  cursor: pointer;
}

.st-form--page .st-form__field input:focus,
.st-form--page .st-form__field textarea:focus,
.st-form--page .st-form__select:focus {
  outline: none;
  border-bottom-color: var(--st-gold);
}

.st-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--st-text-xs);
  line-height: 1.5;
  color: var(--st-muted);
}

.st-form__consent input {
  margin-top: 3px;
}

/* FAQ */
.st-faq {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-8);
}

.st-faq__group-title {
  margin: 0 0 var(--st-space-4);
  font-family: var(--st-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-faq__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--st-line);
}

.st-faq__item {
  border-bottom: 1px solid var(--st-line);
}

.st-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-4);
  width: 100%;
  padding: var(--st-space-4) 0;
  border: 0;
  background: transparent;
  color: var(--st-text);
  font-family: var(--st-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.st-faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  color: var(--st-gold);
  transition: transform 0.2s;
}

.st-faq__item.is-open .st-faq__q::after {
  transform: rotate(45deg);
}

.st-faq__a {
  display: none;
  padding: 0 0 var(--st-space-4);
  font-size: var(--st-text-sm);
  line-height: 1.65;
  color: var(--st-text-secondary);
}

.st-faq__item.is-open .st-faq__a {
  display: block;
}

/* Legal layout */
.st-legal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--st-space-8);
  align-items: start;
}

.st-legal__nav {
  margin: 0;
  padding: var(--st-space-4);
  list-style: none;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  background: var(--st-bg-panel);
}

.st-legal__link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--st-line);
  font-size: var(--st-text-sm);
  color: var(--st-text-secondary);
  transition: color 0.2s;
}

.st-legal__link:last-child {
  border-bottom: 0;
}

.st-legal__link:hover,
.st-legal__link.is-current {
  color: var(--st-gold);
}

/* CTA band */
.st-page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-space-4);
  padding: var(--st-space-6);
  border: 1px solid var(--st-line-gold);
  border-radius: var(--st-radius-md);
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.08) 0%, rgba(10, 13, 16, 0.4) 100%);
}

.st-page-cta__title {
  margin: 0;
  font-family: var(--st-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-3);
}

/* Compare table */
.st-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
}

.st-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--st-text-sm);
}

.st-table th,
.st-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--st-line);
  text-align: left;
  vertical-align: top;
}

.st-table th {
  font-family: var(--st-font-display);
  font-size: var(--st-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-text);
  background: var(--st-bg-panel);
}

.st-table tr:last-child td,
.st-table tr:last-child th {
  border-bottom: 0;
}

/* Field test videos — tile grid */
.st-field-videos {
  scroll-margin-top: calc(var(--st-header-h) + 16px);
}

.st-field-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--st-space-4);
}

.st-field-videos__item {
  margin: 0;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  overflow: hidden;
  background: var(--st-bg-panel);
}

.st-field-videos__player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101010;
}

.st-field-videos__player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101010;
}

.st-field-videos__caption {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.st-field-videos__title {
  font-family: var(--st-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-field-videos__text {
  font-size: var(--st-text-sm);
  line-height: 1.5;
  color: var(--st-text-secondary);
}

/* Tech mini blocks */
.st-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--st-space-4);
}

.st-tech-card {
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-md);
  overflow: hidden;
  background: var(--st-bg-panel);
}

.st-tech-card__img {
  display: block;
  width: 100%;
  height: auto;
}

.st-tech-card__body {
  padding: var(--st-space-4);
}

.st-tech-card__title {
  margin: 0 0 6px;
  font-family: var(--st-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-tech-card__text {
  margin: 0;
  font-size: var(--st-text-sm);
  line-height: 1.55;
  color: var(--st-text-secondary);
}

.st-thermo-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--st-space-4);
}

.st-thermo-mini__item {
  position: relative;
  border-radius: var(--st-radius-md);
  overflow: hidden;
  border: 1px solid var(--st-line);
}

.st-thermo-mini__item img {
  display: block;
  width: 100%;
  height: auto;
}

.st-thermo-mini__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--st-radius-xs);
  background: rgba(4, 8, 10, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-text);
}

/* 404 */
.st-404 {
  text-align: center;
  padding: var(--st-space-12) 0;
}

.st-404__code {
  margin: 0 0 var(--st-space-4);
  font-family: var(--st-font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: rgba(201, 168, 106, 0.2);
}

/* Prose — WP page content */
.st-prose {
  max-width: 72ch;
  font-family: var(--st-font-ui);
  font-size: var(--st-text-md);
  line-height: 1.75;
  color: var(--st-text-secondary);
}

.st-prose--wide {
  max-width: none;
}

.st-prose > :first-child {
  margin-top: 0;
}

.st-prose > :last-child {
  margin-bottom: 0;
}

.st-prose h2,
.st-prose h3,
.st-prose h4 {
  margin: var(--st-space-8) 0 var(--st-space-3);
  font-family: var(--st-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-text);
}

.st-prose h2 { font-size: clamp(22px, 2.8vw, 28px); }
.st-prose h3 { font-size: clamp(18px, 2.2vw, 22px); }
.st-prose h4 { font-size: 16px; }

.st-prose p,
.st-prose ul,
.st-prose ol {
  margin: 0 0 var(--st-space-4);
}

.st-prose ul,
.st-prose ol {
  padding-left: 1.25em;
}

.st-prose li {
  margin-bottom: 0.35em;
}

.st-prose a {
  color: var(--st-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.st-prose a:hover {
  color: var(--st-gold-100);
}

.st-prose strong {
  color: var(--st-text);
  font-weight: 600;
}

.st-prose table {
  width: 100%;
  margin: var(--st-space-6) 0;
  border-collapse: collapse;
  font-size: var(--st-text-sm);
}

.st-prose th,
.st-prose td {
  padding: 12px 14px;
  border: 1px solid var(--st-line);
  text-align: left;
}

.st-prose th {
  font-family: var(--st-font-display);
  font-size: var(--st-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-text);
  background: var(--st-bg-panel);
}

.st-prose blockquote {
  margin: var(--st-space-6) 0;
  padding: var(--st-space-4) var(--st-space-5);
  border-left: 2px solid var(--st-line-gold);
  background: var(--st-bg-panel);
  color: var(--st-text-secondary);
}

.st-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--st-radius-md);
}

.st-prose .wp-block-button__link,
.st-prose a.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--st-radius-sm);
  font-family: var(--st-font-ui);
  font-size: var(--st-text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .st-cards,
  .st-steps,
  .st-field-videos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .st-split,
  .st-contacts-page,
  .st-legal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .st-main--inner:not(.st-main--has-hero) {
    padding-top: calc(var(--st-header-h) + var(--st-space-6));
  }

  .st-stats,
  .st-cards,
  .st-cards--3,
  .st-steps,
  .st-field-videos__grid,
  .st-tech-grid,
  .st-thermo-mini {
    grid-template-columns: 1fr;
  }

  .st-page-hero__hud {
    display: none;
  }
}
