* { margin: 0; padding: 0; box-sizing: border-box; }

body::before { display: none !important; }

body {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  overflow-x: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  width: 100vw;
  height: 20vh;
  min-height: 80px;
  max-height: 20vh;
  position: relative;
  z-index: 10;
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
}

/* Левая часть хедера */
.header-left {
  position: absolute;
  left: 1vw;
  top: 1vh;
  height: 90%;
  display: flex;
  align-items: flex-start;
  z-index: 11;
}
.logo-link {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}
.logo-img {
  width: 13vw;
  height: auto;
  min-width: 44px;
  max-width: 170px;
  object-fit: contain;
  border-radius: 20% / 20%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
  margin: 0;
  padding: 0;
}

/* Правая часть хедера */
.header-right {
  position: absolute;
  right: 1vw;
  top: 1vh;
  height: 90%;
  display: flex;
  align-items: flex-start;
  z-index: 20;
}

/* Центральная часть хедера */
.header-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 92vw;
  padding: 0 3vw;
  user-select: text;
  z-index: 5;
  overflow: visible;
}

.header-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: bold;
  line-height: 1.17;
  color: transparent;
  background: linear-gradient(45deg, #FFA500, #00FFFF, #800080);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  max-width: 1000px;
  word-break: break-word;
  margin-bottom: 0.23em;
  margin-top: 0;
  user-select: text;
}
.header-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  font-weight: 500;
  line-height: 1.28;
  color: transparent;
  background: linear-gradient(60deg, #FFA500, #00FFFF, #800080);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  opacity: 0.98;
  max-width: 850px;
  margin-bottom: 0;
  user-select: text;
}

/* Меню */
.main-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-item {
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(30, 30, 40, 0.35);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.active {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
  box-shadow:
    0 6px 8px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* BURGER MENU STYLES */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 31;
}
.burger span,
.burger::before,
.burger::after {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  display: block;
  content: "";
  transition: 0.25s;
}
.burger span { top: 21px; }
.burger::before { top: 12px; }
.burger::after  { top: 30px; }

/* MAIN */
main {
  flex: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22vh;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.main-content-centered {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2vw; padding-right: 2vw; padding-bottom: 2vw; padding-top: 0;
  color: #b3cde7;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  line-height: 1.5;
  text-align: center;
  border-radius: 18px;
  user-select: text;
  background: none;
  box-shadow: none;
}
.main-content-centered p {
  margin-bottom: 1.3em;
  text-align: center;
}

footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 1rem 0.5rem;
  background: transparent;
  z-index: 10;
}

/* --- Media: только навигация и бургер --- */
@media (max-width: 780px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 52px; right: 0;
    flex-direction: column;
    background: rgba(0,0,0,0.91);
    border-radius: 12px;
    padding: 1.2rem 0.7rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    min-width: 150px;
    z-index: 30;
  }
  .main-nav.active { display: flex; }
  .burger { display: block; }
}

@media (max-width: 600px) {
  header {
    min-height: 65px;
    height: 20vh;
    max-height: 20vh;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }
  .header-left {
    /* не трогай position! */
    left: 1vw;
    top: 1vw;
    min-width: 44px;
    z-index: 11;
  }
  .header-right {
    /* не трогай position! */
    right: 1vw;
    top: 1vw; /* было 1vh, для полного симметричного эффекта — 1vw */
    min-width: 44px;
    z-index: 20;
  }
  .header-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 88vw;
    margin: 0 auto;
    padding: 0 2vw;
    z-index: 10;
  }
  .header-title {
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 98vw;
    line-height: 1.15;
  }
  .header-subtitle { font-size: 0.93rem; }
  main { padding-top: 17vh; }
  .main-content-centered { font-size: 1rem; }
}

/* Сброс точки-бургера в старых стилях (защита от бага) */
.burger::before,
.burger::after {
  content: "";
}

.services-list {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3vw 0 5vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.service-block {
  width: 92%;
  margin: 0 auto;
  margin-bottom: 0.7em;
  background: linear-gradient(100deg, rgba(10,28,55,0.93) 70%, rgba(0,255,255,0.06) 100%);
  border-radius: 99px / 48px;
  box-shadow: 0 4px 22px 0 rgba(0,80,120,0.15), 0 1px 0px 0 rgba(255,255,255,0.05) inset;
  border: 2.5px solid rgba(0,255,255,0.13);
  padding: 2.1em 2.4em 1.5em 2.4em;
  position: relative;
  transition: box-shadow .25s;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-block h3 {
  margin-bottom: 0.6em;
  font-size: 1.25em;
  font-weight: 700;
  background: linear-gradient(90deg, #FFA500 10%, #00FFFF 55%, #800080 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1.21;
  letter-spacing: .5px;
}

.service-block p {
  color: #d5edfa;
  font-size: 1.08em;
  line-height: 1.6;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.service-block:hover {
  box-shadow: 0 7px 32px 0 rgba(0,255,255,0.10), 0 2px 0px 0 rgba(255,255,255,0.07) inset;
  border-color: #00ffff55;
}

.service-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  margin: -0.2em 0 0.2em 0;
  pointer-events: none;
}

.service-connector svg {
  display: block;
  height: 38px;
  width: 24px;
  min-width: 18px;
  opacity: 0.95;
}

/* --- Адаптивность для мобильных --- */
@media (max-width: 600px) {
  .services-list {
    max-width: 100vw;
    padding: 2vw 0 3vw 0;
  }
  .service-block {
    width: 99%;
    border-radius: 48px / 38px;
    padding: 1.1em 0.8em 1.1em 0.8em;
    min-height: 90px;
  }
  .service-block h3 {
    font-size: 1.08em;
    margin-bottom: 0.48em;
  }
  .service-block p {
    font-size: 0.97em;
  }
  .service-connector {
    height: 24px;
    margin: -0.4em 0 0.14em 0;
  }
  .service-connector svg {
    height: 24px;
    width: 18px;
  }
}
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.main-content-centered form {
  background: rgba(27, 47, 77, 0.75);
  border-radius: 15px;
  padding: 2em;
  box-shadow: 0 2px 16px #0f22344f;
  display: flex;
  flex-direction: column;
  gap: 1em;
  color: #b3cde7;
}
.main-content-centered input,
.main-content-centered textarea {
  background: #263855;
  color: #b3cde7;
  border: 1px solid #467dab;
  border-radius: 6px;
  padding: 0.75em;
  font-size: 1em;
}
.main-content-centered button {
  background: linear-gradient(90deg,#00ffd5 0%,#867bff 100%);
  color: #222;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 0.7em 2em;
  cursor: pointer;
  margin-top: 0.5em;
  transition: background 0.2s;
}
.main-content-centered button:hover {
  background: linear-gradient(90deg,#4fffd5 0%,#bcb8ff 100%);
}

.social-section {
  margin-top: 3em;
  text-align: center;
}
.social-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.6em;
  color: #b3cde7;
  letter-spacing: 0.03em;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.6em;
}
.social-link {
  color: #00ffd5;
  font-size: 2.2em;
  transition: color 0.2s;
}
.social-link:hover {
  color: #ffd700;
}
