/* Сброс отступов и бордер-бокса */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; 
  height: 1px; 
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; 
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Jost", sans-serif;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(5, 0, 82, 1) 0%,
    rgba(141, 155, 245, 1) 13%,
    rgba(249, 246, 176, 1) 100%
  );
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

header img {
  height: 80px;
}

header.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0px;
}

.logo {
  font-family: "Josefin Slab", serif;
  font-size: 40px;
}

.main-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.main-menu > li {
  position: relative;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 32px;
  position: relative;
   border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom: 2px solid #e1ff00;
}

/* Телефонный блок */
.phone-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.phone-block img {
  width: 35px;
  height: 35px;
}

.phone-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
}



.phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%; /* обязательно! */
  gap: 8px; /* небольшой отступ между префиксом и полем */
}

.phone-wrapper .phone-prefix {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  color: #000000;
}

.phone-wrapper input {
  padding-left: 55px; /* Подвинем текст, чтобы не залазил на +375 */
  font-size: 16px;
  flex: 1;          /* растягивает input */
  width: 100%; 
}

#phone {
  padding-left: 60px;
  font-size: 16px;
}


.main-phone {
  color: white;
  font-weight: 500;
  text-decoration: none;
   font-family: "Jost"; /* тут меняй шрифт */
  font-size: 20px;
   border-bottom: 2px solid transparent;
}

.phone-block:hover .main-phone {
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.contacts-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-icons img {
  display: block;
  margin: 0;

}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover{
  border: none !important;
}

.social-icons a img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}


@media (max-width: 768px) {
  .contacts-group {
    flex-direction: column;
    align-items: center;
  }

  .phone-block {
    flex-direction: row;
    justify-content: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
  }
}


.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 80px 0;
}

.hero.container {
  margin-top: -100px;
}

.hero-text h2 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  line-height: 1.2;
  color: white;
  text-shadow: -2px -2px 0 black, 2px -2px 0 black, -2px 2px 0 black,
    2px 2px 0 black;
  margin-bottom: 10px;
}

.hero-text .line1 {
  font-size: 147px;
  transform: rotate(-7deg);
}

.hero-text .line2 {
  font-size: 96px;
  transform: rotate(-7deg);
}

.hero-text .line3 {
  font-size: 96px;
  transform: rotate(-7deg) translate(40px, -5px);
}

.hero-text .line4 {
  font-size: 56px;
  transform: translate(300px, -0px);
}

.line-decor {
  position: absolute;
  top: 155px;
  left: 0;
  z-index: -1;
  transform: rotate(5deg) translate(40px, -20px);
}



.hero p {
  font-size: clamp(20px, 4vw, 32px);
  text-shadow: 1px 1px 0 #000;
}

.hero img {
  height: auto;
  max-width: 500px;
}

.callback-block {
  margin-top: -150px;
}

.callback-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #E1FF00;
  color: white;
  padding: 12px 24px;
  font-size: 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.callback-btn:hover {
  background-color: #E1FF00;
  color: black;
}

.callback-form {
  position: fixed; /* или absolute, если нужно внутри wrapper */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.callback-form input,
.callback-form button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.callback-form button {
  background-color: #E1FF00;
  font-weight: bold;
  cursor: pointer;
}

.hidden{
  display: none;
}

.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px 30px;
  border: 2px solid #E1FF00;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  font-size: 18px;
  color: black;
  text-align: center;
  display: none;
}

.success-popup.show {
  display: block;
}

.services {
  padding: 60px 0;
  text-align: center;
}

.services h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

.callback-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;

}

.close-form-btn{
  
  background-color: #e94022 !important;

}


.uslugi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.uslugi li {
  list-style: none;
  text-align: center;
  flex: 1 1 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.uslugi li:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.uslugi img {
  width: 280px;
  margin-bottom: 10px;
}

.uslugi p {
  color: white;
  font-size: 32px;
  text-decoration: underline;
  text-decoration-color: #E1FF00 ;
}

.prices {
  padding: 60px 0;
  text-align: center;
}

.prices h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.prices img {
  max-width: 100%;
  border-radius: 10px;
}



@media (max-width: 1000px) {
  header.container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  nav ul {
    justify-content: center;
    margin-left: 0;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

/* Вставляемый код для мобилок */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
  }

  .hero.container {
    margin-top: 0;
  }

  .hero-text .line4 {
    transform: none;
    text-align: center;
  }

  header.container {
    gap: 10px;
  }

  .hero-text h2,
  .hero-text .line1,
  .hero-text .line2,
  .hero-text .line3,
  .hero-text .line4 {
    font-size: 8vw;
    text-align: center;
    transform: none;
  }
  

  .hero img {
    max-width: 90%;
  }

   .line-decor {
    position: static;
    transform: none;
    margin: 10px auto;
    display: block;
    width: 25%;
  }

  

  .services h2,
  .prices h2,
  .contacts-new h2,
  .raboty h2 {
    font-size: 28px;
  }

  .uslugi li,
  .nashedelo li {
    flex: 1 1 100%;
  }

  .uslugi img,
  .nashedelo img {
    width: 90%;
    max-width: 280px;
  }

  .uslugi p,
  .main-phone,
  nav a {
    font-size: 24px;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .contacts-content {
    flex-direction: column;
    align-items: center;
  }

  .contacts-info p {
    font-size: 18px;
  }

  .contacts-map iframe {
    width: 100% !important;
    height: auto !important;
  }

  .scroll-to-top {
    right: 20px;
    bottom: 20px;
  }
}

}

.contacts-new {
  padding: 60px 20px;
  color: #000;
  border-radius: 10px;
  margin-top: 40px;
}
.contacts-new h2{
  color: white;
  text-shadow: 
  -1px -1px 0 black,
   1px -1px 0 black,
  -1px  1px 0 black,
   1px  1px 0 black;
}


.contacts-new h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 30px;
}

.contacts-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.contacts-info {
  flex: 1;
  min-width: 250px;
}

.contacts-info p {
  font-size: 24px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-info img {
  width: 30px;
  height: 30px;
}

.contacts-map {
  flex: 2;
  min-width: 300px;
}

.raboty {
  padding: 60px 0;
  text-align: center;
}

.raboty h2 {
  font-size: 40px;
  margin-bottom: 30px;
  text-shadow: 
  -1px -1px 0 black,
   1px -1px 0 black,
  -1px  1px 0 black,
   1px  1px 0 black;
}

.nashedelo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nashedelo li {
  list-style: none;
  text-align: center;
  flex: 1 1 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.nashedelo li:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.nashedelo img {
  width: 280px;
  margin-bottom: 10px;
}

.nashedelo p {
  color: black;
  font-size: 24px;
  /* text-shadow: 
  -1px -1px 0 black,
   1px -1px 0 black,
  -1px  1px 0 black,
   1px  1px 0 black;
  text-decoration: underline;
  text-decoration-color: #E1FF00 ; */
}

.contacts {
  padding: 20px 20px;
  background: rgba(245, 247, 227, 0.6);
  color: black;
  border-radius: 0px;
  text-align: center;
}

.contacts h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contacts p {
  font-size: 18px;
  margin-bottom: 8px;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(245, 247, 227, 0.6);
  color: #000;
  font-size: 14px;
}
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 10%;
  transform: translateX(50%);
  background-color: #e1ff00b7;
  padding: 16px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background-color: #E1FF00;
  transform: translateX(50%) scale(1.1);
}

.scroll-to-top img {
  width: 28px;
  height: 28px;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}



