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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.main-nav a:hover {
  color: #e5e7eb;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

.hero {
  padding-top: 32px;
  padding-bottom: 64px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2), transparent 55%),
    #020617;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  column-gap: 40px;
  row-gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-label {
  font-size: 0.85rem;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
  margin-bottom: 12px;
}

.hero-main h1 {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 3.4vw + 1rem, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.hero-main h1 span {
  display: block;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin: 0 0 12px;
  color: #9ca3af;
  font-size: 0.98rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 22px 60px rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn-full {
  width: 100%;
  background: #22c55e;
  border-color: #16a34a;
  color: #052e16;
}

.btn-full:hover {
  background: #16a34a;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.hero-bullets li::before {
  content: "•";
  margin-right: 6px;
  color: #22c55e;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.stat {
  min-width: 120px;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e7eb;
}

.stat-label {
  font-size: 0.85rem;
  color: #9ca3af;
}

.hero-card {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%),
              rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 20px 20px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.7);
}

.hero-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.hero-card h2 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.hero-card li {
  margin-bottom: 6px;
}

.section {
  padding: 64px 0;
}

.section-dark {
  background: #020617;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.8rem;
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: #9ca3af;
}

.cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 16px 16px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
  border-color: rgba(56, 189, 248, 0.6);
}

.link-btn {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: #38bdf8;
  font-size: 0.9rem;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Цены */
.price-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 800px) {
  .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price-card {
  border-color: rgba(148, 163, 184, 0.7);
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #22c55e;
  margin: 0 0 4px;
}

.price-note {
  margin-bottom: 10px;
}

.block-btn {
  width: 100%;
  margin-top: 4px;
}

.center {
  text-align: center;
  margin-top: 20px;
}

/* Portfolio */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.work-item {
  margin: 0;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 10px 10px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
}

.work-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.work-item figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.work-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
  border-color: rgba(56, 189, 248, 0.6);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.step-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  padding: 12px 14px;
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.contacts-list li {
  margin-bottom: 8px;
}

.contacts-list a {
  color: #38bdf8;
}

.map-placeholder {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* WhatsApp плавающая кнопка */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #22c55e;
  color: #052e16;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.5);
  animation: whatsapp-pulse 1.8s infinite ease-out;
}

.whatsapp-float:hover {
  transform: translateY(-1px);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Top slider */
.top-slider {
  margin-top: 72px;
}

.top-slider-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 24px;
  position: relative;
}

.top-slider-track {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: #020617;
}

.top-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.top-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .top-slide img {
    height: 320px;
  }
}

.top-slide.active {
  position: relative;
  opacity: 1;
}

.top-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-slider-arrow.prev {
  left: 28px;
}

.top-slider-arrow.next {
  right: 28px;
}

.top-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.top-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.top-slider-dots .dot.active {
  width: 18px;
  background: #22c55e;
}

