.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95); /* появляется при прокрутке */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links li a:hover {
  color: #ff3333;
}

.contact-button button:hover {
  background-color: #e55a4e;
}

.social-icons a {
  color: #ff3333;
  font-size: 2.4rem;
  transition: all 0.3s ease;
  transform-origin: center;
  text-decoration: none;
  
}

.social-icons a:hover {
  color: #ff3333;
  transform: scale(1.2) translateX(5px);
}


.advantage-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #ffc107, #ff5722);
  transition: width 0.4s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item:hover::after {
  width: 100%;
}



.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(136 132 132 / 80%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay.open {
  display: flex;
}


.modal {
  background: #1c1c1c;
  padding: 40px 30px;
  border-radius: 12px;
  width: 60%;
  max-width: 500px;
  color: white;
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ff3333;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.modal-form input,
.modal-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #2e2e2e;
  color: white;
  font-size: 1rem;
  resize: vertical;
}

.modal-form button {
  padding: 12px;
  background: #ff3333;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-form button:hover {
  background-color: #e52a2a;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 15px;
  gap: 10px;
}

.consent-checkbox input {
  margin-top: 5px;
  transform: scale(1.1);
}

.consent-checkbox a {
  color: #ff3333;
  text-decoration: underline;
}

.consent-checkbox a:hover {
  color: #ff5555;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
 -- padding: 20px;
}

.modal-content {
  background-color: #1c1c1c;
  color: white;
  max-width: 70%;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
  font-size: 0.95rem;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: #ff3333 #f0f0f0; /* для Firefox */
}



/* Кастомный скролл для WebKit (Chrome, Edge, Safari) */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #ff3333;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
}


.modal-content h2 {
  color: #ff3333;
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  color: #ff3333;
  cursor: pointer;
}

.modal .form-response button#repeatFormButton {
  display: none; /* изначально скрыта */
  padding: 12px 20px;
  font-size: 16px;
  background-color: #ff3333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal .form-response button#repeatFormButton:hover {
  background-color: #e58787;
  transform: translateY(-1px);
}

.modal .form-response button#repeatFormButton:active {
  transform: scale(0.98);
}