:root {
  --bg: #080b10;
  --surface: #0d131a;
  --surface-strong: #121922;
  --text: #f4f8ff;
  --muted: #9fb3c8;
  --accent: #16c6ff;
  --accent-hover: #53dcff;
  --accent-soft: #0a7fb3;
  --border: #163047;
  --shadow-glow: rgba(22, 198, 255, 0.22);
  --glow: 0 0 0 1px rgba(83, 220, 255, 0.28), 0 18px 48px rgba(22, 198, 255, 0.3);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 127px;
  --transition: 220ms ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(22, 198, 255, 0.055), rgba(22, 198, 255, 0) 24%),
    radial-gradient(circle at left center, rgba(10, 127, 179, 0.03), rgba(10, 127, 179, 0) 20%),
    linear-gradient(180deg, #080b10 0%, #0e1218 100%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.page-shell { overflow: hidden; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.hero-copy,
.hero-panel,
.service-card,
.advantage-card,
.review-card,
.portfolio-card,
.pricing-card,
.faq-item {
  min-width: 0;
}
.section { padding: 50px 0; }
.section-alt { background: linear-gradient(180deg, rgba(13, 19, 26, 0.82), rgba(8, 11, 16, 0.55)); }

.section-heading { max-width: 780px; margin-bottom: 40px; }
.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-heading .eyebrow { color: var(--accent); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(22, 48, 71, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: stretch;
  align-self: stretch;
  flex-shrink: 0;
}
.logo-image {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--accent-hover);
  font-size: 1.1rem;
  transition: color var(--transition), text-shadow var(--transition);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 18px rgba(83, 220, 255, 0.55);
}
.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 17, 29, 0.9);
  padding: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition);
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, #39d8ff 0%, var(--accent) 48%, var(--accent-soft) 100%);
  color: var(--text);
  border-color: rgba(83, 220, 255, 0.34);
  box-shadow: var(--glow);
}
.button-primary:hover, .button-primary:focus-visible {
  background: linear-gradient(135deg, #6ae5ff 0%, var(--accent-hover) 45%, var(--accent) 100%);
  box-shadow: 0 0 0 1px rgba(83, 220, 255, 0.36), 0 20px 52px rgba(22, 198, 255, 0.34);
}
.button-secondary {
  background: rgba(7, 17, 29, 0.9);
  border-color: rgba(22, 198, 255, 0.24);
  color: var(--text);
}
.button-secondary:hover, .button-secondary:focus-visible, .button-ghost:hover, .button-ghost:focus-visible {
  border-color: rgba(83, 220, 255, 0.48);
  box-shadow: 0 12px 30px rgba(22, 198, 255, 0.14);
}
.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-icon {
  width: 54px;
  min-width: 54px;
  padding: 0;
  border-radius: 50%;
  background: rgba(7, 17, 29, 0.9);
  border-color: rgba(22, 198, 255, 0.24);
  color: var(--text);
}

.button-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.button-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.button-icon[aria-label="WhatsApp"] svg {
  width: 26.4px;
  height: 26.4px;
}

.button-icon[aria-label="WhatsApp"] img {
  width: 29.04px;
  height: 29.04px;
}

.button-icon[aria-label="VK"] svg {
  width: 31.68px;
  height: 31.68px;
}

.button-icon[aria-label="VK"] img {
  width: 25.34px;
  height: 25.34px;
}

.button-icon:hover,
.button-icon:focus-visible {
  border-color: rgba(83, 220, 255, 0.48);
  box-shadow: 0 12px 30px rgba(22, 198, 255, 0.14);
  color: var(--accent-hover);
}

.social-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero { padding-top: 72px; padding-bottom: 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

.contacts-grid {
  display: block;
  max-width: 820px;
}
.hero-copy h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.8rem, 5.3vw, 4.0rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.hero-text {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.reviews-actions {
  margin-top: 24px;
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}
.hero-points li,
.price-row,
.contact-card,
.review-card,
.service-card,
.advantage-card,
.pricing-card,
.hero-card {
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.96), rgba(11, 22, 36, 0.92));
  border: 1px solid rgba(22, 48, 71, 0.95);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}
.hero-points li { padding: 18px 20px; border-radius: var(--radius-sm); color: var(--text); }
.hero-card {
  position: relative;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -25% 20%;
  height: 220px;
  background:
    radial-gradient(circle, rgba(22, 198, 255, 0.18) 0%, rgba(22, 198, 255, 0) 70%),
    radial-gradient(circle, rgba(142, 234, 58, 0.12) 0%, rgba(142, 234, 58, 0) 65%);
  filter: blur(14px);
}
.panel-kicker {
  margin: 0 0 14px;
  color: var(--accent-hover);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}
.hero-services {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-services li {
  position: relative;
  padding: 10px 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid rgba(22, 48, 71, 0.95);
}
.hero-services li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  box-sizing: border-box;
}

.hero-services li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-services li:first-child::before {
  top: 2px;
}

.services-grid,
.advantages-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.contact-card,
.advantage-card,
.review-card {
  padding: 28px;
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover,
.contact-card:hover,
.advantage-card:hover,
.review-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 198, 255, 0.36);
  box-shadow: 0 20px 54px rgba(3, 8, 15, 0.62);
}
.service-card h3,
.advantage-card h3,
.portfolio-overlay h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 180px;
  gap: 22px;
  align-items: stretch;
}

.service-content {
  min-width: 0;
}

.service-media {
  min-width: 0;
}

.service-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(22, 48, 71, 0.95);
}
.service-price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
}

.service-price-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.service-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.service-price-row span {
  color: var(--muted);
  line-height: 1.5;
  min-width: 0;
}

.service-price-row .service-price {
  flex-shrink: 0;
  white-space: nowrap;
}

.service-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
.service-card p,
.advantage-card p,
.review-card p,
.faq-answer p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-card {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.portfolio-card,
.carousel-slide {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.portfolio-card img,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}
.portfolio-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 11, 0.94));
}

.portfolio-carousel {
  position: relative;
  display: grid;
  gap: 20px;
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: var(--bg);
  box-shadow: none;
}

.carousel-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 460px;
  min-height: 460px;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(22, 198, 255, 0.18);
  border-top-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: carousel-spin 0.85s linear infinite;
  transition: opacity 180ms ease;
}

.carousel-slide.is-loading::after {
  opacity: 1;
}

.carousel-slide.is-loading img {
  opacity: 0;
}

.carousel-slide img {
  transition: opacity 180ms ease;
}

@keyframes carousel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.carousel-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(22, 48, 71, 0.45);
  border-radius: 999px;
}

.carousel-progress-bar {
  display: block;
  width: 5.8824%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: inherit;
  transition: width 420ms ease;
}

.carousel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font-size: 2.8rem;
  line-height: 1;
  box-shadow: none;
  transition: transform var(--transition), color var(--transition), text-shadow var(--transition);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-2px);
  color: var(--text);
  text-shadow: 0 0 14px rgba(83, 220, 255, 0.42);
}

.pricing-card { padding: 18px 24px; border-radius: var(--radius-lg); }
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 48, 71, 0.95);
  box-shadow: none;
}
.price-row:last-child { border-bottom: 0; }
.price-row span { color: var(--muted); }
.price-row strong { white-space: nowrap; font-size: 1.05rem; }

.review-rating {
  margin-bottom: 18px;
  color: var(--accent-hover);
  letter-spacing: 0.18em;
  font-size: 1.6em;
  text-shadow: 0 0 18px rgba(83, 220, 255, 0.24);
}
.review-card strong { display: block; margin-top: 20px; color: var(--text); }

.faq-list { display: grid; gap: 14px; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 48, 71, 0.95);
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.96), rgba(11, 22, 36, 0.92));
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { opacity: 0; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.faq-answer p { overflow: hidden; padding: 0 24px 0; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding-bottom: 22px; }

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
}
.contact-list a { font-size: 1.15rem; font-weight: 700; }
.site-footer {
  padding: 34px 0 56px;
  border-top: 1px solid rgba(22, 48, 71, 0.9);
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-meta { text-align: right; }
.footer-meta a { display: inline-block; margin-bottom: 8px; font-weight: 700; }

.mobile-call-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  width: auto;
  max-width: calc(100vw - 32px);
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #39d8ff 0%, var(--accent) 48%, var(--accent-soft) 100%);
  border: 1px solid rgba(83, 220, 255, 0.34);
  color: var(--text);
  font-weight: 800;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 999px rgba(8, 11, 16, 0.22) inset,
    var(--glow);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.mobile-call-button.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal-delay { transition-delay: 100ms; }
.reveal-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .hero-grid,
  .advantages-grid,
  .reviews-grid,
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-slide {
    height: 576px;
    min-height: 576px;
  }
}

@media (max-width: 860px) {
  :root { --header-height: 90px; }
  .section { padding: 50px 0; }
  .header-inner {
    margin: 0;
    gap: 10px;
  }
  .logo {
    max-width: calc(100% - 60px);
  }
  .menu-toggle { display: inline-block; flex-shrink: 0; }
  .logo-image {
    height: 100%;
    max-width: 100%;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 18px;
    padding: 22px 20px;
    background: rgba(3, 6, 11, 0.97);
    border: 1px solid rgba(22, 48, 71, 0.98);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }
  .site-nav a {
    font-size: 1.18rem;
    line-height: 1.35;
    padding: 4px 0;
  }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .hero-grid,
  .services-grid,
  .advantages-grid,
  .reviews-grid,
  .portfolio-grid,
  .hero-points { grid-template-columns: 1fr; }
  .carousel-button {
    display: none;
  }
  .carousel-slide {
    height: 400px;
    min-height: 400px;
  }
  .service-card {
    grid-template-columns: 1fr;
  }
  .service-media img {
    min-height: 220px;
  }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 50px 0; }
  .hero { padding-top: 44px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 9.2vw, 3.6rem); }
  .carousel-slide {
    height: 576px;
    min-height: 576px;
  }
  .hero-text { font-size: 1rem; }
  .hero-card, .service-card, .advantage-card, .review-card, .pricing-card { padding: 24px; }
  .price-row { flex-direction: column; align-items: flex-start; }
  .button, .mobile-call-button { width: 100%; }
  .hero-actions { width: 100%; }
  .social-group {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .hero-actions .button {
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
  }
  .social-group .button-icon {
    width: 54px;
    min-width: 54px;
    padding-left: 0;
    padding-right: 0;
    flex: 0 0 54px;
  }
  .hero-points li { padding: 16px 18px; }
  .mobile-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
