/* ==========================================================================
   СТИЛЬНЫЙ МЕТАЛЛ (ООО «ЛЕГКИЕ ОГРАЖДЕНИЯ»)
   Zero-Scroll 100vh Video Edition — Unified Logo Green & Graphite Palette
   ========================================================================== */

:root {
  --bg-dark: #0e1612;
  --bg-dark-2: #14221b;
  --bg-card: rgba(11, 23, 17, 0.88);
  --bg-light: #ffffff;
  --bg-surface: #f2f6f4;

  --accent: #19734b;
  --accent-hover: #125a3a;
  --accent-light: #4cd696;
  --accent-soft: rgba(25, 115, 75, 0.22);
  --accent-border: rgba(76, 214, 150, 0.45);

  --text-light: #f4f8f6;
  --text-light-muted: #b0c0b8;
  --text-main: #131c18;
  --text-secondary: #43524b;

  --border-dark: rgba(255, 255, 255, 0.12);
  --border-dark-strong: rgba(255, 255, 255, 0.26);
  --border-light: #d7e2dc;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-lg: 0 24px 64px rgba(4, 12, 8, 0.5);

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.46;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) and (min-height: 640px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.09;
}

p, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-tabular {
  font-variant-numeric: tabular-nums;
}

.sp-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Full-Viewport 3-Row Shell ---------- */
.sp-viewport {
  position: relative;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--bg-dark);
}

.sp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sp-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
}

.sp-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(10, 22, 16, 0.94) 0%, rgba(12, 26, 19, 0.83) 52%, rgba(12, 26, 19, 0.6) 100%),
    linear-gradient(180deg, rgba(10, 22, 16, 0.5) 0%, rgba(10, 22, 16, 0.14) 30%, rgba(10, 22, 16, 0.85) 100%);
}

.sp-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ---------- Clean White Top Header ---------- */
.sp-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.sp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 7px 0;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sp-brand__logo,
.sp-brand .custom-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 235px;
  object-fit: contain;
}

.sp-header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sp-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sp-region-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sp-head-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.sp-head-link:hover {
  color: var(--accent);
}

.sp-head-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--text-main);
  transition: color var(--transition);
}

.sp-head-phone:hover {
  color: var(--accent);
}

/* ---------- Main Single-Screen Content ---------- */
.sp-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 18px 0;
}

.sp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.86fr);
  gap: 36px;
  align-items: center;
}

.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sp-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent-light);
}

.sp-title {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.07;
  color: #ffffff;
  margin-bottom: 14px;
  max-width: 700px;
}

.sp-title span {
  color: var(--accent-light);
}

.sp-lead {
  font-size: clamp(0.94rem, 1.1vw, 1.04rem);
  color: #d6e0da;
  line-height: 1.54;
  max-width: 600px;
  margin-bottom: 18px;
}

.sp-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 22px;
}

.sp-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e6efe9;
}

.sp-highlights li::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--accent-light);
  flex-shrink: 0;
}

/* ---------- 3 Primary Action Controls ---------- */
.sp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 21px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.sp-btn--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.sp-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(25, 115, 75, 0.42);
}

.sp-btn--light {
  background: #ffffff;
  color: var(--text-main);
  border-color: #ffffff;
}

.sp-btn--light:hover {
  background: #e6eee9;
  transform: translateY(-1px);
}

.sp-btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: var(--border-dark-strong);
}

.sp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.55);
}

.sp-btn--block {
  width: 100%;
}

/* Clickable Messengers & Email Bar */
.sp-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sp-channels__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  margin-right: 4px;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: rgba(12, 24, 18, 0.78);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  transition: all var(--transition);
}

.sp-chip:hover {
  border-color: var(--accent-light);
  background: rgba(25, 115, 75, 0.28);
  transform: translateY(-1px);
}

.sp-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Right Panel: Video Presentation Card ---------- */
.sp-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--accent-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Video Preview Box */
.sp-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(76, 214, 150, 0.32);
  background: #08110c;
  cursor: pointer;
  padding: 0;
  display: block;
  text-align: left;
}

.sp-video-card__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.86;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.sp-video-card:hover .sp-video-card__preview {
  transform: scale(1.03);
  opacity: 0.96;
}

.sp-video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 12, 0.22) 0%, rgba(8, 17, 12, 0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}

.sp-video-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(11, 23, 17, 0.86);
  border: 1px solid rgba(76, 214, 150, 0.45);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-video-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}

.sp-video-duration {
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.sp-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px rgba(25, 115, 75, 0.32), 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.sp-video-card:hover .sp-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #1f8a5b;
  box-shadow: 0 0 0 14px rgba(76, 214, 150, 0.25), 0 12px 32px rgba(0, 0, 0, 0.55);
}

.sp-video-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.sp-video-card__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-video-card__caption strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.sp-video-card__caption span {
  font-size: 11.5px;
  color: #cddbd4;
}

/* Compact Specs inside Video Panel */
.sp-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 13px;
}

.sp-specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sp-specs span {
  color: var(--text-light-muted);
}

.sp-specs strong {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

.sp-panel__foot {
  padding-top: 12px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-panel__price-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
}

.sp-panel__price-val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

/* ---------- Bottom Footer Strip ---------- */
.sp-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-dark);
  background: rgba(9, 19, 14, 0.9);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.sp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 44px;
  padding: 8px 0;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.sp-footer__legal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sp-footer__btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-light-muted);
  text-decoration: underline;
  font-size: 11.5px;
  cursor: pointer;
}

.sp-footer__btn:hover {
  color: #ffffff;
}

/* ---------- Modals (Forms + Video Theater) ---------- */
.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 14, 10, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sp-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sp-modal__box {
  width: min(500px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform var(--transition);
}

.sp-modal.is-open .sp-modal__box {
  transform: translateY(0);
}

/* Video Theater Modal */
.sp-modal__box--video {
  width: min(980px, 100%);
  padding: 18px;
  background: #0b1510;
  color: #ffffff;
  border: 1px solid rgba(76, 214, 150, 0.35);
  border-top: 4px solid var(--accent-light);
}

.sp-video-theater__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-right: 42px;
}

.sp-video-theater__head h3 {
  font-size: 17px;
  color: #ffffff;
}

.sp-video-theater__head span {
  font-size: 12px;
  color: var(--text-light-muted);
}

.sp-video-theater__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
}

.sp-video-theater__frame video,
.sp-video-theater__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}

.sp-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.sp-modal__box--video .sp-modal__close {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sp-modal__close:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.sp-modal__title {
  font-size: 21px;
  color: var(--text-main);
  margin-bottom: 6px;
  padding-right: 36px;
}

.sp-modal__sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.sp-direct-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.sp-direct-call span {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
}

.sp-direct-call strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-main);
}

.sp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-input,
.sp-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #c6d4cc;
  background: #ffffff;
  color: var(--text-main);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sp-input:focus,
.sp-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sp-textarea {
  min-height: 76px;
  resize: vertical;
}

.sp-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #5c6b63;
  line-height: 1.4;
}

.sp-consent input {
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.sp-form__status {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.sp-form__status.is-success {
  display: block;
  background: #e9f8ef;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sp-form__status.is-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sp-custom-form-slot {
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .sp-viewport {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .sp-stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sp-region-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .sp-container {
    padding: 0 18px;
  }
  .sp-head-link {
    display: none;
  }
  .sp-head-phone {
    font-size: 15px;
  }
  .sp-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sp-btn {
    width: 100%;
  }
  .sp-panel__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
