@import url('../fonts/stylesheet.css');

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #24232f;
  background-image: url('../images/992.png');
  background-repeat: no-repeat;
  background-size: 1060px 4790px;
  background-attachment: scroll;
  background-position: center top;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 1061px) {
  body {
    background-image: url('../images/1920.png');
    background-size: 100% auto;
  }
  .hero-heading {
    margin-bottom: 20px;
  }
  .hero-text {
    margin-bottom: 0;
  }
  .hero-section .flex {
    gap: 80px;
  }
}

body::after {
  content: "";
  position: absolute;
  width: 324px;
  height: 324px;
  left: 253px;
  top: 153px;
  background: #ffffff;
  opacity: 0.5;
  filter: blur(106.3px);
  border-radius: 50%;
  z-index: -1;
}

.hero-section {
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-text {
  font-size: 20px;
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 640px;
  color: #D9D9D9;
  position: relative;
  z-index: 2;
}

.hero-heading {
  font-size: 96px;
  font-weight: bold;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 900px;
  margin-bottom: 20px;
}

.hero-section .flex {
  gap: 6px;
}

.text-accent {
  color: #30e7bc;
}

.hero-btn-main {
  background: #30e7bc;
  color: #22232a;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0 44px;
  height: 64px;
  box-shadow: 0 0 24px 0 #30e7bc80;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.hero-btn-main::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 0;
  width: 60px;
  height: 100%;
  backdrop-filter: blur(5px);
  border-radius: 0 999px 999px 0;
  pointer-events: none;
  z-index: -1;
}

.hero-btn-secondary {
  background: #24232f;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0 44px;
  height: 64px;
  box-shadow: none;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.hero-btn-main:active,
.hero-btn-main:focus {
  background: #25bfa0;
}

.hero-btn-secondary:active,
.hero-btn-secondary:focus {
  background: #1a1a22;
}

.why-section {
  position: relative;
}

.why-heading {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.1;
}

.why-desc {
  color: #d9d9d9;
  font-size: 20px;
  line-height: 1.5;
}

.advantages-section {
  position: relative;
}

.advantages-heading {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.advantage-item {
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantage-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  display: block;
}

.advantage-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  text-align: center;
}

.advantage-line {
  width: 100%;
  height: 1px;
  background: #fff;
  margin: 16px 0;
}

.advantage-desc {
  color: #d9d9d9;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.footer-content {
  font-size: 16px;
  line-height: 1.5;
}

.footer-content p {
  margin-bottom: 4px;
}

.footer-content a {
  font-size: 16px;
  line-height: 1.5;
}

.partner-section {
  position: relative;
}

.partner-heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 105px;
  max-width: 1100px;
}

.partner-heading-highlight {
  color: #f3266d;
}

.services-heading {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 135px;
}

.services-accent {
  color: #f3266d;
}

.service-item {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.service-label {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  height: auto;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.service-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  margin-bottom: 24px;
  display: block;
}

.service-item-top {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.service-desc {
  color: #d9d9d9;
  font-size: 16px;
  line-height: 1.5;
  list-style: none;
  padding: 0;
  width: 100%;
  margin-top: 0;
}

.service-desc li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
}

.service-desc li:before {
  content: "•";
  color: #fff;
  position: absolute;
  left: 0;
}

.technical-section {
  position: relative;
}

.technical-heading {
  color: #fff;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
  max-width: 1100px;
}

.technical-accent {
  color: #30e7bc;
}

.technical-desc {
  color: #d9d9d9;
  font-size: 16px;
  line-height: 1.5;
  list-style: none;
  padding: 0;
}

.technical-desc li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
}

.technical-desc li:before {
  content: "•";
  color: #fff;
  position: absolute;
  left: 0;
}

.work-heading {
  color: #fff;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
  max-width: 850px;
}

.work-accent {
  color: #30e7bc;
}

.work-desc {
  color: #d9d9d9;
  font-size: 16px;
  line-height: 1.5;
  list-style: none;
  padding: 0;
}

.work-desc li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
}

.work-desc li:before {
  content: "•";
  color: #fff;
  position: absolute;
  left: 0;
}

.work-section {
  position: relative;
}

.work-section::before {
  content: "";
  position: absolute;
  width: 580.55px;
  height: 568.03px;
  right: 50px;
  bottom: -400px;
  background: #0d4c6b;
  filter: blur(199.4px);
  border-radius: 50%;
  z-index: 0;
}

.work-image {
    position: absolute;
    right: -180px;
    top: -270px;
    width: 580px;
    height: auto;
}

@media (max-width: 1230px) {
    .work-image {
        z-index: -1;
    }
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(27, 26, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 80px 20px 20px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #30e7bc;
}

@media (max-width: 1080px) {
    .partner-image {
        display: none;
    }
}

@media (max-width: 1000px) {
    .hero-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .technical-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .work-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .services-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .partner-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .why-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .advantages-heading {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 700px) {
    body {
        background-image: url('../images/576.png');
        background-size: 700px 5000px;
    }
    
    .hero-section::before {
        width: 750px;
        height: 350px;
        right: 200px !important;
        left: -111px;
        transform: translateZ(0);
        transition: transform 0.3s ease;
    }
    
    .hero-heading {
        font-size: 48px;
        margin-bottom: 110px;
    }
    
    .hero-text {
        margin-bottom: 40px;
    }
    
    .work-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .work-content {
        order: 1;
        text-align: left;
        width: 100%;
    }
    
    .work-image {
        position: static;
        order: 2;
        margin-top: 40px;
        width: auto;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .partner-section .flex {
        flex-direction: column;
        gap: 40px;
    }
    
    .service-item {
        padding: 0 !important;
        align-self: center;
    }
}

@media (max-width: 475px) {
    header > div {
        flex-direction: column;
        gap: 20px;
    }
    
    header > div > div:first-child {
        order: 1;
        align-self: center;
    }
    
    header > div > div:last-child {
        order: 2;
        justify-content: space-between;
        width: 100%;
    }
    
    .language-selector {
        order: 1;
    }
    
    .burger-menu {
        order: 2;
    }
}

@media (max-width: 630px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-content .flex {
        justify-content: center;
    }
    
    .footer-content .text-white {
        border-right: none !important;
        padding-right: 0 !important;
    }
    .footer-content .self-end {
        align-self: flex-start;
        margin-top: 20px;
    }
    .privacy-mobile {
        display: inline !important;
    }
    .privacy-desktop {
        display: none !important;
    }
}

@media (max-width: 552px) {
    .technical-heading {
        font-size: 64px;
    }
    
    .work-heading {
        font-size: 64px;
    }
    
    .services-heading {
        font-size: 64px;
    }
    
    .partner-heading {
        font-size: 36px;
    }
    
    .why-heading {
        font-size: 64px;
    }
    
    .advantages-heading {
        font-size: 36px;
    }
    
    .footer-content {
        font-size: 20px;
    }
}

@media (max-width: 700px) {
    .work-section::before {
        z-index: 0;
        pointer-events: none;
    }
}

@media (max-width: 670px) {
    .hero-section .flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn-main,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 635px) {
    .work-section::before {
        display: none;
    }
}

@media (max-width: 390px) {
    .footer-content .flex {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content .flex > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 1060px) {
  nav {
    display: none !important;
  }
  
  .burger-menu {
    display: flex;
    order: 2;
  }
  
  .language-selector {
    order: 1;
  }
  
  .advantages-section .flex {
    flex-direction: column;
    gap: 40px;
  }
  
  .advantage-item {
    max-width: 100%;
    padding: 0 !important;
  }
  
  .service-item {
    padding: 0 !important;
  }
  
  .work-section::before {
    right: -250px;
  }
  
  .hero-heading {
    margin-bottom: 225px;
  }
  .hero-text {
    margin-bottom: 160px;
  }
  .hero-section::before {
    left: auto;
    right: -111px;
    position: absolute;
    top: 143px;
    transform: translateZ(0);
  }
}

@media (max-width: 1060px) and (min-width: 772px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .service-item {
    max-width: none;
    width: 100%;
    min-height: 350px;
  }
  .service-item-top {
    height: 220px;
  }
}

@media (max-width: 771px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-item {
    width: 100%;
    max-width: none;
    min-height: 350px;
  }
  .service-item-top {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }
  .service-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
    min-height: 300px;
  }
  .service-item-top {
    height: 240px;
  }
  .service-desc {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .service-item-top {
    height: 260px;
  }
}

.partner-image {
    position: absolute;
    right: -180px;
    top: -150px;
    width: 580px;
    height: auto;
}

.privacy-mobile {
    display: none;
}
.privacy-desktop {
    display: inline;
}

.work-content,
.work-heading,
.work-desc {
    position: relative;
    z-index: 2;
}

.hero-section .flex {
  gap: 6px;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 1150px;
  height: 450px;
  left: -95px;
  top: 90px;
  backdrop-filter: blur(5px);
  border-radius: 20%;
  z-index: 1;
  mask: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse at center, black 30%, transparent 70%);
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.game-space {
  padding: 2rem 0;
}

a {
  text-decoration: none;
  font-weight: 500;
}

.language-selector {
  background: transparent;
  border: 1px solid #30e7bc;
  border-radius: 8px;
  color: #30e7bc;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.language-selector:hover {
  background: rgba(48, 231, 188, 0.1);
}
.language-selector:focus {
  box-shadow: 0 0 0 2px rgba(48, 231, 188, 0.3);
}
.language-selector option {
  background: transparent;
  color: #30e7bc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

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

@media (max-width: 771px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }
}

