/* Base */
:root {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  background: #031422;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b4d7d 0%, #0f5f97 45%, #0d6aa8 100%);
  color: #ffffff;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(3,18,34,0.88), rgba(6,80,120,0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(2, 10, 18, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #eafcff;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 650;
  position: relative;
  padding: 8px 6px;
  transition: color 0.18s ease, transform 0.12s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ffffff;
}

/* Animated underline */
.site-nav a::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, #00e6d3, #00a7d6);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1);
  border-radius: 2px;
  opacity: 0.95;
}
.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: #e6fffb;
  font-weight: 700;
  font-size: 1 rem;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.03);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(180deg, rgba(3,18,34,0.98), rgba(6,50,80,0.98));
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 22px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #ffffff;
  font-weight: 600;
}

.hero-section {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 215, 204, 0.18), transparent 24%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 24%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 38px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-panel {
  display: flex;
  align-items: flex-start;
}

.form-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  color: #0f2240;
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.form-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e9f7f5;
  color: #0a5f58;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-card h1 {
  margin: 0 0 16px;
  font-size: 2.3rem;
  line-height: 1.05;
  text-align: center;
  font-weight: 800;
}

.form-card p {
  margin: 0 0 28px;
  color: #52607d;
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
}

.lead-form {
  display: grid;
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 10px;
  color: #5f6f8f;
  font-size: 0.92rem;
}

.lead-form label.focused {
  color: #0d51a3;
}

.lead-form input {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid #dfe6ef;
  background: #f5f8ff;
  padding: 14px 16px;
  color: #0f2240;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus {
  outline: none;
  border-color: #0d53b5;
  box-shadow: 0 0 0 4px rgba(13, 83, 181, 0.12);
}

.lead-form button {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #00d8d1 0%, #00a9d8 100%);
  color: #0f2240;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(0, 215, 209, 0.25);
}

.form-note {
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: #7d8aa6;
  text-align: center;
}

/* Bitrix24 form wrapper styles */
.b24-form-container {
  width: 100%;
  margin-top: 12px;
}
.b24-form-inner {
  width: 100%;
}
.b24-form-inner .form-loading {
  margin: 0 0 12px;
  text-align: center;
  color: #7d8aa6;
  font-size: 0.95rem;
}
/* Make embedded form elements and iframes responsive */
.b24-form-container iframe,
.b24-form-container form {
  width: 100% !important;
  max-width: 100% !important;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-text h2 {
  margin: 0;
  font-size: clamp(2.0rem, 4.0vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 750px;
}

.hero-text p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.9;
}

.video-card {
  position: relative;
  min-height: 360px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 38, 82, 0.96) 0%, #04294f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.24);
}

.video-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  background: #000;
}

.video-player.is-playing .video-preview-image,
.video-player.is-playing .play-button {
  display: none;
}

.video-player.is-playing .video-element {
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0f2240;
  font-size: 2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}




.clients-section {
  padding: 64px 0 40px;
  background: #f4f6fb;
  color: #10213c;
}

.clients-inner h3 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #243c5f;
  font-weight: 800;
}

.clients-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.client-logo {
  min-height: 140px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid rgba(15,34,57,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f3f56;
  font-size: 0.95rem;
  font-weight: 700;
  transition: box-shadow 0.32s ease, border-color 0.28s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

/* Hover/enhanced states */
.client-logo:hover,
.client-logo:focus-within {
  box-shadow: 0 18px 40px rgba(2,18,28,0.16);
  border-color: rgba(0,167,214,0.14);
}

/* Subtle shimmer overlay on hover */
.client-logo::before {
  content: attr(data-name);
  position: absolute;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0096d6, #0075b3);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  box-shadow: 0 4px 12px rgba(0, 96, 214, 0.3);
  
}

.client-logo:hover::before {
  opacity: 1;
}

.client-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
}

.client-logo:hover::after {
  display: none;
}

/* Floating animation for a lively feel */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Fade-in + rise when the page loads, staggered */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.client-logo {
  animation: fadeInUp 0.7s ease both;
}
.client-logo:nth-child(1) { animation-delay: 0.06s; }
.client-logo:nth-child(2) { animation-delay: 0.12s; }
.client-logo:nth-child(3) { animation-delay: 0.18s; }
.client-logo:nth-child(4) { animation-delay: 0.24s; }
.client-logo:nth-child(5) { animation-delay: 0.30s; }

/* Gentle perpetual float on larger screens */
@media (min-width: 900px) {
  .client-logo { animation: fadeInUp 0.7s ease both, floatY 6s ease-in-out infinite; }
  .client-logo:nth-child(odd) { animation-delay: 0.08s; }
  .client-logo:nth-child(even) { animation-delay: 0.16s; }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .client-logo,
  .client-logo::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Image styling inside client-logo */
.client-logo img {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  max-width: 95%;
  max-height: 110px;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.client-logo:hover img {
  filter: brightness(1.15);
}

.services-section {
  padding: 82px 0;
}

.services-inner {
  text-align: center;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-head h3 {
  margin: 20px 0 16px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.section-head p {
  margin: 0;
  color: #eaf4ff;
  line-height: 1.9;
  font-size: 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e7ecf5;
  padding: 34px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(0, 87, 173, 0.08);
  color: #0f2240;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h4 {
  margin: 0 0 14px;
  color: #0d2f62;
  font-size: 1.6rem;
}

.service-card p {
  margin: 0;
  color: #5f6f8f;
  line-height: 1.75;
}

.about-section {
  padding: 60px 0 90px;
  background: #eef3fb;
}

.about-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.4rem);
  color: #0d2f62;
}

.about-inner p {
  margin: 0;
  color: #5f6f8f;
  line-height: 1.85;
  font-size: 1rem;
}

.site-footer {
  background: linear-gradient(180deg, #021826 0%, #042e4a 100%);
  color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 44px 0 28px;
  align-items: start;
}

.footer-brand span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #dffcf7;
}

.footer-brand p {
  margin: 0 0 18px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-links h4 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  transition: color 0.16s ease, transform 0.12s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px 0 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #eafffb;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .clients-list {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 820px) {
  .site-nav,
  .partner-pill {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    gap: 24px;
  }

  .clients-list {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    gap: 16px;
  }

  .hero-section {
    padding-top: 80px;
  }

  .form-card {
    padding: 30px 22px;
  }

  .hero-section {
    padding-bottom: 40px;
  }

  .hero-text h2 {
    font-size: 2.4rem;
  }

  .clients-list {
    grid-template-columns: 1fr;
  }
}
