/* Theme */
:root {
  --primary: #0c71c3;
  --primary-strong: #045a9b;
  --accent: #7ed0ff;
  --surface: #ffffff;
  --surface-muted: #f5f8fb;
  --text: #0d1b2a;
  --muted: #5b708c;
  --border: #d6e3f2;
  --shadow: 0 20px 60px rgba(9, 54, 99, 0.15);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(12, 113, 195, 0.04),
              0 4px 16px rgba(12, 113, 195, 0.06),
              0 8px 32px rgba(12, 113, 195, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  opacity: 0.5;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav { display: none; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  font-weight: 700;
  color: var(--muted);
}

.nav a {
  padding: 10px 16px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  font-size: 0.98rem;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(12, 113, 195, 0.08);
}

.nav a:hover::after,
.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.social {
  display: flex;
  gap: 10px;
  color: var(--primary-strong);
  font-size: 1.4rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.12), rgba(126, 208, 255, 0.08));
  border: 1px solid rgba(12, 113, 195, 0.15);
  box-shadow: 0 4px 12px rgba(12, 113, 195, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social a:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.2), rgba(126, 208, 255, 0.15));
  box-shadow: 0 8px 20px rgba(12, 113, 195, 0.2);
}

.social a[aria-label="Telegram"]:hover { color: #0088cc; }
.social a[aria-label="WhatsApp"]:hover { color: #25D366; }
.social a[aria-label="VK"]:hover { color: #0077FF; }

.nav a.active {
  color: var(--primary);
  font-weight: 800;
}

.actions { display: flex; align-items: center; gap: 12px; }

.topbar.scrolled {
  box-shadow: 0 4px 12px rgba(12, 113, 195, 0.08),
              0 8px 24px rgba(12, 113, 195, 0.1),
              0 16px 48px rgba(12, 113, 195, 0.12);
}

.topbar.scrolled .topbar-inner {
  padding: 10px 0;
}

.topbar.scrolled .brand img {
  width: 58px;
  height: 58px;
}

.topbar.transitioning {
  transition: transform 0.15s ease-out;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  position: relative;
  z-index: 1;
  transition: padding 0.3s ease;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 2.4rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(12, 113, 195, 0.15);
  box-shadow: 0 4px 12px rgba(12, 113, 195, 0.12);
  transition: all 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(12, 113, 195, 0.2);
}

.brand img.pulse {
  animation: logoPulse 0.6s ease;
}
.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 18px; list-style: none; font-weight: 700; color: var(--muted); }
.nav a { padding: 8px 10px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--primary); background: rgba(12, 113, 195, 0.08); }

.actions { display: flex; align-items: center; gap: 12px; }
.social { display: flex; gap: 10px; color: var(--primary-strong); font-size: 1.4rem; }
.social a { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(12, 113, 195, 0.08); transition: transform 0.15s, background 0.2s; }
.social a:hover { transform: translateY(-2px); background: rgba(12, 113, 195, 0.16); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 700; border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; text-align: center; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: #fff; padding: 12px 20px; box-shadow: 0 10px 30px rgba(12, 113, 195, 0.35); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; padding: 12px 20px; border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }

.hero {
  background: radial-gradient(circle at 20% 20%, rgba(126, 208, 255, 0.18), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(12, 113, 195, 0.25), transparent 35%),
              linear-gradient(120deg, #0e7cd7 0%, #094f9b 60%, #083d7a 100%);
  color: #fff;
  padding: 18px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 26px; }
.hero-content { display: flex; flex-direction: column; gap: 15px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; animation: fadeInUp 0.6s ease 0.1s both; align-self: flex-start; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; font-weight: 800; line-height: 1.2; max-width: 580px; margin: 0; color: #fff; background: linear-gradient(135deg, #ffffff 0%, #b8e3ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeInUp 0.8s ease 0.2s both; }
.hero-lead { max-width: 560px; color: rgba(255,255,255,0.92); font-size: 1.08rem; line-height: 1.7; margin: -6px 0 0; animation: fadeInUp 0.8s ease 0.3s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; animation: fadeInUp 0.8s ease 0.4s both; }
.hero-actions .btn-primary { background: #fff; color: var(--primary); font-size: 1.05rem; padding: 14px 26px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25); }
.hero-actions .btn-primary:hover { background: #f0f8ff; transform: translateY(-2px); }
.hero-actions .btn-secondary { font-size: 1.05rem; padding: 12px 26px; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 0; animation: fadeInUp 0.8s ease 0.5s both; }
.hero-pill { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24); font-weight: 600; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transition: transform 0.2s, background 0.2s; }
.hero-pill:hover { background: rgba(255,255,255,0.2); transform: translateX(2px); }

.section { padding: 24px 0; }
#info { padding-top: 12px; }
.section-heading { display: grid; gap: 10px; text-align: center; margin-bottom: 18px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text); }
.section-lead { color: var(--muted); max-width: 680px; justify-self: center; }

.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(10, 50, 90, 0.06); }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.card p { color: var(--muted); }

.contact-phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.contact-phone-number:hover {
  color: var(--primary-strong);
}

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link i {
  font-size: 1.5rem;
  color: #fff;
}

.contact-link:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-link--telegram {
  background: #0088cc;
}

.contact-link--whatsapp {
  background: #25D366;
}

.contact-link--vk {
  background: #0077FF;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.service-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(10, 50, 90, 0.06), 0 8px 24px rgba(10, 50, 90, 0.04);
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: slideInUp 0.6s ease both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(12, 113, 195, 0.15), 0 20px 48px rgba(12, 113, 195, 0.1);
  border-color: rgba(12, 113, 195, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-media {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.18), rgba(9, 79, 155, 0.32));
}

.service-card:nth-child(1) .service-media {
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.2), rgba(126, 208, 255, 0.15));
}

.service-card:nth-child(2) .service-media {
  background: linear-gradient(135deg, rgba(126, 208, 255, 0.2), rgba(12, 113, 195, 0.15));
}

.service-card:nth-child(3) .service-media {
  background: linear-gradient(135deg, rgba(9, 79, 155, 0.2), rgba(12, 113, 195, 0.15));
}

.service-card:nth-child(4) .service-media {
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.15), rgba(126, 208, 255, 0.2));
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-media img {
  transform: scale(1.08);
}

.service-media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e7f4ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.24), rgba(126, 208, 255, 0.2));
}

.service-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(12, 113, 195, 0.25);
  z-index: 15;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: white;
}

.service-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.service-carousel-slide.active {
  opacity: 1;
}

.service-carousel-prev,
.service-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-carousel-prev,
.service-card:hover .service-carousel-next {
  opacity: 1;
}

.service-carousel-prev:hover,
.service-carousel-next:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.service-carousel-prev { left: 10px; }
.service-carousel-next { right: 10px; }

.service-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.service-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-dot.active {
  background: rgba(255, 255, 255, 1);
}

.service-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.service-card:nth-child(3) .service-media img { object-position: center 20%; }

.service-body {
  padding: 0 20px;
  display: grid;
  gap: 12px;
}

.service-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service-body p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.section-map { padding: 0 0 30px 0 !important; }
.section-map iframe { display: block; max-width: 100%; }

/* Responsive Services Grid */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    max-width: 450px;
    margin: 0 auto;
  }
}

.review-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.review-btn--yandex {
  background: #FF3812;
}

.review-btn--vk {
  background: #0077FF;
}

.card { display: flex; flex-direction: column; }

.footer { background: var(--text); color: #e4eefc; padding: 22px 0; text-align: center; font-size: 0.95rem; }

/* Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.18), rgba(9, 79, 155, 0.32));
  aspect-ratio: 4/3;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e7f4ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(12, 113, 195, 0.24), rgba(126, 208, 255, 0.2));
  font-size: 1.2rem;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(12, 113, 195, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.75rem;
}
.carousel-prev:hover, .carousel-next:hover {
  background: rgba(12, 113, 195, 0.35);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 719px) {
  .menu-toggle { display: none !important; }
  
  .nav { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 28px 0 40px; }
  .topbar-inner { 
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }
  .brand { 
    flex: 1 1 auto;
    font-size: 2rem;
    gap: 10px;
  }
  .brand img { 
    width: 70px; 
    height: 70px; 
  }
  .actions {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .social a { 
    width: 40px; 
    height: 40px; 
  }
  .btn-primary { 
    padding: 9px 14px; 
    font-size: 0.95rem; 
  }
}

@media (min-width: 720px) {
  .nav { display: block; }
  .brand { font-size: 2rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
  .hero-content { padding-right: 20px; }
}

@media (min-width: 1024px) {
  .topbar-inner { padding: 12px 0; }
  .brand img { width: 78px; height: 78px; }
  .hero { padding: 22px 0 35px; }
  .section { padding: 35px 0; }
  .section-heading { margin-bottom: 20px; }
  #services { padding-top: 30px; }
  #info { padding-top: 16px; }
}

/* 13-15" Laptops (1280px-1535px) */
@media (min-width: 1280px) and (max-width: 1535px) {
  .hero { padding: 25px 0 35px; }
  .section { padding: 32px 0; }
  .section-heading { margin-bottom: 16px; }
  #services { padding-top: 26px; }
  #info { padding-top: 14px; }
}

@media (max-width: 480px) {
  .contact-phone-number {
    font-size: 1.05rem;
  }
  
  .contact-link,
  .review-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  .contact-links,
  .review-buttons {
    gap: 10px;
  }
}
