/* ============================================
   ПРО-МОНТАЖ — Custom Styles
   Palette: #1E40AF | #F97316 | #F8FAFC | #1E293B
   ============================================ */

:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --accent: #F97316;
  --accent-light: #FB923C;
  --surface: #F8FAFC;
  --text: #1E293B;
  --radius: 30px;
  --shadow-sm: 0 4px 20px rgba(30, 64, 175, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 64, 175, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 64, 175, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--surface);
  overflow-x: hidden;
}

/* ---- Header ---- */
#header {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(30, 64, 175, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Burger */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.08);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid rgba(30, 64, 175, 0.06);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(30, 64, 175, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(249, 115, 22, 0.45);
}

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(160deg, #EFF6FF 0%, var(--surface) 50%, #FFF7ED 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-shapes::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg-shapes::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 3D Camera */
.camera-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.camera-3d {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.camera-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(30, 64, 175, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Counters */
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.counter-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.counter-label {
  font-size: 0.875rem;
  color: #64748B;
  margin-top: 2px;
}

/* ---- Sections ---- */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748B;
  line-height: 1.7;
}

/* ---- 3D Icons ---- */
.icon-3d {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-3d svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition);
}

.feature-card:hover .icon-3d svg,
.reason-card:hover .icon-3d svg {
  transform: scale(1.08) translateY(-4px);
}

.icon-3d-sm {
  width: 56px;
  height: 56px;
}

/* ---- Cards ---- */
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 64, 175, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.65;
}

/* Reasons */
.reasons-section {
  background: linear-gradient(180deg, var(--surface) 0%, #EFF6FF 100%);
}

.reason-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 64, 175, 0.06);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reason-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(30, 64, 175, 0.06);
  line-height: 1;
}

.reason-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.reason-text {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.7;
}

/* ---- Form ---- */
.form-wrapper {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 64, 175, 0.06);
}

@media (min-width: 1024px) {
  .form-wrapper {
    padding: 56px 48px;
  }
}

.form-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text);
}

.form-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-input.error {
  border-color: #EF4444;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231E40AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Reviews ---- */
.reviews-section {
  background: white;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 64, 175, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.review-location {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 2px;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 64, 175, 0.06);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition), background var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition);
}

.faq-icon::before {
  width: 14px;
  height: 2.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: #64748B;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Map ---- */
.map-section {
  background: linear-gradient(180deg, var(--surface) 0%, #EFF6FF 100%);
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 64, 175, 0.08);
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
}

.custom-marker {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-text {
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
  }

  .camera-3d-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 639px) {
  .form-wrapper {
    padding: 28px 20px;
  }

  .counter-number {
    font-size: 1.75rem;
  }

  .feature-card,
  .reason-card,
  .review-card {
    padding: 24px 20px;
  }

  .faq-question {
    padding: 20px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 20px 20px;
  }

  .map-container {
    height: 350px;
  }

  .modal-content {
    padding: 36px 24px;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
    width: 100%;
  }
}

/* Prevent horizontal overflow */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Body lock when menu/modal open */
body.menu-open,
body.modal-open {
  overflow: hidden;
}
