:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #10b981;
  --accent-light: #d1fae5;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.logo__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #0369a1);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo__region {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

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

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--primary);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--surface);
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* Badges & Section Headers */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.84rem;
  font-weight: 600;
}

.badge--green {
  background: var(--accent-light);
  color: #047857;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section__head {
  max-width: 700px;
  margin-bottom: 44px;
}

.section__title {
  margin: 12px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section--dark .section__subtitle {
  color: #94a3b8;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.1), transparent 45%),
              linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.hero__title span {
  color: var(--primary);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 600px;
}

.hero__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-pill {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark-soft);
  box-shadow: var(--shadow-sm);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat__val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.stat__label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Hero Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card__title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-card__sub {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-soft);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.form-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}

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

.form-consent a,
.legal-trigger {
  color: var(--primary);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Legal Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal__dialog {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal__head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.modal__close {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  display: grid;
  place-items: center;
}

.modal__body {
  padding: 22px 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal__body h4 {
  color: var(--dark);
  margin: 18px 0 8px;
  font-size: 1rem;
}

.modal__body h4:first-child {
  margin-top: 0;
}

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status--ok {
  display: block;
  background: var(--accent-light);
  color: #065f46;
}

.form-status--err {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* Grids & Cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Equipment Showcase */
.equip-card {
  padding: 0;
  overflow: hidden;
}

.equip-card__img {
  height: 210px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.equip-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equip-card__body {
  padding: 22px;
}

/* Pricing */
.price-card {
  position: relative;
}

.price-card--popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.price-card__tag {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card__val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 12px 0 16px;
}

.price-card__val span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.mini-prices {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mini-price__name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mini-price__cost {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

/* Calculator */
.calc-box {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.calc-step {
  margin-bottom: 24px;
}

.calc-step__label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.96rem;
}

.calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-pill {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.calc-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.calc-range {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.calc-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 0.88rem;
}

.calc-check input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.calc-result {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px;
}

.calc-result__price {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}

.calc-result__summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Comparison Slider (Summer vs Winter) & PTZ Demo */
.compare-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  user-select: none;
  background: #000;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-img--top {
  clip-path: inset(0 50% 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.compare-label--left { left: 14px; }
.compare-label--right { right: 14px; }

/* PTZ Interactive GIF Box */
.ptz-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.ptz-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.ptz-viewport img,
.ptz-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.ptz-viewport:hover .ptz-overlay {
  background: rgba(15, 23, 42, 0.3);
}

.ptz-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.ptz-viewport:hover .ptz-play-btn {
  transform: scale(1.08);
}

.ptz-overlay__hint {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.ptz-card.is-playing .ptz-overlay {
  opacity: 0;
  pointer-events: none;
}

.ptz-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
}

.ptz-card.is-playing .ptz-status-badge {
  display: inline-flex;
}

.ptz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Gallery */
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-card__img {
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.gallery-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card__img img {
  transform: scale(1.04);
}

.gallery-card__body {
  padding: 18px 20px;
}

.gallery-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.gallery-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.2s;
  color: var(--primary);
}

/* Contacts & Footer */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 32px 0;
  font-size: 0.88rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4,
  .mini-prices {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__grid,
  .calc-box,
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav,
  .header__actions .btn {
    display: none;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
  }
  .burger {
    display: inline-flex;
  }
  .grid-3,
  .grid-2,
  .grid-4,
  .mini-prices,
  .calc-checks {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .calc-box {
    padding: 22px;
  }
}
