/* ============================================
   3D МОДЕЛИКА — Design System
   ============================================ */
:root {
  --bg: #0A1024;
  --bg-2: #131A35;
  --bg-3: #1B2447;
  --border: #2A3155;
  --border-2: #3A4470;
  --text: #FFFFFF;
  --text-2: #C8D2E8;
  --muted: #8090B0;
  --accent: #2563EB;
  --accent-2: #3B82F6;
  --accent-3: #60A5FA;
  --success: #34D399;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --max: 1280px;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead { font-size: 1.125rem; color: var(--text-2); max-width: 720px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--accent); }
.btn-white {
  background: white;
  color: var(--bg);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo span { white-space: nowrap; color: #3B82F6; }
.logo b { font-weight: 800; color: #2563EB; }
.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }
.nav { align-items: center; }
.nav .has-dd { position: relative; }
.nav .dd-label { cursor: default; display: inline-flex; align-items: center; gap: 4px; }
.nav .dd-label::after { content: '▾'; font-size: 0.7em; opacity: 0.6; }
.nav .dd-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; min-width: 230px; opacity: 0; visibility: hidden; transition: all 0.18s ease;
  z-index: 200; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.nav .dd-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav .has-dd:hover .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav .dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; white-space: nowrap; color: var(--text-2); }
.nav .dd-menu a:hover { background: var(--bg-3); color: var(--accent-3); }
.nav .dd-menu .dd-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 12px 4px; font-weight: 700; }
.nav .dd-menu.dd-wide { display: flex; gap: 12px; }
.nav .dd-menu.dd-wide .dd-col { display: flex; flex-direction: column; min-width: 165px; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}
a[href^="tel:"], .footer-contacts a { white-space: nowrap; }
.mobile-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.85) 50%, rgba(10, 10, 11, 0.95) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 2rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.hero h1 { margin-bottom: 1.5rem; }
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-stats b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stats span {
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============ TRUST BAR ============ */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.trust-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.trust-item:hover { opacity: 1; color: var(--text); }

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-dark { background: var(--bg-2); }
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head .lead { margin: 0 auto; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.service-card-featured {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), var(--bg-2));
  border-color: rgba(37, 99, 235, 0.3);
}
.service-card-featured-2 {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), var(--bg-2));
  border-color: rgba(96, 165, 250, 0.2);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 60px rgba(37, 99, 235, 0.15);
}
.service-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.service-card:hover .service-image img { transform: scale(1.05); }
.service-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.service-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.service-body h3 { margin-bottom: 0.75rem; }
.service-body > p { color: var(--text-2); margin-bottom: 1.5rem; }
.service-list {
  list-style: none;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
.service-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.service-list b { color: var(--accent-2); }
.service-cta {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ CALCULATOR ============ */
.section-calc {
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    var(--bg);
}
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.calc-text h2 { margin-bottom: 1rem; }
.calc-text .lead { margin-bottom: 2rem; }
.calc-features {
  list-style: none;
  margin-bottom: 2rem;
}
.calc-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-2);
}
.calc-dropzone {
  position: relative;
  background: var(--bg-2);
  border: 2px dashed var(--border-2);
  border-radius: var(--r-xl);
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.calc-dropzone:hover, .calc-dropzone.dragover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), var(--bg-2));
}
.calc-dropzone svg { margin: 0 auto 1.5rem; }
.calc-dropzone h3 { margin-bottom: 0.5rem; }
.calc-dropzone p { color: var(--text-2); margin-bottom: 1.5rem; }
.formats {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-3);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============ CASES ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case {
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}
.case:hover { transform: translateY(-4px); }
.case-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.case:hover .case-img img { transform: scale(1.05); }
.case-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.case h4 { padding: 1.25rem 1.25rem 0.5rem; }
.case p { padding: 0 1.25rem 1.25rem; color: var(--text-2); font-size: 0.875rem; }
.cases-cta { text-align: center; margin-top: 3rem; }

/* ============ PRODUCTS PREVIEW ============ */
.products-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-cat {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  transition: transform 0.3s;
}
.product-cat:hover { transform: translateY(-4px); }
.product-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-cat:hover img { transform: scale(1.05); }
.product-cat-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.7) 60%, transparent 100%);
}
.product-cat-body h3 { margin-bottom: 0.5rem; }
.product-cat-body p { color: var(--text-2); margin-bottom: 1rem; }
.product-cat-body span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

/* ============ WHY ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.why-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  padding: 14px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--r-sm);
}
.why h3 { margin-bottom: 0.75rem; }
.why p { color: var(--text-2); font-size: 0.9375rem; }

/* ============ REVIEWS ============ */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 8px 16px;
  background: var(--bg-2);
  border-radius: 100px;
  font-size: 0.9375rem;
}
.rating-summary .stars { color: #FFB400; font-size: 1.125rem; }
.rating-summary b { color: var(--text); }
.rating-summary span { color: var(--muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.review .stars { color: #FFB400; font-size: 1rem; margin-bottom: 1rem; }
.review p { color: var(--text-2); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.review-author b { display: block; font-size: 0.9375rem; }
.review-author span { font-size: 0.8125rem; color: var(--muted); }

/* ============ BLOG ============ */
.blog-preview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  transition: transform 0.3s, border-color 0.3s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.blog-card-large { flex-direction: column; }
.blog-card-large .blog-img { aspect-ratio: 16/9; }
.blog-img { overflow: hidden; flex-shrink: 0; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-side .blog-img { width: 140px; }
.blog-side .blog-card { flex-direction: row; height: 140px; }
.blog-body { padding: 1.5rem; flex: 1; }
.blog-card-large .blog-body { padding: 2rem; }
.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.blog-card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; line-height: 1.3; }
.blog-card-large h3 { font-size: 1.5rem; }
.blog-card-large p { color: var(--text-2); margin-bottom: 1rem; }
.blog-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}
.blog-side { display: grid; gap: 1.5rem; }
.blog-cta { text-align: center; margin-top: 3rem; }

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 80px 0;
  margin-top: 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: white; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn-primary {
  background: var(--bg);
  color: white;
  box-shadow: none;
}
.cta-band .btn-primary:hover { background: rgba(10, 10, 11, 0.85); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-col h4 {
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col-main .logo { margin-bottom: 1rem; }
.footer-tagline {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.footer-contacts a, .footer-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ============ FLOAT WHATSAPP ============ */
.float-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.float-whatsapp:hover { transform: scale(1.1); }

/* ============ MOBILE ============ */
@media (max-width: 1024px) {
  .site-header .header-inner, header .header-inner { position: relative; flex-wrap: wrap; }
  .mobile-toggle { display: flex; margin-left: auto; }
  /* мобильное меню — выезжает под шапкой */
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    margin: 0;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    z-index: 300;
  }
  .nav.nav-open { display: flex; }
  .nav > a, .nav .dd-label { padding: 12px 14px; border-radius: 8px; width: 100%; }
  .nav > a:hover, .nav .dd-label:hover { background: var(--bg-3); }
  .nav .has-dd { width: 100%; position: static; }
  /* dropdown в мобиле — раскрывается по тапу (класс .dd-open) */
  .nav .dd-menu, .nav .dd-menu.dd-wide {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; min-width: auto; width: 100%;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0.5rem 0.75rem; flex-direction: column;
  }
  .nav .has-dd:hover .dd-menu { display: none; } /* отключаем hover на тач */
  .nav .has-dd.dd-open .dd-menu { display: flex; }
  .nav .dd-menu.dd-wide .dd-col { min-width: auto; }
  .nav .dd-label { display: flex; justify-content: space-between; cursor: pointer; }
  .nav .has-dd.dd-open .dd-label::after { transform: rotate(180deg); }
  .header-cta { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .services-grid, .reviews-grid, .why-grid, .products-preview, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; }
  .blog-preview { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .reviews-grid, .why-grid, .products-preview, .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; min-height: auto; }
  .section { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .blog-side .blog-card { flex-direction: column; height: auto; }
  .blog-side .blog-img { width: 100%; aspect-ratio: 16/9; }
}

/* ============ Виджет связи (FAB мессенджеры) ============ */
#contactWidget { position: fixed; right: 24px; bottom: 24px; z-index: 9000; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#contactWidget .cw-menu { display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.95); transition: all 0.22s ease; }
#contactWidget.cw-open .cw-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#contactWidget .cw-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; background: var(--bg-2, #131A35); border: 1px solid var(--border, #2A3155); border-radius: 100px; color: var(--text, #fff); font-size: 0.9rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.35); transition: transform 0.15s, border-color 0.15s; white-space: nowrap; }
#contactWidget .cw-item:hover { transform: translateX(-3px); border-color: var(--accent, #2563EB); }
#contactWidget .cw-ic { font-size: 1.15rem; line-height: 1; }
#contactWidget .cw-tg:hover { border-color: #0088CC; }
#contactWidget .cw-wa:hover { border-color: #25D366; }
#contactWidget .cw-max:hover { border-color: #8A2BE2; }
#contactWidget .cw-fab { width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, var(--accent, #2563EB), var(--accent-2, #3B82F6)); box-shadow: 0 8px 28px rgba(37,99,235,0.5); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; position: relative; }
#contactWidget .cw-fab:hover { transform: scale(1.06); }
#contactWidget .cw-fab-close { display: none; }
#contactWidget.cw-open .cw-fab-open { display: none; }
#contactWidget.cw-open .cw-fab-close { display: block; }
#contactWidget .cw-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,99,235,0.5); animation: cwPulse 2.2s infinite; }
#contactWidget.cw-open .cw-fab::after { animation: none; }
@keyframes cwPulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); } 70% { box-shadow: 0 0 0 16px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@media (max-width: 640px) { #contactWidget { right: 16px; bottom: 16px; } #contactWidget .cw-fab { width: 54px; height: 54px; } }

/* ============ Соцсети в шапке ============ */
.header-socials { display: flex; gap: 7px; align-items: center; margin-right: 4px; }
.header-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--text-2);
  transition: all 0.2s; flex-shrink: 0;
}
.header-socials a:hover { color: #fff; transform: translateY(-2px); }
.header-socials a.s-tg:hover { background: #0088CC; }
.header-socials a.s-vk:hover { background: #0077FF; }
.header-socials a.s-yt:hover { background: #FF0000; }
.header-socials a.s-ig:hover { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); }
.header-socials a.s-wa:hover { background: #25D366; }
.header-socials svg { width: 17px; height: 17px; }
@media (max-width: 1024px) { .header-socials { display: none; } }

/* соцсети в мобильном меню (клон из шапки) */
.nav .header-socials.nav-socials { display: none; }
@media (max-width: 1024px) {
  .nav .header-socials.nav-socials {
    display: flex; justify-content: center; gap: 12px;
    padding: 1rem 0 0.5rem; margin-top: 0.5rem;
    border-top: 1px solid var(--border); width: 100%;
  }
  .nav .header-socials.nav-socials a { width: 40px; height: 40px; }
  .nav .header-socials.nav-socials svg { width: 20px; height: 20px; }
}
