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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Inter,Arial,sans-serif;
  background-color: #000000;
  color:#ffffff;
  line-height: 1.6;
}

/* HEADER */
.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  background: #000000; 
  border-bottom: 1px solid #222222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.nav{
  height: 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 50px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu{
  display:flex;
  gap:25px;
}

.menu a{
  color: #aaaaaa; 
  text-decoration:none;
  transition:.3s;
  font-weight: 500;
  font-size: 15px;
}

.menu a:hover{
  color:#ffffff; 
}

/* LANG SWITCH */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
}

.lang-item {
  color: #888888;
  text-decoration: none;
  transition: .3s;
  cursor: pointer;
}

.lang-item.active,
.lang-item:hover {
  color: #ffffff;
}

.lang-divider {
  color: #333333;
}

/* BURGER */
.burger{
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:none;
  cursor:pointer;
}

.burger span{
  width:22px;
  height:2px;
  background: #ffffff;
  border-radius:10px;
  transition: .3s;
}

/* SECTION BASE */
section{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:80px 0 60px 0;
  scroll-margin-top: 60px;
}

.container {
  width: 100%;
  max-width: 100%; /* Змінено з 1100px на 90% */
  margin: 0 auto;
  padding: 0 40px; /* Можна трохи збільшити відступи з боків, щоб текст не лип до країв екрана */
}
/* HERO */
/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url('./assets/background.jpg') center/cover no-repeat;
  padding: 180px 0 140px 0;
  color: #ffffff;
}

/* Плавный затенок снизу в черный цвет */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* Высота зоны перехода (можно увеличить, если нужен еще более плавный переход) */
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.hero p {
  color: #aaaaaa;
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 650px;
}

/* BUTTONS */
.btn{
  display:inline-block;
  padding:13px 28px;
  background:#ffffff;
  border-radius:8px;
  color:#000000;
  text-decoration:none;
  transition:.3s ease;
  border:1px solid #ffffff;
  cursor:pointer;
  font-weight: 600;
}

.btn:hover{
  transform:translateY(-3px);
  background: #e6e6e6;
  box-shadow:0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-more {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: transparent;
  color: #ffffff;
  border: 1px solid #444444;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: .3s;
}

.btn-more:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* TITLES */
h2{
  text-align:center;
  margin-bottom:45px;
  font-size:34px;
  color: #ffffff;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ffffff;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

/* CAROUSEL FOR SERVICES */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 15px 5px;
}

.carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.4s ease-in-out;
}

.service-slide {
  flex: 0 0 calc(33.333% - 17px);
  opacity: 1 !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-btn {
  background: #111111;
  border: 1px solid #333333;
  color: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 10;
  transition: .3s;
}

.carousel-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.prev-btn { 
  left: 10px; /* Замість -60px */
}

.next-btn { 
  right: 10px; /* Замість -60px */
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333333;
  cursor: pointer;
  transition: .3s;
}

.dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 5px;
}

/* ADVANTAGES */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.advantage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.advantage-row:nth-child(even) {
  flex-direction: row-reverse;
}

.advantage-row .card {
  flex: 0 1 45%;
  margin: 0;
}

.advantage-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 45%;
}

.advantage-svg {
  width: 120px;
  height: 120px;
  transition: transform 0.4s ease;
}

.advantage-row:hover .advantage-svg {
  transform: scale(1.1);
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

/* CARDS */
.card{
  background: #0a0a0a;
  border: 1px solid #222222;
  border-top: 3px solid #ffffff; 
  padding: 30px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s ease, box-shadow .3s ease;
}

.card h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #ffffff;
}

.card p {
  font-size: 15px;
  color: #aaaaaa;
}

.card.show{
  opacity:1;
  transform:translateY(0);
}

.card.show:hover{
  transform:translateY(-5px);
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

/* FORM */
form {
  max-width: 800px;
  margin: 0 auto;
  background: #0a0a0a;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #222222;
}

input, select, textarea {
  width:100%;
  padding:14px;
  margin-bottom:15px;
  border-radius:8px;
  border: 1px solid #222222;
  background: #111111; 
  color: #ffffff;
  font-family: inherit;
  transition: .3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #ffffff;
  background: #161616;
}

/* FOOTER */
.footer {
  background: #000000;
  border-top: 1px solid #222222;
  padding: 60px 0 20px 0;
  color: #aaaaaa;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand p {
  margin-top: 15px;
  font-size: 14px;
}

.footer-contacts h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-phone {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  transition: .3s;
}

.footer-phone:hover {
  color: #aaaaaa;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-socials a:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #111111;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #666666;
}

/* Внутренние страницы услуг */
.page-header {
  position: relative;
  padding: 120px 0 60px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('./assets/background.jpg') center/cover no-repeat;
  color: #ffffff;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 0.8;
}

.service-detail-content {
  padding: 60px 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}



/* ADAPTIVE */
@media(max-width: 1100px) {
  .prev-btn { left: -20px; }
  .next-btn { right: -20px; }
}

@media(max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:34px}
  .service-slide {
    flex: 0 0 calc(50% - 13px);
  }
  
  .advantages-list { gap: 40px; }

  .advantage-row, 
  .advantage-row:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .advantage-row .card,
  .advantage-row .advantage-image {
    width: 100%;
    max-width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .burger{
    display:flex;
  }

  .menu{
    position:absolute;
    top: 60px;
    left:0;
    width:100%;
    background: #000000;
    border-bottom: 1px solid #222222;
    flex-direction:column;
    align-items:center;
    padding:25px 0;
    opacity:0;
    pointer-events:none;
    transform:translateY(-10px);
    transition:.3s ease-in-out;
  }

  .menu.active{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }
}

@media(max-width:600px){
  .grid{grid-template-columns:1fr}
  .hero h1{font-size:26px}
  h2{font-size: 26px}
  form { padding: 25px; }
  .service-slide {
    flex: 0 0 100%;
  }

  .carousel-container{
    padding: 0 0;
  }

  .carousel-btn {
    display: none;
  }

  form {
    TEXT-ALIGN: CENTER;
    }
}
