/* =========================================================
   VASILIEV SYSTEM — CLEAN BUILD
   Date: 2026-01-03
   Scope: LANDBOX / TRUST / FORMATS / CONTACTBOX + Dark Theme
   Theme trigger: <div class="theme-dark"> ... </div>
========================================================= */

/* ===== Baseline ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* ===== Layout wrapper ===== */
.vs-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   FORMATS
========================================================= */
.vs-formats { padding: 64px 0; }

.vs-head { margin-bottom: 28px; }

.vs-title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.vs-subtitle {
  margin: 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.88;
}

.vs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.vs-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.85);
}

.vs-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  opacity: 0.9;
}

.vs-card-title {
  margin: 12px 0 4px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.vs-card-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.88;
}

.vs-block { margin: 14px 0; }

.vs-block-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.85;
}

.vs-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.vs-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
}

.vs-result-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 6px;
}

.vs-result-text { font-size: 14px; line-height: 1.6; }

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.07);
}

.vs-btn:hover { opacity: 0.92; }
.vs-btn--ghost { background: transparent; }

.vs-filter {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.02);
}

.vs-filter-title {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.vs-bottom-cta {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vs-bottom-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================================================
   CONTACTBOX
========================================================= */
.vs-contact { padding: 64px 0; }

.vs-contact__head { margin-bottom: 18px; }

.vs-contact__title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.vs-contact__subtitle {
  margin: 0;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.9;
}

.vs-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.vs-contact__panel {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.85);
}

.vs-contact__label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 12px;
}

.vs-field { margin-bottom: 12px; }

.vs-field__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.92;
}

.vs-field__input,
.vs-field__select,
.vs-field__textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.16);
  padding: 12px;
  font-size: 14px;
  background: rgba(0,0,0,0.02);
}

.vs-field__textarea { resize: vertical; min-height: 160px; }

.vs-field__hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.78;
}

.vs-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.vs-btn--primary { background: rgba(0,0,0,0.10); }

.vs-contact__note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
}

.vs-contact__note-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

.vs-contact__note-text { font-size: 14px; line-height: 1.6; }

/* =========================================================
   LANDBOX
========================================================= */
.vs-land { padding: 64px 0; }

.vs-land__head { margin-bottom: 14px; }

.vs-land__title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.vs-land__subtitle {
  margin: 0;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.9;
}

.vs-land__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vs-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
}

.vs-check__input { position: absolute; opacity: 0; pointer-events: none; }

.vs-check__box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.03);
  margin-top: 2px;
  flex: 0 0 18px;
  position: relative;
}

.vs-check__text { font-size: 14px; line-height: 1.6; opacity: 0.92; }

.vs-check__input:checked + .vs-check__box { background: rgba(0,0,0,0.12); }

.vs-check__input:checked + .vs-check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid rgba(0,0,0,0.65);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vs-land__footer {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vs-land__status { font-size: 14px; line-height: 1.6; opacity: 0.9; }
.vs-land__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.vs-btn--hot { background: rgba(0,0,0,0.14); }
.vs-btn--muted { opacity: 0.85; }

/* =========================================================
   MICRO TRUST (after LANDBOX)
========================================================= */
.vs-trust { padding: 28px 0 10px; }

.vs-trust__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.vs-trust__item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
}

.vs-trust__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.92;
}

.vs-trust__text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.88;
}

/* =========================================================
   THEME DARK (single truth)
========================================================= */
.theme-dark { background: #0b0f14; color: rgba(255,255,255,0.88); min-height: 100vh; }
.theme-dark a { color: rgba(255,255,255,0.92); }

.theme-dark .vs-card,
.theme-dark .vs-contact__panel,
.theme-dark .vs-trust__item,
.theme-dark .vs-check,
.theme-dark .vs-filter,
.theme-dark .vs-land__footer,
.theme-dark .vs-contact__note,
.theme-dark .vs-result,
.theme-dark .vs-bottom-cta {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 10px 26px rgba(0,0,0,0.40);
}

.theme-dark .vs-title,
.theme-dark .vs-land__title,
.theme-dark .vs-contact__title,
.theme-dark .vs-card-title {
  color: rgba(255,255,255,0.96);
}

.theme-dark .vs-subtitle,
.theme-dark .vs-land__subtitle,
.theme-dark .vs-contact__subtitle,
.theme-dark .vs-card-lead,
.theme-dark .vs-bottom-text,
.theme-dark .vs-trust__text {
  color: rgba(255,255,255,0.82);
  opacity: 1;
}

.theme-dark .vs-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.92);
  min-height: 44px;
}

.theme-dark .vs-btn--ghost { background: transparent; }

.theme-dark .vs-field__input,
.theme-dark .vs-field__select,
.theme-dark .vs-field__textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.92);
}

.theme-dark .vs-field__input::placeholder,
.theme-dark .vs-field__textarea::placeholder {
  color: rgba(255,255,255,0.60);
}

/* Checkboxes — MAX visibility */
.theme-dark .vs-check__box {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(255,255,255,0.16);
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.45),
    0 3px 10px rgba(0,0,0,0.65);
}

.theme-dark .vs-check__input:checked + .vs-check__box {
  background: rgba(255,255,255,0.32);
  border-color: #fff;
}

.theme-dark .vs-check__input:checked + .vs-check__box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 14px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

/* =========================================================
   MOBILE — one block only
   Works even if viewport is missing via pointer: coarse
========================================================= */

/* 1) phones/tablets (best trigger) */
@media (pointer: coarse) {
  .vs-wrap { padding: 0 14px; }

  .vs-grid,
  .vs-land__grid,
  .vs-contact__grid,
  .vs-filter,
  .vs-trust__inner { grid-template-columns: 1fr; gap: 12px; }

  .vs-bottom-cta,
  .vs-land__footer { flex-direction: column; align-items: flex-start; }

  .vs-contact__actions,
  .vs-land__actions { flex-direction: column; align-items: stretch; }

  .vs-btn, .btn, .header__btn { width: 100%; }

  .vs-title,
  .vs-land__title,
  .vs-contact__title { font-size: 30px; }

  .vs-subtitle,
  .vs-land__subtitle,
  .vs-contact__subtitle,
  .vs-list,
  .vs-result-text,
  .vs-check__text,
  .vs-trust__text { font-size: 16px; line-height: 1.7; }

  /* reduce “white frame noise” on mobile */
  .theme-dark .vs-card,
  .theme-dark .vs-contact__panel,
  .theme-dark .vs-trust__item,
  .theme-dark .vs-check,
  .theme-dark .vs-filter,
  .theme-dark .vs-land__footer,
  .theme-dark .vs-contact__note,
  .theme-dark .vs-result,
  .theme-dark .vs-bottom-cta {
    box-shadow: none;
    border-color: rgba(255,255,255,0.16);
  }

  /* keep checkbox visible but calmer */
  .theme-dark .vs-check__box { box-shadow: none; }
}

/* 2) optional width fallback (if you add viewport later) */
@media (max-width: 980px) {
  .vs-grid,
  .vs-land__grid,
  .vs-contact__grid,
  .vs-filter,
  .vs-trust__inner { grid-template-columns: 1fr; }
}
