@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}
body {
  background-color: #f8f8f8;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  line-height: 1.6;
}

::-webkit-scrollbar {
    width: 0.5em;
    height: 0.5em;
}

::-webkit-scrollbar-track {
    background: #ddd;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 10px;
}


body.modal-open {
  overflow: hidden;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 5px;
  font-family: "Nunito Sans", sans-serif;
  color: #000;
}

header, footer {
  text-align: center;
  padding: 30px 20px;
}

header {
  top: 0;
}

footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

h1 {
  text-align: center;
  margin: 40px 0 20px;
}

h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
p, li {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
ul {
  margin-left: 20px;
}
.contact-info {
  margin-top: 20px;
}
.contact-info a {
  display: inline-block;
  margin-bottom: 10px;
  color: #000;
  text-decoration: none;
  font-weight: 600;
}
.contact-info a:hover {
  text-decoration: underline;
}

.subtitle {
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #555;
}
.btn {
  margin-top: 15px;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:hover {
  background-color: #333;
}

.btn span {
  padding: 5px;
  font-size: larger;
}

#socialButtons a {
  transition: all 2.3s ease;
  animation-name: lighting-anim;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}
.about {
  max-width: 900px;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}
.about img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}
.about h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  margin-top: 0;
}
.about p {
  font-size: 1.2rem;
  color: #000;
  line-height: 1.6;
}

hr {width: 100%;}

.portfolio {
  margin: 60px 0;/*
  width: 100%;
  max-width: 1000px;*/
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.portfolio-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.portfolio-item-title {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}
.services {
  display: grid;
  gap: 20px;
  padding: 20px;
  max-width: auto;
  margin: auto;
}
.service {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #f9f9f9;
}
.service h3 {
  margin-bottom: 10px;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 10;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 95%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 200px;
  position: relative;
}
.modal-content img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  height: 100%;
}
.modal-text {
  flex: 1;
}
.modal-text h3 {
  margin-bottom: 10px;
}
.modal-text p {
  margin-bottom: 10px;
}
.modal .btn {
  margin-top: 10px;
}
.modal-close {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 3rem;
  color: #000;
  cursor: pointer;
  z-index: 10;
}
.socials {
  margin-top: 20px;
}
.socials a {
  margin: 0 10px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}
form#contactForm {
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

form#contactForm input,
form#contactForm textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}



@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  form#contactForm {
    padding: 0;
  }
}
/* Общие стили */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Адаптивная сетка */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.grid > * {
  flex: 1 1 calc(33.333% - 20px);
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
  .grid > * {
    flex: 1 1 100%;
  }

  .container {
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
@media (min-width: 498px) {
  .about {
    display: flex;
    gap: 20px ;
  }

  .services {
    grid-template-columns: repeat(auto-fill, minmax(25vh, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .contact-info {
    font-size: 0.95rem;
  }

  form#contactForm {
    padding: 0 10px;
  }
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9;
}

.float-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  color: white;
  width: 80px;
  height: 80px;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s;
  animation-name: lighting-anim;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.float-btn i {
  animation-name: shake-anim; 
  animation-duration: 2s;
  animation-iteration-count: infinite;
  padding: 1rem;
}

.float-btn:hover .float-btn i:hover {
  animation-play-state: paused;
  background-color: #444;
  color: white;
}

.order-btn {
  box-shadow: none;
  border: 4px solid black;
  background: transparent;
  animation-name: none;
  background: #fff;
}
.order-btn svg {
  color: #000;
  animation-name: scale-anim;
}
.call-btn {
  border: 2px solid #fff;
}
.call-btn img {
  color: #fff;
}

.float-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .floating-buttons {
    flex-direction: column;
    bottom: 50px;
    right: 15px;
  }

  .float-btn {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


@keyframes lighting-anim {
  0% {background: #333;}
  50% {background: #111;}
  0% {background: #333;}
}

@keyframes shake-anim {
  0% {transform: rotate(0deg)}
  40% {transform: rotate(-30deg)}
  60% {transform: rotate(30deg)}
  0% {transform: rotate(0deg)}
}

@keyframes scale-anim {
  0% {transform: scale(1.0)}
  50% {transform: scale(1.2)}
  0% {transform: scale(1.0)}
}

.services-slider {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.slider-container {
/*  width: 820px;*/
  display: flex;
  transition: transform 0.5s ease;
  padding: 20px 0;
  max-width: 970px;
}

.service-card { 
  min-width: 300px;
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 15px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.service-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin: 15px 0;
}

.service-card .price small {
  font-size: 0.8rem;
  color: #666;
  display: block;
}

.service-card ul {
  margin: 20px 0;
  padding-left: 20px;
}

.service-card ul li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: none;
  padding-left: 25px;
}

.service-card ul li:before {
  content: "✓";
  color: #4CAF50;
  position: absolute;
  left: 0;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-nav button {
  background: #333;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav button:hover {
  background: #555;
}

.slider-nav button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Индикаторы слайдов */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots span.active {
  background: #333;
  transform: scale(1.2);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
  }

  nav {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 75%;
    left: 0;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9;
    padding: 10px;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
  }

  nav.active {
    display: flex;
    visibility: visible;
    opacity: 100%;
  }

  nav a {
    font-size: 1.2rem;
    background: black;
    color: white;
    margin: 0;
    text-align: left;
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #494949;
  }
  nav a:hover {
    background: #111;
  }

  .service-card {
    min-width: 280px;
    margin: 0 10px;
  }
  
  .slider-container {
    padding: 10px 0;
    max-width: 70px;
  }
}

@media (max-width: 480px) {
  .service-card {
    min-width: 260px;
    padding: 20px;
  }
  .slider-container {
    max-width: 180px;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  
  .service-card .price {
    font-size: 1.3rem;
  }
}
.language-switch {
}

.language-switch a {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    transition: background 0.3s ease;
    border: solid 1px black;
    margin-bottom: 10px;
}

.language-switch a:hover {
  background-color: #333;
}


#hamburger {
  background: #000;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
#hamburger:hover {
  background: #222;
}

#hamburger:active  {
  background: #fff;
  color: #000;
}

#submitButton {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #000;
  border-radius: 0px;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}
#submitButton svg {
  transition: transform 0.2s;
}

#submitButton:hover svg {
  transform: translateX(10px);
}

#submitButton:hover {
  background-color: #222;
}

.price-list-item {
  border: 5px solid #000;
  padding: 40px;
  padding-right: 38px;
  padding-top: 30px;

  transition: background 0.5s, color 0.3s;
}

.price-list-item img {
  padding: 10px;
  background: #000;
}
.price-list-item span {
  margin-left: 45px;
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Nunito Sans', sans-serif;
  padding: 0;
}
.price-list-item h2 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
}
.price-list-item li {
  list-style: square;
  font-weight: 900;
  font-size: 1.2rem;
}

.price-list-item button {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: 'Nunito Sans' sans-serif;
  border: 3px solid #000;
  cursor: pointer;
}
.price-list-item:hover li {
  color: #fff;
}

.price-list-item:hover {
  background: #000;
  color: #fff;
}


/* Survey styles */
.survey-step {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.survey-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.survey-option {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  background: transparent;
  color: #000;
  border: 1px solid black;
}
.survey-option:hover, .survey-option.active {
  color: #fff;
  background: #000;
}

.survey-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-direction: row;
}
.survey-back, .survey-next {
  min-width: 120px;
}
@media (max-width: 480px) {
  .survey-option {
    font-size: 1rem;
  }
  .survey-back, .survey-next {
    width: 100%;
  }
}