@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap');

:root {
  --grad-1: #1a1a4e;
  --grad-2: #3730a3;
  --grad-3: #6d28d9;
  --grad-4: #7c3aed;
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-bg-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --accent: #818cf8;
  --accent2: #c084fc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--grad-1);
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a1a4e 0%, #3730a3 40%, #6d28d9 100%);
  z-index: -2;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  animation: blobMove 18s ease-in-out infinite alternate;
}

.blob-1 { width: 600px; height: 600px; background: #7c3aed; top: -150px; right: -150px; animation-duration: 20s; }
.blob-2 { width: 500px; height: 500px; background: #2563eb; bottom: -100px; left: -100px; animation-duration: 25s; animation-delay: -5s; }
.blob-3 { width: 350px; height: 350px; background: #ec4899; top: 40%; left: 40%; animation-duration: 22s; animation-delay: -10s; }

@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
  100% { transform: translate(20px, 20px) scale(1.04); }
}

h1 { font-size: clamp(36px, 5.5vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -1px; }
h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 700; line-height: 1.12; margin-bottom: 48px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

section { padding: 100px 80px; position: relative; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
}

.glass:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.35); transition: all .35s ease; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 100px;
  color: #fff;
  padding: 16px 40px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .2s;
}

.btn-primary:hover { background: rgba(255,255,255,0.38); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  padding: 15px 36px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.fade { opacity: 0; transform: translateY(28px); transition: .7s ease; }
.fade.visible { opacity: 1; transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(26,26,78,0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header.scrolled { box-shadow: 0 8px 22px rgba(0,0,0,.25); }

.nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 80px;
}

.logo img {
  width: 170px;
  height: 40px;
  display: block;
}

.nav-menu { display: contents; }
.nav-links { list-style: none; display: flex; justify-content: center; gap: 18px; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: #fff; }

.nav-actions { display: inline-flex; align-items: center; gap: 14px; }
.nav-actions a[data-goal="click_phone"] { color: var(--accent); font-weight: 700; }
.nav-btn { padding: 10px 24px; font-size: 15px; }
.nav-actions button { font-family: 'Manrope', sans-serif; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 1.5; fill: none; }

.hero {
  min-height: 100vh;
  padding: 160px 80px 100px;
  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 80px;
  align-items: center;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .07;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  margin-bottom: 36px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #c084fc;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.gradient-text {
  background: linear-gradient(135deg,#818cf8,#c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.hero-stats { display: flex; margin-top: 56px; }
.hero-stat {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; font-size: 48px; font-weight: 700; color: #fff; line-height: 1; }

.hero-right { position: relative; min-height: 520px; }
.hero-card { padding: 40px; position: relative; z-index: 2; max-width: 430px; }
.hero-card .btn-primary { width: 100%; }

.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.card-one { top: -112px; right: 4px; }
.card-two { bottom: 86px; right: -10px; }
.card-three { bottom: 18px; left: 20px; }

.section-intro { max-width: 880px; margin: -20px 0 28px; }

.cases-grid,
.services-grid,
.reviews-grid,
.pricing-grid {
  display: grid;
  gap: 24px;
}

.cases-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }

.case-card,
.service-card,
.review-card,
.team-card,
.price-card {
  padding: 32px;
}

.case-card img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 12px;
}

.case-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.case-card ul { margin: 12px 0 0 18px; color: var(--text-muted); }
.more-link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; }

.service-card svg,
.contact-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.service-card span { display: inline-block; margin-top: 10px; color: var(--text-muted); font-size: 14px; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.numbers-grid article {
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 0 28px;
}

.numbers-grid article:first-child { padding-left: 0; }
.numbers-grid article:last-child { border-right: 0; }
.numbers-grid strong {
  display: block;
  font-size: clamp(56px,8vw,88px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg,#818cf8,#c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.numbers-grid span { color: var(--text-muted); }

.how-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  position: relative;
}


.how-item {
  padding: 22px 22px 22px 56px;
  border-radius: 16px;
  position: relative;
}

.how-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#818cf8,#c084fc);
  font-weight: 700;
  position: absolute;
  left: 10px;
  top: 20px;
}

.how-item small { color: var(--accent); }

.price { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.price-card ul { margin: 14px 0 18px 18px; color: var(--text-muted); }
.popular { border-color: rgba(129,140,248,0.6); }
.popular-badge {
  display: inline-block;
  background: linear-gradient(135deg,#818cf8,#c084fc);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}

.pricing-note {
  margin-top: 24px;
  padding: 32px;
  text-align: center;
}

.pricing-note .btn-primary { margin-top: 12px; }

.review-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.25);
}

.review-card small { display: block; color: var(--text-muted); margin-bottom: 8px; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-item { padding: 28px; border-radius: 16px; }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-item svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.5; fill: none; }
.faq-item div { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open div { max-height: 240px; padding-top: 12px; }
.faq-item.open svg { transform: rotate(45deg); }

.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
}

.form-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 36px;
  list-style: none;
}

input,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  transition: border-color .3s, box-shadow .3s;
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.45); }

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(129,140,248,0.7);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.2);
}

.hp-field { display: none; }
.form-wrap .btn-primary { width: 100%; font-size: 18px; }
.form-disclaimer { font-size: 12px; color: var(--text-muted); }

.secure-note {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.secure-note svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 1.5; fill: none; }

.thank-you {
  display: none;
  text-align: center;
  padding: 48px;
  margin-top: 20px;
}

.thank-you.show { display: block; }
.thank-you svg { width: 56px; height: 56px; stroke: #fff; stroke-width: 1.5; fill: none; margin-bottom: 12px; }

.contacts-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 60px;
}

.contact-card { padding: 24px; border-radius: 16px; margin-bottom: 16px; }
.contact-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 18px; }
.contact-card h3 svg { margin-bottom: 0; width: 22px; height: 22px; }
.contact-icon { fill: #c4b5fd; opacity: .95; }
.contact-icon-outline {
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-socials,
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-socials a,
.footer-socials a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-socials svg,
.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.contacts-grid iframe {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

footer {
  background: rgba(10,10,40,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 80px 80px 40px;
}

.footer-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-head p:nth-child(2) { text-align: center; }
.footer-head p:nth-child(3) { text-align: right; }

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

.footer-grid a { display: block; color: var(--text-muted); margin-bottom: 6px; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.popup.open { display: block; }

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 8, 24, 0.65);
  backdrop-filter: blur(6px);
}

.popup-dialog {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 90px auto 0;
  padding: 26px;
  z-index: 1;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.floating-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 95;
}

.floating-call.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.floating-call svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.5; fill: none; }

@media (max-width: 767px) {
  section { padding: 64px 16px; }
  .btn-primary,
  .btn-secondary { padding: 14px 24px; font-size: 16px; }
  .glass,
  .glass-strong { border-radius: 18px; }
  .hero { padding: 75px 20px 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 0 0 20px 0; }
  .numbers { padding-top: 48px; padding-bottom: 48px; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .numbers-grid article {
    border-right: 0;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    padding: 14px 10px;
    text-align: center;
  }
  .numbers-grid article:first-child { padding-left: 10px; }
  .numbers-grid strong { font-size: clamp(34px, 11vw, 46px); }
  .numbers-grid span { display: block; font-size: 14px; line-height: 1.35; }
  .cases-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .how-list { grid-template-columns: 1fr; }
  .how-item { padding-left: 52px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-head { grid-template-columns: 1fr; gap: 4px; }
  .footer-head p:nth-child(2),
  .footer-head p:nth-child(3) { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; padding: 0 20px; min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    z-index: 95;
    min-height: calc(100dvh - 68px);
    background: linear-gradient(180deg, rgba(18,18,56,0.97) 0%, rgba(31,25,96,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    padding: 24px 20px;
  }
  .nav-open .nav-menu { display: block; }
  .nav-menu .nav-links { display: grid; gap: 14px; margin-bottom: 20px; justify-content: start; }
  .nav-actions { display: grid; gap: 12px; }
  .hero-right { min-height: auto; }
  .float-card { position: static; margin-top: 12px; }
  .form-wrap { padding: 28px 20px; }
  footer { padding: 70px 20px 40px; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  section { padding: 80px 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .how-list { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 0 40px; grid-template-columns: 220px 1fr; }
  .nav-actions { display: none; }
  .nav-menu { display: block; }
}

@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 80px; align-items: center; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .how-list { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contacts-grid { grid-template-columns: 40fr 60fr; gap: 60px; }
}

@media (min-width: 1920px) {
  section, .nav, footer {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}
