/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: #131922;
  animation: fadeIn 1s ease-in;
  overflow-x: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

h1, h2, h3 {
  text-transform: uppercase;
}

button {
  cursor: pointer;
  padding: 5px 15px;
  border: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1.5px;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  animation: slideDown 0.8s ease;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.712);
  transition: all 0.3s ease;
}

.menu-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  z-index: 20;
  width: 100%;
  position: relative;
  color: #ffffffb0;
}

.logo {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(230, 230, 230);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo_img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #ffffffb0;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.menu_button {
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu_button p {
  transition: 0.3s;
}

.menu_button p:hover {
  color: #ffffff;
}

.menu_button button {
  border-radius: 15px;
  background-color: #ffffffb0;
  transition: 0.3s;
}

.menu_button button:hover {
  background-color: #ffffff;
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* ===== HERO SECTION ===== */
.main {
  padding: 80px 20px 120px 20px;
  color: white;
  border-radius: 0 0 140px 140px;
  background: #131922;
  animation: fadeInUp 1.2s ease;
}

.main_title {
  font-size: 3rem;
  letter-spacing: 7px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s both;
}

.main_title h1 {
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.main_title h1:nth-child(1) {
  animation-delay: 0.3s;
}

.main_title h1:nth-child(2) {
  animation-delay: 0.5s;
}

.main_title h1:nth-child(3) {
  animation-delay: 0.7s;
}

.main_subtitle p {
  letter-spacing: 3px;
  margin-top: 50px;
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.9s both;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: #fff4da;
  padding: 80px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #063e5c;
}

.about p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
  letter-spacing: 1.5px;
}

.about_container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 35px;
}

.about_block {
  border-radius: 20px 20px 0 0;
  padding: 30px;
  text-align: left;
  max-width: 50%;
  animation: slideInLeft 0.8s ease;
}

.about_img {
  max-width: 45%;
  animation: slideInRight 0.8s ease;
}

.about_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.about_img img:hover {
  transform: scale(1.05);
}

/* ==============ADVANCED BLOCK============== */
.advan {
  background-color: #fff4da;
  text-align: center;
  padding: 60px 20px 100px 20px;
  color: #063e5c;
}

.advan_title {
  font-size: 2rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 30px;
}

.advan_block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 100px 20px 0 20px;
}

.advan_sub-item {
  font-size: 25px;
  margin-top: 50px;
}

.advan_item {
  margin-bottom: 50px;
}

.advan-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 15px;
  opacity: 0;
  animation: countUp 0.8s ease forwards;
}

.advan-item:nth-child(1) {
  animation-delay: 0.1s;
}

.advan-item:nth-child(2) {
  animation-delay: 0.2s;
}

.advan-item:nth-child(3) {
  animation-delay: 0.3s;
}

.advan-item:nth-child(4) {
  animation-delay: 0.4s;
}

.advan-item_num {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 3px;
  transition: transform 0.3s ease;
}

.advan-item:hover .advan-item_num {
  transform: scale(1.1);
}

.advan-item_text {
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 2;
}

/* =================================SERVICES=================================== */
.img-main {
  max-width: 45%;
}

.img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.img-main img:hover {
  transform: scale(1.05);
}

.service {
  background-color: #fff4da;
  padding: 80px 20px;
  text-align: center;
}

.service_title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #063e5c;
}

.service_wrap {
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  gap: 35px;
  align-items: center;
}

.service_wrap-reverse {
  flex-direction: row-reverse;
}

.service_block {
  padding: 0 30px 30px 30px;
  height: 100%;
  max-width: 50%;
  animation: fadeInUp 0.8s ease;
}

.service-log_text,
.service-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  letter-spacing: 1.5px;
}

.service-log_sub-title,
.service-sub-text {
  padding: 0 0 20px 0;
  font-size: 1.4rem;
  color: #063e5c;
}

/* ==================================CONTACT US=================================== */
.contact {
  padding: 70px 0;
  background-color: #131922;
}

.form-container {
  width: 100%;
  border-radius: 0.75rem;
  background-color: rgba(17, 24, 39, 1);
  padding: 2rem;
  color: rgba(243, 244, 246, 1);
}

.title {
  text-align: center;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  color: #fff4da;
  letter-spacing: 1.7px;
  margin-bottom: 2rem;
}

.form {
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-group {
  width: 50%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input-group label {
  display: block;
  color: rgb(175, 182, 194);
  margin-bottom: 5px;
}

.input-group input {
  margin-bottom: 10px;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(55, 65, 81, 1);
  outline: 0;
  background-color: rgba(17, 24, 39, 1);
  padding: 0.80rem 1rem;
  color: rgba(243, 244, 246, 1);
  transition: all 0.2s linear;
}

.input-group input:focus {
  border-color: rgba(167, 139, 250);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.contact_button {
  margin-top: 25px;
  display: block;
  max-width: 50%;
  transition: all 0.2s linear;
  width: 100%;
  background-color: rgb(178, 152, 255);
  padding: 0.75rem;
  text-align: center;
  color: rgba(17, 24, 39, 1);
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
}

.contact_button:hover {
  background-color: rgb(115, 104, 151);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 152, 255, 0.3);
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 40px 20px;
}

.footer-links {
  margin: 15px 0;
}

.footer-links a {
  color: #aaa;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-name {
  font-size: 1rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .about_block,
  .service_block,
  .img-main {
    max-width: 48%;
  }

  .main_title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    transition: right 0.3s ease;
    z-index: 100;
    padding-top: 80px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav a {
    font-size: 1.2rem;
    padding: 10px;
    display: block;
  }

  .menu_button {
    display: none;
  }

  .main_title {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .main_subtitle p {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .about_container {
    flex-direction: column;
  }

  .about_block,
  .about_img,
  .service_block,
  .img-main {
    max-width: 100%;
  }

  .about_block {
    padding: 20px;
  }

  .advan_block {
    justify-content: center;
    padding: 50px 20px 0 20px;
  }

  .advan-item {
    margin: 15px;
    min-width: 150px;
  }

  .service_wrap,
  .service_wrap-reverse {
    flex-direction: column;
  }

  .service_block {
    padding: 20px;
  }

  .input-group {
    width: 90%;
  }

  .contact_button {
    max-width: 90%;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 60px 15px 80px 15px;
    border-radius: 0 0 80px 80px;
  }

  .main_title {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  .main_title h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .main_subtitle p {
    font-size: 0.9rem;
    margin-top: 30px;
  }

  .about,
  .service,
  .advan {
    padding: 40px 15px;
  }

  .about h2,
  .service_title,
  .advan_title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .about p {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .service-log_text,
  .service-text {
    font-size: 1rem;
  }

  .advan-item_num {
    font-size: 40px;
  }

  .advan-item_text {
    font-size: 16px;
  }

  .title {
    font-size: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .input-group {
    width: 100%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo_img {
    width: 30px;
    height: 30px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Intersection Observer animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

