/* ═══════════════════════════════════════════════════════════════════
   КОНЦЕПЦИЯ 5: RESTABLE ARCHITECTURAL DESIGN SYSTEM
   Inspiration: restable.onreza.app
   Focus: Zero border-radius, pure typographic hierarchy, high-contrast,
          editorial structure, sharp technical minimalism.
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --fg: #141414;
  --fg-muted: #71717a;
  --fg-subtle: #a1a1aa;
  --border: #e4e4e7;
  --border-dark: #141414;
  --card-bg: #fafafa;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --overlay: rgba(20, 20, 20, 0.45);
  --header-bg: rgba(255, 255, 255, 0.94);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 0px; /* СТРОГО 0 СКРУГЛЕНИЙ */
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Бескомпромиссная геометрия Restable */
}

html {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: clip;
  background-color: var(--bg);
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

sup {
  font-size: 0.6em;
  line-height: 0;
  position: relative;
  vertical-align: super;
  top: -0.2em;
  font-weight: 700;
}

/* ═══ ВЕРХНИЙ СВИТЧЕР КОНЦЕПЦИЙ (GLOBAL SWITCHER) ═══ */
.rst-top-switcher {
  background: #09090b;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #27272a;
  z-index: 100;
  position: relative;
}

.rst-top-switcher a {
  color: #a1a1aa;
  transition: color 0.2s ease;
  padding: 2px 4px;
}

.rst-top-switcher a:hover {
  color: #ffffff;
}

.rst-top-switcher a.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* ═══ ВЕРХНИЙ ИНФО-БАННЕР: САЙТ В РАЗРАБОТКЕ ═══ */
.rst-dev-banner {
  background: #09090b;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #27272a;
  z-index: 100;
  position: relative;
  text-align: center;
}

.rst-dev-banner-dot {
  width: 7px;
  height: 7px;
  background: #f59e0b;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  flex-shrink: 0;
  animation: rst-pulse-dot 2.5s infinite ease-in-out;
}

@keyframes rst-pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* ═══ ТИПОГРАФИЧЕСКИЕ КЛАССЫ В СТИЛЕ RESTABLE ═══ */
.text-display {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.text-subheading {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-padding {
  padding: 4.5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.rst-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Черная разделительная черта Restable */
.rst-divider-wrap {
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .rst-divider-wrap {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-divider-wrap {
    padding: 0 5rem;
  }
}

.rst-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  width: 100%;
}

.rst-hr-light {
  border: none;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* Иконка диагональной стрелки */
.arrow-icon {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

/* ═══ HEADER (STICKY) ═══ */
.rst-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.rst-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .rst-header-inner {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-header-inner {
    padding: 0 5rem;
  }
}

.rst-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.rst-logo-line {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg);
}

.rst-max-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: 1.5px solid currentColor;
  padding: 1px 5px;
  line-height: 1;
}

.rst-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .rst-nav {
    display: flex;
  }
}

.rst-nav-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.rst-nav-link:hover {
  opacity: 0.6;
}

.rst-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rst-header-btn {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--fg);
  padding: 8px 18px;
  background: transparent;
  color: var(--fg);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.rst-header-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.rst-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

@media (min-width: 1024px) {
  .rst-mobile-toggle {
    display: none;
  }
}

/* Мобильное меню */
.rst-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--fg);
  padding: 24px 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 89;
}

.rst-mobile-menu.is-open {
  display: flex;
}

.rst-mobile-menu a {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ═══ HERO SECTION (100VH) ═══ */
.rst-hero {
  position: relative;
  height: calc(100vh - 104px);
  min-height: 600px;
  max-height: 960px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #121214;
}

.rst-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 1;
  filter: brightness(0.82) contrast(1.05);
}

.rst-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.45) 0%,
    rgba(20, 20, 20, 0.25) 50%,
    rgba(20, 20, 20, 0.88) 100%
  );
  z-index: 2;
}

.rst-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 1.5rem 2rem 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rst-hero-content {
    padding: 0 3rem 2.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-hero-content {
    padding: 0 5rem 3rem 5rem;
  }
}

.rst-hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 1100px;
  white-space: pre-line;
}

.rst-hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  max-width: 720px;
  line-height: 1.4;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.rst-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 640px) {
  .rst-hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
  }
}

/* Кнопки Restable */
.rst-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 28px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.rst-btn-primary:hover {
  background: #ffffff;
  color: var(--fg);
}

.rst-btn-primary:hover .arrow-icon {
  transform: translate(3px, -3px);
  color: var(--fg);
}

.rst-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.rst-icon-link {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rst-icon-link:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Форма заказа проекта в Hero по клику */
.rst-hero-phone-form {
  max-width: 460px;
  width: 100%;
}

.rst-hero-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid #ffffff;
}

.rst-hero-tel-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 16px 20px;
  font-family: inherit;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  outline: none;
  letter-spacing: 0.03em;
}

.rst-hero-tel-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.rst-hero-submit-btn {
  border: none;
  border-left: 2px solid #ffffff;
  background: #ffffff;
  color: #09090b;
  padding: 16px 28px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rst-hero-submit-btn:hover {
  background: #f4f4f5;
  color: #000000;
}

.rst-hero-submit-btn:hover .arrow-icon {
  transform: translate(3px, -3px);
}

.rst-hero-form-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .rst-hero-input-wrap {
    flex-direction: column;
  }
  .rst-hero-submit-btn {
    border-left: none;
    border-top: 2px solid #ffffff;
    justify-content: center;
    width: 100%;
    padding: 14px;
  }
}

/* Черные кнопки на светлом фоне */
.rst-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rst-btn-dark:hover {
  background: #ffffff;
  color: var(--fg);
}

.rst-btn-dark:hover .arrow-icon {
  transform: translate(3px, -3px);
}

.rst-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border: 1.5px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.rst-btn-outline:hover {
  background: var(--fg);
  color: #ffffff;
}

/* ═══ СЕКЦИЯ 1: ДЛЯ КОГО (FOR WHOM) ═══ */
.rst-split-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .rst-split-header {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: flex-end;
    gap: 4rem;
  }
}

.rst-header-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rst-desc-text {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-muted);
  line-height: 1.55;
  font-weight: 400;
}

.rst-huge-arrow {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg-muted);
  line-height: 1;
}

/* Ряды секции "Для кого" */
.rst-rows-list {
  display: flex;
  flex-direction: column;
}

.rst-row-item {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .rst-row-item {
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.rst-row-media {
  overflow: hidden;
  height: 220px;
  width: 100%;
  background: var(--card-bg);
}

.rst-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rst-row-item:hover .rst-row-media img {
  transform: scale(1.05);
}

.rst-row-content {
  display: flex;
  flex-direction: column;
}

.rst-row-title {
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--fg);
}

.rst-row-intro {
  color: var(--fg-muted);
  margin-bottom: 1rem;
  font-size: 15px;
  line-height: 1.55;
}

.rst-row-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rst-row-bullets li {
  color: var(--fg-muted);
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.rst-row-bullets li strong {
  color: var(--fg);
}

.rst-bullet-dot {
  width: 6px;
  height: 6px;
  background: var(--fg);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ═══ СЕКЦИЯ 2: КЕЙСЫ И РЕЗУЛЬТАТЫ (CASES 3x3 GRID) ═══ */
.rst-cases-intro {
  max-width: 840px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.rst-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .rst-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rst-cases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }
}

.rst-case-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.rst-case-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
}

.rst-case-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rst-case-card:hover .rst-case-thumb img {
  transform: scale(1.06);
}

.rst-case-stage {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 20, 20, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  z-index: 2;
}

.rst-case-info {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rst-case-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.rst-case-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
}

.rst-case-area {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
}

.rst-case-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rst-case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.2s ease;
  margin-top: auto;
}

.rst-case-card:hover .rst-case-link {
  color: var(--fg);
}

.rst-case-card:hover .rst-case-link .arrow-icon {
  transform: translate(3px, -3px);
}

/* Кнопка под сеткой кейсов */
.rst-cases-cta {
  margin-top: 3.5rem;
}

.rst-btn-big-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 32px;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  transition: all 0.25s ease;
  cursor: pointer;
}

.rst-btn-big-cta:hover {
  background: var(--fg);
  color: var(--bg);
}

.rst-btn-big-cta-row {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
}

.rst-btn-big-cta-title {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.rst-btn-big-cta-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-top: 4px;
}

.rst-btn-big-cta:hover .rst-btn-big-cta-sub {
  color: rgba(255, 255, 255, 0.7);
}

.rst-btn-big-cta:hover .arrow-icon {
  color: var(--bg);
  transform: translate(3px, -3px);
}

/* ═══ СЕКЦИЯ 3: СТОИМОСТЬ (PRICING 4-COLUMN) ═══ */
.rst-pricing-sub {
  max-width: 720px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.rst-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .rst-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rst-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.rst-pricing-col {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
}

.rst-col-step {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}

.rst-col-subtitle {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.rst-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.rst-col-list li {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.rst-pricing-meta {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rst-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--fg);
}

.rst-currency-switch {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
}

.rst-currency-btn {
  padding: 0 2px;
  font-weight: 700;
  transition: color 0.2s;
}

.rst-currency-btn.active {
  color: var(--fg);
  text-decoration: underline;
}

.rst-price-limit {
  font-size: 11px;
  font-weight: 800;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rst-pricing-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rst-btn-p-solid {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  transition: all 0.2s;
}

.rst-btn-p-solid:hover {
  background: #27272a;
}

.rst-btn-p-solid:hover .arrow-icon {
  transform: translate(2px, -2px);
}

.rst-btn-p-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  transition: all 0.2s;
}

.rst-btn-p-ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

.rst-btn-p-ghost:hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* ═══ СЕКЦИЯ 4: ШИРОКИЙ СЛАЙДЕР-МАНИФЕСТ (16:9) ═══ */
.rst-wide-slider,
.rst-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 800px;
  overflow: hidden;
  background: #18181b;
}

.rst-slide-track,
.rst-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rst-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.rst-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.rst-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.rst-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .rst-slide-caption {
    padding: 3rem 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-slide-caption {
    padding: 3.5rem 5rem;
  }
}

.rst-slide-text {
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  max-width: 960px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rst-slide-text.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.rst-slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.rst-slider-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.rst-slider-btn:hover {
  background: rgba(20, 20, 20, 0.85);
}

.rst-slider-dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

@media (min-width: 1024px) {
  .rst-slider-dots {
    right: 5rem;
    bottom: 3.5rem;
  }
}

.rst-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.rst-dot.active {
  background: #ffffff;
}

/* ═══ СЕКЦИЯ 5: ПРЕИМУЩЕСТВА (ADVANTAGES) ═══ */
.rst-adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .rst-adv-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.rst-adv-col {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  transition: border-color 0.3s;
}

.rst-adv-col:hover {
  border-color: var(--fg);
}

.rst-adv-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.rst-adv-badge {
  width: 34px;
  height: 34px;
  border: 2px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.rst-adv-title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--fg);
}

.rst-adv-desc {
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ═══ СЕКЦИЯ 6: СТРОИТЕЛЬНОЕ КРЫЛО (ECOSYSTEM) ═══ */
.rst-ecosystem-section {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  overflow: hidden;
  background: #141414;
  display: flex;
  align-items: flex-end;
}

.rst-ecosystem-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
}

.rst-ecosystem-content {
  position: relative;
  z-index: 5;
  padding: 3rem 1.5rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rst-ecosystem-content {
    padding: 4rem 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-ecosystem-content {
    padding: 4.5rem 5rem;
  }
}

.rst-eco-card {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rst-eco-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.rst-eco-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.rst-eco-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  list-style: none;
}

.rst-eco-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rst-eco-bullets li::before {
  content: "—";
  color: #ffffff;
  font-weight: bold;
}

.rst-btn-eco {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  width: fit-content;
}

.rst-btn-eco:hover {
  background: #ffffff;
  color: var(--fg);
}

.rst-btn-eco:hover .arrow-icon {
  transform: translate(3px, -3px);
  color: var(--fg);
}

/* ═══ СЕКЦИЯ 7: FAQ (АККОРДЕОН) ═══ */
.rst-faq-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 3.5rem;
}

.rst-faq-item {
  border-bottom: 1px solid var(--border);
}

.rst-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.rst-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  color: var(--fg);
  text-align: left;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s;
}

.rst-faq-trigger:hover {
  color: #52525b;
}

.rst-faq-chevron {
  width: 22px;
  height: 22px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  color: var(--fg);
}

.rst-faq-item.is-open .rst-faq-chevron {
  transform: rotate(180deg);
}

.rst-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.rst-faq-item.is-open .rst-faq-body {
  max-height: 400px;
  padding-bottom: 24px;
}

.rst-faq-answer {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 900px;
}

.rst-faq-contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rst-faq-contact-label {
  font-size: 15px;
  color: var(--fg-muted);
}

.rst-badge-contact {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: #ffffff;
}

.rst-badge-contact a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.rst-badge-contact a:hover {
  opacity: 0.65;
}

.rst-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border: 1px solid var(--fg);
  background: #ffffff;
  color: var(--fg);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.rst-badge-btn:hover {
  background: var(--fg);
  color: #ffffff;
}

.rst-badge-btn .arrow-char {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.rst-badge-btn:hover .arrow-char {
  transform: translate(2px, -2px);
}

/* ═══ СЕКЦИЯ 8: ФИНАЛЬНЫЙ CTA-ЭКРАН ═══ */
.rst-cta-section {
  position: relative;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
  background: #18181b;
  display: flex;
  align-items: flex-end;
}

.rst-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.rst-cta-content {
  position: relative;
  z-index: 3;
  padding: 3rem 1.5rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .rst-cta-content {
    padding: 3.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-cta-content {
    padding: 4rem 5rem;
  }
}

.rst-cta-title {
  color: #ffffff;
}

.rst-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 640px) {
  .rst-cta-actions {
    flex-direction: row;
    gap: 18px;
  }
}

/* ═══ ИНФО-БАР: СЛОТЫ НА ПРОЕКТИРОВАНИЕ (НА БЕЛОМ ФОНЕ) ═══ */
.rst-slots-bar {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding: 24px 1.5rem;
}

.rst-slots-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  flex-wrap: wrap;
}

.rst-slots-indicator {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
  animation: rst-slot-pulse 2.2s infinite ease-in-out;
}

@keyframes rst-slot-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.rst-slots-text {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.rst-slot-highlight {
  font-weight: 800;
  color: #09090b;
}

/* ═══ FOOTER (3-COLUMN RESTABLE) ═══ */
.rst-footer {
  border-top: none;
  padding: 4rem 1.5rem 2.5rem 1.5rem;
  background: var(--bg);
}

@media (min-width: 768px) {
  .rst-footer {
    padding: 5rem 3rem 3rem 3rem;
  }
}

@media (min-width: 1024px) {
  .rst-footer {
    padding: 5rem 5rem 3rem 5rem;
  }
}

.rst-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .rst-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
  }
}

.rst-footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--fg);
}

.rst-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rst-footer-links a, .rst-footer-links span {
  font-size: 13.5px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.rst-footer-links a:hover {
  color: var(--fg);
}

.rst-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 11px;
  color: var(--fg-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══ МОДАЛЬНОЕ ОКНО КАЛЬКУЛЯТОРА И ЗАЯВКИ ═══ */
.rst-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rst-modal-backdrop.is-open {
  display: flex;
}

.rst-modal-window {
  background: #ffffff;
  border: 2px solid var(--fg);
  width: 100%;
  max-width: 580px;
  padding: 2.5rem 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.rst-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.rst-modal-close:hover {
  background: var(--fg);
  color: #fff;
}

.rst-modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}

.rst-modal-sub {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.rst-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rst-form-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.rst-form-input, .rst-form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 16px; /* Предотвращает нежелательный зум страницы в iOS Safari */
  background: #ffffff;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.rst-form-input:focus, .rst-form-select:focus {
  border-color: var(--fg);
}

.rst-form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rst-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.rst-chip-label input[type="radio"],
.rst-chip-label input[type="checkbox"] {
  accent-color: var(--fg);
}

.rst-form-submit {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  background: var(--fg);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--fg);
  cursor: pointer;
  transition: all 0.2s;
}

.rst-form-submit:hover {
  background: #ffffff;
  color: var(--fg);
}

/* ═══ ДОПОЛНЕНИЯ ДЛЯ СТРОИТЕЛЬНОГО ЛЕНДИНГА (BUILD.HTML) ═══ */

/* Бейдж дефицита и живого статуса (Scarcity Tag) */
.rst-scarcity-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4e4e7;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.rst-live-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: rstPulse 2s infinite ease-in-out;
}

@keyframes rstPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Таблица сравнения подрядчиков (Comparison Table) */
.rst-compare-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-top: 2rem;
}

.rst-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.rst-compare-table th,
.rst-compare-table td {
  padding: 18px 22px;
  border: 1px solid var(--border);
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.55;
}

.rst-compare-table th {
  background: #f4f4f5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.rst-compare-table th.col-featured,
.rst-compare-table td.col-featured {
  background: #fbfbfe;
  border-left: 2px solid var(--fg);
  border-right: 2px solid var(--fg);
}

.rst-compare-table th.col-featured {
  background: #18181b;
  color: #ffffff;
  border-top: 2px solid var(--fg);
}

.rst-param-name {
  font-weight: 700;
  color: var(--fg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.rst-tag-bad {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rst-tag-avg {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rst-tag-good {
  display: inline-block;
  background: #18181b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Интерактивный калькулятор на странице (Calc Widget) */
.rst-calc-box {
  background: #ffffff;
  border: 2px solid var(--fg);
  padding: 36px;
  margin-top: 2.5rem;
}

.rst-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

@media (max-width: 900px) {
  .rst-calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.rst-range-slider {
  width: 100%;
  height: 6px;
  background: #e4e4e7;
  outline: none;
  margin: 16px 0 8px;
  appearance: none;
  -webkit-appearance: none;
}

.rst-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: #141414;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.rst-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #141414;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.rst-calc-output {
  background: #f4f4f5;
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rst-calc-sum {
  font-size: 34px;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}

.rst-calc-breakdown {
  list-style: none;
  border-top: 1px solid #d4d4d8;
  padding-top: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rst-calc-breakdown li {
  display: flex;
  justify-content: space-between;
}

.rst-calc-breakdown strong {
  color: var(--fg);
}

/* Сетка инспекций ГИПа (GIP Checklist Grid) */
.rst-gip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2rem;
}

@media (max-width: 991px) {
  .rst-gip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rst-gip-grid {
    grid-template-columns: 1fr;
  }
}

.rst-gip-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rst-gip-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.rst-gip-tag {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.rst-gip-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.rst-gip-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Drag and Drop загрузка файлов (Dropzone) */
.rst-dropzone {
  border: 2px dashed #a1a1aa;
  background: #fafafa;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rst-dropzone:hover,
.rst-dropzone.dragover {
  border-color: #141414;
  background: #f4f4f5;
}

.rst-dropzone-icon {
  width: 32px;
  height: 32px;
  color: #71717a;
}

.rst-dropzone-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.rst-dropzone-hint {
  font-size: 11px;
  color: var(--fg-muted);
}

.rst-file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

/* Экран успеха внутри модалки (Modal Success View) */
.rst-modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.rst-modal-success.is-visible {
  display: flex;
}

.rst-success-icon {
  width: 56px;
  height: 56px;
  background: #141414;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.rst-success-timeline {
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.rst-success-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rst-step-num {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 800;
  background: #f4f4f5;
  padding: 2px 6px;
  border: 1px solid var(--border);
  font-size: 11px;
}

/* ═══ CONCEPT 6 EXTENSIONS ═══ */

/* 1. Блок точных доказательств в цифрах (Proof Stats) */
.rst-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.rst-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rst-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.rst-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .rst-proof-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* 2. Личный блок архитектора Егора Шмыкова */
.rst-architect-section {
  background: var(--bg);
}

.rst-architect-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.rst-architect-photo-wrap {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  overflow: hidden;
}

.rst-architect-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.rst-architect-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rst-architect-story {
  font-size: 15px;
  line-height: 1.7;
  color: #3f3f46;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rst-architect-story p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #3f3f46;
  font-weight: 400;
}

.rst-architect-quote {
  border-left: 2px solid var(--fg);
  padding-left: 1.25rem;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0.25rem 0;
}

.rst-arch-principles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.rst-arch-principle-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.rst-principle-num {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 700;
  color: var(--fg-muted);
  font-size: 14px;
}

/* ═══ ЧЕК-ЛИСТ: КАК ВЫБРАТЬ АРХИТЕКТОРА ═══ */
.rst-arch-question-form {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rst-fade-in 0.25s ease;
}

@keyframes rst-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rst-arch-input {
  width: 100%;
  border: 1.5px solid var(--fg);
  background: #ffffff;
  color: var(--fg);
  font-family: inherit;
  font-size: 16px; /* Предотвращает зум в iOS Safari */
  padding: 12px 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.rst-arch-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px var(--fg);
}

.rst-arch-textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

.rst-arch-form-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.rst-arch-phone {
  flex: 1;
  min-width: 0;
}

.rst-arch-submit {
  padding: 12px 20px;
  font-size: 12px;
  flex-shrink: 0;
}

.rst-arch-close-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--fg-muted);
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.rst-arch-close-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.rst-arch-note {
  margin: 0;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}

@media (max-width: 540px) {
  .rst-arch-form-row {
    flex-direction: column;
  }
  .rst-arch-close-btn {
    width: 100%;
    padding: 8px;
  }
}
.rst-arch-checklist {
  margin-top: 4.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.rst-checklist-top {
  margin-bottom: 2rem;
}

.rst-checklist-tag {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.rst-checklist-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}

.rst-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .rst-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .rst-checklist-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rst-checklist-card {
  background: #ffffff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rst-check-badge {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.rst-check-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.rst-check-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #52525b;
  margin: 0;
}

@media (max-width: 900px) {
  .rst-architect-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .rst-architect-photo-wrap {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

/* 3. Блок математики и окупаемости проекта (Math Savings) */
.rst-math-box {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: 3rem 0;
}

.rst-math-header {
  margin-bottom: 2rem;
}

.rst-math-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.rst-math-sub {
  font-size: 14px;
  color: var(--fg-muted);
}

.rst-math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.rst-math-col {
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.rst-math-col.market {
  background: #fafafa;
}

.rst-math-col.studio {
  background: #141414;
  color: #ffffff;
  border-color: #141414;
}

.rst-math-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.rst-math-col.market .rst-math-col-title {
  color: #71717a;
}

.rst-math-col.studio .rst-math-col-title {
  color: #a1a1aa;
}

.rst-math-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.rst-math-col.studio .rst-math-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.rst-math-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
}

.rst-math-footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.rst-math-save-highlight {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rst-save-tag {
  background: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
}

.rst-save-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rst-math-payback {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .rst-math-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .rst-math-box {
    padding: 1.5rem;
  }
  .rst-math-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 4. Отзыв заказчика в блоке проектов */
.rst-project-quote-card {
  margin-top: 2.5rem;
  background: #fbfbfb;
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.rst-quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.rst-quote-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rst-quote-text {
  font-size: 15px;
  line-height: 1.6;
  color: #27272a;
}

.rst-quote-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  gap: 8px;
  align-items: center;
}

.rst-quote-project-ref {
  font-weight: 400;
  color: var(--fg-muted);
}

/* 5. Выделенная колонка полного проекта в стоимости */
.rst-pricing-col.is-featured {
  background: #141414;
  color: #ffffff;
  border-color: #141414;
  position: relative;
}

.rst-pricing-col.is-featured .rst-col-step,
.rst-pricing-col.is-featured .price-val,
.rst-pricing-col.is-featured .rst-col-subtitle {
  color: #ffffff;
}

.rst-pricing-col.is-featured .rst-col-list li {
  color: #d4d4d8;
}

.rst-pricing-col.is-featured .rst-price-limit {
  color: #a1a1aa;
}

.rst-featured-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: #ffffff;
  color: #141414;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid #141414;
}

.rst-pricing-col.is-featured .rst-currency-btn {
  color: #a1a1aa;
}

.rst-pricing-col.is-featured .rst-currency-btn.active {
  color: #ffffff;
}

/* 6. Компактный тизер строительства (Construction Teaser) */
.rst-build-teaser-card {
  margin: 3.5rem 0 0;
  padding: 2.25rem;
  background: #141414;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border: 1px solid #141414;
}

.rst-build-teaser-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
}

.rst-build-teaser-tag {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1aa;
}

.rst-build-teaser-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rst-build-teaser-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #d4d4d8;
}

.rst-build-teaser-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #ffffff;
  color: #141414;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rst-build-teaser-btn:hover {
  background: #e4e4e7;
  transform: translateX(3px);
}

@media (max-width: 820px) {
  .rst-build-teaser-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }
}

/* 7. Секция БОЛИ (PAS Framework — 4 карточки болей) */
.rst-pains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.rst-pain-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rst-pain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.rst-pain-num {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 2px 8px;
  align-self: flex-start;
}

.rst-pain-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.rst-pain-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #52525b;
}

@media (max-width: 1024px) {
  .rst-pains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rst-pains-grid {
    grid-template-columns: 1fr;
  }
}

/* 8. Секция ПРОЦЕССА (5 шагов от звонка до чертежей) */
.rst-process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.rst-process-step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.rst-step-badge {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  background: #141414;
  color: #ffffff;
  padding: 3px 8px;
  align-self: flex-start;
}

.rst-step-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rst-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

.rst-step-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #52525b;
}

@media (max-width: 1100px) {
  .rst-process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .rst-process-timeline {
    grid-template-columns: 1fr;
  }
}

/* 9. Лид-магнит (Чек-лист проверки архитектора) */
.rst-leadmagnet-box {
  margin-top: 3.5rem;
  background: #ffffff;
  border: 1.5px solid var(--fg);
  padding: 2.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.rst-leadmagnet-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 680px;
}

.rst-leadmagnet-tag {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rst-leadmagnet-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.rst-leadmagnet-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #52525b;
}

.rst-leadmagnet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #141414;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #141414;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rst-leadmagnet-btn:hover {
  background: #27272a;
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .rst-leadmagnet-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
}

/* 10. Блок «Не готов к полному проекту?» под тарифами */
.rst-pricing-stepdown {
  margin-top: 2.5rem;
  background: #fbfbfb;
  border: 1px solid var(--border);
  padding: 1.75rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.rst-stepdown-content {
  max-width: 650px;
}

.rst-stepdown-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.rst-stepdown-desc {
  font-size: 13.5px;
  color: #52525b;
  line-height: 1.55;
}

.rst-stepdown-action {
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   СТРАНИЦА ПРОЕКТА (PROJECT DETAIL PAGE)
════════════════════════════════════════ */
.rst-project-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.rst-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s;
}

.rst-back-link:hover {
  opacity: 0.7;
}

.rst-project-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4.5rem;
  align-items: start;
  margin-top: 3.5rem;
  margin-bottom: 4.5rem;
}

@media (max-width: 960px) {
  .rst-project-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Левая колонка: План */
.rst-plan-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rst-plan-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.rst-plan-card:hover {
  border-color: var(--fg);
}

.rst-plan-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.rst-plan-card:hover img {
  transform: scale(1.02);
}

.rst-plan-zoom-hint {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.rst-plan-badge {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 8px;
}

/* Правая колонка: Описание */
.rst-project-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rst-project-kicker {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin: 0;
}

.rst-project-heading-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 1rem;
}

.rst-project-title-large {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}

.rst-project-area-badge {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
}

.rst-project-slogan-styled {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg);
  font-style: italic;
  border-left: 2px solid var(--fg);
  padding-left: 1rem;
  margin: 0;
}

.rst-project-narrative-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #27272a;
  margin: 0;
}

.rst-project-specs-table {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rst-project-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
}

.rst-project-spec-key {
  color: var(--fg-muted);
  font-weight: 500;
}

.rst-project-spec-val {
  color: var(--fg);
  font-weight: 700;
  text-align: right;
}

.rst-btn-live-like-this {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.rst-btn-live-like-this:hover {
  background: #ffffff;
  color: var(--fg);
}

.rst-btn-live-like-this:hover .arrow-icon {
  transform: translate(4px, -4px);
}

/* Lightbox для плана */
.rst-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.rst-lightbox.is-open {
  display: flex;
}

.rst-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}

.rst-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #333;
}

.rst-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE & TOUCH ACCESSIBILITY AUDIT (WCAG & Restable standards)
   ═══════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .rst-btn-primary,
  .rst-btn-secondary,
  .rst-header-btn,
  .rst-nav-link,
  .rst-slider-btn,
  .rst-dot,
  .rst-chip-label,
  .rst-plan-badge,
  .rst-modal-close,
  .rst-lightbox-close {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rst-slider-controls {
    pointer-events: auto;
  }
}

/* Fluid responsive typography and container bounds */
@media (max-width: 480px) {
  .rst-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .rst-header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .rst-project-title-large {
    font-size: 2.25rem;
  }

  .rst-spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

  .rst-wide-slider {
    aspect-ratio: 4 / 3;
    min-height: 320px;
  }
}




